C2019-025_Ability-to-Toggle-Replace-Words
This commit is contained in:
1513
PROMS/Volian.Controls.Library/DisplayTags.Designer.cs
generated
1513
PROMS/Volian.Controls.Library/DisplayTags.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -124,6 +124,7 @@ namespace Volian.Controls.Library
|
||||
private void ClearControls()
|
||||
{
|
||||
cmbCheckoff.Enabled = false;
|
||||
cmbShwRplWds.Enabled = false;
|
||||
cbPageBreak.Enabled = false;
|
||||
cbPrefPageBreak.Enabled = false;
|
||||
cbPlaceKeeper.Enabled = false;
|
||||
@@ -258,6 +259,7 @@ namespace Volian.Controls.Library
|
||||
groupPanelChgStepType.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelPaginate.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelCheckoff.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelcmbShwRplWds.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelIncludeOn.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelWcnTrnResp.Style.BackColor = Color.Cornsilk;
|
||||
groupPanelFigSize.Style.BackColor = Color.Cornsilk;
|
||||
@@ -298,10 +300,20 @@ namespace Volian.Controls.Library
|
||||
// in certain cases, the checkbox control should be disabled, check for this stuff now...
|
||||
int formatSteptype = CurItemInfo.FormatStepType;
|
||||
cmbCheckoff.Enabled = true;
|
||||
cmbShwRplWds.Enabled = true; // new show replace words
|
||||
if (cmbShwRplWds.Visible)
|
||||
{
|
||||
cmbShwRplWds.SelectedIndex = 0;
|
||||
//StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
cmbShwRplWds.Enabled = true;
|
||||
cmbShwRplWds.SelectedIndex = sc.Step_ShwRplWdsIndex;
|
||||
}
|
||||
if ((CurItemInfo.IsCaution || CurItemInfo.IsNote) & !fmtdata.SectData.StepSectionData.StepSectionLayoutData.TieTabToLevel)
|
||||
cmbCheckoff.Enabled = false;
|
||||
|
||||
if (CurItemInfo.IsRNOPart && sc != null && sc.Step_CheckOffIndex != -1 && !fmtdata.StepDataList[formatSteptype].CheckOffSameAsParent)
|
||||
cmbCheckoff.Enabled = false; // Checkoffs already assigned to RNO.
|
||||
cmbCheckoff.Enabled = false; // Checkoffs already assigned to RNO.
|
||||
|
||||
if (StepOverRide()) cmbCheckoff.Enabled = false; // Checkoffs already assigned to AER
|
||||
|
||||
//// if there are no checkoffs OR
|
||||
@@ -532,7 +544,7 @@ namespace Volian.Controls.Library
|
||||
tbRespons.Text = sc2.Step_Responsibility;
|
||||
}
|
||||
// diable fields if user is only a reviewer
|
||||
groupPanelCheckoff.Enabled = groupPanelChgBar.Enabled = groupPanelChgStepType.Enabled = groupPanelIncludeOn.Enabled = groupPanelPaginate.Enabled = groupPanelWcnTrnResp.Enabled = UserInfo.CanEdit(MyUserInfo, Mydvi); // Can Change Tag Info
|
||||
groupPanelCheckoff.Enabled = groupPanelChgBar.Enabled = groupPanelChgStepType.Enabled = groupPanelIncludeOn.Enabled = groupPanelPaginate.Enabled = groupPanelWcnTrnResp.Enabled = groupPanelcmbShwRplWds.Enabled = UserInfo.CanEdit(MyUserInfo, Mydvi); // Can Change Tag Info
|
||||
|
||||
// C2021-015: Barakah - High Level Steps in Table of Contents. Make the check box visible if format has TofCAllowHLS and
|
||||
// if format allow this and on a HLS, get the database from step's config to see if included and set checkbox accordingly.
|
||||
@@ -794,6 +806,12 @@ namespace Volian.Controls.Library
|
||||
if (Visible == true && NotVisibleEditItem != null)
|
||||
MyEditItem = NotVisibleEditItem;
|
||||
}
|
||||
private void groupPanelcmbShwRplWds_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
// If it becomes visible, update the panel
|
||||
if (Visible == true && NotVisibleEditItem != null)
|
||||
MyEditItem = NotVisibleEditItem;
|
||||
}
|
||||
private void rbChgBarOvrRideOn_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (_Initalizing) return;
|
||||
@@ -862,6 +880,25 @@ namespace Volian.Controls.Library
|
||||
// cnt.Save();
|
||||
//}
|
||||
}
|
||||
private void cmbShwRplWds_SelectedIndexChanged(object sender, EventArgs e) // new show replace words
|
||||
{
|
||||
|
||||
// --------
|
||||
|
||||
if (_Initalizing) return;
|
||||
MyEditItem.SaveContents();
|
||||
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
if (sc == null) return;
|
||||
MyEditItem.ChangeBarForConfigItemChange = false;
|
||||
//sc.Step_DisableInitialLine = cbInitialLine.Checked;
|
||||
sc.Step_ShwRplWdsIndex = cmbShwRplWds.SelectedIndex;
|
||||
MyEditItem.ChangeBarForConfigItemChange = true;
|
||||
|
||||
|
||||
//needed to refresh display changing
|
||||
MyEditItem.RefreshContent();
|
||||
MyEditItem.SetAllTabs();
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void tbChgID_TextChanged(object sender, EventArgs e)
|
||||
|
@@ -121,6 +121,6 @@
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>36</value>
|
||||
<value>132</value>
|
||||
</metadata>
|
||||
</root>
|
@@ -342,7 +342,7 @@ namespace Volian.Controls.Library
|
||||
AddFontTable(selectedRtfSB, FormatFont, FontIsFixed(FormatFont));
|
||||
_RtfPrefix = selectedRtfSB.ToString();
|
||||
}
|
||||
return _RtfPrefix;// +@"{\colortbl ;\red255\green0\blue0;}";
|
||||
return _RtfPrefix;// +@"{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}";
|
||||
}
|
||||
}
|
||||
// August 5, 2009 - KBR & RHM:
|
||||
@@ -1284,9 +1284,9 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
selectedRtfSB.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 " + myFont.FontFamily.Name + @";}"); //}\f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}}";
|
||||
if (!isFixed)
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;}"); // C2017-036 get best available proportional font for symbols
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // C2017-036 get best available proportional font for symbols
|
||||
else
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 FreeMono;}}{\colortbl ;\red255\green0\blue0;}"); // FreeMono is now used for the edit screen only. VESymbFix and Consolas are used for printing
|
||||
selectedRtfSB.Append(@"{\f1\fnil\fcharset0 FreeMono;}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // FreeMono is now used for the edit screen only. VESymbFix and Consolas are used for printing
|
||||
selectedRtfSB.Append("\r\n");
|
||||
// use styles to construct rtf commands to insert into next line (where \b, etc is)
|
||||
// B2015-134 Hanging Indent with Hard Returns was not being saved- removed \sl-240\slmult0
|
||||
@@ -1405,7 +1405,7 @@ namespace Volian.Controls.Library
|
||||
linkValue = linkValue.Replace("\\u916?", "\\f1\\u916?\\f0 ");
|
||||
linkValue = linkValue.Replace(@"{", @"\{");
|
||||
linkValue = linkValue.Replace(@"}", @"\}");
|
||||
SelectedRtf = @"{\rtf1\ansi" + FontTable + @"{\colortbl ;\red255\green0\blue0;}\v" + FontSize + @" <START]\v0\cf1 " + linkValue + @"\cf0\v " + linkUrl + @"[END>\v0 }";
|
||||
SelectedRtf = @"{\rtf1\ansi" + FontTable + @"{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}\v" + FontSize + @" <START]\v0\cf1 " + linkValue + @"\cf0\v " + linkUrl + @"[END>\v0 }";
|
||||
this.SelectionLength = 0;
|
||||
this.SelectionStart = position;
|
||||
FindAllLinks();
|
||||
|
@@ -1968,7 +1968,7 @@ namespace Volian.Controls.Library
|
||||
//trtb.Rtf = trtb.RtfPrefix + ConvertTableText(trtb.Rtf) + "}";
|
||||
//string fromRTF = trtb.Rtf;
|
||||
//string prefix = trtb.RtfPrefix;
|
||||
//if (tstr.Contains("#Link:")) prefix += @"{\colortbl ;\red255\green0\blue0;}";
|
||||
//if (tstr.Contains("#Link:")) prefix += @"{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}";
|
||||
//if (tstr.Contains("#Link:"))
|
||||
// Console.WriteLine("here");
|
||||
//string jText = trtb.RtfPrefix + ConvertTableText(tstr) + @"\par}";
|
||||
|
Reference in New Issue
Block a user