This commit is contained in:
John Jenko 2009-03-12 13:55:35 +00:00
parent 924b84475e
commit 302a7bdcaa
3 changed files with 681 additions and 241 deletions

View File

@ -113,7 +113,7 @@ namespace Volian.Controls.Library
_AnnotationSearch.LoadingList = false;
CurrentAnnotation = null;
UpdateAnnotationGrid();
_AnnotationSearch.UpdateAnnotationSearchResults(); // update the search results
//_AnnotationSearch.UpdateAnnotationSearchResults(); // update the search results
}
}

View File

@ -33,23 +33,37 @@ namespace Volian.Controls.Library
this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel();
this.gpSrchText = new DevComponents.DotNetBar.Controls.GroupPanel();
this.panel1 = new System.Windows.Forms.Panel();
this.cbxCaseSensitive = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.label1 = new System.Windows.Forms.Label();
this.cbxTextSearchText = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.label1 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.cbxIncROTextSrch = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cbxCaseSensitive = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.rbtnSrchTxt = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cbxSrchTypeUsage = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.tabStepTypeSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel();
this.panel2 = new System.Windows.Forms.Panel();
this.cbxCaseSensitiveAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.label2 = new System.Windows.Forms.Label();
this.cbxTextSearchAnnotation = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.cbxAnnoTypes = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.tabAnnotationSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
this.gpFindROs = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbxFndUnLnkROVals = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cmboTreeROs = new DevComponents.DotNetBar.Controls.ComboTree();
this.tabROSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel();
this.panel4 = new System.Windows.Forms.Panel();
this.cbxCaseSensitiveAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cbxTextSearchAnnotation = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.label2 = new System.Windows.Forms.Label();
this.cbxAnnoTypes = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.tabAnnotationSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.contextMenuBar1 = new DevComponents.DotNetBar.ContextMenuBar();
this.btnCMIFindText = new DevComponents.DotNetBar.ButtonItem();
this.btnCMEdit = new DevComponents.DotNetBar.ButtonItem();
this.cmFndTxtCut = new DevComponents.DotNetBar.ButtonItem();
this.cmFndTxtCopy = new DevComponents.DotNetBar.ButtonItem();
this.cmFndTxtPaste = new DevComponents.DotNetBar.ButtonItem();
this.btnCMInsert = new DevComponents.DotNetBar.ButtonItem();
this.cmFndTxtInsHardSp = new DevComponents.DotNetBar.ButtonItem();
this.cmFndTxtInsSymbol = new DevComponents.DotNetBar.ButtonItem();
this.galSymbols = new DevComponents.DotNetBar.GalleryContainer();
this.advTreeProcSets = new DevComponents.AdvTree.AdvTree();
this.elementStyle1 = new DevComponents.DotNetBar.ElementStyle();
this.node1 = new DevComponents.AdvTree.Node();
@ -79,10 +93,13 @@ namespace Volian.Controls.Library
this.tabControlPanel4.SuspendLayout();
this.gpSrchText.SuspendLayout();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
this.gpFindROs.SuspendLayout();
this.tabControlPanel3.SuspendLayout();
this.gpSrchAnnoText.SuspendLayout();
this.panel2.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).BeginInit();
this.grpPanSearchResults.SuspendLayout();
@ -97,8 +114,9 @@ namespace Volian.Controls.Library
this.tabSearchTypes.CloseButtonOnTabsAlwaysDisplayed = false;
this.tabSearchTypes.CloseButtonPosition = DevComponents.DotNetBar.eTabCloseButtonPosition.Right;
this.tabSearchTypes.Controls.Add(this.tabControlPanel4);
this.tabSearchTypes.Controls.Add(this.tabControlPanel3);
this.tabSearchTypes.Controls.Add(this.tabControlPanel2);
this.tabSearchTypes.Controls.Add(this.tabControlPanel3);
this.tabSearchTypes.Controls.Add(this.contextMenuBar1);
this.tabSearchTypes.Dock = System.Windows.Forms.DockStyle.Top;
this.tabSearchTypes.Location = new System.Drawing.Point(0, 0);
this.tabSearchTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
@ -107,7 +125,7 @@ namespace Volian.Controls.Library
this.tabSearchTypes.SelectedTabFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold);
this.tabSearchTypes.SelectedTabIndex = 0;
this.tabSearchTypes.ShowFocusRectangle = false;
this.tabSearchTypes.Size = new System.Drawing.Size(364, 116);
this.tabSearchTypes.Size = new System.Drawing.Size(385, 117);
this.tabSearchTypes.Style = DevComponents.DotNetBar.eTabStripStyle.Office2007Document;
this.tabSearchTypes.TabIndex = 0;
this.tabSearchTypes.TabLayoutType = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox;
@ -128,11 +146,11 @@ namespace Volian.Controls.Library
this.tabControlPanel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel4.Name = "tabControlPanel4";
this.tabControlPanel4.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel4.Size = new System.Drawing.Size(364, 92);
this.tabControlPanel4.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel4.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel4.Size = new System.Drawing.Size(385, 93);
this.tabControlPanel4.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel4.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel4.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel4.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel4.Style.GradientAngle = 90;
@ -146,12 +164,12 @@ namespace Volian.Controls.Library
this.gpSrchText.CanvasColor = System.Drawing.SystemColors.Control;
this.gpSrchText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.gpSrchText.Controls.Add(this.panel1);
this.gpSrchText.Controls.Add(this.cbxTextSearchText);
this.gpSrchText.Controls.Add(this.panel3);
this.gpSrchText.Dock = System.Windows.Forms.DockStyle.Fill;
this.gpSrchText.Location = new System.Drawing.Point(30, 1);
this.gpSrchText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.gpSrchText.Name = "gpSrchText";
this.gpSrchText.Size = new System.Drawing.Size(333, 60);
this.gpSrchText.Size = new System.Drawing.Size(354, 69);
//
//
//
@ -178,28 +196,34 @@ namespace Volian.Controls.Library
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.Controls.Add(this.cbxCaseSensitive);
this.panel1.Controls.Add(this.cbxTextSearchText);
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 9);
this.panel1.Location = new System.Drawing.Point(0, 10);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(327, 21);
this.panel1.Size = new System.Drawing.Size(348, 28);
this.panel1.TabIndex = 5;
//
// cbxCaseSensitive
// cbxTextSearchText
//
this.cbxCaseSensitive.BackColor = System.Drawing.Color.Transparent;
this.cbxCaseSensitive.Dock = System.Windows.Forms.DockStyle.Left;
this.cbxCaseSensitive.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxCaseSensitive.Location = new System.Drawing.Point(88, 0);
this.cbxCaseSensitive.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxCaseSensitive.Name = "cbxCaseSensitive";
this.cbxCaseSensitive.Size = new System.Drawing.Size(143, 21);
this.superTooltip1.SetSuperTooltip(this.cbxCaseSensitive, new DevComponents.DotNetBar.SuperTooltipInfo("Case Sensitive", "", "When this box is checked, Search will find only exact mactches of the search text" +
" you had entered.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 100)));
this.cbxCaseSensitive.TabIndex = 3;
this.cbxCaseSensitive.Text = "Case Sensitive";
this.contextMenuBar1.SetContextMenuEx(this.cbxTextSearchText, this.btnCMIFindText);
this.cbxTextSearchText.DisplayMember = "Text";
this.cbxTextSearchText.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTextSearchText.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbxTextSearchText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchText.FormattingEnabled = true;
this.cbxTextSearchText.ItemHeight = 18;
this.cbxTextSearchText.Location = new System.Drawing.Point(40, 0);
this.cbxTextSearchText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxTextSearchText.Name = "cbxTextSearchText";
this.cbxTextSearchText.Size = new System.Drawing.Size(308, 24);
this.superTooltip1.SetSuperTooltip(this.cbxTextSearchText, new DevComponents.DotNetBar.SuperTooltipInfo("Search for Text", "", "Enter the text you want to search, or select from the drop down list.\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(175, 80)));
this.cbxTextSearchText.TabIndex = 2;
this.cbxTextSearchText.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchText.WatermarkText = "Enter Search Text Here";
this.cbxTextSearchText.Leave += new System.EventHandler(this.cbxTextSearchText_Leave);
this.cbxTextSearchText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey);
//
// label1
//
@ -209,28 +233,48 @@ namespace Volian.Controls.Library
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(88, 18);
this.label1.Padding = new System.Windows.Forms.Padding(0, 6, 0, 0);
this.label1.Size = new System.Drawing.Size(40, 24);
this.label1.TabIndex = 4;
this.label1.Text = "Find Text: ";
this.label1.Text = "Find:";
//
// cbxTextSearchText
// panel3
//
this.cbxTextSearchText.DisplayMember = "Text";
this.cbxTextSearchText.Dock = System.Windows.Forms.DockStyle.Bottom;
this.cbxTextSearchText.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbxTextSearchText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchText.FormattingEnabled = true;
this.cbxTextSearchText.ItemHeight = 18;
this.cbxTextSearchText.Location = new System.Drawing.Point(0, 30);
this.cbxTextSearchText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxTextSearchText.Name = "cbxTextSearchText";
this.cbxTextSearchText.Size = new System.Drawing.Size(327, 24);
this.superTooltip1.SetSuperTooltip(this.cbxTextSearchText, new DevComponents.DotNetBar.SuperTooltipInfo("Search for Text", "", "Enter the text you want to search, or select from the drop down list.\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(175, 80)));
this.cbxTextSearchText.TabIndex = 2;
this.cbxTextSearchText.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchText.WatermarkText = "Enter Search Text Here";
this.cbxTextSearchText.Leave += new System.EventHandler(this.cbxTextSearchText_Leave);
this.cbxTextSearchText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey);
this.panel3.BackColor = System.Drawing.Color.Transparent;
this.panel3.Controls.Add(this.cbxIncROTextSrch);
this.panel3.Controls.Add(this.cbxCaseSensitive);
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Location = new System.Drawing.Point(0, 38);
this.panel3.Margin = new System.Windows.Forms.Padding(4);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(348, 25);
this.panel3.TabIndex = 6;
//
// cbxIncROTextSrch
//
this.cbxIncROTextSrch.Checked = true;
this.cbxIncROTextSrch.CheckState = System.Windows.Forms.CheckState.Checked;
this.cbxIncROTextSrch.CheckValue = "Y";
this.cbxIncROTextSrch.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxIncROTextSrch.Location = new System.Drawing.Point(144, 0);
this.cbxIncROTextSrch.Margin = new System.Windows.Forms.Padding(4);
this.cbxIncROTextSrch.Name = "cbxIncROTextSrch";
this.cbxIncROTextSrch.Size = new System.Drawing.Size(130, 25);
this.cbxIncROTextSrch.TabIndex = 5;
this.cbxIncROTextSrch.Text = "Search RO Text";
//
// cbxCaseSensitive
//
this.cbxCaseSensitive.BackColor = System.Drawing.Color.Transparent;
this.cbxCaseSensitive.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxCaseSensitive.Location = new System.Drawing.Point(11, 1);
this.cbxCaseSensitive.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxCaseSensitive.Name = "cbxCaseSensitive";
this.cbxCaseSensitive.Size = new System.Drawing.Size(126, 25);
this.superTooltip1.SetSuperTooltip(this.cbxCaseSensitive, new DevComponents.DotNetBar.SuperTooltipInfo("Case Sensitive", "", "When this box is checked, Search will find only exact mactches of the search text" +
" you had entered.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 100)));
this.cbxCaseSensitive.TabIndex = 3;
this.cbxCaseSensitive.Text = "Case Sensitive";
//
// rbtnSrchTxt
//
@ -244,7 +288,7 @@ namespace Volian.Controls.Library
this.rbtnSrchTxt.Location = new System.Drawing.Point(1, 1);
this.rbtnSrchTxt.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rbtnSrchTxt.Name = "rbtnSrchTxt";
this.rbtnSrchTxt.Size = new System.Drawing.Size(29, 60);
this.rbtnSrchTxt.Size = new System.Drawing.Size(29, 69);
this.rbtnSrchTxt.TabIndex = 6;
this.rbtnSrchTxt.CheckedChanged += new System.EventHandler(this.rbtnSrchTxt_CheckedChanged);
//
@ -254,10 +298,10 @@ namespace Volian.Controls.Library
this.cbxSrchTypeUsage.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
this.cbxSrchTypeUsage.Dock = System.Windows.Forms.DockStyle.Bottom;
this.cbxSrchTypeUsage.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxSrchTypeUsage.Location = new System.Drawing.Point(1, 61);
this.cbxSrchTypeUsage.Location = new System.Drawing.Point(1, 70);
this.cbxSrchTypeUsage.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxSrchTypeUsage.Name = "cbxSrchTypeUsage";
this.cbxSrchTypeUsage.Size = new System.Drawing.Size(362, 30);
this.cbxSrchTypeUsage.Size = new System.Drawing.Size(383, 22);
this.cbxSrchTypeUsage.TabIndex = 4;
this.cbxSrchTypeUsage.Text = " Find Selected Types";
this.cbxSrchTypeUsage.CheckedChanged += new System.EventHandler(this.cbxSrchTypeUsage_CheckedChanged);
@ -271,6 +315,99 @@ namespace Volian.Controls.Library
this.tabStepTypeSearch.Text = "Text";
this.tabStepTypeSearch.Click += new System.EventHandler(this.tabStepTypeSearch_Click);
//
// tabControlPanel2
//
this.tabControlPanel2.Controls.Add(this.gpFindROs);
this.tabControlPanel2.Controls.Add(this.cmboTreeROs);
this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel2.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel2.Name = "tabControlPanel2";
this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel2.Size = new System.Drawing.Size(385, 93);
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel2.Style.GradientAngle = 90;
this.tabControlPanel2.TabIndex = 2;
this.tabControlPanel2.TabItem = this.tabROSearch;
//
// gpFindROs
//
this.gpFindROs.CanvasColor = System.Drawing.SystemColors.Control;
this.gpFindROs.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.gpFindROs.Controls.Add(this.cbxFndUnLnkROVals);
this.gpFindROs.Dock = System.Windows.Forms.DockStyle.Fill;
this.gpFindROs.Enabled = false;
this.gpFindROs.Location = new System.Drawing.Point(1, 24);
this.gpFindROs.Name = "gpFindROs";
this.gpFindROs.Size = new System.Drawing.Size(383, 68);
//
//
//
this.gpFindROs.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.gpFindROs.Style.BackColorGradientAngle = 90;
this.gpFindROs.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.gpFindROs.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpFindROs.Style.BorderBottomWidth = 1;
this.gpFindROs.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.gpFindROs.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpFindROs.Style.BorderLeftWidth = 1;
this.gpFindROs.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpFindROs.Style.BorderRightWidth = 1;
this.gpFindROs.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpFindROs.Style.BorderTopWidth = 1;
this.gpFindROs.Style.CornerDiameter = 4;
this.gpFindROs.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
this.gpFindROs.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
this.gpFindROs.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.gpFindROs.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
this.gpFindROs.TabIndex = 3;
this.gpFindROs.EnabledChanged += new System.EventHandler(this.gpFindROs_EnabledChanged);
//
// cbxFndUnLnkROVals
//
this.cbxFndUnLnkROVals.BackColor = System.Drawing.Color.Transparent;
this.cbxFndUnLnkROVals.Enabled = false;
this.cbxFndUnLnkROVals.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxFndUnLnkROVals.Location = new System.Drawing.Point(0, 4);
this.cbxFndUnLnkROVals.Name = "cbxFndUnLnkROVals";
this.cbxFndUnLnkROVals.Size = new System.Drawing.Size(167, 23);
this.cbxFndUnLnkROVals.TabIndex = 2;
this.cbxFndUnLnkROVals.Text = "Find Unlinked Values";
//
// cmboTreeROs
//
this.cmboTreeROs.BackColor = System.Drawing.SystemColors.Window;
//
//
//
this.cmboTreeROs.BackgroundStyle.Class = "TextBoxBorder";
this.cmboTreeROs.ButtonDropDown.Visible = true;
this.cmboTreeROs.Dock = System.Windows.Forms.DockStyle.Top;
this.cmboTreeROs.Enabled = false;
this.cmboTreeROs.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cmboTreeROs.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
this.cmboTreeROs.Location = new System.Drawing.Point(1, 1);
this.cmboTreeROs.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cmboTreeROs.Name = "cmboTreeROs";
this.cmboTreeROs.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cmboTreeROs.Size = new System.Drawing.Size(383, 23);
this.superTooltip1.SetSuperTooltip(this.cmboTreeROs, new DevComponents.DotNetBar.SuperTooltipInfo("Select the RO to Search", "", "Select the Referenced Object to search for.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cmboTreeROs.TabIndex = 1;
this.cmboTreeROs.ThemeAware = true;
this.cmboTreeROs.WatermarkText = "Select an RO to seach";
this.cmboTreeROs.SelectedIndexChanged += new System.EventHandler(this.cmboTreeROs_SelectedIndexChanged);
//
// tabROSearch
//
this.tabROSearch.AttachedControl = this.tabControlPanel2;
this.tabROSearch.Name = "tabROSearch";
this.tabROSearch.Text = "Referenced Objects";
//
// tabControlPanel3
//
this.tabControlPanel3.Controls.Add(this.gpSrchAnnoText);
@ -280,11 +417,11 @@ namespace Volian.Controls.Library
this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel3.Name = "tabControlPanel3";
this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel3.Size = new System.Drawing.Size(364, 92);
this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel3.Size = new System.Drawing.Size(385, 93);
this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel3.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel3.Style.GradientAngle = 90;
@ -296,14 +433,13 @@ namespace Volian.Controls.Library
this.gpSrchAnnoText.AutoSize = true;
this.gpSrchAnnoText.CanvasColor = System.Drawing.SystemColors.Control;
this.gpSrchAnnoText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.gpSrchAnnoText.Controls.Add(this.panel2);
this.gpSrchAnnoText.Controls.Add(this.cbxTextSearchAnnotation);
this.gpSrchAnnoText.Controls.Add(this.panel4);
this.gpSrchAnnoText.Dock = System.Windows.Forms.DockStyle.Fill;
this.gpSrchAnnoText.Enabled = false;
this.gpSrchAnnoText.Location = new System.Drawing.Point(1, 25);
this.gpSrchAnnoText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.gpSrchAnnoText.Name = "gpSrchAnnoText";
this.gpSrchAnnoText.Size = new System.Drawing.Size(362, 66);
this.gpSrchAnnoText.Size = new System.Drawing.Size(383, 67);
//
//
//
@ -327,25 +463,25 @@ namespace Volian.Controls.Library
this.gpSrchAnnoText.TabIndex = 6;
this.gpSrchAnnoText.EnabledChanged += new System.EventHandler(this.gpSrchAnnoText_EnabledChanged);
//
// panel2
// panel4
//
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.Controls.Add(this.cbxCaseSensitiveAnnoText);
this.panel2.Controls.Add(this.label2);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 15);
this.panel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(356, 21);
this.panel2.TabIndex = 8;
this.panel4.BackColor = System.Drawing.Color.Transparent;
this.panel4.Controls.Add(this.cbxCaseSensitiveAnnoText);
this.panel4.Controls.Add(this.cbxTextSearchAnnotation);
this.panel4.Controls.Add(this.label2);
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(377, 50);
this.panel4.TabIndex = 9;
//
// cbxCaseSensitiveAnnoText
//
this.cbxCaseSensitiveAnnoText.AutoSize = true;
this.cbxCaseSensitiveAnnoText.BackColor = System.Drawing.Color.Transparent;
this.cbxCaseSensitiveAnnoText.Dock = System.Windows.Forms.DockStyle.Left;
this.cbxCaseSensitiveAnnoText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxCaseSensitiveAnnoText.Location = new System.Drawing.Point(158, 0);
this.cbxCaseSensitiveAnnoText.Location = new System.Drawing.Point(16, 31);
this.cbxCaseSensitiveAnnoText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxCaseSensitiveAnnoText.Name = "cbxCaseSensitiveAnnoText";
this.cbxCaseSensitiveAnnoText.RightToLeft = System.Windows.Forms.RightToLeft.No;
@ -355,6 +491,28 @@ namespace Volian.Controls.Library
this.cbxCaseSensitiveAnnoText.TabIndex = 5;
this.cbxCaseSensitiveAnnoText.Text = "Case Sensitive";
//
// cbxTextSearchAnnotation
//
this.contextMenuBar1.SetContextMenuEx(this.cbxTextSearchAnnotation, this.btnCMIFindText);
this.cbxTextSearchAnnotation.DisplayMember = "Text";
this.cbxTextSearchAnnotation.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTextSearchAnnotation.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbxTextSearchAnnotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchAnnotation.FormattingEnabled = true;
this.cbxTextSearchAnnotation.ItemHeight = 18;
this.cbxTextSearchAnnotation.Location = new System.Drawing.Point(40, 0);
this.cbxTextSearchAnnotation.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxTextSearchAnnotation.Name = "cbxTextSearchAnnotation";
this.cbxTextSearchAnnotation.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbxTextSearchAnnotation.Size = new System.Drawing.Size(337, 24);
this.superTooltip1.SetSuperTooltip(this.cbxTextSearchAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Search For Annotaion Text", "", "Enter Annotation text to search for or select from the dropdown list.\r\n\r\nLeave Bl" +
"ank to search for occurences of the selected annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 140)));
this.cbxTextSearchAnnotation.TabIndex = 6;
this.cbxTextSearchAnnotation.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchAnnotation.WatermarkText = "Enter Search Text Here";
this.cbxTextSearchAnnotation.Leave += new System.EventHandler(this.cbxTextSearchAnnotation_Leave);
this.cbxTextSearchAnnotation.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey);
//
// label2
//
this.label2.AutoSize = true;
@ -363,30 +521,10 @@ namespace Volian.Controls.Library
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(0, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(158, 18);
this.label2.Padding = new System.Windows.Forms.Padding(0, 6, 0, 0);
this.label2.Size = new System.Drawing.Size(40, 24);
this.label2.TabIndex = 7;
this.label2.Text = "Find Annotation Text: ";
//
// cbxTextSearchAnnotation
//
this.cbxTextSearchAnnotation.DisplayMember = "Text";
this.cbxTextSearchAnnotation.Dock = System.Windows.Forms.DockStyle.Bottom;
this.cbxTextSearchAnnotation.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbxTextSearchAnnotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchAnnotation.FormattingEnabled = true;
this.cbxTextSearchAnnotation.ItemHeight = 18;
this.cbxTextSearchAnnotation.Location = new System.Drawing.Point(0, 36);
this.cbxTextSearchAnnotation.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxTextSearchAnnotation.Name = "cbxTextSearchAnnotation";
this.cbxTextSearchAnnotation.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbxTextSearchAnnotation.Size = new System.Drawing.Size(356, 24);
this.superTooltip1.SetSuperTooltip(this.cbxTextSearchAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Search For Annotaion Text", "", "Enter Annotation text to search for or select from the dropdown list.\r\n\r\nLeave Bl" +
"ank to search for occurences of the selected annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 140)));
this.cbxTextSearchAnnotation.TabIndex = 6;
this.cbxTextSearchAnnotation.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxTextSearchAnnotation.WatermarkText = "Enter Search Text Here";
this.cbxTextSearchAnnotation.Leave += new System.EventHandler(this.cbxTextSearchAnnotation_Leave);
this.cbxTextSearchAnnotation.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey);
this.label2.Text = "Find:";
//
// cbxAnnoTypes
//
@ -401,7 +539,7 @@ namespace Volian.Controls.Library
this.cbxAnnoTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxAnnoTypes.Name = "cbxAnnoTypes";
this.cbxAnnoTypes.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbxAnnoTypes.Size = new System.Drawing.Size(362, 24);
this.cbxAnnoTypes.Size = new System.Drawing.Size(383, 24);
this.superTooltip1.SetSuperTooltip(this.cbxAnnoTypes, new DevComponents.DotNetBar.SuperTooltipInfo("Select Annotation Type", "", "Select the type of annotation to search for.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(192, 61)));
this.cbxAnnoTypes.TabIndex = 0;
this.cbxAnnoTypes.WatermarkText = "Select AnnotationType to Search";
@ -412,52 +550,103 @@ namespace Volian.Controls.Library
this.tabAnnotationSearch.Name = "tabAnnotationSearch";
this.tabAnnotationSearch.Text = "Annotations";
//
// tabControlPanel2
// contextMenuBar1
//
this.tabControlPanel2.Controls.Add(this.cmboTreeROs);
this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel2.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel2.Name = "tabControlPanel2";
this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel2.Size = new System.Drawing.Size(364, 92);
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel2.Style.GradientAngle = 90;
this.tabControlPanel2.TabIndex = 2;
this.tabControlPanel2.TabItem = this.tabROSearch;
this.contextMenuBar1.DockSide = DevComponents.DotNetBar.eDockSide.Top;
this.contextMenuBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.btnCMIFindText});
this.contextMenuBar1.Location = new System.Drawing.Point(300, -4);
this.contextMenuBar1.Name = "contextMenuBar1";
this.contextMenuBar1.Size = new System.Drawing.Size(75, 29);
this.contextMenuBar1.Stretch = true;
this.contextMenuBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2003;
this.contextMenuBar1.TabIndex = 6;
this.contextMenuBar1.TabStop = false;
this.contextMenuBar1.Text = "contextMenuBar1";
//
// cmboTreeROs
// btnCMIFindText
//
this.cmboTreeROs.BackColor = System.Drawing.SystemColors.Window;
this.btnCMIFindText.AutoExpandOnClick = true;
this.btnCMIFindText.ImagePaddingHorizontal = 8;
this.btnCMIFindText.Name = "btnCMIFindText";
this.btnCMIFindText.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.btnCMEdit,
this.btnCMInsert});
this.btnCMIFindText.Text = "cmFindText";
this.btnCMIFindText.PopupOpen += new DevComponents.DotNetBar.DotNetBarManager.PopupOpenEventHandler(this.btnCMIFindText_PopupOpen);
//
// btnCMEdit
//
this.btnCMEdit.ImagePaddingHorizontal = 8;
this.btnCMEdit.Name = "btnCMEdit";
this.btnCMEdit.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.cmFndTxtCut,
this.cmFndTxtCopy,
this.cmFndTxtPaste});
this.btnCMEdit.Text = "Edit";
//
this.cmboTreeROs.BackgroundStyle.Class = "TextBoxBorder";
this.cmboTreeROs.ButtonDropDown.Visible = true;
this.cmboTreeROs.Dock = System.Windows.Forms.DockStyle.Top;
this.cmboTreeROs.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cmboTreeROs.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
this.cmboTreeROs.Location = new System.Drawing.Point(1, 1);
this.cmboTreeROs.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cmboTreeROs.Name = "cmboTreeROs";
this.cmboTreeROs.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cmboTreeROs.Size = new System.Drawing.Size(362, 23);
this.superTooltip1.SetSuperTooltip(this.cmboTreeROs, new DevComponents.DotNetBar.SuperTooltipInfo("Select the RO to Search", "", "Select the Referenced Object to search for.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cmboTreeROs.TabIndex = 1;
this.cmboTreeROs.ThemeAware = true;
this.cmboTreeROs.WatermarkText = "Select an RO to seach";
// cmFndTxtCut
//
// tabROSearch
this.cmFndTxtCut.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.cmFndTxtCut.Image = global::Volian.Controls.Library.Properties.Resources.Cut_Image;
this.cmFndTxtCut.ImagePaddingHorizontal = 8;
this.cmFndTxtCut.Name = "cmFndTxtCut";
this.cmFndTxtCut.Stretch = true;
this.cmFndTxtCut.Text = "Cut";
this.cmFndTxtCut.Click += new System.EventHandler(this.cmFndTxtCut_Click);
//
this.tabROSearch.AttachedControl = this.tabControlPanel2;
this.tabROSearch.Name = "tabROSearch";
this.tabROSearch.Text = "Referenced Objects";
this.tabROSearch.Click += new System.EventHandler(this.tabROSearch_Click);
// cmFndTxtCopy
//
this.cmFndTxtCopy.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.cmFndTxtCopy.Image = global::Volian.Controls.Library.Properties.Resources.Copy_Image;
this.cmFndTxtCopy.ImagePaddingHorizontal = 8;
this.cmFndTxtCopy.Name = "cmFndTxtCopy";
this.cmFndTxtCopy.Text = "Copy";
this.cmFndTxtCopy.Click += new System.EventHandler(this.cmFndTxtCopy_Click);
//
// cmFndTxtPaste
//
this.cmFndTxtPaste.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.cmFndTxtPaste.Image = global::Volian.Controls.Library.Properties.Resources.PasteSmall_Image;
this.cmFndTxtPaste.ImagePaddingHorizontal = 8;
this.cmFndTxtPaste.Name = "cmFndTxtPaste";
this.cmFndTxtPaste.Text = "Paste";
this.cmFndTxtPaste.Click += new System.EventHandler(this.cmFndTxtPaste_Click);
//
// btnCMInsert
//
this.btnCMInsert.ImagePaddingHorizontal = 8;
this.btnCMInsert.Name = "btnCMInsert";
this.btnCMInsert.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.cmFndTxtInsHardSp,
this.cmFndTxtInsSymbol});
this.btnCMInsert.Text = "Insert";
//
// cmFndTxtInsHardSp
//
this.cmFndTxtInsHardSp.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.cmFndTxtInsHardSp.Image = global::Volian.Controls.Library.Properties.Resources.HardSpace_Image;
this.cmFndTxtInsHardSp.ImagePaddingHorizontal = 8;
this.cmFndTxtInsHardSp.Name = "cmFndTxtInsHardSp";
this.cmFndTxtInsHardSp.Text = "Hard Space";
this.cmFndTxtInsHardSp.Click += new System.EventHandler(this.cmFndTxtInsHardSp_Click);
//
// cmFndTxtInsSymbol
//
this.cmFndTxtInsSymbol.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.cmFndTxtInsSymbol.Image = global::Volian.Controls.Library.Properties.Resources.Symbol_Image;
this.cmFndTxtInsSymbol.ImagePaddingHorizontal = 8;
this.cmFndTxtInsSymbol.Name = "cmFndTxtInsSymbol";
this.cmFndTxtInsSymbol.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.galSymbols});
this.cmFndTxtInsSymbol.Text = "Symbol";
//
// galSymbols
//
this.galSymbols.EnableGalleryPopup = false;
this.galSymbols.MinimumSize = new System.Drawing.Size(150, 200);
this.galSymbols.Name = "galSymbols";
this.galSymbols.Text = "galleryContainer1";
//
// advTreeProcSets
//
@ -484,10 +673,11 @@ namespace Volian.Controls.Library
this.advTreeProcSets.NodeStyleSelected = this.elementStyle1;
this.advTreeProcSets.PathSeparator = ";";
this.advTreeProcSets.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.advTreeProcSets.Size = new System.Drawing.Size(364, 168);
this.advTreeProcSets.Size = new System.Drawing.Size(385, 168);
this.advTreeProcSets.Styles.Add(this.elementStyle1);
this.advTreeProcSets.TabIndex = 0;
this.advTreeProcSets.Text = "advTree1";
this.advTreeProcSets.AfterNodeSelect += new DevComponents.AdvTree.AdvTreeNodeEventHandler(this.advTreeProcSets_AfterNodeSelect);
this.advTreeProcSets.AfterCheck += new DevComponents.AdvTree.AdvTreeCellEventHandler(this.advTreeProcSets_AfterCheck);
//
// elementStyle1
@ -530,7 +720,7 @@ namespace Volian.Controls.Library
this.advTreeStepTypes.PathSeparator = ";";
this.advTreeStepTypes.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.advTreeStepTypes.SelectionPerCell = true;
this.advTreeStepTypes.Size = new System.Drawing.Size(364, 154);
this.advTreeStepTypes.Size = new System.Drawing.Size(385, 154);
this.advTreeStepTypes.Styles.Add(this.elementStyle2);
this.advTreeStepTypes.TabIndex = 0;
this.advTreeStepTypes.Text = "advTree1";
@ -557,10 +747,10 @@ namespace Volian.Controls.Library
this.grpPanSearchResults.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.grpPanSearchResults.Controls.Add(this.lbSrchResults);
this.grpPanSearchResults.Dock = System.Windows.Forms.DockStyle.Fill;
this.grpPanSearchResults.Location = new System.Drawing.Point(0, 563);
this.grpPanSearchResults.Location = new System.Drawing.Point(0, 564);
this.grpPanSearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.grpPanSearchResults.Name = "grpPanSearchResults";
this.grpPanSearchResults.Size = new System.Drawing.Size(364, 269);
this.grpPanSearchResults.Size = new System.Drawing.Size(385, 268);
//
//
//
@ -594,7 +784,7 @@ namespace Volian.Controls.Library
this.lbSrchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lbSrchResults.Name = "lbSrchResults";
this.lbSrchResults.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lbSrchResults.Size = new System.Drawing.Size(358, 244);
this.lbSrchResults.Size = new System.Drawing.Size(379, 244);
this.lbSrchResults.TabIndex = 0;
this.lbSrchResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lbSrchResults_MouseMove);
this.lbSrchResults.SelectedValueChanged += new System.EventHandler(this.lbSrchResults_SelectedValueChanged);
@ -623,10 +813,10 @@ namespace Volian.Controls.Library
this.panSearchButtons.Controls.Add(this.btnSearch);
this.panSearchButtons.Controls.Add(this.btnPrnSrchRslts);
this.panSearchButtons.Dock = System.Windows.Forms.DockStyle.Top;
this.panSearchButtons.Location = new System.Drawing.Point(0, 490);
this.panSearchButtons.Location = new System.Drawing.Point(0, 491);
this.panSearchButtons.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panSearchButtons.Name = "panSearchButtons";
this.panSearchButtons.Size = new System.Drawing.Size(364, 73);
this.panSearchButtons.Size = new System.Drawing.Size(385, 73);
this.panSearchButtons.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panSearchButtons.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panSearchButtons.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
@ -637,6 +827,7 @@ namespace Volian.Controls.Library
this.panSearchButtons.TabIndex = 6;
this.panSearchButtons.Text = "panelEx1";
this.panSearchButtons.ThemeAware = true;
this.panSearchButtons.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.panSearchButtons_MouseDoubleClick);
//
// labelX1
//
@ -688,11 +879,11 @@ namespace Volian.Controls.Library
// cbSorted
//
this.cbSorted.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbSorted.Location = new System.Drawing.Point(155, 41);
this.cbSorted.Location = new System.Drawing.Point(152, 41);
this.cbSorted.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbSorted.Name = "cbSorted";
this.cbSorted.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbSorted.Size = new System.Drawing.Size(107, 23);
this.cbSorted.Size = new System.Drawing.Size(133, 23);
this.cbSorted.TabIndex = 7;
this.cbSorted.Text = "Sort Results";
this.cbSorted.CheckedChanged += new System.EventHandler(this.cbSorted_CheckedChanged);
@ -720,10 +911,10 @@ namespace Volian.Controls.Library
this.xpSetToSearch.Controls.Add(this.advTreeProcSets);
this.xpSetToSearch.Dock = System.Windows.Forms.DockStyle.Top;
this.xpSetToSearch.ExpandOnTitleClick = true;
this.xpSetToSearch.Location = new System.Drawing.Point(0, 116);
this.xpSetToSearch.Location = new System.Drawing.Point(0, 117);
this.xpSetToSearch.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.xpSetToSearch.Name = "xpSetToSearch";
this.xpSetToSearch.Size = new System.Drawing.Size(364, 194);
this.xpSetToSearch.Size = new System.Drawing.Size(385, 194);
this.xpSetToSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
this.xpSetToSearch.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.xpSetToSearch.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
@ -751,11 +942,11 @@ namespace Volian.Controls.Library
this.xpStepTypes.Controls.Add(this.advTreeStepTypes);
this.xpStepTypes.Dock = System.Windows.Forms.DockStyle.Top;
this.xpStepTypes.ExpandOnTitleClick = true;
this.xpStepTypes.Location = new System.Drawing.Point(0, 310);
this.xpStepTypes.Location = new System.Drawing.Point(0, 311);
this.xpStepTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.xpStepTypes.Name = "xpStepTypes";
this.xpStepTypes.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.xpStepTypes.Size = new System.Drawing.Size(364, 180);
this.xpStepTypes.Size = new System.Drawing.Size(385, 180);
this.xpStepTypes.Style.Alignment = System.Drawing.StringAlignment.Center;
this.xpStepTypes.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.xpStepTypes.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
@ -794,19 +985,22 @@ namespace Volian.Controls.Library
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "DisplaySearch";
this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.Size = new System.Drawing.Size(364, 832);
this.Size = new System.Drawing.Size(385, 832);
((System.ComponentModel.ISupportInitialize)(this.tabSearchTypes)).EndInit();
this.tabSearchTypes.ResumeLayout(false);
this.tabControlPanel4.ResumeLayout(false);
this.gpSrchText.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.tabControlPanel2.ResumeLayout(false);
this.gpFindROs.ResumeLayout(false);
this.tabControlPanel3.ResumeLayout(false);
this.tabControlPanel3.PerformLayout();
this.gpSrchAnnoText.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.tabControlPanel2.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).EndInit();
this.grpPanSearchResults.ResumeLayout(false);
@ -863,7 +1057,21 @@ namespace Volian.Controls.Library
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private DevComponents.DotNetBar.Controls.CheckBoxX cbxIncROTextSrch;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private DevComponents.DotNetBar.Controls.CheckBoxX cbxFndUnLnkROVals;
private DevComponents.DotNetBar.Controls.GroupPanel gpFindROs;
private DevComponents.DotNetBar.ContextMenuBar contextMenuBar1;
private DevComponents.DotNetBar.ButtonItem btnCMIFindText;
private DevComponents.DotNetBar.ButtonItem btnCMEdit;
private DevComponents.DotNetBar.ButtonItem cmFndTxtCut;
private DevComponents.DotNetBar.ButtonItem cmFndTxtCopy;
private DevComponents.DotNetBar.ButtonItem cmFndTxtPaste;
private DevComponents.DotNetBar.ButtonItem btnCMInsert;
private DevComponents.DotNetBar.ButtonItem cmFndTxtInsHardSp;
private DevComponents.DotNetBar.ButtonItem cmFndTxtInsSymbol;
private DevComponents.DotNetBar.GalleryContainer galSymbols;
}
}

