This commit is contained in:
parent
e290df0fdb
commit
8bd8b037f4
@ -153,16 +153,31 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
_MyDisplayRTB.SetSelectedCase('T');
|
_MyDisplayRTB.SetSelectedCase('T');
|
||||||
}
|
}
|
||||||
|
//public event DisplayRTBLinkEvent LinkInsertTran;
|
||||||
|
//private void OnLinkInsertTran(object sender, LinkClickedEventArgs args)
|
||||||
|
//{
|
||||||
|
// _LinkClickedEventArgs = args;
|
||||||
|
// if (LinkInsertTran != null) LinkInsertTran(sender, args);
|
||||||
|
//}
|
||||||
private void btnInsTrans_Click(object sender, EventArgs e)
|
private void btnInsTrans_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// see if user is positioned 'on' a transition within the rtb, if so do a modify, otherwise,
|
// see if user is positioned 'on' a transition within the rtb, if so do a modify, otherwise,
|
||||||
// insert transition.
|
// insert transition.
|
||||||
|
DisplayTabPanel tmp = Parent as DisplayTabPanel;
|
||||||
|
tmp.MyTabControl.OnLinkModifyTran(this, new DisplayLinkEventArgs(_MyDisplayItem, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnInsHrdSpc_Click(object sender, EventArgs e)
|
private void btnInsHrdSpc_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
_MyDisplayRTB.InsertSymbol(@"\u160?");
|
_MyDisplayRTB.InsertSymbol(@"\u160?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btnInsRO_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// see if user is positioned 'on' an RO within the rtb, if so do a modify, otherwise,
|
||||||
|
// insert transition.
|
||||||
|
DisplayTabPanel tmp = Parent as DisplayTabPanel;
|
||||||
|
tmp.MyTabControl.OnLinkModifyRO(this, new DisplayLinkEventArgs(_MyDisplayItem, null));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -34,17 +34,17 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelTranFmt = new DevComponents.DotNetBar.Controls.GroupPanel();
|
this.groupPanelTranFmt = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||||
this.listBoxTranFmt = new System.Windows.Forms.ListBox();
|
this.listBoxTranFmt = new System.Windows.Forms.ListBox();
|
||||||
this.groupPanelTransitionSets = new DevComponents.DotNetBar.Controls.GroupPanel();
|
this.groupPanelTransitionSets = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||||
|
this.vlnTreeComboSets = new Volian.Controls.Library.vlnTreeCombo();
|
||||||
this.groupPanelTransitionProcs = new DevComponents.DotNetBar.Controls.GroupPanel();
|
this.groupPanelTransitionProcs = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||||
this.cbTranProcs = new System.Windows.Forms.ComboBox();
|
this.cbTranProcs = new System.Windows.Forms.ComboBox();
|
||||||
this.groupPanelTransitionSect = new DevComponents.DotNetBar.Controls.GroupPanel();
|
this.groupPanelTransitionSect = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||||
this.cbTranSects = new System.Windows.Forms.ComboBox();
|
this.cbTranSects = new System.Windows.Forms.ComboBox();
|
||||||
this.groupPanelTranstionSteps = new DevComponents.DotNetBar.Controls.GroupPanel();
|
this.groupPanelTranstionSteps = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||||
|
this.tvTran = new Volian.Controls.Library.vlnTreeView3();
|
||||||
this.pnlTranStepBtns = new System.Windows.Forms.Panel();
|
this.pnlTranStepBtns = new System.Windows.Forms.Panel();
|
||||||
this.lblxTranRangeTip = new DevComponents.DotNetBar.LabelX();
|
this.lblxTranRangeTip = new DevComponents.DotNetBar.LabelX();
|
||||||
this.btnTranRangeClear = new DevComponents.DotNetBar.ButtonX();
|
this.btnTranRangeClear = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnUp1 = new DevComponents.DotNetBar.ButtonX();
|
this.btnUp1 = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.tvTran = new Volian.Controls.Library.vlnTreeView3();
|
|
||||||
this.vlnTreeComboSets = new Volian.Controls.Library.vlnTreeCombo();
|
|
||||||
this.groupPanelBtns.SuspendLayout();
|
this.groupPanelBtns.SuspendLayout();
|
||||||
this.groupPanelTranFmt.SuspendLayout();
|
this.groupPanelTranFmt.SuspendLayout();
|
||||||
this.groupPanelTransitionSets.SuspendLayout();
|
this.groupPanelTransitionSets.SuspendLayout();
|
||||||
@ -188,6 +188,16 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelTransitionSets.TabIndex = 31;
|
this.groupPanelTransitionSets.TabIndex = 31;
|
||||||
this.groupPanelTransitionSets.Text = "Select Procedure Set";
|
this.groupPanelTransitionSets.Text = "Select Procedure Set";
|
||||||
//
|
//
|
||||||
|
// vlnTreeComboSets
|
||||||
|
//
|
||||||
|
this.vlnTreeComboSets.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.vlnTreeComboSets.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.vlnTreeComboSets.Name = "vlnTreeComboSets";
|
||||||
|
this.vlnTreeComboSets.Size = new System.Drawing.Size(370, 21);
|
||||||
|
this.vlnTreeComboSets.TabIndex = 33;
|
||||||
|
this.vlnTreeComboSets.Value = null;
|
||||||
|
this.vlnTreeComboSets.FinishEditing += new AT.STO.UI.Win.DropDownValueChangedEventHandler(this.DropDown_FinishEditing);
|
||||||
|
//
|
||||||
// groupPanelTransitionProcs
|
// groupPanelTransitionProcs
|
||||||
//
|
//
|
||||||
this.groupPanelTransitionProcs.CanvasColor = System.Drawing.SystemColors.Control;
|
this.groupPanelTransitionProcs.CanvasColor = System.Drawing.SystemColors.Control;
|
||||||
@ -306,6 +316,16 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelTranstionSteps.TabIndex = 34;
|
this.groupPanelTranstionSteps.TabIndex = 34;
|
||||||
this.groupPanelTranstionSteps.Text = "Select Step";
|
this.groupPanelTranstionSteps.Text = "Select Step";
|
||||||
//
|
//
|
||||||
|
// tvTran
|
||||||
|
//
|
||||||
|
this.tvTran.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.tvTran.HideSelection = false;
|
||||||
|
this.tvTran.Location = new System.Drawing.Point(0, 46);
|
||||||
|
this.tvTran.Name = "tvTran";
|
||||||
|
this.tvTran.Size = new System.Drawing.Size(370, 312);
|
||||||
|
this.tvTran.TabIndex = 31;
|
||||||
|
this.tvTran.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvTran_AfterSelect);
|
||||||
|
//
|
||||||
// pnlTranStepBtns
|
// pnlTranStepBtns
|
||||||
//
|
//
|
||||||
this.pnlTranStepBtns.Controls.Add(this.lblxTranRangeTip);
|
this.pnlTranStepBtns.Controls.Add(this.lblxTranRangeTip);
|
||||||
@ -351,26 +371,6 @@ namespace Volian.Controls.Library
|
|||||||
this.btnUp1.TabIndex = 30;
|
this.btnUp1.TabIndex = 30;
|
||||||
this.btnUp1.Click += new System.EventHandler(this.btnUp1_Click);
|
this.btnUp1.Click += new System.EventHandler(this.btnUp1_Click);
|
||||||
//
|
//
|
||||||
// tvTran
|
|
||||||
//
|
|
||||||
this.tvTran.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.tvTran.HideSelection = false;
|
|
||||||
this.tvTran.Location = new System.Drawing.Point(0, 46);
|
|
||||||
this.tvTran.Name = "tvTran";
|
|
||||||
this.tvTran.Size = new System.Drawing.Size(370, 312);
|
|
||||||
this.tvTran.TabIndex = 31;
|
|
||||||
this.tvTran.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvTran_AfterSelect);
|
|
||||||
//
|
|
||||||
// vlnTreeComboSets
|
|
||||||
//
|
|
||||||
this.vlnTreeComboSets.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.vlnTreeComboSets.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.vlnTreeComboSets.Name = "vlnTreeComboSets";
|
|
||||||
this.vlnTreeComboSets.Size = new System.Drawing.Size(370, 21);
|
|
||||||
this.vlnTreeComboSets.TabIndex = 33;
|
|
||||||
this.vlnTreeComboSets.Value = null;
|
|
||||||
this.vlnTreeComboSets.FinishEditing += new AT.STO.UI.Win.DropDownValueChangedEventHandler(this.DropDown_FinishEditing);
|
|
||||||
//
|
|
||||||
// DisplayTransition
|
// DisplayTransition
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
@ -15,7 +15,6 @@ namespace Volian.Controls.Library
|
|||||||
public partial class DisplayTransition : UserControl
|
public partial class DisplayTransition : UserControl
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
|
|
||||||
private int _TranFmtIndx = -1; // stores selected transition format
|
private int _TranFmtIndx = -1; // stores selected transition format
|
||||||
private ItemInfo _CurItemFrom; // stores what item transition is 'from'
|
private ItemInfo _CurItemFrom; // stores what item transition is 'from'
|
||||||
private TransitionInfo _CurTrans; // if modify, this is transition to modify
|
private TransitionInfo _CurTrans; // if modify, this is transition to modify
|
||||||
@ -23,19 +22,22 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
get { return _CurTrans; }
|
get { return _CurTrans; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
_CurTrans = value;
|
if (!Visible) return;
|
||||||
if (_CurTrans == null) // Insert a transition
|
if (value == null) // Insert a transition
|
||||||
{
|
{
|
||||||
if (MyRTB == null) return;
|
if (MyRTB == null) return;
|
||||||
|
if (_CurTrans == value && _CurItemFrom == MyRTB.MyItem) return;
|
||||||
_CurItemFrom = MyRTB.MyItem;
|
_CurItemFrom = MyRTB.MyItem;
|
||||||
_TranFmtIndx = 0;
|
_TranFmtIndx = 0;
|
||||||
}
|
}
|
||||||
else // Modify a transition
|
else // Modify a transition
|
||||||
{
|
{
|
||||||
_TranFmtIndx = _CurTrans.TranType;
|
if (_CurTrans == value) return;
|
||||||
|
_TranFmtIndx = value.TranType;
|
||||||
_CurItemFrom = MyRTB.MyItem;
|
_CurItemFrom = MyRTB.MyItem;
|
||||||
}
|
}
|
||||||
|
_CurTrans = value;
|
||||||
_SavCurItemFrom = _CurItemFrom;
|
_SavCurItemFrom = _CurItemFrom;
|
||||||
_SavTranFmtIndx = _TranFmtIndx;
|
_SavTranFmtIndx = _TranFmtIndx;
|
||||||
TransitionFillIn();
|
TransitionFillIn();
|
||||||
@ -60,7 +62,30 @@ namespace Volian.Controls.Library
|
|||||||
public DisplayRTB MyRTB
|
public DisplayRTB MyRTB
|
||||||
{
|
{
|
||||||
get { return _MyRTB; }
|
get { return _MyRTB; }
|
||||||
set { _MyRTB = value; }
|
set
|
||||||
|
{
|
||||||
|
if (!Visible) return;
|
||||||
|
// add or remove events for
|
||||||
|
if (_MyRTB != null)
|
||||||
|
_MyRTB.LinkChanged -= new DisplayRTBLinkEvent(_MyRTB_LinkChanged);
|
||||||
|
if (value == null) return;
|
||||||
|
_MyRTB = value;
|
||||||
|
_MyRTB.LinkChanged += new DisplayRTBLinkEvent(_MyRTB_LinkChanged);
|
||||||
|
if (_MyRTB.MyLinkText == null)
|
||||||
|
{
|
||||||
|
CurTrans = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void _MyRTB_LinkChanged(object sender, LinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
if (_MyRTB.MyLinkText == null)
|
||||||
|
CurTrans = null;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DisplayLinkEventArgs tmp = new DisplayLinkEventArgs(null, e);
|
||||||
|
CurTrans = tmp.MyTransition;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private ItemInfo _CurrentItemProcedure; // the selected item's procedure
|
private ItemInfo _CurrentItemProcedure; // the selected item's procedure
|
||||||
private ItemInfo _CurrentToProcedure; // the 'to' location's procedure (may be same as _CurrentItemProcedure)
|
private ItemInfo _CurrentToProcedure; // the 'to' location's procedure (may be same as _CurrentItemProcedure)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user