Added publics to allow keystrokes to toggle change bars, continuous action summary, and placekeeper check boxes. Also allow the update of the pagebreak checkbox.

Updated super tool tips with shortcut key information.
Added logic to allow keystrokes to toggle change bars, continuous action summary, and placekeeper check boxes.  Also allow the update of the pagebreak checkbox.
This commit is contained in:
2015-11-06 21:02:58 +00:00
parent 48a0ca9b78
commit 32fb2ae1a7
3 changed files with 121 additions and 37 deletions

View File

@@ -157,6 +157,14 @@ namespace Volian.Controls.Library
get { return _MyStepPanel; }
set { _MyStepPanel = value; }
}
private DisplayTags _MyStepPropertiesPanel;
public DisplayTags MyStepPropertiesPanel // gives us access to the Step Properties panel - used with shortcut keystrokes
{
get { return _MyStepPropertiesPanel; }
set { _MyStepPropertiesPanel = value; }
}
/// <summary>
/// This returns the section or procedure for the current item.
/// If the item is a step or section, it returns the section
@@ -1682,6 +1690,45 @@ namespace Volian.Controls.Library
protected void InsertPgBrk()
{
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.btnInsPgBrk_Click(this, new EventArgs());
MyStepPropertiesPanel.UpdatePageBreakCheckBox(); // update the checkbox on the Step Properties panel
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}
protected void ToggleChangeBar()
{
MyStepPropertiesPanel.ToggleChangeBar(); // update the checkbox on the Step Properties panel
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}
protected void ToggleContinuousActionSummary()
{
MyStepPropertiesPanel.ToggleContActSummary(); // update the checkbox on the Step Properties panel
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}
protected void TogglePlaceKeeper()
{
MyStepPropertiesPanel.TogglePlaceKeeper(); // update the checkbox on the Step Properties panel
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}
protected void TogglePlaceKeeperContAct()
{
MyStepPropertiesPanel.TogglePlaceKeeperContAct(); // update the checkbox on the Step Properties panel
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}
protected void ToggleSuperScript()
{
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.btnSuperscript_Click(this, new EventArgs()); // click the Superscrpt button on the ribbon
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}
protected void ToggleSubScript()
{
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.btnSubscript_Click(this, new EventArgs()); // click the Subscrpt button on the ribbon
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}
protected void OpenAnnotations()
{