View File

@ -14,10 +14,10 @@ namespace Volian.Controls.Library
public partial class DisplaySearch : UserControl
{
#region Properties
private List<DocVersionInfo> lstCheckedDocVersions = new List<DocVersionInfo>();
private List<int> lstCheckedStepTypes = new List<int>();
private bool _AlwaysDisableSets; // true if there is only 1 item in tree/combo for sets
private AnnotationDetails _AnnotationDetails = null;
ItemInfo _ItemInfo = null;
private DisplayTabControl _TabControl;
@ -26,6 +26,7 @@ namespace Volian.Controls.Library
private Color saveXpStepTypeTitleColor;
private Color saveGpSrchAnnoTextColor;
private Color saveGpSrchTextColor;
private Color saveGpFindROsColor;
private Color saveGrpPanSearchResults;
private ItemInfoList _SearchResults;
public ItemInfoList SearchResults
@ -33,7 +34,6 @@ namespace Volian.Controls.Library
get { return _SearchResults; }
set
{
_SearchResults = value;
DisplayResults();
}
@ -46,6 +46,13 @@ namespace Volian.Controls.Library
// set { tsslStatus.Text = value; Application.DoEvents(); }
//}
private bool _OpenDocFromSearch;
public bool OpenDocFromSearch
{
get { return _OpenDocFromSearch; }
//set { _OpenDocFromSearch = value; }
}
public DocVersionInfo Mydocversion
{
get { return _MyDocVersion; }
@ -68,7 +75,7 @@ namespace Volian.Controls.Library
get { return _MyROFSTLookup; }
set
{
if (!Visible) return; // don't reset anything if the form is invisible.
//if (!Visible) return; // don't reset anything if the form is invisible.
_MyROFSTLookup = value; // define the tree nodes based on this rofst
LoadROComboTree();
}
@ -100,26 +107,29 @@ namespace Volian.Controls.Library
saveXpStepTypeTitleColor = xpStepTypes.TitleStyle.BackColor1.Color;
saveGpSrchAnnoTextColor = gpSrchAnnoText.Style.BackColor;
saveGpSrchTextColor = gpSrchText.Style.BackColor;
saveGpFindROsColor = gpFindROs.Style.BackColor;
gpSrchText.Style.BackColor = Color.Yellow;
saveGrpPanSearchResults = grpPanSearchResults.Style.BackColor;
// start out with the procedure and type selection windows colasped
xpSetToSearch.Expanded = false;
xpStepTypes.Expanded = false;
rbtnSrchTxt.Checked = true;
gpSrchAnnoText.Enabled = true;
cmbResultsStyle.Enabled = false;
}
private void LoadSearchTextListBox()
{
cbxTextSearchText.Items.Clear();
cbxTextSearchAnnotation.Items.Clear();
//TODO: load saved search strings from user settings - if we decide to
}
public void advTreeStepTypesFillIn()
{
DevComponents.AdvTree.Node topnode = new DevComponents.AdvTree.Node();
advTreeStepTypes.Nodes.Clear();
lstCheckedStepTypes.Clear();
topnode.Text = "Types";
advTreeStepTypes.Nodes.Add(topnode);
@ -175,25 +185,25 @@ namespace Volian.Controls.Library
}
advTreeStepTypes.Nodes.Sort(); // sort the first level of the tree
}
buildStepTypePannelTitle();
}
public void advTreeProcSetsFillIn()
public void advTreeProcSetsFillIn(bool blSeachTabClicked)
{
DevComponents.AdvTree.Node topnode = null;
int cntnd = 0;
VETreeNode vtn = VETreeNode.GetFolder(1);
FolderInfo fi = vtn.VEObject as FolderInfo;
int fiCount = fi.ChildFolderCount;
advTreeProcSets.Nodes.Clear();
lstCheckedDocVersions.Clear();
foreach (FolderInfo fic in fi.ChildFolders)
{
DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node();
newnode.Text = fic.ToString();
newnode.Tag = fic;
int tmp;
int tmp;
if (topnode == null)
{
newnode.Text = "Available Procedure Sets";
@ -228,14 +238,17 @@ namespace Volian.Controls.Library
advTreeProcSets.Nodes.Add(topnode);
topnode.Tag = fi;
}
_AlwaysDisableSets = true;
advTreeProcSets.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(advTreeProcSets_BeforeExpand);
// position to the procedure set in the tree if we have a procedure open
if (Mydocversion != null)
advTreeProcSetsPreSelect();
cbxTextSearchText.Focus(); // set initial focus to enter search text
else
advTreeProcSets.Nodes[0].SelectedCell = advTreeProcSets.Nodes[0].Cells[0]; // select the first node - fixes cosmetic problem
if (blSeachTabClicked)
cbxTextSearchText.Focus(); // set initial focus to enter search text
}
void advTreeProcSets_BeforeExpand(object sender, DevComponents.AdvTree.AdvTreeNodeCancelEventArgs e)
@ -422,6 +435,28 @@ namespace Volian.Controls.Library
}
ProgressBar_Clear();
}
private void cmboTreeROs_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmboTreeROs.SelectedIndex == -1 || cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi)
cbxFndUnLnkROVals.Enabled = false;
else if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rochild)
{
ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag;
cbxFndUnLnkROVals.Enabled = (ro.children == null);
}
if (!cbxFndUnLnkROVals.Enabled)
cbxFndUnLnkROVals.Checked = false;
}
private void gpFindROs_EnabledChanged(object sender, EventArgs e)
{
if (gpFindROs.Enabled)
gpFindROs.Style.BackColor = Color.Yellow;
else
gpFindROs.Style.BackColor = saveGpFindROsColor;
}
#endregion
#region Annotation Search
@ -479,9 +514,7 @@ namespace Volian.Controls.Library
private void ProgressBar_SetValue(int curval)
{
if (_ProgressBar != null)
{
_ProgressBar.Value = curval;
}
}
private void ProgressBar_Clear()
@ -536,19 +569,19 @@ namespace Volian.Controls.Library
}
public void UpdateAnnotationSearchResults()
{
//AnnotationTypeInfo ati = cbxAnnoTypes.SelectedValue as AnnotationTypeInfo;
//_LoadingList = true;
//lbSrchResults.DataSource = ati.AnnotationTypeAnnotations;
//lbSrchResults.SelectedIndex = -1;
//LastResultsMouseOverIndex = -1;
//if (lbSrchResults.Items.Count > 0)
// btnPrnSrchRslts.Enabled = true;
//else
// btnPrnSrchRslts.Enabled = false;
//_LoadingList = false;
}
//public void UpdateAnnotationSearchResults()
//{
// //AnnotationTypeInfo ati = cbxAnnoTypes.SelectedValue as AnnotationTypeInfo;
// //_LoadingList = true;
// //lbSrchResults.DataSource = ati.AnnotationTypeAnnotations;
// //lbSrchResults.SelectedIndex = -1;
// //LastResultsMouseOverIndex = -1;
// //if (lbSrchResults.Items.Count > 0)
// // btnPrnSrchRslts.Enabled = true;
// //else
// // btnPrnSrchRslts.Enabled = false;
// //_LoadingList = false;
//}
private void lbSrchResults_MouseMove(object sender, MouseEventArgs e)
@ -568,7 +601,11 @@ namespace Volian.Controls.Library
{
_ItemInfo = lbSrchResults.SelectedValue as ItemInfo;
if (_ItemInfo != null)
{
_OpenDocFromSearch = true;
_TabControl.OpenItem(_ItemInfo); // open the corresponding procedure text
_OpenDocFromSearch = false;
}
}
}
@ -600,6 +637,16 @@ namespace Volian.Controls.Library
DisplayResults();
}
private void panSearchButtons_MouseDoubleClick(object sender, MouseEventArgs e)
{
DialogResult dr = MessageBox.Show("Michelle,\n\n Do you want to clear this Search List?", "For Michelle...", MessageBoxButtons.YesNo);
if (dr == DialogResult.Yes)
{
lbSrchResults.DataSource = null;
_SearchResults = null;
DisplayResults();
}
}
#endregion
#region Search
@ -636,7 +683,7 @@ namespace Volian.Controls.Library
if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[0])
{ // Text Search
strRtnStr[2] += string.Format("{0}", cbxTextSearchText.Text); // append text to search
strRtnStr[2] += ConvertSpecialChars(cbxTextSearchText.Text);//string.Format("{0}", cbxTextSearchText.Text); // append text to search
}
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1])
{ // Annotation Search
@ -645,29 +692,54 @@ namespace Volian.Controls.Library
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[2])
{ // RO Search
ROFSTLookup.rochild[] chld = null;
ROFSTLookup.rochild ch;
if (cmboTreeROs.SelectedNode != null)
{
ROFSTLookup.rochild ch;
if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi)
{
ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)cmboTreeROs.SelectedNode.Tag;
strRtnStr[2] += _MyRODbID.ToString()+":" + string.Format("{0}", db.dbiID.ToString("D4"));
}
else if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rochild)
if (cbxFndUnLnkROVals.Enabled && cbxFndUnLnkROVals.Checked)
{
ch = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag;
chld = ch.children;
// build a list of ROs to search
strRtnStr[2] += _MyRODbID.ToString() + ":" + GetROsToSearch(chld);
if (strRtnStr[2].EndsWith(","))
strRtnStr[2] = strRtnStr[2].Substring(0, strRtnStr[2].Length - 2);
strRtnStr[2] += string.Format("{0}", ch.value); // append RO Value text to search
}
else
{
if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi)
{
ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)cmboTreeROs.SelectedNode.Tag;
strRtnStr[2] += _MyRODbID.ToString() + ":" + string.Format("{0}", db.dbiID.ToString("D4"));
}
else if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rochild)
{
ch = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag;
chld = ch.children;
// build a list of ROs to search
strRtnStr[2] += _MyRODbID.ToString() + ":" + GetROsToSearch(chld);
if (strRtnStr[2].EndsWith(","))
strRtnStr[2] = strRtnStr[2].Substring(0, strRtnStr[2].Length - 1);
}
}
}
}
return strRtnStr;
}
private string ConvertSpecialChars(string str)
{
string rtnVal = str;
rtnVal = rtnVal.Replace("\u00A0", @"\u160?"); //convert \u00A0 to a hard space (\u00A0 shows as a blank in the search text field)
rtnVal = rtnVal.Replace("\n", "");
FormatData fmtdata = _MyDocVersion.ActiveFormat.PlantFormat.FormatData;
SymbolList sl = fmtdata.SymbolList;
if (sl != null)
{
foreach (Symbol sym in sl)
{
string rplace = string.Format(sym.Unicode < 256?@"\'{0:X2}" : @"\u{0}", sym.Unicode);
rtnVal = rtnVal.Replace(((char)sym.Unicode).ToString(), rplace);
}
}
return rtnVal;
}
private string GetROsToSearch(ROFSTLookup.rochild[] chld)
{
string rtnstr ="";
@ -701,10 +773,10 @@ namespace Volian.Controls.Library
Cursor savcursor = Cursor;
Cursor = Cursors.WaitCursor;
SearchResults = null;
bool includeRTFformat = false;
bool includeSpecialChars = true;
if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[0]) // Text Search
{
bool includeRTFformat = false;
bool includeSpecialChars = false;
if (cbxSrchTypeUsage.Checked) // find just the usage of the selected types
{
if (lstCheckedStepTypes.Count ==0)
@ -729,21 +801,32 @@ namespace Volian.Controls.Library
}
else
{
SearchResults = ItemInfoList.GetListFromTextSearch(strSearchText[0], strSearchText[1], strSearchText[2], cbxCaseSensitive.Checked, ItemSearchIncludeLinks.Value, includeRTFformat, includeSpecialChars);
SearchResults = ItemInfoList.GetListFromTextSearch(strSearchText[0], strSearchText[1], strSearchText[2], cbxCaseSensitive.Checked, cbxIncROTextSrch.Checked ? ItemSearchIncludeLinks.Value : ItemSearchIncludeLinks.Nothing, includeRTFformat, includeSpecialChars);
cmbResultsStyle.SelectedIndex = 3; // display step text in results
}
}
}
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) // Annotation Search
{
SearchResults = ItemInfoList.GetListFromAnnotationSearch(strSearchText[0], strSearchText[1], strSearchText[2], cbxTextSearchAnnotation.Text, cbxCaseSensitiveAnnoText.Checked);
UpdateAnnotationSearchResults();
//string srchStr = ConvertSpecialChars(cbxTextSearchAnnotation.Text);//cbxTextSearchAnnotation.Text;
//SearchResults = ItemInfoList.GetListFromAnnotationSearch(strSearchText[0], strSearchText[1], strSearchText[2], srchStr, cbxCaseSensitiveAnnoText.Checked);
SearchResults = ItemInfoList.GetListFromAnnotationSearch(strSearchText[0], strSearchText[1], strSearchText[2], cbxTextSearchAnnotation.Text, cbxCaseSensitiveAnnoText.Checked);
//UpdateAnnotationSearchResults();
cmbResultsStyle.SelectedIndex = 2; // display annotation text in results
}
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[2]) // RO Search
{
SearchResults = ItemInfoList.GetListFromROSearch(strSearchText[0], strSearchText[1], strSearchText[2]);
cmbResultsStyle.SelectedIndex = 1; // display procedure number, title, section, step in results
if (cbxFndUnLnkROVals.Enabled && cbxFndUnLnkROVals.Checked)
{
SearchResults = ItemInfoList.GetListFromTextSearch(strSearchText[0], strSearchText[1], strSearchText[2], cbxCaseSensitive.Checked, ItemSearchIncludeLinks.Nothing, includeRTFformat, includeSpecialChars);
cmbResultsStyle.SelectedIndex = 3; // display step text in results
}
else
{
SearchResults = ItemInfoList.GetListFromROSearch(strSearchText[0], strSearchText[1], strSearchText[2]);
cmbResultsStyle.SelectedIndex = 1; // display procedure number, title, section, step in results
}
}
DisplayResults();
Cursor = savcursor;
@ -794,15 +877,6 @@ namespace Volian.Controls.Library
gpSrchText.Style.BackColor = saveGpSrchTextColor;
}
private void tabROSearch_Click(object sender, EventArgs e)
{
if (lstCheckedDocVersions.Count == 0)
{
xpSetToSearch.Expanded = true;
xpSetToSearch.TitleStyle.BackColor1.Color = Color.Crimson;
}
}
private void tabStepTypeSearch_Click(object sender, EventArgs e)
{
if (rbtnSrchTxt.Checked)
@ -828,7 +902,7 @@ namespace Volian.Controls.Library
{
n.Style = DevComponents.AdvTree.NodeStyles.Apple;
lstCheckedDocVersions.Add((DocVersionInfo) n.Tag);
if (Mydocversion == null)
if (lstCheckedDocVersions.Count == 1)//Mydocversion == null)
{
Mydocversion = (DocVersionInfo)n.Tag;
advTreeStepTypesFillIn();
@ -838,33 +912,77 @@ namespace Volian.Controls.Library
{
n.Style = null;
lstCheckedDocVersions.Remove((DocVersionInfo)n.Tag);
if (lstCheckedDocVersions.Count == 1)
{
if (Mydocversion != lstCheckedDocVersions[0])
{
Mydocversion = lstCheckedDocVersions[0];
advTreeStepTypesFillIn();
}
}
else
{
if (lstCheckedDocVersions.Count == 0)
Mydocversion = null;
// do this if either none, or more than one procedure set selected
advTreeStepTypes.Nodes.Clear();
lstCheckedStepTypes.Clear();
Node newnode = new DevComponents.AdvTree.Node();
newnode.Text = "....select a procedure set for types to appear...";
advTreeStepTypes.Nodes.Add(newnode);
buildStepTypePannelTitle();
}
}
// Enable the RO combo list only if at least one procedure set node
// is selected
cmboTreeROs.Enabled = (lstCheckedDocVersions.Count > 0);
if (lstCheckedDocVersions.Count > 0)
gpFindROs.Enabled = cmboTreeROs.Enabled;
SetupContextMenu();
buildSetToSearchPanelTitle();
}
private void xpSetToSearch_ExpandedChanged(object sender, ExpandedChangeEventArgs e)
{
buildSetToSearchPanelTitle();
}
private void buildSetToSearchPanelTitle()
{
if (lstCheckedDocVersions.Count == 0)
{
xpSetToSearch.Expanded = true;
xpSetToSearch.TitleStyle.BackColor1.Color = Color.Crimson;
btnSearch.Enabled = false;
//if (xpSetToSearch.Expanded)
xpSetToSearch.TitleText = "Select Procedure Sets to Search";
//else
// xpSetToSearch.TitleText = "Click Here to Select Procedure Sets";
//xpSetToSearch.TitleStyle.BackColor1.Color = saveXpSetToSearchColor;
}
else //if (lstCheckedDocVersions.Count > 0)
{
// display the number of selected procedure sets whether pannel is expanded or not
xpSetToSearch.TitleText = string.Format("{0} Procedure Sets Selected", lstCheckedDocVersions.Count);
xpSetToSearch.TitleStyle.BackColor1.Color = Color.PapayaWhip;
btnSearch.Enabled = true;
}
else
}
private void advTreeProcSets_AfterNodeSelect(object sender, AdvTreeNodeEventArgs e)
{
DevComponents.AdvTree.Node n = advTreeProcSets.SelectedNode;
if (advTreeStepTypes.Nodes.Count == 1 && n.Checked)
{
xpSetToSearch.TitleText = "Select Procedure Sets to Search";
xpSetToSearch.TitleStyle.BackColor1.Color = saveXpSetToSearchColor;
Mydocversion = (DocVersionInfo)n.Tag;
advTreeStepTypesFillIn();
}
}
private void xpSetToSearch_ExpandedChanged(object sender, ExpandedChangeEventArgs e)
{
if (lstCheckedDocVersions.Count == 0)
if (xpSetToSearch.Expanded)
xpSetToSearch.TitleText = "Select Procedure Sets to Search";
else
{
xpSetToSearch.TitleText = "Click Here to Select Procedure Sets";
xpSetToSearch.TitleStyle.BackColor1.Color = saveXpSetToSearchColor;
}
}
#endregion
#region StepTypeSelection
@ -889,21 +1007,19 @@ namespace Volian.Controls.Library
else
lstCheckedStepTypes.Remove((int)sd.Index);
}
if (lstCheckedStepTypes.Count > 0)
{
xpStepTypes.TitleText = string.Format("{0} Step Styles Selected",lstCheckedStepTypes.Count);
xpStepTypes.TitleStyle.BackColor1.Color = Color.PapayaWhip;
}
else
{
xpStepTypes.TitleText = "Select Types To Search";
xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor;
}
buildStepTypePannelTitle();
}
private void xpStepTypes_ExpandedChanged(object sender, ExpandedChangeEventArgs e)
{
buildStepTypePannelTitle();
}
private void buildStepTypePannelTitle()
{
if (lstCheckedStepTypes.Count == 0)
{
if (xpStepTypes.Expanded)
{
xpStepTypes.TitleText = "Select Types To Search";
@ -911,14 +1027,130 @@ namespace Volian.Controls.Library
advTreeStepTypes.Nodes[0].SelectedCell = advTreeStepTypes.Nodes[0].Cells[0];
}
else
{
xpStepTypes.TitleText = "Click Here To Search By Types";
xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor;
}
xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor;
}
else //lstCheckedStepTypes.Count > 0
{
// show how many selected whether pannel is expanded or not
xpStepTypes.TitleText = string.Format("{0} Step Styles Selected", lstCheckedStepTypes.Count);
xpStepTypes.TitleStyle.BackColor1.Color = Color.PapayaWhip;
}
}
#endregion
#region ContextMenu
private void btnSym_Click(object sender, EventArgs e)
{
DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender;
if (cbxTextSearchAnnotation.Focused)
cbxTextSearchAnnotation.SelectedText = (string)b.Text;
else if (cbxTextSearchText.Focused)
cbxTextSearchText.SelectedText = (string)b.Text;
}
private void cmFndTxtInsHardSp_Click(object sender, EventArgs e)
{
// We use \u00A0 to represent a hard space because it show in the search text field as a blank
// It will get translated to a real hard space character prior to searching
if (cbxTextSearchAnnotation.Focused)
cbxTextSearchAnnotation.SelectedText = "\u00A0";
else if (cbxTextSearchText.Focused)
cbxTextSearchText.SelectedText = "\u00A0";
}
private void SetupContextMenu()
{
galSymbols.SubItems.Clear();
if (_MyDocVersion != null)
{
FormatData fmtdata = _MyDocVersion.ActiveFormat.PlantFormat.FormatData;
SymbolList sl = fmtdata.SymbolList;
if (sl == null || sl.Count <= 0)
{
MessageBox.Show("No symbols are available, check with administrator");
return;
}
foreach (Symbol sym in sl)
{
DevComponents.DotNetBar.ButtonItem btnCM = new DevComponents.DotNetBar.ButtonItem();
btnCM.Text = string.Format("{0}", (char)sym.Unicode);
// to name button use unicode rather than desc, desc may have spaces or odd chars
btnCM.Name = "btnCM" + sym.Unicode.ToString();
btnCM.Tooltip = sym.Desc;
btnCM.Tag = string.Format(@"\u{0}", sym.Unicode);
btnCM.FontBold = true;
btnCM.Click += new System.EventHandler(btnSym_Click);
galSymbols.SubItems.Add(btnCM);
}
}
}
private void cmFndTxtCut_Click(object sender, EventArgs e)
{
Clipboard.Clear();
DataObject myDO = new DataObject(DataFormats.Text, cbxTextSearchAnnotation.Focused? cbxTextSearchAnnotation.SelectedText : cbxTextSearchText.SelectedText);
Clipboard.SetDataObject(myDO);
// Need to check which combo box activated the context menu so that we know where to take/put selected text
if (cbxTextSearchAnnotation.Focused)
cbxTextSearchAnnotation.SelectedText = "";
else if (cbxTextSearchText.Focused)
cbxTextSearchText.SelectedText = "";
}
private void cmFndTxtCopy_Click(object sender, EventArgs e)
{
// Need to check which combo box activated the context menu so that we know where to take/put selected text
DataObject myDO = new DataObject(DataFormats.Text, cbxTextSearchAnnotation.Focused? cbxTextSearchAnnotation.SelectedText : cbxTextSearchText.SelectedText);
if (cbxTextSearchText.Focused || cbxTextSearchAnnotation.Focused)
{
Clipboard.Clear();
Clipboard.SetDataObject(myDO);
}
}
private void cmFndTxtPaste_Click(object sender, EventArgs e)
{
// Need to check which combo box activated the context menu so that we know where to take/put selected text
IDataObject myDO = Clipboard.GetDataObject();
if (myDO.GetDataPresent(DataFormats.Rtf))
{
StepRTB stpRTB = new StepRTB();
stpRTB.SelectedRtf = myDO.GetData(DataFormats.Rtf).ToString();
if (cbxTextSearchAnnotation.Focused)
cbxTextSearchAnnotation.SelectedText = stpRTB.Text;
else if (cbxTextSearchText.Focused)
cbxTextSearchText.SelectedText = stpRTB.Text;// .SelectedText;//myDO.GetData(DataFormats.Text,true).ToString();
}
else if (myDO.GetDataPresent(DataFormats.Text))
if (cbxTextSearchAnnotation.Focused)
cbxTextSearchAnnotation.SelectedText = Clipboard.GetText();
else if (cbxTextSearchText.Focused)
cbxTextSearchText.SelectedText = Clipboard.GetText();//myDO.GetData(DataFormats.Text).ToString();
}
private void btnCMIFindText_PopupOpen(object sender, PopupOpenEventArgs e)
{
// the context menu is available with just a mouse hover, even if the combo box does not have focus
// ... set the focus to which ever combo box initiated the context menu
if (tabAnnotationSearch.IsSelected)
{
if (!cbxTextSearchAnnotation.Focused)
cbxTextSearchAnnotation.Focus();
}
else if (tabStepTypeSearch.IsSelected)
{
if (!cbxTextSearchText.Focused)
cbxTextSearchText.Focus();
}
}
#endregion