C2015-028 Add Editorial Mode to PROMS Step Editor
This commit is contained in:
@@ -995,7 +995,7 @@ namespace Volian.Controls.Library
|
||||
// SetButtonAndMenuEnabling(true);
|
||||
//}
|
||||
#region Constructor
|
||||
public StepTabRibbon()
|
||||
public StepTabRibbon(bool? IsInEditorialMode = false)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.btnInsSupInfo.Tag = string.Format("{0} {1}", (int)E_FromTypes.SupInfos, 1040); // Make type of rno (40) & special case 1000
|
||||
@@ -1021,8 +1021,16 @@ namespace Volian.Controls.Library
|
||||
// hide the import from Word file if not running in Debug mode
|
||||
if (!VlnSettings.DebugMode)
|
||||
rbnImpWrd.Visible = false;
|
||||
}
|
||||
void _RibbonControl_SizeChanged(object sender, EventArgs e)
|
||||
|
||||
// C2015-028 Add Editorial Mode to PROMS Step Editor
|
||||
// default Editorial Mode to what is set in the DisplayTabControl
|
||||
SetEditorialMode(IsInEditorialMode != null && (bool) IsInEditorialMode);
|
||||
|
||||
}
|
||||
|
||||
public void SetEditorialMode(bool mode) => btnEditorialMode.Checked = btnCMEditorialMode.Checked = mode;
|
||||
|
||||
void _RibbonControl_SizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Size = _RibbonControl.Size;
|
||||
}
|
||||
@@ -3125,7 +3133,7 @@ namespace Volian.Controls.Library
|
||||
btnCMRedo.Enabled = btnRedo.Enabled = _MyStepRTB.CanRedo;
|
||||
btnCMUndo.Enabled = btnUndo.Enabled = _MyStepRTB.CanUndo;
|
||||
}
|
||||
private void btnGoTo_Click(object sender, EventArgs e)
|
||||
private void btnGoTo_Click(object sender, EventArgs e)
|
||||
{
|
||||
// if on a transition, go to the selected transition 'to'. If on
|
||||
// a referenced object, bring up ReferencedObject Editor (for now, just put up a message box.
|
||||
@@ -3211,7 +3219,29 @@ namespace Volian.Controls.Library
|
||||
System.Diagnostics.Process.Start(roapp, args);
|
||||
}
|
||||
}
|
||||
private void btnChgTyp_Click(object sender, EventArgs e)
|
||||
|
||||
// C2015-028 Add Editorial Mode to PROMS Step Editor
|
||||
private void btnEditorialMode_Click(object sender, EventArgs e)
|
||||
{
|
||||
//toggle button is selected
|
||||
SetEditorialMode(!btnEditorialMode.Checked);
|
||||
|
||||
//set the overall flag in the displaytabcontrol
|
||||
StepTabPanel tmp = Parent as StepTabPanel;
|
||||
tmp.MyDisplayTabControl.IsInEditorialMode = btnEditorialMode.Checked;
|
||||
|
||||
//refresh the current item so the background color changes (LightGreen=Editorial Mode, SkyBlue=Normal Selected)
|
||||
if (MyEditItem != null)
|
||||
{
|
||||
_MyEditItem.RefreshContent();
|
||||
Application.DoEvents();
|
||||
}
|
||||
|
||||
//set other preciously opened tabs to match the state of Editorial Mode in the current tab
|
||||
tmp.MyDisplayTabControl.SetEdititorialModeForAllTabs(btnEditorialMode.Checked);
|
||||
}
|
||||
|
||||
private void btnChgTyp_Click(object sender, EventArgs e)
|
||||
{
|
||||
StepPanelTabDisplayEventArgs args = new StepPanelTabDisplayEventArgs("Change Step Type");
|
||||
MyEditItem.MyStepPanel.OnTabDisplay(sender, args);
|
||||
@@ -3279,7 +3309,8 @@ namespace Volian.Controls.Library
|
||||
rtabInsert.Visible = false;
|
||||
rtabAdmin.Visible = false;
|
||||
rtabReview.Select();
|
||||
btnCMEditMode1.Enabled = btnEditMode.Enabled = false; // don't allow reviewer toggle out of view mode
|
||||
btnCMEditMode1.Enabled = btnEditMode.Enabled = btnCMEditorialMode.Enabled = false; // don't allow reviewer toggle out of view mode
|
||||
btnCMEditorialMode.Visible = false;
|
||||
}
|
||||
}
|
||||
public void SetupROEditorMode()
|
||||
|
Reference in New Issue
Block a user