Added logic and events 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:
John Jenko 2015-11-06 21:03:41 +00:00
parent 32fb2ae1a7
commit c06e3901ba
2 changed files with 40 additions and 10 deletions

View File

@ -653,7 +653,32 @@ namespace Volian.Controls.Library
{ {
OpenAnnotations(); OpenAnnotations();
} }
void _MyStepRTB_InsertPgBrk(object sender, System.EventArgs args) void _MyStepRTB_ToggleChangeBar(object sender, System.EventArgs args) // used with shortcut key <Alt><F2>
{
ToggleChangeBar();
}
void _MyStepRTB_ToggleContinuousActionSummary(object sender, System.EventArgs args) // used with shortcut key <Shift><F7>
{
ToggleContinuousActionSummary();
}
void _MyStepRTB_TogglePlaceKeeper(object sender, System.EventArgs args) // used with shortcut key <Ctrl><F7>
{
TogglePlaceKeeper();
}
void _MyStepRTB_TogglePlaceKeeperContAct(object sender, System.EventArgs args) // used with shortcut key <Shift><Ctrl><F7>
{
TogglePlaceKeeperContAct();
}
void _MyStepRTB_ToggleSuperScript(object sender, System.EventArgs args) // used with shortcut key <Shift><Ctrl><=>
{
ToggleSuperScript();
}
void _MyStepRTB_ToggleSubScript(object sender, System.EventArgs args) // used with shortcut key <Ctrl><=>
{
ToggleSubScript();
}
void _MyStepRTB_InsertPgBrk(object sender, System.EventArgs args) // used with shortcut key <Ctrl><Enter>
{ {
InsertPgBrk(); InsertPgBrk();
} }
@ -698,17 +723,22 @@ namespace Volian.Controls.Library
} }
public override void SaveContents() public override void SaveContents()
{ {
MyStepRTB.Visible = false; if (MyStepRTB.Text.Contains("\\"))
while (MyStepRTB.Text.Contains("\\"))
{ {
int loc = MyStepRTB.Text.IndexOf("\\"); MyStepRTB.Visible = false;
MyStepRTB.SelectionStart = loc; while (MyStepRTB.Text.Contains("\\"))
MyStepRTB.SelectionLength = 1; {
MyStepRTB.SelectedText = "<BackSlash>"; int loc = MyStepRTB.Text.IndexOf("\\");
} MyStepRTB.SelectionStart = loc;
SaveText(); MyStepRTB.SelectionLength = 1;
MyStepRTB.SelectedText = "<BackSlash>";
}
SaveText();
MyStepRTB.Visible = true; MyStepRTB.Visible = true;
}
else
SaveText();
SaveConfig(); // This may be redundant SaveConfig(); // This may be redundant
} }
public void SaveText() public void SaveText()

Binary file not shown.