This commit is contained in:
parent
ed89a68e90
commit
9a7a9c3f72
@ -28,6 +28,7 @@ namespace Volian.Controls.Library
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DisplayTransition));
|
||||
this.groupPanelBtns = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.btnTranCancel = new DevComponents.DotNetBar.ButtonX();
|
||||
this.btnTranSave = new DevComponents.DotNetBar.ButtonX();
|
||||
@ -45,6 +46,7 @@ namespace Volian.Controls.Library
|
||||
this.lblxTranRangeTip = new DevComponents.DotNetBar.LabelX();
|
||||
this.btnTranRangeClear = new DevComponents.DotNetBar.ButtonX();
|
||||
this.btnUp1 = new DevComponents.DotNetBar.ButtonX();
|
||||
this.superToolTipDispTran = new DevComponents.DotNetBar.SuperTooltip();
|
||||
this.groupPanelBtns.SuspendLayout();
|
||||
this.groupPanelTranFmt.SuspendLayout();
|
||||
this.groupPanelTransitionSets.SuspendLayout();
|
||||
@ -62,7 +64,7 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelBtns.Controls.Add(this.btnTranSave);
|
||||
this.groupPanelBtns.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupPanelBtns.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupPanelBtns.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupPanelBtns.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupPanelBtns.Name = "groupPanelBtns";
|
||||
this.groupPanelBtns.Size = new System.Drawing.Size(501, 52);
|
||||
//
|
||||
@ -97,6 +99,8 @@ namespace Volian.Controls.Library
|
||||
this.btnTranCancel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.btnTranCancel.Name = "btnTranCancel";
|
||||
this.btnTranCancel.Size = new System.Drawing.Size(88, 36);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.btnTranCancel, new DevComponents.DotNetBar.SuperTooltipInfo("", "", "This restores transition selections to the default if a transition would be inser" +
|
||||
"ted, or the original transition if one had been selected.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.btnTranCancel.TabIndex = 25;
|
||||
this.btnTranCancel.Text = "Cancel";
|
||||
this.btnTranCancel.Click += new System.EventHandler(this.btnTranCancel_Click);
|
||||
@ -108,9 +112,11 @@ namespace Volian.Controls.Library
|
||||
this.btnTranSave.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnTranSave.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.btnTranSave.Location = new System.Drawing.Point(0, 0);
|
||||
this.btnTranSave.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnTranSave.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnTranSave.Name = "btnTranSave";
|
||||
this.btnTranSave.Size = new System.Drawing.Size(103, 36);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.btnTranSave, new DevComponents.DotNetBar.SuperTooltipInfo("Save Transition", "", "- This will place the selected Transition at the cursor position.\r\n- This will re" +
|
||||
"place a Transition with the selected Transition.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.btnTranSave.TabIndex = 24;
|
||||
this.btnTranSave.Text = "Save Transition";
|
||||
this.btnTranSave.Click += new System.EventHandler(this.btnTranSave_Click);
|
||||
@ -122,7 +128,7 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelTranFmt.Controls.Add(this.listBoxTranFmt);
|
||||
this.groupPanelTranFmt.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupPanelTranFmt.Location = new System.Drawing.Point(0, 52);
|
||||
this.groupPanelTranFmt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupPanelTranFmt.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupPanelTranFmt.Name = "groupPanelTranFmt";
|
||||
this.groupPanelTranFmt.Size = new System.Drawing.Size(501, 138);
|
||||
//
|
||||
@ -155,9 +161,10 @@ namespace Volian.Controls.Library
|
||||
this.listBoxTranFmt.HorizontalScrollbar = true;
|
||||
this.listBoxTranFmt.ItemHeight = 16;
|
||||
this.listBoxTranFmt.Location = new System.Drawing.Point(0, 0);
|
||||
this.listBoxTranFmt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.listBoxTranFmt.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.listBoxTranFmt.Name = "listBoxTranFmt";
|
||||
this.listBoxTranFmt.Size = new System.Drawing.Size(495, 100);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.listBoxTranFmt, new DevComponents.DotNetBar.SuperTooltipInfo("", "", resources.GetString("listBoxTranFmt.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.listBoxTranFmt.TabIndex = 13;
|
||||
this.listBoxTranFmt.SelectedIndexChanged += new System.EventHandler(this.listBoxTranFmt_Click);
|
||||
//
|
||||
@ -168,7 +175,7 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelTransitionSets.Controls.Add(this.vlnTreeComboSets);
|
||||
this.groupPanelTransitionSets.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupPanelTransitionSets.Location = new System.Drawing.Point(0, 190);
|
||||
this.groupPanelTransitionSets.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupPanelTransitionSets.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupPanelTransitionSets.Name = "groupPanelTransitionSets";
|
||||
this.groupPanelTransitionSets.Size = new System.Drawing.Size(501, 59);
|
||||
//
|
||||
@ -198,9 +205,10 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
this.vlnTreeComboSets.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.vlnTreeComboSets.Location = new System.Drawing.Point(0, 0);
|
||||
this.vlnTreeComboSets.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
|
||||
this.vlnTreeComboSets.Margin = new System.Windows.Forms.Padding(5);
|
||||
this.vlnTreeComboSets.Name = "vlnTreeComboSets";
|
||||
this.vlnTreeComboSets.Size = new System.Drawing.Size(495, 24);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.vlnTreeComboSets, new DevComponents.DotNetBar.SuperTooltipInfo("", "", resources.GetString("vlnTreeComboSets.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.vlnTreeComboSets.TabIndex = 33;
|
||||
this.vlnTreeComboSets.Value = null;
|
||||
this.vlnTreeComboSets.FinishEditing += new AT.STO.UI.Win.DropDownValueChangedEventHandler(this.DropDown_FinishEditing);
|
||||
@ -212,7 +220,7 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelTransitionProcs.Controls.Add(this.cbTranProcs);
|
||||
this.groupPanelTransitionProcs.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupPanelTransitionProcs.Location = new System.Drawing.Point(0, 249);
|
||||
this.groupPanelTransitionProcs.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupPanelTransitionProcs.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupPanelTransitionProcs.Name = "groupPanelTransitionProcs";
|
||||
this.groupPanelTransitionProcs.Size = new System.Drawing.Size(501, 57);
|
||||
//
|
||||
@ -243,9 +251,10 @@ namespace Volian.Controls.Library
|
||||
this.cbTranProcs.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cbTranProcs.FormattingEnabled = true;
|
||||
this.cbTranProcs.Location = new System.Drawing.Point(0, 0);
|
||||
this.cbTranProcs.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.cbTranProcs.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cbTranProcs.Name = "cbTranProcs";
|
||||
this.cbTranProcs.Size = new System.Drawing.Size(495, 24);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.cbTranProcs, new DevComponents.DotNetBar.SuperTooltipInfo("", "", resources.GetString("cbTranProcs.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.cbTranProcs.TabIndex = 14;
|
||||
this.cbTranProcs.SelectedIndexChanged += new System.EventHandler(this.cbTranProcs_SelectedIndexChanged);
|
||||
//
|
||||
@ -256,7 +265,7 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelTransitionSect.Controls.Add(this.cbTranSects);
|
||||
this.groupPanelTransitionSect.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupPanelTransitionSect.Location = new System.Drawing.Point(0, 306);
|
||||
this.groupPanelTransitionSect.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupPanelTransitionSect.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupPanelTransitionSect.Name = "groupPanelTransitionSect";
|
||||
this.groupPanelTransitionSect.Size = new System.Drawing.Size(501, 60);
|
||||
//
|
||||
@ -287,9 +296,10 @@ namespace Volian.Controls.Library
|
||||
this.cbTranSects.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cbTranSects.FormattingEnabled = true;
|
||||
this.cbTranSects.Location = new System.Drawing.Point(0, 0);
|
||||
this.cbTranSects.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.cbTranSects.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.cbTranSects.Name = "cbTranSects";
|
||||
this.cbTranSects.Size = new System.Drawing.Size(495, 24);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.cbTranSects, new DevComponents.DotNetBar.SuperTooltipInfo("", "", resources.GetString("cbTranSects.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.cbTranSects.TabIndex = 20;
|
||||
this.cbTranSects.SelectedIndexChanged += new System.EventHandler(this.cbTranSects_SelectedIndexChanged);
|
||||
this.cbTranSects.Click += new System.EventHandler(this.cbTranSects_SelectedIndexChanged);
|
||||
@ -302,7 +312,7 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelTranstionSteps.Controls.Add(this.pnlTranStepBtns);
|
||||
this.groupPanelTranstionSteps.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupPanelTranstionSteps.Location = new System.Drawing.Point(0, 366);
|
||||
this.groupPanelTranstionSteps.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupPanelTranstionSteps.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.groupPanelTranstionSteps.Name = "groupPanelTranstionSteps";
|
||||
this.groupPanelTranstionSteps.Size = new System.Drawing.Size(501, 466);
|
||||
//
|
||||
@ -333,9 +343,10 @@ namespace Volian.Controls.Library
|
||||
this.tvTran.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tvTran.HideSelection = false;
|
||||
this.tvTran.Location = new System.Drawing.Point(0, 57);
|
||||
this.tvTran.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tvTran.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tvTran.Name = "tvTran";
|
||||
this.tvTran.Size = new System.Drawing.Size(495, 386);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.tvTran, new DevComponents.DotNetBar.SuperTooltipInfo("", "", resources.GetString("tvTran.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.tvTran.TabIndex = 31;
|
||||
this.tvTran.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvTran_AfterSelect);
|
||||
//
|
||||
@ -346,7 +357,7 @@ namespace Volian.Controls.Library
|
||||
this.pnlTranStepBtns.Controls.Add(this.btnUp1);
|
||||
this.pnlTranStepBtns.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlTranStepBtns.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlTranStepBtns.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.pnlTranStepBtns.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.pnlTranStepBtns.Name = "pnlTranStepBtns";
|
||||
this.pnlTranStepBtns.Size = new System.Drawing.Size(495, 57);
|
||||
this.pnlTranStepBtns.TabIndex = 30;
|
||||
@ -356,9 +367,11 @@ namespace Volian.Controls.Library
|
||||
this.lblxTranRangeTip.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.lblxTranRangeTip.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblxTranRangeTip.Location = new System.Drawing.Point(355, 0);
|
||||
this.lblxTranRangeTip.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.lblxTranRangeTip.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.lblxTranRangeTip.Name = "lblxTranRangeTip";
|
||||
this.lblxTranRangeTip.Size = new System.Drawing.Size(140, 57);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.lblxTranRangeTip, new DevComponents.DotNetBar.SuperTooltipInfo("", "", "For range transitions, shows which selection, first or second, that the next sele" +
|
||||
"ction will be.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.lblxTranRangeTip.TabIndex = 33;
|
||||
this.lblxTranRangeTip.Text = "Select First \r\nTransition\r\nfor Range";
|
||||
//
|
||||
@ -368,9 +381,10 @@ namespace Volian.Controls.Library
|
||||
this.btnTranRangeClear.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnTranRangeClear.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.btnTranRangeClear.Location = new System.Drawing.Point(57, 0);
|
||||
this.btnTranRangeClear.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnTranRangeClear.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnTranRangeClear.Name = "btnTranRangeClear";
|
||||
this.btnTranRangeClear.Size = new System.Drawing.Size(77, 57);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.btnTranRangeClear, new DevComponents.DotNetBar.SuperTooltipInfo("", "", "This clears the Range selection in the tree view", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.btnTranRangeClear.TabIndex = 31;
|
||||
this.btnTranRangeClear.Text = "Clear Range Selection";
|
||||
this.btnTranRangeClear.Click += new System.EventHandler(this.btnTranRangeClear_Click);
|
||||
@ -382,12 +396,18 @@ namespace Volian.Controls.Library
|
||||
this.btnUp1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.btnUp1.Image = global::Volian.Controls.Library.Properties.Resources.GoToParentFolderHS;
|
||||
this.btnUp1.Location = new System.Drawing.Point(0, 0);
|
||||
this.btnUp1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnUp1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnUp1.Name = "btnUp1";
|
||||
this.btnUp1.Size = new System.Drawing.Size(57, 57);
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.btnUp1, new DevComponents.DotNetBar.SuperTooltipInfo("", "", "This will display the tree for selecting the transition one level higher than cur" +
|
||||
"rently shown.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.btnUp1.TabIndex = 30;
|
||||
this.btnUp1.Click += new System.EventHandler(this.btnUp1_Click);
|
||||
//
|
||||
// superToolTipDispTran
|
||||
//
|
||||
this.superToolTipDispTran.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
|
||||
//
|
||||
// DisplayTransition
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
@ -432,5 +452,6 @@ namespace Volian.Controls.Library
|
||||
private DevComponents.DotNetBar.ButtonX btnUp1;
|
||||
private DevComponents.DotNetBar.LabelX lblxTranRangeTip;
|
||||
private vlnTreeView3 tvTran;
|
||||
private DevComponents.DotNetBar.SuperTooltip superToolTipDispTran;
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ namespace Volian.Controls.Library
|
||||
private VETreeNode _RangeNode2;
|
||||
// Use _RangeColor to show highlighting for steps selected in range. This is set from
|
||||
// calling methods from application settings. If not default to aquamarine.
|
||||
private Color _RangeColor = Color.Aquamarine;
|
||||
private Color _RangeColor = Color.LightGreen;
|
||||
public Color RangeColor
|
||||
{
|
||||
get { return _RangeColor; }
|
||||
@ -92,6 +92,10 @@ namespace Volian.Controls.Library
|
||||
private ItemInfo _CurrentProcedure; // current procedure used to set all of the controls (may switch between above two)
|
||||
private int _CurrentProcIndex;
|
||||
private bool _AlwaysDisableSets; // true if there is only 1 item in tree/combo for sets
|
||||
private Color _OrigGroupPanelSets;
|
||||
private Color _OrigGroupPanelProcs;
|
||||
private Color _OrigGroupPanelSects;
|
||||
private Color _OrigGroupPanelSteps;
|
||||
#endregion
|
||||
#region Constructors
|
||||
public DisplayTransition()
|
||||
@ -111,6 +115,11 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
private void InitControls()
|
||||
{
|
||||
_OrigGroupPanelSets = groupPanelTransitionSets.Style.BackColor;
|
||||
_OrigGroupPanelProcs = groupPanelTransitionProcs.Style.BackColor;
|
||||
_OrigGroupPanelSects = groupPanelTransitionSect.Style.BackColor;
|
||||
_OrigGroupPanelSteps = groupPanelTranstionSteps.Style.BackColor;
|
||||
|
||||
ListBoxTranFmtFillIn();
|
||||
|
||||
// if new, use _CurItemFrom to setup the initial selections in the controls,
|
||||
@ -193,7 +202,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
private void tvInitHiliteRange(bool rangeSameLevel, ItemInfo stpitm, ItemInfo rngitm, int uplevel)
|
||||
{
|
||||
_RangeNode1 = (VETreeNode) tvTran.SelectedNode;
|
||||
_RangeNode1 = _CurTrans != null ? (VETreeNode)tvTran.SelectedNode : null;
|
||||
_RangeNode2 = null;
|
||||
// get first treenode at this level
|
||||
VETreeNode tn = (VETreeNode)tvTran.Nodes[0];
|
||||
@ -376,17 +385,20 @@ namespace Volian.Controls.Library
|
||||
for (int i = 0; i < ttl.Count; i++)
|
||||
listBoxTranFmt.Items.Add(ttl[i].TransFormat.Replace("?.",""));
|
||||
listBoxTranFmt.SelectedIndex = _TranFmtIndx;
|
||||
|
||||
groupPanelTranFmt.Style.BackColor = (_CurTrans == null && _TranFmtIndx==0) ? Color.Yellow : Color.Orange;
|
||||
E_TransUI etm = (E_TransUI)_CurItemFrom.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[_TranFmtIndx].TransUI;
|
||||
_DoingRange = (etm & E_TransUI.StepLast) == E_TransUI.StepLast;
|
||||
}
|
||||
private void tvTranFillIn(ItemInfo startitm)
|
||||
{
|
||||
tvTran.Nodes.Clear();
|
||||
groupPanelTranstionSteps.Style.BackColor = _OrigGroupPanelSteps;
|
||||
if (startitm == null) return;
|
||||
// if the transition to point is a section or procedure, just return
|
||||
if (startitm.MyContent.Type < 20000) return;
|
||||
|
||||
groupPanelTranstionSteps.Style.BackColor = Color.Cornsilk;
|
||||
|
||||
// For the tree view, use parent, unless already at HLS. If at HLS, use this level.
|
||||
ItemInfo selitm = startitm;
|
||||
if (_CurTrans == null)
|
||||
@ -447,6 +459,9 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
private void SetControlsEnabling()
|
||||
{
|
||||
groupPanelTransitionSets.Style.BackColor = _OrigGroupPanelSets;
|
||||
groupPanelTransitionProcs.Style.BackColor = _OrigGroupPanelProcs;
|
||||
groupPanelTransitionSect.Style.BackColor = _OrigGroupPanelSects;
|
||||
// Based on selection & enum representing the transition format, determine the enabling of associated controls
|
||||
if (_CurItemFrom == null) return;
|
||||
int indx = listBoxTranFmt.SelectedIndex;
|
||||
@ -457,8 +472,13 @@ namespace Volian.Controls.Library
|
||||
vlnTreeComboSets.Enabled = false;
|
||||
if ((etm & E_TransUI.ProcMenu) == E_TransUI.ProcMenu)
|
||||
{
|
||||
if (!_AlwaysDisableSets)vlnTreeComboSets.Enabled = true;
|
||||
if (!_AlwaysDisableSets)
|
||||
{
|
||||
vlnTreeComboSets.Enabled = true;
|
||||
groupPanelTransitionSets.Style.BackColor = Color.Cornsilk;
|
||||
}
|
||||
cbTranProcs.Enabled = true;
|
||||
groupPanelTransitionProcs.Style.BackColor = Color.Cornsilk;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -473,6 +493,7 @@ namespace Volian.Controls.Library
|
||||
((etm & E_TransUI.SectMenuStep) == E_TransUI.SectMenuStep)))
|
||||
{
|
||||
cbTranSects.Enabled = true;
|
||||
groupPanelTransitionSect.Style.BackColor = Color.Cornsilk;
|
||||
}
|
||||
else
|
||||
cbTranSects.Enabled = false;
|
||||
@ -481,7 +502,10 @@ namespace Volian.Controls.Library
|
||||
// 'cleared/invisble'.
|
||||
btnTranRangeClear.Visible = _DoingRange;
|
||||
lblxTranRangeTip.Visible = _DoingRange;
|
||||
lblxTranRangeTip.BackColor = _RangeColor;
|
||||
if (_DoingRange)
|
||||
{
|
||||
lblxTranRangeTip.BackColor = Color.Yellow;
|
||||
}
|
||||
// if any previous nodes selected for range - clear them here
|
||||
if (!_DoingRange && _RangeNode1 != null) ClearRangeTransition();
|
||||
// Always allow for step selection if there are items.
|
||||
@ -600,7 +624,6 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (_InitializingTrans) return;
|
||||
if (listBoxTranFmt.SelectedIndex == _TranFmtIndx) return;
|
||||
|
||||
if (_RangeNode1 != null) ClearRangeTransition();
|
||||
// if this selection needs a step, but not a procedure, use the current procedure & the section list may need to updated
|
||||
// with step only section. List the step sections of the current procedure.....
|
||||
@ -615,6 +638,7 @@ namespace Volian.Controls.Library
|
||||
if (chldrn != null && chldrn.Count > 0) cbTranSectsFillIn((ItemInfo)chldrn[0], sectstartid);
|
||||
}
|
||||
_TranFmtIndx = listBoxTranFmt.SelectedIndex;
|
||||
groupPanelTranFmt.Style.BackColor = (_CurTrans == null && _TranFmtIndx == 0) ? Color.Yellow : Color.Orange;
|
||||
E_TransUI etm = (E_TransUI)_CurItemFrom.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[_TranFmtIndx].TransUI;
|
||||
_DoingRange = (etm & E_TransUI.StepLast) == E_TransUI.StepLast;
|
||||
SetControlsEnabling();
|
||||
@ -684,6 +708,7 @@ namespace Volian.Controls.Library
|
||||
_RangeNode1 = (VETreeNode)tvTran.SelectedNode;
|
||||
_RangeNode2 = null;
|
||||
lblxTranRangeTip.Text = "Select Last Step \r\nfor Range";
|
||||
lblxTranRangeTip.BackColor = Color.LightPink;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -692,6 +717,7 @@ namespace Volian.Controls.Library
|
||||
tvTran.SelectedNode.BackColor = _RangeColor;
|
||||
tvTranRangeHilites(true, _RangeNode1, _RangeNode2);
|
||||
lblxTranRangeTip.Text = "Select First Transition\r\nfor Range";
|
||||
lblxTranRangeTip.BackColor = Color.Yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,4 +117,22 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="superToolTipDispTran.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="listBoxTranFmt.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows you to select the type of, such as a transition to a step, a transition to a step outside of this procedure, a transition to a range of steps, or a transition to a section. The format also defines how the transition will look in the text.</value>
|
||||
</data>
|
||||
<data name="vlnTreeComboSets.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows you to select the the procedure set that the transition points to, if the selected transition format allows for the transition to point to another set. If the format does NOT allow for pointing to another set, a selection will not be available.</value>
|
||||
</data>
|
||||
<data name="cbTranProcs.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows you to select the the procedure that the transition points to, if the selected transition format allows for the transition to point to another procedure. If the format does NOT allow for pointing to another procedure, a selection will not be available.</value>
|
||||
</data>
|
||||
<data name="cbTranSects.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows you to select the the section that the transition points to, if the selected transition format allows for the transition to point to a section. If the format does NOT allow for pointing to another section, a selection will not be available.</value>
|
||||
</data>
|
||||
<data name="tvTran.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows you to select the the step(s) that the transition points to, if the selected transition format allows for the transition to point to step(s). If the format does NOT allow for pointing to step(s), a selection will not be available.</value>
|
||||
</data>
|
||||
</root>
|
Loading…
x
Reference in New Issue
Block a user