This commit is contained in:
parent
2449cc4f1a
commit
d2529ca5b0
@ -39,7 +39,7 @@ namespace Volian.Controls.Library
|
||||
set { _MyStepItem = value; }
|
||||
}
|
||||
private bool _IsDirty = false;
|
||||
private bool _InitializingRTB;
|
||||
//private bool _InitializingRTB;
|
||||
private IContainer _Container = null;
|
||||
private string _MyClassName=string.Empty;
|
||||
public string MyClassName
|
||||
@ -68,18 +68,21 @@ namespace Volian.Controls.Library
|
||||
_MyItemInfo = value;
|
||||
if (value != null)
|
||||
{
|
||||
_InitializingRTB = true;
|
||||
//_InitializingRTB = true;
|
||||
DisplayText vlntxt = new DisplayText(_MyItemInfo, EpMode, VwMode);
|
||||
_origDisplayText = vlntxt;
|
||||
Font = _origDisplayText.TextFont.WindowsFont;
|
||||
|
||||
AddRtfText(vlntxt);
|
||||
//AddRtfStyles();
|
||||
ReadOnly = !(EpMode == E_EditPrintMode.Edit && VwMode == E_ViewMode.Edit);
|
||||
RTBAPI.SetLineSpacing(this, RTBAPI.ParaSpacing.PFS_EXACT);
|
||||
_InitializingRTB = false;
|
||||
//_InitializingRTB = false;
|
||||
_IsDirty = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//public EnterKeyHandler EnterKeyPressed;
|
||||
//protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
//{
|
||||
@ -131,7 +134,6 @@ namespace Volian.Controls.Library
|
||||
private DisplayText _origDisplayText;
|
||||
private RichTextBox _rtbTemp = new RichTextBox();
|
||||
private string _MyLinkText;
|
||||
|
||||
public string MyLinkText
|
||||
{
|
||||
get { return _MyLinkText; }
|
||||
@ -141,7 +143,6 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
_MyLinkText = value;
|
||||
OnLinkChanged(this, new StepPanelLinkEventArgs(_MyStepItem, _MyLinkText));
|
||||
Console.WriteLine("DisplayRTB - MyLinkText changed {0}", _MyLinkText);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -175,7 +176,6 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.DetectUrls = true;
|
||||
ContextMenuStrip = contextMenuStrip;
|
||||
ContentsResized += new ContentsResizedEventHandler(StepRTB_ContentsResized);
|
||||
this.LinkClicked += new LinkClickedEventHandler(StepRTB_LinkClicked);
|
||||
this.Click +=new EventHandler(StepRTB_Click);
|
||||
@ -199,10 +199,7 @@ namespace Volian.Controls.Library
|
||||
void StepRTB_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
Console.WriteLine("SelectionStart {0}, SelectionLength {1}", SelectionStart, SelectionLength);
|
||||
if (!SelectionProtected && MyLinkText != null)
|
||||
MyLinkText = null;
|
||||
// TODO: Else Set mylinktext to what is currently selected (null if not on link, otherwise link info)
|
||||
// TODO: Raise event if moving on (modify) or moving off (insert)
|
||||
if (!SelectionProtected && MyLinkText != null) MyLinkText = null;
|
||||
}
|
||||
#endregion
|
||||
#region ApplicationSupport
|
||||
@ -228,6 +225,21 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
AddSymbol(symbol);
|
||||
}
|
||||
public void SetSelectedCase(char type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case 'l':
|
||||
SelectedText = SelectedText.ToLower();
|
||||
break;
|
||||
case 'U':
|
||||
SelectedText = SelectedText.ToUpper();
|
||||
break;
|
||||
case 'T':
|
||||
SelectedText = SelectedText.Substring(0, 1).ToUpper() + SelectedText.Substring(1, SelectedText.Length - 1).ToLower();
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SaveData
|
||||
public void SaveText()
|
||||
@ -235,17 +247,17 @@ namespace Volian.Controls.Library
|
||||
if (ReadOnly) return;
|
||||
if (!_IsDirty) return;
|
||||
bool success = _origDisplayText.Save((RichTextBox)this);
|
||||
if (!success) Console.WriteLine("Failed to save text: {0}", this.Text);
|
||||
if (success) _IsDirty = false;
|
||||
}
|
||||
#endregion
|
||||
#region AddRtfText
|
||||
#region AddRtfTextAndStyles
|
||||
private void AddRtfText(DisplayText myDisplayText)
|
||||
{
|
||||
foreach (displayTextElement vte in myDisplayText.DisplayTextElementList)
|
||||
{
|
||||
if (vte.Type == E_TextElementType.TEXT)
|
||||
if (vte.Type == E_TextElementType.Text)
|
||||
AddRtf(vte);
|
||||
else if (vte.Type == E_TextElementType.SYMBOL)
|
||||
else if (vte.Type == E_TextElementType.Symbol)
|
||||
AddSymbol(vte);
|
||||
else
|
||||
AddRtfLink((displayLinkElement)vte);
|
||||
@ -309,6 +321,20 @@ namespace Volian.Controls.Library
|
||||
this.SelectionStart = this.TextLength;
|
||||
this.SelectionLength = 0;
|
||||
}
|
||||
private void AddRtfStyles()
|
||||
{
|
||||
if ((_origDisplayText.TextFont.Style & E_Style.Bold) > 0)
|
||||
{
|
||||
this.SelectAll();
|
||||
|
||||
RTBAPI.ToggleBold(true, this, RTBAPI.RTBSelection.SCF_SELECTION);
|
||||
this.Select(0, 0);
|
||||
}
|
||||
if ((_origDisplayText.TextFont.Style & E_Style.Underline) > 0)
|
||||
RTBAPI.ToggleUnderline(true, this, RTBAPI.RTBSelection.SCF_ALL);
|
||||
if ((_origDisplayText.TextFont.Style & E_Style.Italics) > 0)
|
||||
RTBAPI.ToggleItalic(true, this, RTBAPI.RTBSelection.SCF_ALL);
|
||||
}
|
||||
#endregion
|
||||
#region HeightSupport
|
||||
public event StepRTBEvent HeightChanged;
|
||||
@ -318,9 +344,8 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
private void AdjustSizeForContents()
|
||||
{
|
||||
//Console.WriteLine("Size {0} Client {1} New {2}", Size, ClientRectangle, ContentsRectangle);
|
||||
// I want the client size to match the new rectangle.
|
||||
// First I need to determine the offset
|
||||
// The client size should match the new rectangle.
|
||||
// First, determine the offset
|
||||
Size offset = Size - ClientSize;
|
||||
this.Size = ContentsSize + offset + AdjustSize;
|
||||
OnHeightChanged(this, new EventArgs());
|
||||
@ -383,7 +408,7 @@ namespace Volian.Controls.Library
|
||||
#region EventSupport
|
||||
#region LinkEvents
|
||||
private StepPanelLinkEventArgs _MyLinkClickedEventArgs;
|
||||
public event StepRTBLinkEvent LinkChanged; // TODO: ?
|
||||
public event StepRTBLinkEvent LinkChanged;
|
||||
private void OnLinkChanged(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
_MyLinkClickedEventArgs = args;
|
||||
@ -414,35 +439,8 @@ namespace Volian.Controls.Library
|
||||
|
||||
_MyLinkClickedEventArgs = new StepPanelLinkEventArgs(_MyStepItem, args.LinkText);
|
||||
_savcurpos = Cursor.Position;
|
||||
SelectLink(args.LinkText);
|
||||
SelectLinkFromPoint();
|
||||
OnLinkChanged(sender, _MyLinkClickedEventArgs);
|
||||
//_savcurpos = Cursor.Position;
|
||||
//if (e.LinkText.IndexOf("ReferencedObject") > -1)
|
||||
// this.contextMenuStripROs.Show(System.Windows.Forms.Cursor.Position);
|
||||
//else
|
||||
// this.contextMenuStripTrans.Show(System.Windows.Forms.Cursor.Position);
|
||||
}
|
||||
private void SelectLink(string LinkText)
|
||||
{
|
||||
Point cp = PointToClient(_savcurpos);
|
||||
int index = GetCharIndexFromPosition(cp);
|
||||
//int iMax = index;
|
||||
//int iMin = index;
|
||||
//Select(index, 0);
|
||||
|
||||
//while (iMin > 0 && SelectionProtected)
|
||||
// Select(--iMin, 0);
|
||||
//Select(iMin + 1, 0);
|
||||
//SelectLink();
|
||||
////SelectionProtected = false; // unprotect link only if deleted
|
||||
//MyLinkText = SelectedText;
|
||||
//int index = SelectionStart;
|
||||
int iMin = index;
|
||||
Select(index, 0);
|
||||
while (iMin > 0 && SelectionProtected)
|
||||
Select(--iMin, 0);
|
||||
Select(iMin + 1, 0);
|
||||
SelectLink();
|
||||
}
|
||||
#endregion
|
||||
#region TextOrContents
|
||||
@ -472,53 +470,92 @@ namespace Volian.Controls.Library
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (e.KeyCode)
|
||||
{
|
||||
case Keys.Delete:
|
||||
// if it's just a link, delete the link. if the text has embedded links, i.e. text and links
|
||||
// use DeleteTextAndLink to delete it (just setting selectedrtf to "" fails because of the
|
||||
// embedded protected text. If it's just text, let the richtextbox handle the delete.
|
||||
if (_MyLinkText != null)
|
||||
{
|
||||
DeleteLink();
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (SelectedRtf.IndexOf(@"\protect") > -1)
|
||||
{
|
||||
// unprotect and then delete text & links.
|
||||
DeleteTextAndLink();
|
||||
e.Handled = true;
|
||||
}
|
||||
break;
|
||||
case Keys.Back:
|
||||
// if not a range, i.e. SelectionLength = 0, then see if backspacing a link
|
||||
// or just regular text. If link, need to select link, unprotect before delete.
|
||||
if (SelectionLength == 0 && SelectionStart > 0)
|
||||
{
|
||||
int tmpss = SelectionStart;
|
||||
Select(SelectionStart - 1, 0); // see if previous char is protected
|
||||
if (SelectionProtected)
|
||||
{
|
||||
SelectLinkFromIndex(SelectionStart);
|
||||
DeleteLink();
|
||||
e.Handled = true;
|
||||
}
|
||||
else
|
||||
Select(tmpss, 0); // go back to original cursor position
|
||||
}
|
||||
// if a range, need to see if range includes protected text, if so this is a
|
||||
// special case, so use DeleteTextAndLink. Otherwise, just let the richtextbox
|
||||
// delete it.
|
||||
else if (SelectionLength > 0 && (SelectedRtf.IndexOf(@"\protect") > -1))
|
||||
{
|
||||
// unprotect and then delete text & links.
|
||||
DeleteTextAndLink();
|
||||
e.Handled = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DeleteTextAndLink()
|
||||
{
|
||||
int start = SelectionStart;
|
||||
int len = SelectionLength;
|
||||
for (int i = start; i < len + start; i++)
|
||||
{
|
||||
Select(i, 0);
|
||||
if (SelectionProtected)
|
||||
{
|
||||
SelectLinkFromIndex(i);
|
||||
SelectionProtected = false;
|
||||
}
|
||||
}
|
||||
Select(start, len);
|
||||
SelectedRtf = "";
|
||||
}
|
||||
void StepRTB_KeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Left || e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
|
||||
switch (e.KeyCode)
|
||||
{
|
||||
e.Handled = HandleLUDArrows();
|
||||
case Keys.Left:
|
||||
case Keys.Up:
|
||||
case Keys.Down:
|
||||
case Keys.Right:
|
||||
if (!SelectionProtected)
|
||||
MyLinkText = null;
|
||||
else
|
||||
{
|
||||
if (e.KeyCode == Keys.Right)
|
||||
SelectLink();
|
||||
else
|
||||
SelectLinkFromIndex(SelectionStart);
|
||||
e.Handled = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
else if (e.KeyCode == Keys.Right)
|
||||
{
|
||||
e.Handled = HandleRightArrow();
|
||||
}
|
||||
}
|
||||
private void SelectLink()
|
||||
{
|
||||
int index = SelectionStart;
|
||||
int iMax = index;
|
||||
Select(index, 0);
|
||||
while (iMax < TextLength && SelectionProtected)
|
||||
Select(++iMax, 0);
|
||||
Select(index - 1, SelectionStart + 1 - index);
|
||||
MyLinkText = SelectedText;
|
||||
}
|
||||
private bool HandleRightArrow()
|
||||
{
|
||||
if (!SelectionProtected)
|
||||
{
|
||||
MyLinkText = null;
|
||||
return false;
|
||||
}
|
||||
SelectLink();
|
||||
return true;
|
||||
}
|
||||
private bool HandleLUDArrows()
|
||||
{
|
||||
if (!SelectionProtected)
|
||||
{
|
||||
MyLinkText = null;
|
||||
return false;
|
||||
}
|
||||
int index = this.SelectionStart;
|
||||
int iMin = index;
|
||||
Select(index, 0);
|
||||
while (iMin > 0 && SelectionProtected)
|
||||
Select(--iMin, 0);
|
||||
Select(iMin + 1, 0);
|
||||
SelectLink();
|
||||
return true;
|
||||
}
|
||||
private void StepRTB_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
|
||||
{
|
||||
@ -538,8 +575,45 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region LinkSelectionAndHandling
|
||||
private void SelectLinkFromPoint()
|
||||
{
|
||||
Point cp = PointToClient(_savcurpos);
|
||||
int index = GetCharIndexFromPosition(cp);
|
||||
SelectLinkFromIndex(index);
|
||||
}
|
||||
private void SelectLinkFromIndex(int index)
|
||||
{
|
||||
// Find beginning of the link until no longer protected or beginning of string.
|
||||
int iMin = index;
|
||||
Select(index, 0);
|
||||
while (iMin > 0 && SelectionProtected)
|
||||
Select(--iMin, 0);
|
||||
Select(iMin + 1, 0);
|
||||
|
||||
// Now select the entire link
|
||||
SelectLink();
|
||||
}
|
||||
private void SelectLink()
|
||||
{
|
||||
int index = SelectionStart;
|
||||
int iMax = index;
|
||||
Select(index, 0);
|
||||
while (iMax < TextLength && SelectionProtected)
|
||||
Select(++iMax, 0);
|
||||
if (index == 0) index++; // account for link at beginning of box
|
||||
Select(index - 1, SelectionStart + 1 - index);
|
||||
MyLinkText = SelectedText;
|
||||
}
|
||||
private void DeleteLink()
|
||||
{
|
||||
SelectionProtected = false;
|
||||
SelectedText = "";
|
||||
MyLinkText = null;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
#region Font with Styles
|
||||
#region FontAndStylesSupport
|
||||
private void ToggleFontStyle(FontStyle style, bool att_on)
|
||||
{
|
||||
int start = SelectionStart;
|
||||
@ -631,125 +705,5 @@ namespace Volian.Controls.Library
|
||||
return reply;
|
||||
}
|
||||
#endregion
|
||||
#region Context Menu Strip
|
||||
private void contextMenuStrip_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
Font cfont = GetFontDetails();
|
||||
menu_Bold.Checked = cfont.Bold;
|
||||
menu_Underline.Checked = cfont.Underline;
|
||||
menu_Italics.Checked = cfont.Italic;
|
||||
menu_Superscript.Checked = RTBAPI.IsSuperScript(this);
|
||||
menu_Subscript.Checked = RTBAPI.IsSubScript(this);
|
||||
menu_Bold.Enabled = !ReadOnly;
|
||||
menu_Underline.Enabled = !ReadOnly;
|
||||
menu_Italics.Enabled = !ReadOnly;
|
||||
menu_Superscript.Enabled = !ReadOnly;
|
||||
menu_Subscript.Enabled = !ReadOnly;
|
||||
menu_Undo.Enabled = !ReadOnly;
|
||||
menu_Redo.Enabled = !ReadOnly;
|
||||
menu_lowercase.Enabled = !ReadOnly;
|
||||
menu_UPPERCASE.Enabled = !ReadOnly;
|
||||
menu_TitleCase.Enabled = !ReadOnly;
|
||||
menu_InsRO.Enabled = !ReadOnly;
|
||||
menu_InsTran.Enabled = !ReadOnly;
|
||||
menu_InsSym.Enabled = !ReadOnly;
|
||||
menu_ToggleView.Enabled = true;
|
||||
}
|
||||
private void contextMenuStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Font cfont = GetFontDetails();
|
||||
|
||||
//if (e.ClickedItem.ToString() == "Paste") DoPaste();
|
||||
if (e.ClickedItem.ToString() == "Underline") ToggleFontStyle(FontStyle.Underline, cfont.Underline);
|
||||
else if (e.ClickedItem.ToString() == "Bold") ToggleFontStyle(FontStyle.Bold, cfont.Bold);
|
||||
else if (e.ClickedItem.ToString() == "Italics") ToggleFontStyle(FontStyle.Italic, cfont.Italic);
|
||||
else if (e.ClickedItem.ToString() == "Subscript")
|
||||
RTBAPI.ToggleSubscript(!RTBAPI.IsSubScript(this), this, this.SelectionLength == 0 ? RTBAPI.RTBSelection.SCF_DEFAULT : RTBAPI.RTBSelection.SCF_SELECTION);
|
||||
else if (e.ClickedItem.ToString() == "Superscript")
|
||||
RTBAPI.ToggleSuperscript(!RTBAPI.IsSuperScript(this), this, this.SelectionLength == 0 ? RTBAPI.RTBSelection.SCF_DEFAULT : RTBAPI.RTBSelection.SCF_SELECTION);
|
||||
else if (e.ClickedItem.ToString() == "Undo")
|
||||
this.Undo();
|
||||
else if (e.ClickedItem.ToString() == "Redo")
|
||||
this.Redo();
|
||||
else if (e.ClickedItem.ToString() == "lowercase")
|
||||
SetSelectedCase('l');
|
||||
else if (e.ClickedItem.ToString() == "UPPERCASE")
|
||||
SetSelectedCase('U');
|
||||
else if (e.ClickedItem.ToString() == "TitleCase")
|
||||
SetSelectedCase('T');
|
||||
else if (e.ClickedItem.ToString() == "Insert RO")
|
||||
MessageBox.Show("Not supported from context menu yet");
|
||||
else if (e.ClickedItem.ToString() == "Insert Transition")
|
||||
MessageBox.Show("Not supported from context menu yet");
|
||||
else if (e.ClickedItem.ToString() == "Insert Symbol")
|
||||
MessageBox.Show("Not supported from context menu yet");
|
||||
else if (e.ClickedItem.ToString() == "Toggle View/Edit")
|
||||
ToggleViewEdit();
|
||||
//else if (e.ClickedItem.ToString() == "Find text") findit();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
public void SetSelectedCase(char type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case 'l':
|
||||
SelectedText = SelectedText.ToLower();
|
||||
break;
|
||||
case 'U':
|
||||
SelectedText = SelectedText.ToUpper();
|
||||
break;
|
||||
case 'T':
|
||||
SelectedText = SelectedText.Substring(0,1).ToUpper() + SelectedText.Substring(1, SelectedText.Length - 1).ToLower();
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void DeleteTransition()
|
||||
{
|
||||
SelectLink(_MyLinkText);
|
||||
SelectedText = "";
|
||||
}
|
||||
private void contextMenuStripTrans_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
||||
{
|
||||
if (e.ClickedItem.ToString() == "Delete Transition") DeleteTransition();
|
||||
else if (e.ClickedItem.ToString() == "Modify Transition")
|
||||
{
|
||||
OnLinkModifyTran(sender, _MyLinkClickedEventArgs);
|
||||
}
|
||||
else if (e.ClickedItem.ToString() == "Go To")
|
||||
{
|
||||
Console.WriteLine("DisplayRTB:contextMenu:Go TO");
|
||||
OnLinkGoTo(sender, _MyLinkClickedEventArgs);
|
||||
}
|
||||
|
||||
}
|
||||
private void contextMenuStripTrans_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
menu_GoToTrans.Enabled = true;
|
||||
menu_DeleteTrans.Enabled = !ReadOnly;
|
||||
menu_ModifyTrans.Enabled = !ReadOnly;
|
||||
}
|
||||
private void contextMenuStripROs_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
menu_DeleteRO.Enabled = !ReadOnly;
|
||||
menu_ModifyRO.Enabled = !ReadOnly;
|
||||
}
|
||||
private void DeleteRefObj()
|
||||
{
|
||||
SelectLink(_MyLinkText);
|
||||
SelectedText = "";
|
||||
}
|
||||
private void contextMenuStripROs_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
||||
{
|
||||
if (e.ClickedItem.ToString() == "Delete RO") DeleteRefObj();
|
||||
else if (e.ClickedItem.ToString() == "Modify RO") OnLinkModifyRO(sender, _MyLinkClickedEventArgs);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
283
PROMS/Volian.Controls.Library/StepRTB.designer.cs
generated
283
PROMS/Volian.Controls.Library/StepRTB.designer.cs
generated
@ -28,295 +28,12 @@ namespace Volian.Controls.Library
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.menu_Bold = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_Underline = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_Italics = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_Superscript = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_Subscript = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_Undo = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_Redo = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_lowercase = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_UPPERCASE = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_TitleCase = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_InsRO = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_InsTran = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_InsSym = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_ToggleView = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.contextMenuStripROs = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.menu_DeleteRO = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_ModifyRO = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.contextMenuStripTrans = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.menu_DeleteTrans = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_ModifyTrans = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menu_GoToTrans = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.toolStripFontAttributes = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripBold = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripUnderline = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripCase = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.contextMenuStrip.SuspendLayout();
|
||||
this.contextMenuStripROs.SuspendLayout();
|
||||
this.contextMenuStripTrans.SuspendLayout();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// contextMenuStrip
|
||||
//
|
||||
this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.menu_Bold,
|
||||
this.menu_Underline,
|
||||
this.menu_Italics,
|
||||
this.menu_Superscript,
|
||||
this.menu_Subscript,
|
||||
this.menu_Undo,
|
||||
this.menu_Redo,
|
||||
this.menu_lowercase,
|
||||
this.menu_UPPERCASE,
|
||||
this.menu_TitleCase,
|
||||
this.menu_InsRO,
|
||||
this.menu_InsTran,
|
||||
this.menu_InsSym,
|
||||
this.menu_ToggleView});
|
||||
this.contextMenuStrip.Name = "contextMenuStrip";
|
||||
this.contextMenuStrip.Size = new System.Drawing.Size(165, 312);
|
||||
this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip_Opening);
|
||||
this.contextMenuStrip.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.contextMenuStrip_ItemClicked);
|
||||
//
|
||||
// menu_Bold
|
||||
//
|
||||
this.menu_Bold.Name = "menu_Bold";
|
||||
this.menu_Bold.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_Bold.Text = "Bold";
|
||||
//
|
||||
// menu_Underline
|
||||
//
|
||||
this.menu_Underline.Name = "menu_Underline";
|
||||
this.menu_Underline.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_Underline.Text = "Underline";
|
||||
//
|
||||
// menu_Italics
|
||||
//
|
||||
this.menu_Italics.Name = "menu_Italics";
|
||||
this.menu_Italics.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_Italics.Text = "Italics";
|
||||
//
|
||||
// menu_Superscript
|
||||
//
|
||||
this.menu_Superscript.Name = "menu_Superscript";
|
||||
this.menu_Superscript.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_Superscript.Text = "Superscript";
|
||||
//
|
||||
// menu_Subscript
|
||||
//
|
||||
this.menu_Subscript.Name = "menu_Subscript";
|
||||
this.menu_Subscript.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_Subscript.Text = "Subscript";
|
||||
//
|
||||
// menu_Undo
|
||||
//
|
||||
this.menu_Undo.Name = "menu_Undo";
|
||||
this.menu_Undo.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_Undo.Text = "Undo";
|
||||
//
|
||||
// menu_Redo
|
||||
//
|
||||
this.menu_Redo.Name = "menu_Redo";
|
||||
this.menu_Redo.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_Redo.Text = "Redo";
|
||||
//
|
||||
// menu_lowercase
|
||||
//
|
||||
this.menu_lowercase.Name = "menu_lowercase";
|
||||
this.menu_lowercase.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_lowercase.Text = "lowercase";
|
||||
//
|
||||
// menu_UPPERCASE
|
||||
//
|
||||
this.menu_UPPERCASE.Name = "menu_UPPERCASE";
|
||||
this.menu_UPPERCASE.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_UPPERCASE.Text = "UPPERCASE";
|
||||
//
|
||||
// menu_TitleCase
|
||||
//
|
||||
this.menu_TitleCase.Name = "menu_TitleCase";
|
||||
this.menu_TitleCase.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_TitleCase.Text = "TitleCase";
|
||||
//
|
||||
// menu_InsRO
|
||||
//
|
||||
this.menu_InsRO.Name = "menu_InsRO";
|
||||
this.menu_InsRO.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_InsRO.Text = "Insert RO";
|
||||
//
|
||||
// menu_InsTran
|
||||
//
|
||||
this.menu_InsTran.Name = "menu_InsTran";
|
||||
this.menu_InsTran.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_InsTran.Text = "Insert Transition";
|
||||
//
|
||||
// menu_InsSym
|
||||
//
|
||||
this.menu_InsSym.Name = "menu_InsSym";
|
||||
this.menu_InsSym.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_InsSym.Text = "Insert Symbol";
|
||||
//
|
||||
// menu_ToggleView
|
||||
//
|
||||
this.menu_ToggleView.Name = "menu_ToggleView";
|
||||
this.menu_ToggleView.Size = new System.Drawing.Size(164, 22);
|
||||
this.menu_ToggleView.Text = "Toggle View/Edit";
|
||||
//
|
||||
// contextMenuStripROs
|
||||
//
|
||||
this.contextMenuStripROs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.menu_DeleteRO,
|
||||
this.menu_ModifyRO});
|
||||
this.contextMenuStripROs.Name = "contextMenuStripROs";
|
||||
this.contextMenuStripROs.Size = new System.Drawing.Size(136, 48);
|
||||
this.contextMenuStripROs.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStripROs_Opening);
|
||||
this.contextMenuStripROs.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.contextMenuStripROs_ItemClicked);
|
||||
//
|
||||
// menu_DeleteRO
|
||||
//
|
||||
this.menu_DeleteRO.Name = "menu_DeleteRO";
|
||||
this.menu_DeleteRO.Size = new System.Drawing.Size(135, 22);
|
||||
this.menu_DeleteRO.Text = "Delete RO";
|
||||
//
|
||||
// menu_ModifyRO
|
||||
//
|
||||
this.menu_ModifyRO.Name = "menu_ModifyRO";
|
||||
this.menu_ModifyRO.Size = new System.Drawing.Size(135, 22);
|
||||
this.menu_ModifyRO.Text = "Modify RO";
|
||||
//
|
||||
// contextMenuStripTrans
|
||||
//
|
||||
this.contextMenuStripTrans.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.menu_DeleteTrans,
|
||||
this.menu_ModifyTrans,
|
||||
this.menu_GoToTrans});
|
||||
this.contextMenuStripTrans.Name = "contextMenuStripTrans";
|
||||
this.contextMenuStripTrans.Size = new System.Drawing.Size(168, 70);
|
||||
this.contextMenuStripTrans.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStripTrans_Opening);
|
||||
this.contextMenuStripTrans.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.contextMenuStripTrans_ItemClicked);
|
||||
//
|
||||
// menu_DeleteTrans
|
||||
//
|
||||
this.menu_DeleteTrans.Name = "menu_DeleteTrans";
|
||||
this.menu_DeleteTrans.Size = new System.Drawing.Size(167, 22);
|
||||
this.menu_DeleteTrans.Text = "Delete Transition";
|
||||
//
|
||||
// menu_ModifyTrans
|
||||
//
|
||||
this.menu_ModifyTrans.Name = "menu_ModifyTrans";
|
||||
this.menu_ModifyTrans.Size = new System.Drawing.Size(167, 22);
|
||||
this.menu_ModifyTrans.Text = "Modify Transition";
|
||||
//
|
||||
// menu_GoToTrans
|
||||
//
|
||||
this.menu_GoToTrans.Name = "menu_GoToTrans";
|
||||
this.menu_GoToTrans.Size = new System.Drawing.Size(167, 22);
|
||||
this.menu_GoToTrans.Text = "Go To";
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripFontAttributes,
|
||||
this.toolStripCase});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(159, 48);
|
||||
//
|
||||
// toolStripFontAttributes
|
||||
//
|
||||
this.toolStripFontAttributes.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripBold,
|
||||
this.toolStripUnderline});
|
||||
this.toolStripFontAttributes.Name = "toolStripFontAttributes";
|
||||
this.toolStripFontAttributes.Size = new System.Drawing.Size(158, 22);
|
||||
this.toolStripFontAttributes.Text = "Font Attributes";
|
||||
//
|
||||
// toolStripBold
|
||||
//
|
||||
this.toolStripBold.Name = "toolStripBold";
|
||||
this.toolStripBold.Size = new System.Drawing.Size(130, 22);
|
||||
this.toolStripBold.Text = "Bold";
|
||||
//
|
||||
// toolStripUnderline
|
||||
//
|
||||
this.toolStripUnderline.Name = "toolStripUnderline";
|
||||
this.toolStripUnderline.Size = new System.Drawing.Size(130, 22);
|
||||
this.toolStripUnderline.Text = "Underline";
|
||||
//
|
||||
// toolStripCase
|
||||
//
|
||||
this.toolStripCase.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripMenuItem1,
|
||||
this.toolStripMenuItem2,
|
||||
this.toolStripMenuItem3});
|
||||
this.toolStripCase.Name = "toolStripCase";
|
||||
this.toolStripCase.Size = new System.Drawing.Size(158, 22);
|
||||
this.toolStripCase.Text = "Case";
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(143, 22);
|
||||
this.toolStripMenuItem1.Text = "UPPERCASE";
|
||||
//
|
||||
// toolStripMenuItem2
|
||||
//
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(143, 22);
|
||||
this.toolStripMenuItem2.Text = "lowercase";
|
||||
//
|
||||
// toolStripMenuItem3
|
||||
//
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(143, 22);
|
||||
this.toolStripMenuItem3.Text = "Title Case";
|
||||
this.contextMenuStrip.ResumeLayout(false);
|
||||
this.contextMenuStripROs.ResumeLayout(false);
|
||||
this.contextMenuStripTrans.ResumeLayout(false);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_Bold;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_Underline;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_Italics;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_Superscript;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_Subscript;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_Undo;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_Redo;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_lowercase;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_UPPERCASE;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_TitleCase;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_InsRO;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_InsTran;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_InsSym;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_ToggleView;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStripROs;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_DeleteRO;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_ModifyRO;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStripTrans;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_DeleteTrans;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_ModifyTrans;
|
||||
private System.Windows.Forms.ToolStripMenuItem menu_GoToTrans;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripFontAttributes;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripBold;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripUnderline;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripCase;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
|
||||
}
|
||||
}
|
||||
|
@ -117,18 +117,6 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="contextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>27, 22</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStripROs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 91</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStripTrans.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 54</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>175, 91</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
|
Loading…
x
Reference in New Issue
Block a user