コード例 #1
4
 public SimpleSyntaxEditor(string text, SyntaxLanguageStyle language)
 {
     ActiproSoftware.SyntaxEditor.SyntaxEditor editor = new ActiproSoftware.SyntaxEditor.SyntaxEditor {
         Dock = DockStyle.Fill
     };
     editor.set_IndicatorMarginVisible(false);
     editor.set_ScrollBarType(0);
     this._editor = editor;
     base.Controls.Add(this._editor);
     try
     {
         this.Font = new Font("Consolas", 10f);
         if (this.Font.Name != "Consolas")
         {
             this.Font = new Font("Courier New", 10f);
         }
     }
     catch
     {
     }
     string name = language.ToString();
     if (name == "VB")
     {
         name = name + "DotNet";
     }
     if (language != SyntaxLanguageStyle.None)
     {
         this._editor.get_Document().set_Language(DocumentManager.GetDynamicLanguage(name, SystemColors.Window.GetBrightness()));
         this._editor.get_Document().get_Outlining().set_Mode(2);
         this._editor.set_BracketHighlightingVisible(true);
     }
     this._editor.get_Document().set_ReadOnly(true);
     VisualStudio2005SyntaxEditorRenderer renderer = new VisualStudio2005SyntaxEditorRenderer();
     SimpleBorder border = new SimpleBorder();
     border.set_Style(0);
     renderer.set_Border(border);
     VisualStudio2005SyntaxEditorRenderer renderer2 = renderer;
     this._editor.set_Renderer(renderer2);
     this.Text = text;
 }
コード例 #2
0
        /// <summary>
        /// Displays IntelliPrompt parameter info in a <see cref="SyntaxEditor"/> based on the current context.
        /// </summary>
        /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> that will display the IntelliPrompt parameter info.</param>
        /// <returns>
        /// <c>true</c> if IntelliPrompt parameter info is displayed; otherwise, <c>false</c>.
        /// </returns>
        /// <remarks>
        /// Only call this method if the <see cref="IntelliPromptParameterInfoSupported"/> property is set to <c>true</c>.
        /// </remarks>
        public override bool ShowIntelliPromptParameterInfo(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
        {
            // Queue a task to display the parameter info prompt
            m_plugin.TaskQueue.AddTask(() => ShowIntelliPromptParameterInfoImmediate(syntaxEditor), TaskQueue.Thread.UI);

            return(false);
        }
コード例 #3
0
        /// <summary>
        /// Presents the member list to the user
        /// </summary>
        /// <param name="memberList"></param>
        /// <param name="syntaxEditor"></param>
        /// <param name="completeWord"></param>
        private void PresentMemberList(MemberList memberList, ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, bool completeWord)
        {
            IntelliPromptMemberList prompt = syntaxEditor.IntelliPrompt.MemberList;

            if (prompt.Visible)
            {
                return;
            }

            // Initialize the member list
            prompt.ResetAllowedCharacters();
            prompt.AllowedCharacters.Add(new CharInterval(char.MinValue, char.MaxValue));
            prompt.Clear();
            prompt.ImageList = LuaIntellisenseIcons.GetImageList();
            prompt.AddRange(memberList.List);

            // Show the list
            if (memberList.TargetTextRange.IsDeleted)
            {
                prompt.Show();
            }
            else if (completeWord && memberList.TargetTextRange.Length > 0)
            {
                prompt.CompleteWord(memberList.TargetTextRange.StartOffset, memberList.TargetTextRange.Length);
            }
            else
            {
                prompt.Show(memberList.TargetTextRange.StartOffset, memberList.TargetTextRange.Length);
            }
        }
コード例 #4
0
        protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
        {
            string str = e.get_Trigger().get_Key();

            if (((str != null) && (str == "TagAutoCompleteTrigger")) && !syntaxEditor.get_SelectedView().get_Selection().get_IsReadOnly())
            {
                this.CompleteElementTag(syntaxEditor, syntaxEditor.get_Caret().get_Offset());
            }
        }
コード例 #5
0
 public void SwitchFormatting(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
 {
     //UseSplitLanguage = !UseSplitLanguage;
     if (syntaxEditor.Document.Language.LexicalStates.Count > 1)
     {
         syntaxEditor.Document.Language.LexicalStates["ASPDirectiveState"].LexicalStateTransitionLexicalState.
         Language.BackColor = Slyce.Common.SyntaxEditorHelper.EDITOR_BACK_COLOR_FADED;
         syntaxEditor.Document.Language.BackColor = Slyce.Common.SyntaxEditorHelper.EDITOR_BACK_COLOR_NORMAL;
         syntaxEditor.Refresh();
     }
 }
コード例 #6
0
        /// <summary>
        /// Occurs when the mouse is hovered over an <see cref="EditorView"/>.
        /// </summary>
        /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> that will raise the event.</param>
        /// <param name="e">An <c>EditorViewMouseEventArgs</c> that contains the event data.</param>
        protected override void OnSyntaxEditorViewMouseHover(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, EditorViewMouseEventArgs e)
        {
            if ((e.HitTestResult.Token == null) || (e.ToolTipText != null))
            {
                return;
            }

            int offset = e.HitTestResult.Token.StartOffset;

            e.ToolTipText = GetQuickInfo(syntaxEditor, ref offset);
        }
コード例 #7
0
        /// <summary>
        /// Builds a MemberList for the given syntaxEditor
        /// </summary>
        /// <param name="syntaxEditor"></param>
        /// <returns></returns>
        private MemberList BuildMemberList(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
        {
            // Get the target text range
            int        caret           = syntaxEditor.Caret.Offset;
            TextRange  targetTextRange = TextRange.Deleted;
            TextStream stream          = syntaxEditor.Document.GetTextStream(caret);

            // Get the compilation unit
            var cu = syntaxEditor.Document.SemanticParseData as CompilationUnit;

            if (cu == null)
            {
                return(null);
            }

            var itemlist = new Hashtable();

            stream.GoToPreviousNonWhitespaceToken();

            if (stream.Token.IsComment)
            {
                return(null);
            }

            var node = cu.FindNodeRecursive <LuatAstNodeBase>(stream.Offset);

            if (null != node)
            {
                foreach (AutoCompleteItem item in m_plugin.Database.GetAutoCompleteList(node, caret))
                {
                    itemlist[item.Name] = new IntelliPromptMemberListItem(item.Name, (int)item.Icon, item.Description);
                }

                targetTextRange = node.GetAutoCompleteTextRange(caret);
            }

            if (itemlist.Count == 0)
            {
                return(null);
            }

            var memberlist = new MemberList {
                List = new IntelliPromptMemberListItem[itemlist.Count]
            };

            itemlist.Values.CopyTo(memberlist.List, 0);
            memberlist.TargetTextRange = targetTextRange;
            return(memberlist);
        }
コード例 #8
0
        /// <summary>
        /// Diffs two files and displays the diffed content in a single SyntaxEditor.
        /// </summary>
        /// <param name="editor"></param>
        /// <param name="fileBodyLeft"></param>
        /// <param name="fileBodyRight"></param>
        /// <param name="strikeoutRightLines"></param>
        /// <returns></returns>
        public static bool Perform2WayDiffInSingleEditor(
            ActiproSoftware.SyntaxEditor.SyntaxEditor editor,
            ref string fileBodyLeft,
            ref string fileBodyRight,
            bool strikeoutRightLines)
        {
            string combinedText;

            SlyceMerge.LineSpan[] userLines;
            SlyceMerge.LineSpan[] templateLines;
            SlyceMerge.PerformTwoWayDiff(false, fileBodyLeft, fileBodyRight, out userLines, out templateLines, out combinedText);
            PopulateSyntaxEditor(editor, combinedText, userLines, templateLines, strikeoutRightLines);
            bool filesTheSame = userLines.Length == 0 && templateLines.Length == 0;

            return(filesTheSame);
        }
コード例 #9
0
        /// <summary>
        /// Performs a Diff between two strings and displays them in two SyntaxEditors with offset coloured lines.
        /// </summary>
        /// <param name="editorLeft"></param>
        /// <param name="editorRight"></param>
        /// <param name="fileBodyLeft"></param>
        /// <param name="fileBodyRight"></param>
        /// <returns></returns>
        public static bool Perform2WayDiffInTwoEditors(
            ActiproSoftware.SyntaxEditor.SyntaxEditor editorLeft,
            ActiproSoftware.SyntaxEditor.SyntaxEditor editorRight,
            ref string fileBodyLeft,
            ref string fileBodyRight)
        {
            string combinedText;

            SlyceMerge.LineSpan[] userLines;
            SlyceMerge.LineSpan[] templateLines;
            SlyceMerge.PerformTwoWayDiff(false, fileBodyLeft, fileBodyRight, out userLines, out templateLines, out combinedText);
            Slyce.IntelliMerge.UI.Utility.PopulateSyntaxEditors(editorLeft, editorRight, combinedText, userLines, templateLines);
            bool filesTheSame = userLines.Length == 0 && templateLines.Length == 0;

            return(filesTheSame);
        }
コード例 #10
0
ファイル: NavigationBar.cs プロジェクト: victorzhangl/SLED
        private void SetEditor(ActiproSoftware.SyntaxEditor.SyntaxEditor editor)
        {
            if (null != m_editor)
            {
                SetDocument(null);
                m_editor.DocumentChanged  -= DocumentChanged;
                m_editor.SelectionChanged -= SelectionChanged;
            }

            m_editor = editor;

            if (m_editor != null)
            {
                m_editor.DocumentChanged  += DocumentChanged;
                m_editor.SelectionChanged += SelectionChanged;
                SetDocument(editor.Document);
            }
        }
コード例 #11
0
        /// <summary>
        /// Provides the core functionality to show an IntelliPrompt member list based on the current context in a <see cref="SyntaxEditor"/>.
        /// </summary>
        /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> that will display the IntelliPrompt member list.</param>
        /// <param name="completeWord">Whether to complete the word.</param>
        /// <returns>
        /// <c>true</c> if an auto-complete occurred or if an IntelliPrompt member list is displayed; otherwise, <c>false</c>.
        /// </returns>
        private bool ShowIntelliPromptMemberList(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, bool completeWord)
        {
            // Remove any pending tasks to display the IntelliPrompt member list
            m_plugin.TaskQueue.RemoveTasks(m_memberListKey);

            // Add a new tasks
            m_plugin.TaskQueue.AddTask(() =>
            {
                MemberList list = BuildMemberList(syntaxEditor);
                if (null != list)
                {
                    // Queue a task on the UI thread to display the member list
                    m_plugin.TaskQueue.AddTask(() => PresentMemberList(list, syntaxEditor, completeWord), TaskQueue.Thread.UI);
                }
            }, TaskQueue.Thread.Worker, m_memberListKey);

            return(false);
        }
コード例 #12
0
        public SimpleSyntaxEditor(string text, SyntaxLanguageStyle language)
        {
            ActiproSoftware.SyntaxEditor.SyntaxEditor editor = new ActiproSoftware.SyntaxEditor.SyntaxEditor {
                Dock = DockStyle.Fill
            };
            editor.set_IndicatorMarginVisible(false);
            editor.set_ScrollBarType(0);
            this._editor = editor;
            base.Controls.Add(this._editor);
            try
            {
                this.Font = new Font("Consolas", 10f);
                if (this.Font.Name != "Consolas")
                {
                    this.Font = new Font("Courier New", 10f);
                }
            }
            catch
            {
            }
            string name = language.ToString();

            if (name == "VB")
            {
                name = name + "DotNet";
            }
            if (language != SyntaxLanguageStyle.None)
            {
                this._editor.get_Document().set_Language(DocumentManager.GetDynamicLanguage(name, SystemColors.Window.GetBrightness()));
                this._editor.get_Document().get_Outlining().set_Mode(2);
                this._editor.set_BracketHighlightingVisible(true);
            }
            this._editor.get_Document().set_ReadOnly(true);
            VisualStudio2005SyntaxEditorRenderer renderer = new VisualStudio2005SyntaxEditorRenderer();
            SimpleBorder border = new SimpleBorder();

            border.set_Style(0);
            renderer.set_Border(border);
            VisualStudio2005SyntaxEditorRenderer renderer2 = renderer;

            this._editor.set_Renderer(renderer2);
            this.Text = text;
        }
コード例 #13
0
        internal void OnUserAction(UserAction userAction, ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
        {
            if (OpenAndSelectHandler == null)
            {
                return;
            }

            if ((userAction != m_lastUserAction) ||
                (syntaxEditor != m_lastUserActionEditor))
            {
                m_lastUserAction       = userAction;
                m_lastUserActionEditor = syntaxEditor;
                StoreCurrentPosition();
            }

            string path = syntaxEditor.Document.Filename;
            ISyntaxEditorTextRange position = new SyntaxEditorTextRange(syntaxEditor.SelectedView.Selection.TextRange);

            SetCurrentPosition(() => OpenAndSelectHandler(path, position));
        }
コード例 #14
0
 protected void SetCanEditFlags(Control c, out bool canUndo, out bool canRedo, out bool canCopy, out bool canCut, out bool canPaste)
 {
     canPaste = false;
     canCut   = false;
     canCopy  = false;
     canRedo  = false;
     canUndo  = false;
     if (c is TextBoxBase)
     {
         TextBoxBase base2 = (TextBoxBase)c;
         canUndo = base2.CanUndo;
         canCopy = base2.SelectionLength > 0;
         canCut  = (base2.SelectionLength > 0) && !base2.ReadOnly;
         bool flag = false;
         try
         {
             flag = Clipboard.ContainsData(DataFormats.Text);
         }
         catch
         {
         }
         canPaste = !base2.ReadOnly && flag;
     }
     if (c is RichTextBox)
     {
         canRedo = ((RichTextBox)c).CanRedo;
     }
     if (c is DataGridView)
     {
         canCopy = ((DataGridView)c).SelectedCells.Count > 0;
     }
     if (c is ActiproSoftware.SyntaxEditor.SyntaxEditor)
     {
         ActiproSoftware.SyntaxEditor.SyntaxEditor editor = (ActiproSoftware.SyntaxEditor.SyntaxEditor)c;
         canUndo  = editor.get_Document().get_UndoRedo().get_CanUndo();
         canRedo  = editor.get_Document().get_UndoRedo().get_CanRedo();
         canCopy  = editor.get_SelectedView().get_SelectedText().Length > 0;
         canCut   = editor.get_SelectedView().get_CanDelete();
         canPaste = editor.get_SelectedView().get_CanPaste();
     }
 }
コード例 #15
0
        /// <summary>
        /// Displays IntelliPrompt quick info in a <see cref="SyntaxEditor"/> based on the current context.
        /// </summary>
        /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> that will display the IntelliPrompt quick info.</param>
        /// <returns>
        /// <c>true</c> if IntelliPrompt quick info is displayed; otherwise, <c>false</c>.
        /// </returns>
        /// <remarks>
        /// Only call this method if the <see cref="IntelliPromptQuickInfoSupported"/> property is set to <c>true</c>.
        /// </remarks>
        public override bool ShowIntelliPromptQuickInfo(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
        {
            int offset = syntaxEditor.Caret.Offset;

            // Get the info for the context at the caret
            string quickInfo = GetQuickInfo(syntaxEditor, ref offset);

            // No info was found... try the offset right before the caret
            if (offset > 0)
            {
                offset    = syntaxEditor.Caret.Offset - 1;
                quickInfo = GetQuickInfo(syntaxEditor, ref offset);
            }

            // Show the quick info if there is any
            if (quickInfo != null)
            {
                syntaxEditor.IntelliPrompt.QuickInfo.Show(offset, quickInfo);
                return(true);
            }

            return(false);
        }
コード例 #16
0
        protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
        {
            string str = e.get_Trigger().get_Key();

            if ((str != null) && (str == "XMLCommentTagListTrigger"))
            {
                IntelliPromptMemberList list = syntaxEditor.get_IntelliPrompt().get_MemberList();
                list.ResetAllowedCharacters();
                list.set_ImageList(ActiproSoftware.SyntaxEditor.SyntaxEditor.get_ReflectionImageList());
                list.Clear();
                list.Add(new IntelliPromptMemberListItem("c", 0x33, "Indicates that text within the tag should be marked as code.  Use &lt;code&gt; to indicate multiple lines as code."));
                list.Add(new IntelliPromptMemberListItem("code", 0x33, "Indicates multiple lines as code. Use &lt;c&gt; to indicate that text within a description should be marked as code."));
                list.Add(new IntelliPromptMemberListItem("example", 0x33, "Specifies an example of how to use a method or other library member."));
                list.Add(new IntelliPromptMemberListItem("exception", 0x33, "Specifies which exceptions a class can throw.", "exception cref=\"", "\""));
                list.Add(new IntelliPromptMemberListItem("include", 0x33, "Refers to comments in another file that describe the types and members in your source code.", "include file='", "' path='[@name=\"\"]'/>"));
                list.Add(new IntelliPromptMemberListItem("list", 0x33, "Provides a container for list items.", "list type=\"", "\""));
                list.Add(new IntelliPromptMemberListItem("listheader", 0x33, "Defines the heading row of either a table or definition list."));
                list.Add(new IntelliPromptMemberListItem("item", 0x33, "Defines an item in a table or definition list."));
                list.Add(new IntelliPromptMemberListItem("term", 0x33, "A term to define, which will be defined in text."));
                list.Add(new IntelliPromptMemberListItem("description", 0x33, "Either an item in a bullet or numbered list or the definition of a term."));
                list.Add(new IntelliPromptMemberListItem("para", 0x33, "Provides a paragraph container."));
                list.Add(new IntelliPromptMemberListItem("param", 0x33, "Describes one of the parameters for the method.", "param name=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("paramref", 0x33, "Indicates that a word is a parameter.", "paramref name=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("permission", 0x33, "Documents the access of a member.", "permission cref=\"", "\""));
                list.Add(new IntelliPromptMemberListItem("remarks", 0x33, "Specifies overview information about a class or other type."));
                list.Add(new IntelliPromptMemberListItem("returns", 0x33, "Describes the return value for a method declaration."));
                list.Add(new IntelliPromptMemberListItem("see", 0x33, "Specifies a link from within text.", "see cref=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("seealso", 0x33, "Specifies the text that you might want to appear in a See Also section.", "seealso cref=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("summary", 0x33, "Describes a member for a type."));
                list.Add(new IntelliPromptMemberListItem("value", 0x33, "Describes the value for a property declaration."));
                if (list.get_Count() > 0)
                {
                    list.Show();
                }
            }
        }
コード例 #17
0
 protected void miEdit_Popup(object sender, EventArgs e)
 {
     if ((this.Site == null) || !this.Site.DesignMode)
     {
         bool    flag;
         bool    flag2;
         bool    flag3;
         bool    flag4;
         bool    flag5;
         bool    flag6;
         Control c = null;
         if (flag = (this.AllowForwarding && (MainForm.Instance != null)) && MainForm.Instance.ApplyEditToPlugin)
         {
             flag6 = flag5 = flag4 = flag3 = flag2 = true;
         }
         else
         {
             c = this.GetActiveControl();
             this.SetCanEditFlags(c, out flag6, out flag5, out flag4, out flag3, out flag2);
         }
         if (this.miUndo != null)
         {
             this.miUndo.Enabled = flag6;
         }
         if (this.miRedo != null)
         {
             this.miRedo.Enabled = flag5;
         }
         if (this.miCopy != null)
         {
             this.miCopy.Enabled = flag4;
         }
         if (this.miCopyPlain != null)
         {
             this.miCopyPlain.Enabled = flag4 && !flag;
         }
         if (this.miCopyMarkdown != null)
         {
             this.miCopyMarkdown.Enabled = flag4 && !flag;
         }
         if (this.miCut != null)
         {
             this.miCut.Enabled = flag3;
         }
         if (this.miPaste != null)
         {
             this.miPaste.Enabled = flag2;
         }
         this.miUndo.Text = "&Undo";
         this.miRedo.Text = "&Redo";
         if (!flag)
         {
             RichTextBox box = c as RichTextBox;
             if (box != null)
             {
                 if (this.miUndo != null)
                 {
                     this.miUndo.Text = this.miUndo.Text + " " + ((box.UndoActionName != "Unknown") ? box.UndoActionName : "");
                 }
                 if (this.miRedo != null)
                 {
                     this.miRedo.Text = this.miRedo.Text + " " + ((box.RedoActionName != "Unknown") ? box.RedoActionName : "");
                 }
             }
             ActiproSoftware.SyntaxEditor.SyntaxEditor editor = c as ActiproSoftware.SyntaxEditor.SyntaxEditor;
             if (editor != null)
             {
                 try
                 {
                     if ((this.miUndo != null) && this.miUndo.Enabled)
                     {
                         this.miUndo.Text = this.miUndo.Text + " " + editor.get_Document().get_UndoRedo().get_UndoStack().GetName(editor.get_Document().get_UndoRedo().get_UndoStack().get_Count() - 1);
                     }
                     if ((this.miRedo != null) && this.miRedo.Enabled)
                     {
                         this.miRedo.Text = this.miRedo.Text + " " + editor.get_Document().get_UndoRedo().get_RedoStack().GetName(editor.get_Document().get_UndoRedo().get_RedoStack().get_Count() - 1);
                     }
                 }
                 catch
                 {
                 }
             }
         }
     }
 }
コード例 #18
0
        /// <summary>
        /// Presents the parameter info prompt to the user
        /// </summary>
        /// <param name="syntaxEditor"></param>
        /// <returns></returns>
        private bool ShowIntelliPromptParameterInfoImmediate(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
        {
            // Initialize the parameter info
            syntaxEditor.IntelliPrompt.ParameterInfo.Hide();
            syntaxEditor.IntelliPrompt.ParameterInfo.Info.Clear();
            syntaxEditor.IntelliPrompt.ParameterInfo.SelectedIndex = 0;

            // Get the compilation unit
            var cu = syntaxEditor.Document.SemanticParseData as CompilationUnit;

            if (cu == null)
            {
                return(false);
            }

            // Move back to the last open bracket
            int        caret  = syntaxEditor.Caret.Offset;
            TextStream stream = syntaxEditor.Document.GetTextStream(caret);

            stream.GoToPreviousTokenWithID(LuatTokenId.OpenParenthesis);

            // Find the argument list the caret is within
            var          arguments = cu.FindNodeRecursive <ArgumentList>(stream.Offset);
            ArgumentList next      = arguments;

            while (null != next && false == arguments.InsideBrackets(caret))
            {
                arguments = next;
                next      = next.FindAncestor <ArgumentList>();
            }

            if (arguments == null)
            {
                return(false);
            }

            var call = arguments.ParentNode as FunctionCall;

            if (call == null)
            {
                throw new Exception("ArgumentList does not have FunctionCall as parent");
            }

            // Configure the parameter info
            var textRange = new TextRange(arguments.ListTextRange.StartOffset, arguments.ListTextRange.EndOffset + 1);

            IntelliPromptParameterInfo pi = syntaxEditor.IntelliPrompt.ParameterInfo;

            pi.ValidTextRange          = textRange;
            pi.CloseDelimiterCharacter = ')';
            pi.UpdateParameterIndex();
            pi.HideOnParentFormDeactivate = true;

            var functions = new List <LuatValue>();

            foreach (var value in call.ResolvedFunctions)
            {
                if (false == value.Type is LuatTypeFunction)
                {
                    continue;
                }

                functions.Merge(value);

                pi.Info.Add(GetQuickInfoForFunctionCall(value, pi.ParameterIndex));
            }

            // Store the function types in the context
            pi.Context = functions.ToArray();

            // Show the parameter info
            pi.Show(caret);

            return(false);
        }
コード例 #19
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="editorLeft"></param>
        /// <param name="editorRight"></param>
        /// <param name="fileBodyLeft"></param>
        /// <param name="fileBodyRight"></param>
        /// <returns>Returns true if files the same, false if they differ</returns>
        public static bool PerformDiff(ActiproSoftware.SyntaxEditor.SyntaxEditor editorLeft, ActiproSoftware.SyntaxEditor.SyntaxEditor editorRight, ref string fileBodyLeft, ref string fileBodyRight)
        {
            bool filesTheSame = true;

            editorLeft.Text  = "";
            editorRight.Text = "";
            string file1 = fileBodyLeft;
            string file2 = fileBodyRight;

            // Performs a line-by-line, case-insensitive comparison.
            string[] arrFile1 = file1.Split('\n');
            string[] arrFile2 = file2.Split('\n');
            Diff     diff     = new Diff(arrFile1, arrFile2, true, false);

            foreach (Diff.Hunk hunk in diff)
            {
                int   lineMismatch = hunk.Right.Count - hunk.Left.Count;
                Color leftCol;
                Color rightCol;
                bool  iii = hunk.Same;

                if (!hunk.Same)
                {
                    filesTheSame = false;
                }

                if (hunk.Same)
                {
                    leftCol  = Color.White;
                    rightCol = Color.White;
                }
                else if (lineMismatch < 0)
                {
                    leftCol  = ColourNewGen;
                    rightCol = Color.Silver;
                }
                else
                {
                    leftCol  = Color.Silver;
                    rightCol = leftCol = ColourUser;
                }
                for (int i = hunk.Left.Start; i <= hunk.Left.End; i++)
                {
                    string leftLine = arrFile1[i];

                    if (!hunk.Same)
                    {
                        leftCol = ColourNewGen;
                        editorLeft.Document.AppendText(arrFile1[i]);

                        if (editorLeft.Document.Lines.Count > 1)
                        {
                            editorLeft.Document.Lines[editorLeft.Document.Lines.Count - 2].BackColor = leftCol;
                        }
                    }
                    else
                    {
                        editorLeft.Document.AppendText(arrFile1[i]);

                        if (editorLeft.Document.Lines.Count > 1)
                        {
                            editorLeft.Document.Lines[editorLeft.Document.Lines.Count - 2].BackColor = leftCol;
                        }
                    }
                }
                for (int i = hunk.Right.Start; i <= hunk.Right.End; i++)
                {
                    string rightLine = arrFile2[i];

                    if (!hunk.Same)
                    {
                        leftCol = ColourUser;
                        editorRight.Document.AppendText(arrFile2[i]);

                        if (editorRight.Document.Lines.Count > 2)
                        {
                            editorRight.Document.Lines[editorRight.Document.Lines.Count - 2].BackColor = leftCol;
                        }
                    }
                    else
                    {
                        editorRight.Document.AppendText(arrFile2[i]);

                        if (editorRight.Document.Lines.Count > 1)
                        {
                            editorRight.Document.Lines[editorRight.Document.Lines.Count - 2].BackColor = rightCol;
                        }
                    }
                }
                if (hunk.Left.Count < hunk.Right.Count)
                {
                    for (int i = 0; i < hunk.Right.Count - hunk.Left.Count; i++)
                    {
                        editorLeft.Document.AppendText("" + Environment.NewLine);
                        editorLeft.Document.Lines[editorLeft.Document.Lines.Count - 2].BackColor = Color.Silver;
                    }
                }
                if (hunk.Right.Count < hunk.Left.Count)
                {
                    for (int i = 0; i < hunk.Left.Count - hunk.Right.Count; i++)
                    {
                        editorRight.Document.AppendText("" + Environment.NewLine);
                        editorRight.Document.Lines[editorRight.Document.Lines.Count - 2].BackColor = Color.Silver;
                    }
                }
            }
            return(filesTheSame);
        }
コード例 #20
0
        /// <summary>
        /// Returns the quick info for the <see cref="SyntaxEditor"/> at the specified offset.
        /// </summary>
        /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> to examine.</param>
        /// <param name="offset">The offset to examine.  The offset is updated to the start of the context.</param>
        /// <returns>The quick info for the <see cref="SyntaxEditor"/> at the specified offset.</returns>
        private string GetQuickInfo(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, ref int offset)
        {
            Document document = syntaxEditor.Document;

            // Get the identifier at the offset, if any
            TextStream stream = syntaxEditor.Document.GetTextStream(offset);

            if (!stream.IsAtTokenStart)
            {
                stream.GoToCurrentTokenStart();
            }
            offset = stream.Offset;

            // Check to see if we're over a warning
            SpanIndicatorLayer warningLayer = document.SpanIndicatorLayers[WarningLayerId];

            if (warningLayer != null)
            {
                var sb = new StringBuilder();

                var             range = new TextRange(offset, offset + 1);
                SpanIndicator[] spans = warningLayer.GetIndicatorsForTextRange(range);
                foreach (LuatWarningSpanIndicator span in spans)
                {
                    LuatWarning[] warnings = span.Warnings.Filter(warning => warning.TextRange.OverlapsWith(range));

                    var groupedWarnings = warnings.GroupItems(a => a.Message, a => a.Script);

                    foreach (KeyValuePair <string, LuatScript[]> groupedWarning in groupedWarnings)
                    {
                        if (sb.Length > 0)
                        {
                            sb.Append("<br /><br />");
                        }

                        sb.Append("Context: ");
                        sb.Append("<b>");
                        sb.Append(groupedWarning.Value.ToCommaSeperatedList(a => a.Name));
                        sb.Append("</b>");
                        sb.Append("<br />");

                        sb.Append(groupedWarning.Key);
                    }
                }

                if (sb.Length > 0)
                {
                    return(sb.ToString());
                }
            }

            // Get the containing node
            var cu = syntaxEditor.Document.SemanticParseData as CompilationUnit;

            if (cu == null)
            {
                return(null);
            }

            var qi = cu.FindNodeRecursive <IQuickInfoProvider>(stream.Offset);

            if (qi == null)
            {
                return(null);
            }

            return(FormatText(qi.QuickInfo));
        }
コード例 #21
0
        protected override void OnSyntaxEditorSelectionChanged(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, SelectionEventArgs e)
        {
            Document document = syntaxEditor.Document;

            SpanIndicatorLayer referenceLayer = document.SpanIndicatorLayers[ReferenceLayerId];

            if (referenceLayer == null)
            {
                referenceLayer = new SpanIndicatorLayer(ReferenceLayerId, ReferenceLayerPriority);
                document.SpanIndicatorLayers.Add(referenceLayer);
            }

            SpanIndicatorLayer assignmentLayer = document.SpanIndicatorLayers[AssignmentLayerId];

            if (assignmentLayer == null)
            {
                assignmentLayer = new SpanIndicatorLayer(AssignmentLayerId, AssignmentLayerPriority);
                document.SpanIndicatorLayers.Add(assignmentLayer);
            }

            m_plugin.TaskQueue.AddTask(() =>
            {
                referenceLayer.Clear();
                assignmentLayer.Clear();

                var cu = document.SemanticParseData as CompilationUnit;
                if (cu == null)
                {
                    return;
                }

                var expression = cu.FindNodeRecursive <Expression>(e.Selection.StartOffset);
                if (expression == null)
                {
                    return;
                }

                string path = System.IO.Path.GetFullPath(document.Filename);

                foreach (LuatValue value in expression.ResolvedValues.Values)
                {
                    var variable = value as LuatVariable;
                    if (null != variable)
                    {
                        foreach (LuatValue.IReference reference in value.References)
                        {
                            if (path == System.IO.Path.GetFullPath(reference.Path))
                            {
                                referenceLayer.Add(new HighlightingStyleSpanIndicator(null, ReferenceStyle), ((SyntaxEditorTextRange)reference.TextRange).ToTextRange(), false);
                            }
                        }
                        foreach (LuatValue.IReference assignment in variable.Assignments)
                        {
                            if (path == System.IO.Path.GetFullPath(assignment.Path))
                            {
                                assignmentLayer.Add(new HighlightingStyleSpanIndicator(null, AssignmentStyle), ((SyntaxEditorTextRange)assignment.TextRange).ToTextRange(), false);
                            }
                        }
                    }
                }
            }, TaskQueue.Thread.Worker);

            base.OnSyntaxEditorSelectionChanged(syntaxEditor, e);
        }
コード例 #22
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="editor"></param>
 /// <param name="text"></param>
 /// <param name="lines1"></param>
 /// <param name="lines2"></param>
 public static void PopulateSyntaxEditor(ActiproSoftware.SyntaxEditor.SyntaxEditor editor, string text, SlyceMerge.LineSpan[] lines1, SlyceMerge.LineSpan[] lines2)
 {
     PopulateSyntaxEditor(editor, text, lines1, lines2, false);
 }
コード例 #23
0
        /// <summary>
        /// Occurs before a <see cref="SyntaxEditor.KeyTyped"/> event is raised
        /// for a <see cref="SyntaxEditor"/> that has a <see cref="Document"/> using this language.
        /// </summary>
        /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> that will raise the event.</param>
        /// <param name="e">An <c>KeyTypedEventArgs</c> that contains the event data.</param>
        protected override void OnSyntaxEditorKeyTyped(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, KeyTypedEventArgs e)
        {
            m_timeLastKey = DateTime.Now;

            if (e.KeyData == Keys.Up ||
                e.KeyData == Keys.Down ||
                e.KeyData == Keys.Left ||
                e.KeyData == Keys.Right ||
                e.KeyData == Keys.PageUp ||
                e.KeyData == Keys.PageDown ||
                e.KeyData == Keys.End ||
                e.KeyData == Keys.Home)
            {
                m_plugin.OnUserAction(LuaIntellisenseBroker.UserAction.MovedCaret, syntaxEditor);
            }
            else if (e.KeyChar != 0 ||
                     e.KeyData == Keys.Delete ||
                     e.KeyData == Keys.Enter ||
                     e.KeyData == Keys.Back)
            {
                m_plugin.OnUserAction(LuaIntellisenseBroker.UserAction.Typed, syntaxEditor);
            }

            // Prevent overzealous auto completion
            if (0 != e.KeyChar && false == Char.IsLetterOrDigit(e.KeyChar))
            {
                syntaxEditor.IntelliPrompt.MemberList.Abort();
            }

            switch (e.KeyChar)
            {
            default:
                if (Char.IsLetter(e.KeyChar))
                {
                    ShowIntelliPromptMemberList(syntaxEditor);
                }
                break;

            case '.':
            case ':':
                // Show the parameter info for code
                ShowIntelliPromptMemberList(syntaxEditor);
                break;

            case '(':
                ShowIntelliPromptParameterInfo(syntaxEditor);
                break;

            case ')':
                ShowIntelliPromptParameterInfo(syntaxEditor);
                break;

            case ',':
                if ((!syntaxEditor.IntelliPrompt.ParameterInfo.Visible) && (syntaxEditor.SelectedView.GetCurrentToken().LexicalState == LexicalStates["DefaultState"]))
                {
                    // Show the parameter info for the context level if parameter info is not already displayed
                    ShowIntelliPromptParameterInfo(syntaxEditor);
                }
                break;
            }
        }
コード例 #24
0
        protected override void OnSyntaxEditorViewMouseDown(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, EditorViewMouseEventArgs e)
        {
            m_plugin.OnUserAction(LuaIntellisenseBroker.UserAction.MovedCaret, syntaxEditor);

            base.OnSyntaxEditorViewMouseDown(syntaxEditor, e);
        }
コード例 #25
0
        protected override void OnSyntaxEditorIntelliPromptParameterInfoParameterIndexChanged(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, EventArgs e)
        {
            IntelliPromptParameterInfo pi = syntaxEditor.IntelliPrompt.ParameterInfo;

            if (UpdateParameterInfoText(pi))
            {
                syntaxEditor.IntelliPrompt.ParameterInfo.MeasureAndResize(pi.Bounds.Location);
            }
        }
コード例 #26
0
        private void CompleteElementTag(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, int offset)
        {
            string     str        = null;
            TextStream textStream = syntaxEditor.get_Document().GetTextStream(offset);

            if (textStream.GoToPreviousToken() && ((textStream.get_Token().get_Key() == "StartTagEndToken") && ((offset - textStream.get_Offset()) == 1)))
            {
                bool flag = false;
                while (textStream.GoToPreviousToken())
                {
                    string str2 = textStream.get_Token().get_Key();
                    if (str2 != null)
                    {
                        if (!(str2 == "StartTagNameToken"))
                        {
                            if ((str2 == "StartTagStartToken") || (str2 == "EndTagEndToken"))
                            {
                                return;
                            }
                        }
                        else
                        {
                            str  = textStream.get_TokenText().Trim();
                            flag = true;
                        }
                    }
                    if (flag)
                    {
                        break;
                    }
                }
                if (str != null)
                {
                    textStream.set_Offset(offset);
                    flag = false;
                    while (!textStream.get_IsAtDocumentEnd())
                    {
                        switch (textStream.get_Token().get_Key())
                        {
                        case "EndTagDefaultToken":
                            if (str == textStream.get_TokenText().Trim())
                            {
                                return;
                            }
                            flag = true;
                            break;

                        case "StartTagStartToken":
                        case "EndTagEndToken":
                            flag = true;
                            break;
                        }
                        if (flag)
                        {
                            break;
                        }
                        textStream.GoToNextToken();
                    }
                    syntaxEditor.get_SelectedView().InsertSurroundingText(0, null, "</" + str + ">");
                }
            }
        }
コード例 #27
0
        /// <summary>
        /// Populates two Actipro SyntaxEditors with diff-highlighted text.
        /// </summary>
        /// <param name="editor1">Actipro SyntaxEditor</param>
        /// <param name="editor2">Actipro SyntaxEditor</param>
        /// <param name="text">Fully combined text.</param>
        /// <param name="lines1">Lines unique to the left file.</param>
        /// <param name="lines2">Lines unique to the right file.</param>
        public static void PopulateSyntaxEditors(
            ActiproSoftware.SyntaxEditor.SyntaxEditor editor1,
            ActiproSoftware.SyntaxEditor.SyntaxEditor editor2,
            string text,
            SlyceMerge.LineSpan[] lines1,
            SlyceMerge.LineSpan[] lines2)
        {
            editor1.Text = text;
            editor2.Text = text;

            for (int i = 0; i < lines1.Length; i++)
            {
                for (int lineCounter = lines1[i].StartLine; lineCounter <= lines1[i].EndLine; lineCounter++)
                {
                    editor1.Document.Lines[lineCounter].BackColor = ColourNewGen;
                    editor2.Document.Lines[lineCounter].BackColor = Color.LightGray;
                    editor2.Document.DeleteText(ActiproSoftware.SyntaxEditor.DocumentModificationType.Delete, editor2.Document.Lines[lineCounter].StartOffset, editor2.Document.Lines[lineCounter].Length);
                }
            }
            for (int i = 0; i < lines2.Length; i++)
            {
                for (int lineCounter = lines2[i].StartLine; lineCounter <= lines2[i].EndLine; lineCounter++)
                {
                    editor2.Document.Lines[lineCounter].BackColor = ColourNewGen;
                    editor1.Document.Lines[lineCounter].BackColor = Color.LightGray;
                    editor1.Document.DeleteText(ActiproSoftware.SyntaxEditor.DocumentModificationType.Delete, editor1.Document.Lines[lineCounter].StartOffset, editor1.Document.Lines[lineCounter].Length);
                }
            }
            // Compact the displays
            int lineCount1 = 0;
            int lineCount2 = 0;

            for (int i = editor1.Document.Lines.Count - 1; i >= -1; i--)
            {
                Color lineColor = Color.Empty;

                if (i >= 0)
                {
                    lineColor = editor1.Document.Lines[i].BackColor;
                }
                if (lineColor == Color.Empty && (lineCount1 + lineCount2) > 0)
                {
                    // Process counted lines
                    int startIndex         = i + 1;
                    int condensedLineCount = Math.Max(lineCount1, lineCount2);
                    int numLinesToRemove   = lineCount1 + lineCount2 - condensedLineCount;
                    int lastLine           = startIndex + lineCount1 + lineCount2 - 1;

                    //if (numLinesToRemove > 0)
                    //{
                    //   // Walk backward when processing Left
                    //   for (int removeIndex = lastLine; removeIndex >= startIndex + condensedLineCount; removeIndex--)
                    //   {
                    //      editor1.Document.Lines[removeIndex].BackColor = editor1.Document.Lines[removeIndex + 1].BackColor;
                    //      editor1.Document.Lines.RemoveAt(removeIndex);

                    //      int newPos = lastLine - condensedLineCount - (lastLine - removeIndex);
                    //      string gg = editor2.Document.Lines[removeIndex].Text;
                    //      editor2.Document.Lines[newPos].Text = editor2.Document.Lines[removeIndex].Text;
                    //      editor2.Document.Lines[newPos].BackColor = editor2.Document.Lines[removeIndex].BackColor;
                    //      editor2.Document.Lines[removeIndex].BackColor = editor2.Document.Lines[removeIndex + 1].BackColor;
                    //      editor2.Document.Lines.RemoveAt(removeIndex);
                    //   }
                    //}
                    numLinesToRemove = Math.Min(lineCount1, lineCount2);
                    int linesRemoved1 = 0;
                    int linesRemoved2 = 0;

                    for (int x = startIndex + (lineCount1 + lineCount2); x >= startIndex; x--)
                    {
                        if (linesRemoved1 < numLinesToRemove &&
                            editor1.Document.Lines[x].BackColor == Color.LightGray)
                        {
                            editor1.Document.Lines[x].BackColor = editor1.Document.Lines[x + 1].BackColor;
                            editor1.Document.Lines.RemoveAt(x);
                            linesRemoved1++;
                        }
                        if (linesRemoved2 < numLinesToRemove &&
                            editor2.Document.Lines[x].BackColor == Color.LightGray)
                        {
                            editor2.Document.Lines[x].BackColor = editor2.Document.Lines[x + 1].BackColor;
                            editor2.Document.Lines.RemoveAt(x);
                            linesRemoved2++;
                        }
                    }
                    if (linesRemoved1 != linesRemoved2)
                    {
                        throw new Exception("Non-equal number of lines removed.");
                    }

                    //if (lineCount1 > lineCount2)
                    //{
                    //   // Remove trailing gray lines from editor2
                    //   for (int removeIndex = startIndex; removeIndex <= startIndex + numLinesToRemove; removeIndex++)
                    //   {
                    //      string q111 = editor1.Document.Lines[removeIndex].Text;
                    //      string gg = editor2.Document.Lines[removeIndex].Text;
                    //      editor2.Document.Lines.RemoveAt(removeIndex);
                    //   }
                    //}
                    //else if (lineCount2 > lineCount1)
                    //{
                    //   // Remove trailing gray lines from editor1
                    //   for (int removeIndex = lastLine; removeIndex >= startIndex + condensedLineCount; removeIndex--)
                    //   {
                    //      string q111 = editor1.Document.Lines[removeIndex].Text;
                    //      string gg = editor2.Document.Lines[removeIndex].Text;
                    //      editor1.Document.Lines.RemoveAt(removeIndex);
                    //   }
                    //}
                    lineCount1 = 0;
                    lineCount2 = 0;
                    continue;
                }
                else if (lineColor == ColourNewGen)
                {
                    lineCount1++;
                }
                else if (lineColor == Color.LightGray)
                {
                    lineCount2++;
                }
            }
            // Line Marker Colours, Strikethroughs
            string             layerKey          = "Diff";
            string             indicatorKey      = "Diff";
            SpanIndicatorLayer layer             = new SpanIndicatorLayer(layerKey, 1000);
            HighlightingStyle  highlightingStyle = new HighlightingStyle("Diff", null, Color.Empty, Color.Empty);

            highlightingStyle.StrikeOutStyle = HighlightingStyleLineStyle.Solid;
            highlightingStyle.StrikeOutColor = Color.Red;
            editor1.Document.SpanIndicatorLayers.Add(layer);

            int lineNumber1 = 1;
            int lineNumber2 = 1;

            for (int i = 0; i < editor1.Document.Lines.Count; i++)
            {
                // Set the line marker colours
                if (editor1.Document.Lines[i].BackColor == Color.LightGray &&
                    editor2.Document.Lines[i].BackColor == ColourNewGen)
                {
                    if (i > 0 && editor2.Document.Lines[i - 1].SelectionMarginMarkColor == changedMarkerColour)
                    {
                        editor2.Document.Lines[i].SelectionMarginMarkColor = changedMarkerColour;
                        editor2.Document.Lines[i].BackColor = Color.LightYellow;
                    }
                    else
                    {
                        editor2.Document.Lines[i].SelectionMarginMarkColor = addedMarkerColour;
                        editor2.Document.Lines[i].BackColor = Color.Honeydew;
                    }
                    editor1.Document.Lines[i].BackColor        = Color.WhiteSmoke;
                    editor1.Document.Lines[i].CustomLineNumber = string.Empty;
                    editor2.Document.Lines[i].CustomLineNumber = lineNumber2.ToString();
                    lineNumber2++;
                }
                else if (editor1.Document.Lines[i].BackColor == ColourNewGen &&
                         editor2.Document.Lines[i].BackColor == Color.LightGray)
                {
                    editor2.Document.Lines[i].SelectionMarginMarkColor = deletedMarkerColour;
                    editor1.Document.Lines[i].BackColor        = Color.MistyRose;
                    editor2.Document.Lines[i].BackColor        = Color.WhiteSmoke;
                    editor1.Document.Lines[i].CustomLineNumber = lineNumber1.ToString();
                    editor2.Document.Lines[i].CustomLineNumber = string.Empty;
                    lineNumber1++;
                }
                else if (editor1.Document.Lines[i].BackColor == ColourNewGen &&
                         editor2.Document.Lines[i].BackColor == ColourNewGen)
                {
                    editor2.Document.Lines[i].SelectionMarginMarkColor = changedMarkerColour;
                    editor1.Document.Lines[i].BackColor = Color.LightYellow;
                    editor2.Document.Lines[i].BackColor = Color.LightYellow;
                    layer.Add(new HighlightingStyleSpanIndicator(indicatorKey, highlightingStyle), editor1.Document.Lines[i].TextRange);
                    editor1.Document.Lines[i].CustomLineNumber = lineNumber1.ToString();
                    editor2.Document.Lines[i].CustomLineNumber = lineNumber2.ToString();
                    lineNumber1++;
                    lineNumber2++;
                }
                else
                {
                    editor1.Document.Lines[i].CustomLineNumber = lineNumber1.ToString();
                    editor2.Document.Lines[i].CustomLineNumber = lineNumber2.ToString();
                    lineNumber1++;
                    lineNumber2++;
                }
            }
        }
コード例 #28
0
 private void InitializeComponent()
 {
     this.components = new Container();
     Document document = new Document();
     ComponentResourceManager manager = new ComponentResourceManager(typeof(QueryControl));
     this.splitContainer = new SplitContainer();
     this.panEditor = new Panel();
     this.panError = new Panel();
     this.txtError = new TextBox();
     this.panBottom = new Panel();
     this.panOutput = new PanelEx();
     this.txtSQL = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.statusStrip = new StatusStrip();
     this.lblStatus = new ToolStripStatusLabel();
     this.queryProgressBar = new ToolStripProgressBar();
     this.lblExecTime = new ToolStripStatusLabel();
     this.lblFill = new ToolStripStatusLabel();
     this.lblMiscStatus = new ToolStripStatusLabel();
     this.lblUberCancel = new ToolStripStatusLabel();
     this.lblElapsed = new ToolStripStatusLabel();
     this.lblOptimize = new ToolStripStatusLabel();
     this.tsOutput = new ToolStripEx();
     this.btnArrange = new ToolStripDropDownButton();
     this.miHideResults = new ToolStripMenuItem();
     this.miUndock = new ToolStripMenuItem();
     this.miArrangeVertical = new ToolStripMenuItem();
     this.toolStripMenuItem3 = new ToolStripSeparator();
     this.miScrollStart = new ToolStripMenuItem();
     this.miScrollEnd = new ToolStripMenuItem();
     this.miAutoScroll = new ToolStripMenuItem();
     this.toolStripMenuItem4 = new ToolStripSeparator();
     this.miKeyboardShortcuts = new ToolStripMenuItem();
     this.btnResults = new ToolStripButton();
     this.btnLambda = new ToolStripButton();
     this.btnSql = new ToolStripButton();
     this.btnIL = new ToolStripButton();
     this.btnActivateAutocompletion = new ToolStripButton();
     this.btnAnalyze = new ToolStripDropDownButton();
     this.miOpenSQLQueryNewTab = new ToolStripMenuItem();
     this.miOpenInSSMS = new ToolStripMenuItem();
     this.btnExport = new ToolStripDropDownButton();
     this.btnExportExcelNoFormat = new ToolStripMenuItem();
     this.btnExportExcel = new ToolStripMenuItem();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.btnExportWordNoFormat = new ToolStripMenuItem();
     this.btnExportWord = new ToolStripMenuItem();
     this.toolStripMenuItem1 = new ToolStripSeparator();
     this.btnExportHtml = new ToolStripMenuItem();
     this.btnFormat = new ToolStripDropDownButton();
     this.btn1NestingLevel = new ToolStripMenuItem();
     this.btn2NestingLevels = new ToolStripMenuItem();
     this.btn3NestingLevels = new ToolStripMenuItem();
     this.btnAllNestingLevels = new ToolStripMenuItem();
     this.toolStripMenuItem2 = new ToolStripSeparator();
     this.btnResultFormattingPreferences = new ToolStripMenuItem();
     this.lblDb = new Label();
     this.cboLanguage = new ComboBox();
     this.cboDb = new ComboBox();
     this.lblType = new Label();
     this.panTopControls = new TableLayoutPanel();
     this.btnExecute = new ImageButton();
     this.btnCancel = new ImageButton();
     this.llDbUseCurrent = new FixedLinkLabel();
     this.lblSyncDb = new Label();
     this.btnText = new ClearButton();
     this.btnGrids = new ClearButton();
     this.panTop = new Panel();
     this.panCloseButton = new Panel();
     this.btnPin = new ClearButton();
     this.btnClose = new ClearButton();
     this.toolTip = new ToolTip(this.components);
     this.panMain = new Panel();
     this.splitContainer.Panel1.SuspendLayout();
     this.splitContainer.Panel2.SuspendLayout();
     this.splitContainer.SuspendLayout();
     this.panEditor.SuspendLayout();
     this.panError.SuspendLayout();
     this.panBottom.SuspendLayout();
     this.panOutput.SuspendLayout();
     this.statusStrip.SuspendLayout();
     this.tsOutput.SuspendLayout();
     this.panTopControls.SuspendLayout();
     this.panTop.SuspendLayout();
     this.panCloseButton.SuspendLayout();
     this.panMain.SuspendLayout();
     base.SuspendLayout();
     this.splitContainer.Dock = DockStyle.Fill;
     this.splitContainer.Location = new Point(0, 0);
     this.splitContainer.Name = "splitContainer";
     this.splitContainer.Orientation = Orientation.Horizontal;
     this.splitContainer.Panel1.Controls.Add(this.panEditor);
     this.splitContainer.Panel2.Controls.Add(this.panBottom);
     this.splitContainer.Size = new Size(0x2cf, 0x192);
     this.splitContainer.SplitterDistance = 0xc5;
     this.splitContainer.SplitterWidth = 5;
     this.splitContainer.TabIndex = 0;
     this.splitContainer.SplitterMoved += new SplitterEventHandler(this.splitContainer_SplitterMoved);
     this.panEditor.Controls.Add(this.panError);
     this.panEditor.Dock = DockStyle.Fill;
     this.panEditor.Location = new Point(0, 0);
     this.panEditor.Name = "panEditor";
     this.panEditor.Size = new Size(0x2cf, 0xc5);
     this.panEditor.TabIndex = 4;
     this.panError.BackColor = SystemColors.Info;
     this.panError.BorderStyle = BorderStyle.Fixed3D;
     this.panError.Controls.Add(this.txtError);
     this.panError.Dock = DockStyle.Top;
     this.panError.Location = new Point(0, 0);
     this.panError.Name = "panError";
     this.panError.Padding = new Padding(3);
     this.panError.Size = new Size(0x2cf, 0x27);
     this.panError.TabIndex = 3;
     this.panError.Visible = false;
     this.panError.Layout += new LayoutEventHandler(this.panError_Layout);
     this.txtError.BackColor = SystemColors.Info;
     this.txtError.BorderStyle = BorderStyle.None;
     this.txtError.Dock = DockStyle.Fill;
     this.txtError.ForeColor = SystemColors.InfoText;
     this.txtError.Location = new Point(3, 3);
     this.txtError.Margin = new Padding(2);
     this.txtError.Multiline = true;
     this.txtError.Name = "txtError";
     this.txtError.ReadOnly = true;
     this.txtError.Size = new Size(0x2c5, 0x1d);
     this.txtError.TabIndex = 0;
     this.panBottom.BorderStyle = BorderStyle.Fixed3D;
     this.panBottom.Controls.Add(this.panOutput);
     this.panBottom.Controls.Add(this.statusStrip);
     this.panBottom.Controls.Add(this.tsOutput);
     this.panBottom.Dock = DockStyle.Fill;
     this.panBottom.Location = new Point(0, 0);
     this.panBottom.Name = "panBottom";
     this.panBottom.Size = new Size(0x2cf, 200);
     this.panBottom.TabIndex = 0;
     this.panOutput.BorderColor = Color.Empty;
     this.panOutput.Controls.Add(this.txtSQL);
     this.panOutput.Dock = DockStyle.Fill;
     this.panOutput.Location = new Point(0, 0x1a);
     this.panOutput.Name = "panOutput";
     this.panOutput.Size = new Size(0x2cb, 0x92);
     this.panOutput.TabIndex = 1;
     this.panOutput.Layout += new LayoutEventHandler(this.panOutput_Layout);
     this.txtSQL.Dock = DockStyle.Fill;
     this.txtSQL.set_Document(document);
     this.txtSQL.set_IndicatorMarginVisible(false);
     this.txtSQL.Location = new Point(0, 0);
     this.txtSQL.Margin = new Padding(2);
     this.txtSQL.Name = "txtSQL";
     this.txtSQL.set_ScrollBarType(0);
     this.txtSQL.Size = new Size(0x2cb, 0x92);
     this.txtSQL.TabIndex = 0;
     this.statusStrip.Items.AddRange(new ToolStripItem[] { this.lblStatus, this.queryProgressBar, this.lblExecTime, this.lblFill, this.lblMiscStatus, this.lblUberCancel, this.lblElapsed, this.lblOptimize });
     this.statusStrip.Location = new Point(0, 0xac);
     this.statusStrip.Name = "statusStrip";
     this.statusStrip.Size = new Size(0x2cb, 0x18);
     this.statusStrip.SizingGrip = false;
     this.statusStrip.TabIndex = 2;
     this.lblStatus.Name = "lblStatus";
     this.lblStatus.Size = new Size(0x2e, 0x13);
     this.lblStatus.Text = "Ready";
     this.queryProgressBar.Name = "queryProgressBar";
     this.queryProgressBar.Size = new Size(100, 0x12);
     this.queryProgressBar.Style = ProgressBarStyle.Marquee;
     this.queryProgressBar.Visible = false;
     this.lblExecTime.Name = "lblExecTime";
     this.lblExecTime.Size = new Size(0x11, 0x13);
     this.lblExecTime.Text = "  ";
     this.lblExecTime.Visible = false;
     this.lblFill.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.lblFill.Name = "lblFill";
     this.lblFill.Size = new Size(0x7a, 0x13);
     this.lblFill.Spring = true;
     this.lblMiscStatus.Alignment = ToolStripItemAlignment.Right;
     this.lblMiscStatus.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.lblMiscStatus.Name = "lblMiscStatus";
     this.lblMiscStatus.Size = new Size(0x15, 0x13);
     this.lblMiscStatus.Text = "   ";
     this.lblMiscStatus.TextAlign = ContentAlignment.MiddleRight;
     this.lblUberCancel.Alignment = ToolStripItemAlignment.Right;
     this.lblUberCancel.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.lblUberCancel.Name = "lblUberCancel";
     this.lblUberCancel.Size = new Size(0x10a, 0x13);
     this.lblUberCancel.Text = "  Press Ctrl+Shift+F5 to cancel all threads ";
     this.lblUberCancel.TextAlign = ContentAlignment.MiddleRight;
     this.lblUberCancel.Visible = false;
     this.lblElapsed.Alignment = ToolStripItemAlignment.Right;
     this.lblElapsed.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.lblElapsed.Name = "lblElapsed";
     this.lblElapsed.Size = new Size(0x11, 0x13);
     this.lblElapsed.Text = "  ";
     this.lblElapsed.TextAlign = ContentAlignment.MiddleRight;
     this.lblOptimize.BorderSides = ToolStripStatusLabelBorderSides.All;
     this.lblOptimize.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.lblOptimize.ImageScaling = ToolStripItemImageScaling.None;
     this.lblOptimize.ImageTransparentColor = Color.White;
     this.lblOptimize.Margin = new Padding(0, 2, 0, 0);
     this.lblOptimize.Name = "lblOptimize";
     this.lblOptimize.Padding = new Padding(2, 0, 0, 0);
     this.lblOptimize.Size = new Size(0x4e, 0x17);
     this.lblOptimize.Text = "/optimize+";
     this.lblOptimize.MouseHover += new EventHandler(this.lblOptimize_MouseHover);
     this.lblOptimize.Paint += new PaintEventHandler(this.lblOptimize_Paint);
     this.lblOptimize.MouseEnter += new EventHandler(this.lblOptimize_MouseEnter);
     this.lblOptimize.MouseLeave += new EventHandler(this.lblOptimize_MouseLeave);
     this.lblOptimize.MouseDown += new MouseEventHandler(this.lblOptimize_MouseDown);
     this.lblOptimize.Click += new EventHandler(this.lblOptimize_Click);
     this.tsOutput.GripStyle = ToolStripGripStyle.Hidden;
     this.tsOutput.Items.AddRange(new ToolStripItem[] { this.btnArrange, this.btnResults, this.btnLambda, this.btnSql, this.btnIL, this.btnActivateAutocompletion, this.btnAnalyze, this.btnExport, this.btnFormat });
     this.tsOutput.Location = new Point(0, 0);
     this.tsOutput.Name = "tsOutput";
     this.tsOutput.Padding = new Padding(0, 0, 1, 2);
     this.tsOutput.RenderMode = ToolStripRenderMode.System;
     this.tsOutput.Size = new Size(0x2cb, 0x1a);
     this.tsOutput.TabIndex = 0;
     this.tsOutput.Text = "toolStrip1";
     this.tsOutput.MouseEnter += new EventHandler(this.tsOutput_MouseEnter);
     this.btnArrange.DisplayStyle = ToolStripItemDisplayStyle.Image;
     this.btnArrange.DropDownItems.AddRange(new ToolStripItem[] { this.miHideResults, this.miUndock, this.miArrangeVertical, this.toolStripMenuItem3, this.miScrollStart, this.miScrollEnd, this.miAutoScroll, this.toolStripMenuItem4, this.miKeyboardShortcuts });
     this.btnArrange.Image = Resources.DropArrow;
     this.btnArrange.ImageScaling = ToolStripItemImageScaling.None;
     this.btnArrange.Margin = new Padding(0, 1, 3, 2);
     this.btnArrange.Name = "btnArrange";
     this.btnArrange.Padding = new Padding(0, 3, 0, 2);
     this.btnArrange.ShowDropDownArrow = false;
     this.btnArrange.Size = new Size(0x12, 0x15);
     this.btnArrange.DropDownOpening += new EventHandler(this.btnArrange_DropDownOpening);
     this.miHideResults.Name = "miHideResults";
     this.miHideResults.ShortcutKeyDisplayString = "Ctrl+R";
     this.miHideResults.Size = new Size(0x142, 0x18);
     this.miHideResults.Text = "Hide Results Panel";
     this.miHideResults.Click += new EventHandler(this.miHideResults_Click);
     this.miUndock.Name = "miUndock";
     this.miUndock.ShortcutKeyDisplayString = "F8";
     this.miUndock.Size = new Size(0x142, 0x18);
     this.miUndock.Text = "Undock Panel into Second Monitor";
     this.miUndock.Click += new EventHandler(this.miUndock_Click);
     this.miArrangeVertical.Name = "miArrangeVertical";
     this.miArrangeVertical.ShortcutKeyDisplayString = "Ctrl+F8";
     this.miArrangeVertical.Size = new Size(0x142, 0x18);
     this.miArrangeVertical.Text = "Arrange Panel Vertically";
     this.miArrangeVertical.Click += new EventHandler(this.miArrangeVertical_Click);
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new Size(0x13f, 6);
     this.miScrollStart.Name = "miScrollStart";
     this.miScrollStart.ShortcutKeyDisplayString = "Alt+Home";
     this.miScrollStart.Size = new Size(0x142, 0x18);
     this.miScrollStart.Text = "Scroll to Start";
     this.miScrollStart.Click += new EventHandler(this.miScrollStart_Click);
     this.miScrollEnd.Name = "miScrollEnd";
     this.miScrollEnd.ShortcutKeyDisplayString = "Alt+End";
     this.miScrollEnd.Size = new Size(0x142, 0x18);
     this.miScrollEnd.Text = "Scroll to End";
     this.miScrollEnd.Click += new EventHandler(this.miScrollEnd_Click);
     this.miAutoScroll.Name = "miAutoScroll";
     this.miAutoScroll.ShortcutKeyDisplayString = "Ctrl+Shift+E";
     this.miAutoScroll.Size = new Size(0x142, 0x18);
     this.miAutoScroll.Text = "Auto-Scroll Results to End";
     this.miAutoScroll.Click += new EventHandler(this.miAutoScroll_Click);
     this.toolStripMenuItem4.Name = "toolStripMenuItem4";
     this.toolStripMenuItem4.Size = new Size(0x13f, 6);
     this.miKeyboardShortcuts.Name = "miKeyboardShortcuts";
     this.miKeyboardShortcuts.Size = new Size(0x142, 0x18);
     this.miKeyboardShortcuts.Text = "See more keyboard shortcuts...";
     this.miKeyboardShortcuts.Click += new EventHandler(this.miKeyboardShortcuts_Click);
     this.btnResults.Checked = true;
     this.btnResults.CheckState = CheckState.Checked;
     this.btnResults.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnResults.Image = (Image) manager.GetObject("btnResults.Image");
     this.btnResults.ImageTransparentColor = Color.Magenta;
     this.btnResults.Margin = new Padding(0, 0, 0, 1);
     this.btnResults.Name = "btnResults";
     this.btnResults.Size = new Size(0x38, 0x17);
     this.btnResults.Text = "&Results";
     this.btnResults.Click += new EventHandler(this.btnResults_Click);
     this.btnLambda.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnLambda.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnLambda.Image = (Image) manager.GetObject("btnLambda.Image");
     this.btnLambda.ImageTransparentColor = Color.Magenta;
     this.btnLambda.Margin = new Padding(0, 0, 0, 1);
     this.btnLambda.Name = "btnLambda";
     this.btnLambda.Size = new Size(0x1b, 0x17);
     this.btnLambda.Text = " λ ";
     this.btnLambda.Click += new EventHandler(this.btnLambda_Click);
     this.btnSql.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnSql.Image = (Image) manager.GetObject("btnSql.Image");
     this.btnSql.ImageTransparentColor = Color.Magenta;
     this.btnSql.Margin = new Padding(0, 0, 0, 1);
     this.btnSql.Name = "btnSql";
     this.btnSql.Size = new Size(0x26, 0x17);
     this.btnSql.Text = "&SQL";
     this.btnSql.Click += new EventHandler(this.btnSql_Click);
     this.btnIL.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnIL.Image = (Image) manager.GetObject("btnIL.Image");
     this.btnIL.ImageTransparentColor = Color.Magenta;
     this.btnIL.Margin = new Padding(0, 0, 0, 1);
     this.btnIL.Name = "btnIL";
     this.btnIL.Size = new Size(0x20, 0x17);
     this.btnIL.Text = " &IL ";
     this.btnIL.Click += new EventHandler(this.btnIL_Click);
     this.btnActivateAutocompletion.Alignment = ToolStripItemAlignment.Right;
     this.btnActivateAutocompletion.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnActivateAutocompletion.ForeColor = Color.Blue;
     this.btnActivateAutocompletion.Image = (Image) manager.GetObject("btnActivateAutocompletion.Image");
     this.btnActivateAutocompletion.ImageTransparentColor = Color.Magenta;
     this.btnActivateAutocompletion.Margin = new Padding(5, 0, 0, 0);
     this.btnActivateAutocompletion.Name = "btnActivateAutocompletion";
     this.btnActivateAutocompletion.Size = new Size(0xa4, 0x18);
     this.btnActivateAutocompletion.Text = "Activate Autocompletion";
     this.btnActivateAutocompletion.Click += new EventHandler(this.btnActivateAutocompletion_Click);
     this.btnAnalyze.Alignment = ToolStripItemAlignment.Right;
     this.btnAnalyze.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnAnalyze.DropDownItems.AddRange(new ToolStripItem[] { this.miOpenSQLQueryNewTab, this.miOpenInSSMS });
     this.btnAnalyze.Image = (Image) manager.GetObject("btnAnalyze.Image");
     this.btnAnalyze.ImageTransparentColor = Color.Magenta;
     this.btnAnalyze.Margin = new Padding(2, 0, 0, 0);
     this.btnAnalyze.Name = "btnAnalyze";
     this.btnAnalyze.Size = new Size(0x62, 0x18);
     this.btnAnalyze.Text = "A&nalyze SQL";
     this.miOpenSQLQueryNewTab.Image = Resources.New;
     this.miOpenSQLQueryNewTab.Name = "miOpenSQLQueryNewTab";
     this.miOpenSQLQueryNewTab.Size = new Size(0x11d, 0x18);
     this.miOpenSQLQueryNewTab.Text = "Open as SQL Query in New Tab";
     this.miOpenSQLQueryNewTab.Click += new EventHandler(this.miOpenSQLQueryNewTab_Click);
     this.miOpenInSSMS.Image = Resources.SSMS;
     this.miOpenInSSMS.Name = "miOpenInSSMS";
     this.miOpenInSSMS.Size = new Size(0x11d, 0x18);
     this.miOpenInSSMS.Text = "Open in SQL Management Studio";
     this.miOpenInSSMS.Click += new EventHandler(this.miOpenInSSMS_Click);
     this.btnExport.Alignment = ToolStripItemAlignment.Right;
     this.btnExport.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnExport.DropDownItems.AddRange(new ToolStripItem[] { this.btnExportExcelNoFormat, this.btnExportExcel, this.toolStripSeparator1, this.btnExportWordNoFormat, this.btnExportWord, this.toolStripMenuItem1, this.btnExportHtml });
     this.btnExport.ImageTransparentColor = Color.Magenta;
     this.btnExport.Margin = new Padding(2, 0, 0, 0);
     this.btnExport.Name = "btnExport";
     this.btnExport.Size = new Size(0x3d, 0x18);
     this.btnExport.Text = "Ex&port";
     this.btnExportExcelNoFormat.Image = Resources.Excel;
     this.btnExportExcelNoFormat.Name = "btnExportExcelNoFormat";
     this.btnExportExcelNoFormat.Size = new Size(0x115, 0x18);
     this.btnExportExcelNoFormat.Text = "Export to Excel";
     this.btnExportExcelNoFormat.Click += new EventHandler(this.btnExportExcelNoFormat_Click);
     this.btnExportExcel.Image = Resources.Excel;
     this.btnExportExcel.Name = "btnExportExcel";
     this.btnExportExcel.Size = new Size(0x115, 0x18);
     this.btnExportExcel.Text = "Export to Excel With Formatting";
     this.btnExportExcel.Click += new EventHandler(this.btnExportExcel_Click);
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new Size(0x112, 6);
     this.btnExportWordNoFormat.Image = Resources.Word;
     this.btnExportWordNoFormat.Name = "btnExportWordNoFormat";
     this.btnExportWordNoFormat.Size = new Size(0x115, 0x18);
     this.btnExportWordNoFormat.Text = "Export to Word";
     this.btnExportWordNoFormat.Click += new EventHandler(this.btnExportWordNoFormat_Click);
     this.btnExportWord.Image = Resources.Word;
     this.btnExportWord.Name = "btnExportWord";
     this.btnExportWord.Size = new Size(0x115, 0x18);
     this.btnExportWord.Text = "Export to Word With Formatting";
     this.btnExportWord.Click += new EventHandler(this.btnExportWord_Click);
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new Size(0x112, 6);
     this.btnExportHtml.Name = "btnExportHtml";
     this.btnExportHtml.Size = new Size(0x115, 0x18);
     this.btnExportHtml.Text = "Export to HTML";
     this.btnExportHtml.Click += new EventHandler(this.btnExportHtml_Click);
     this.btnFormat.Alignment = ToolStripItemAlignment.Right;
     this.btnFormat.DisplayStyle = ToolStripItemDisplayStyle.Text;
     this.btnFormat.DropDownItems.AddRange(new ToolStripItem[] { this.btn1NestingLevel, this.btn2NestingLevels, this.btn3NestingLevels, this.btnAllNestingLevels, this.toolStripMenuItem2, this.btnResultFormattingPreferences });
     this.btnFormat.ImageTransparentColor = Color.Magenta;
     this.btnFormat.Margin = new Padding(2, 0, 0, 0);
     this.btnFormat.Name = "btnFormat";
     this.btnFormat.Size = new Size(0x42, 0x18);
     this.btnFormat.Text = "Format";
     this.btn1NestingLevel.Name = "btn1NestingLevel";
     this.btn1NestingLevel.ShortcutKeyDisplayString = "Alt+1";
     this.btn1NestingLevel.Size = new Size(0x126, 0x18);
     this.btn1NestingLevel.Text = "Collapse to 1 Nesting Level";
     this.btn1NestingLevel.Click += new EventHandler(this.btn1NestingLevel_Click);
     this.btn2NestingLevels.Name = "btn2NestingLevels";
     this.btn2NestingLevels.ShortcutKeyDisplayString = "Alt+2";
     this.btn2NestingLevels.Size = new Size(0x126, 0x18);
     this.btn2NestingLevels.Text = "Collapse to 2 Nesting Levels";
     this.btn2NestingLevels.Click += new EventHandler(this.btn2NestingLevels_Click);
     this.btn3NestingLevels.Name = "btn3NestingLevels";
     this.btn3NestingLevels.ShortcutKeyDisplayString = "Alt+3";
     this.btn3NestingLevels.Size = new Size(0x126, 0x18);
     this.btn3NestingLevels.Text = "Collapse to 3 Nesting Levels";
     this.btn3NestingLevels.Click += new EventHandler(this.btn3NestingLevels_Click);
     this.btnAllNestingLevels.Name = "btnAllNestingLevels";
     this.btnAllNestingLevels.ShortcutKeyDisplayString = "Alt+0";
     this.btnAllNestingLevels.Size = new Size(0x126, 0x18);
     this.btnAllNestingLevels.Text = "Show All Nesting Levels";
     this.btnAllNestingLevels.Click += new EventHandler(this.btnAllNestingLevels_Click);
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new Size(0x123, 6);
     this.btnResultFormattingPreferences.Name = "btnResultFormattingPreferences";
     this.btnResultFormattingPreferences.Size = new Size(0x126, 0x18);
     this.btnResultFormattingPreferences.Text = "Result Formatting Preferences...";
     this.btnResultFormattingPreferences.Click += new EventHandler(this.btnResultFormattingPreferences_Click);
     this.lblDb.Anchor = AnchorStyles.Left;
     this.lblDb.AutoSize = true;
     this.lblDb.Location = new Point(0x151, 6);
     this.lblDb.Margin = new Padding(0);
     this.lblDb.Name = "lblDb";
     this.lblDb.Size = new Size(60, 15);
     this.lblDb.TabIndex = 4;
     this.lblDb.Text = "&Database";
     this.lblDb.TextAlign = ContentAlignment.MiddleLeft;
     this.cboLanguage.Anchor = AnchorStyles.Left;
     this.cboLanguage.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cboLanguage.FormattingEnabled = true;
     this.cboLanguage.Items.AddRange(new object[] { "C# Expression", "C# Statement(s)", "C# Program", "VB Expression", "VB Statement(s)", "VB Program", "SQL", "ESQL", "F# Expression", "F# Program" });
     this.cboLanguage.Location = new Point(0xc6, 3);
     this.cboLanguage.Margin = new Padding(2, 2, 12, 2);
     this.cboLanguage.Name = "cboLanguage";
     this.cboLanguage.Size = new Size(0x69, 0x15);
     this.cboLanguage.TabIndex = 3;
     this.cboLanguage.TabStop = false;
     this.cboLanguage.SelectionChangeCommitted += new EventHandler(this.cboLanguage_SelectionChangeCommitted);
     this.cboLanguage.Leave += new EventHandler(this.cboType_SelectedIndexChanged);
     this.cboLanguage.Enter += new EventHandler(this.cboType_Enter);
     this.cboLanguage.DropDownClosed += new EventHandler(this.cboType_DropDownClosed);
     this.cboDb.Anchor = AnchorStyles.Right | AnchorStyles.Left;
     this.cboDb.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cboDb.FormattingEnabled = true;
     this.cboDb.Location = new Point(0x18f, 3);
     this.cboDb.Margin = new Padding(2);
     this.cboDb.Name = "cboDb";
     this.cboDb.Size = new Size(0xbb, 0x15);
     this.cboDb.TabIndex = 5;
     this.cboDb.TabStop = false;
     this.cboDb.Leave += new EventHandler(this.cboDb_SelectedIndexChanged);
     this.cboDb.Enter += new EventHandler(this.cboDb_Enter);
     this.cboDb.DropDownClosed += new EventHandler(this.cboDb_DropDownClosed);
     this.cboDb.DropDown += new EventHandler(this.cboDb_DropDown);
     this.lblType.Anchor = AnchorStyles.Left;
     this.lblType.AutoSize = true;
     this.lblType.Location = new Point(0x7f, 6);
     this.lblType.Margin = new Padding(2, 0, 0, 0);
     this.lblType.Name = "lblType";
     this.lblType.Padding = new Padding(6, 0, 0, 0);
     this.lblType.Size = new Size(0x45, 15);
     this.lblType.TabIndex = 2;
     this.lblType.Text = "&Language";
     this.lblType.TextAlign = ContentAlignment.MiddleLeft;
     this.panTopControls.AutoSize = true;
     this.panTopControls.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.panTopControls.ColumnCount = 10;
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.panTopControls.ColumnStyles.Add(new ColumnStyle());
     this.panTopControls.Controls.Add(this.btnExecute, 0, 0);
     this.panTopControls.Controls.Add(this.btnCancel, 1, 0);
     this.panTopControls.Controls.Add(this.lblDb, 7, 0);
     this.panTopControls.Controls.Add(this.lblType, 4, 0);
     this.panTopControls.Controls.Add(this.cboLanguage, 5, 0);
     this.panTopControls.Controls.Add(this.llDbUseCurrent, 9, 0);
     this.panTopControls.Controls.Add(this.cboDb, 8, 0);
     this.panTopControls.Controls.Add(this.lblSyncDb, 6, 0);
     this.panTopControls.Controls.Add(this.btnText, 2, 0);
     this.panTopControls.Controls.Add(this.btnGrids, 3, 0);
     this.panTopControls.Dock = DockStyle.Top;
     this.panTopControls.Location = new Point(0, 0);
     this.panTopControls.Margin = new Padding(2);
     this.panTopControls.Name = "panTopControls";
     this.panTopControls.Padding = new Padding(0, 0, 15, 1);
     this.panTopControls.RowCount = 1;
     this.panTopControls.RowStyles.Add(new RowStyle());
     this.panTopControls.Size = new Size(0x2a3, 0x1d);
     this.panTopControls.TabIndex = 8;
     this.btnExecute.Image = Resources.Execute;
     this.btnExecute.Location = new Point(0, 2);
     this.btnExecute.Margin = new Padding(0, 2, 1, 2);
     this.btnExecute.Name = "btnExecute";
     this.btnExecute.Size = new Size(30, 0x17);
     this.btnExecute.TabIndex = 0;
     this.btnExecute.TabStop = false;
     this.toolTip.SetToolTip(this.btnExecute, "Execute (F5)");
     this.btnExecute.UseVisualStyleBackColor = true;
     this.btnExecute.Click += new EventHandler(this.btnExecute_Click);
     this.btnCancel.Enabled = false;
     this.btnCancel.Image = Resources.Cancel;
     this.btnCancel.Location = new Point(0x21, 2);
     this.btnCancel.Margin = new Padding(2);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new Size(30, 0x17);
     this.btnCancel.TabIndex = 1;
     this.btnCancel.TabStop = false;
     this.toolTip.SetToolTip(this.btnCancel, "Cancel (Shift+F5)");
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
     this.llDbUseCurrent.Anchor = AnchorStyles.Left;
     this.llDbUseCurrent.AutoSize = true;
     this.llDbUseCurrent.Cursor = Cursors.Hand;
     this.llDbUseCurrent.ForeColor = Color.Blue;
     this.llDbUseCurrent.Location = new Point(590, 6);
     this.llDbUseCurrent.Margin = new Padding(2, 0, 0, 0);
     this.llDbUseCurrent.Name = "llDbUseCurrent";
     this.llDbUseCurrent.Size = new Size(70, 15);
     this.llDbUseCurrent.TabIndex = 6;
     this.llDbUseCurrent.TabStop = true;
     this.llDbUseCurrent.Text = "Use current";
     this.llDbUseCurrent.TextAlign = ContentAlignment.MiddleLeft;
     this.llDbUseCurrent.LinkClicked += new EventHandler(this.llDbUseCurrent_LinkClicked);
     this.lblSyncDb.Anchor = AnchorStyles.Left;
     this.lblSyncDb.AutoSize = true;
     this.lblSyncDb.Cursor = Cursors.Hand;
     this.lblSyncDb.Font = new Font("Wingdings", 10.2f, FontStyle.Regular, GraphicsUnit.Point, 2);
     this.lblSyncDb.Location = new Point(0x13b, 6);
     this.lblSyncDb.Margin = new Padding(0, 2, 0, 0);
     this.lblSyncDb.Name = "lblSyncDb";
     this.lblSyncDb.Size = new Size(0x16, 0x11);
     this.lblSyncDb.TabIndex = 7;
     this.lblSyncDb.Text = "\x00ef";
     this.lblSyncDb.Click += new EventHandler(this.lblSyncDb_Click);
     this.btnText.Checked = true;
     this.btnText.Image = Resources.TextResults;
     this.btnText.Location = new Point(0x4d, 3);
     this.btnText.Margin = new Padding(12, 3, 0, 2);
     this.btnText.Name = "btnText";
     this.btnText.NoImageScale = false;
     this.btnText.Size = new Size(0x17, 0x17);
     this.btnText.TabIndex = 8;
     this.btnText.TabStop = false;
     this.toolTip.SetToolTip(this.btnText, "Results to Rich Text (Ctrl+Shift+T)");
     this.btnText.ToolTipText = "";
     this.btnText.Click += new EventHandler(this.btnText_Click);
     this.btnGrids.Checked = false;
     this.btnGrids.Image = Resources.GridResults;
     this.btnGrids.Location = new Point(100, 3);
     this.btnGrids.Margin = new Padding(0, 3, 2, 2);
     this.btnGrids.Name = "btnGrids";
     this.btnGrids.NoImageScale = false;
     this.btnGrids.Size = new Size(0x17, 0x17);
     this.btnGrids.TabIndex = 9;
     this.btnGrids.TabStop = false;
     this.toolTip.SetToolTip(this.btnGrids, "Results to Data Grids (Ctrl+Shift+G)");
     this.btnGrids.ToolTipText = "";
     this.btnGrids.Click += new EventHandler(this.btnGrids_Click);
     this.panTop.AutoSize = true;
     this.panTop.Controls.Add(this.panTopControls);
     this.panTop.Controls.Add(this.panCloseButton);
     this.panTop.Dock = DockStyle.Top;
     this.panTop.Location = new Point(0, 0);
     this.panTop.Name = "panTop";
     this.panTop.Size = new Size(0x2cf, 0x1d);
     this.panTop.TabIndex = 4;
     this.panCloseButton.Controls.Add(this.btnPin);
     this.panCloseButton.Controls.Add(this.btnClose);
     this.panCloseButton.Dock = DockStyle.Right;
     this.panCloseButton.Location = new Point(0x2a3, 0);
     this.panCloseButton.Margin = new Padding(2);
     this.panCloseButton.Name = "panCloseButton";
     this.panCloseButton.Padding = new Padding(0, 3, 2, 4);
     this.panCloseButton.Size = new Size(0x2c, 0x1d);
     this.panCloseButton.TabIndex = 9;
     this.btnPin.Checked = false;
     this.btnPin.Dock = DockStyle.Left;
     this.btnPin.Glyph = ButtonGlyph.Pin;
     this.btnPin.Location = new Point(0, 3);
     this.btnPin.Margin = new Padding(2);
     this.btnPin.Name = "btnPin";
     this.btnPin.NoImageScale = false;
     this.btnPin.Size = new Size(20, 0x16);
     this.btnPin.TabIndex = 1;
     this.toolTip.SetToolTip(this.btnPin, "Keep query open");
     this.btnPin.ToolTipText = "";
     this.btnPin.Click += new EventHandler(this.btnPin_Click);
     this.btnClose.Checked = false;
     this.btnClose.Dock = DockStyle.Right;
     this.btnClose.Location = new Point(0x16, 3);
     this.btnClose.Margin = new Padding(2);
     this.btnClose.Name = "btnClose";
     this.btnClose.NoImageScale = false;
     this.btnClose.Size = new Size(20, 0x16);
     this.btnClose.TabIndex = 0;
     this.toolTip.SetToolTip(this.btnClose, "Close query (Ctrl+F4)");
     this.btnClose.ToolTipText = "";
     this.btnClose.Click += new EventHandler(this.btnClose_Click);
     this.panMain.Controls.Add(this.splitContainer);
     this.panMain.Dock = DockStyle.Fill;
     this.panMain.Location = new Point(0, 0x1d);
     this.panMain.Name = "panMain";
     this.panMain.Size = new Size(0x2cf, 0x192);
     this.panMain.TabIndex = 3;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     this.BackColor = Color.Transparent;
     base.Controls.Add(this.panMain);
     base.Controls.Add(this.panTop);
     base.Name = "QueryControl";
     base.Size = new Size(0x2cf, 0x1af);
     this.splitContainer.Panel1.ResumeLayout(false);
     this.splitContainer.Panel2.ResumeLayout(false);
     this.splitContainer.ResumeLayout(false);
     this.panEditor.ResumeLayout(false);
     this.panError.ResumeLayout(false);
     this.panError.PerformLayout();
     this.panBottom.ResumeLayout(false);
     this.panBottom.PerformLayout();
     this.panOutput.ResumeLayout(false);
     this.statusStrip.ResumeLayout(false);
     this.statusStrip.PerformLayout();
     this.tsOutput.ResumeLayout(false);
     this.tsOutput.PerformLayout();
     this.panTopControls.ResumeLayout(false);
     this.panTopControls.PerformLayout();
     this.panTop.ResumeLayout(false);
     this.panTop.PerformLayout();
     this.panCloseButton.ResumeLayout(false);
     this.panMain.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
コード例 #29
0
        /// <summary>
        /// Populates a single Actipro SyntaxEditor with diff-highlighted text.
        /// </summary>
        /// <param name="editor">Actipro SyntaxEditor</param>
        /// <param name="text">Fully combined text.</param>
        /// <param name="newLines">Lines unique to the new file.</param>
        /// <param name="oldLines">Lines unique to the original file.</param>
        /// <param name="strikeoutLine2Lines"></param>
        public static void PopulateSyntaxEditor(ActiproSoftware.SyntaxEditor.SyntaxEditor editor, string text, SlyceMerge.LineSpan[] newLines, SlyceMerge.LineSpan[] oldLines, bool strikeoutLine2Lines)
        {
            editor.Text = text;
            SpanIndicatorLayer layer             = null;
            HighlightingStyle  highlightingStyle = null;
            List <int>         linesToNotCount   = new List <int>();

            if (strikeoutLine2Lines)
            {
                layer             = new SpanIndicatorLayer("Diff", 1000);
                highlightingStyle = new HighlightingStyle("Diff", null, Color.Empty, Color.Empty);
                highlightingStyle.StrikeOutStyle = HighlightingStyleLineStyle.Solid;
                highlightingStyle.StrikeOutColor = Color.Red;
                editor.Document.SpanIndicatorLayers.Add(layer);
            }
            for (int i = 0; i < oldLines.Length; i++)
            {
                if (strikeoutLine2Lines)
                {
                    for (int lineCounter = oldLines[i].StartLine; lineCounter <= oldLines[i].EndLine; lineCounter++)
                    {
                        editor.Document.Lines[lineCounter].BackColor = Color.MistyRose;                        // ColourUser;
                        editor.Document.Lines[lineCounter].SelectionMarginMarkColor = deletedMarkerColour;     // changedMarkerColour;
                        editor.Document.Lines[lineCounter].CustomLineNumber         = String.Empty;
                        layer.Add(new HighlightingStyleSpanIndicator("Diff", highlightingStyle), editor.Document.Lines[lineCounter].TextRange);
                        linesToNotCount.Add(lineCounter);
                    }
                }
                else
                {
                    for (int lineCounter = oldLines[i].StartLine; lineCounter <= oldLines[i].EndLine; lineCounter++)
                    {
                        editor.Document.Lines[lineCounter].BackColor = ColourNewGen;
                        editor.Document.Lines[lineCounter].SelectionMarginMarkColor = addedMarkerColour;
                    }
                }
            }
            for (int i = 0; i < newLines.Length; i++)
            {
                for (int lineCounter = newLines[i].StartLine; lineCounter <= newLines[i].EndLine; lineCounter++)
                {
                    editor.Document.Lines[lineCounter].BackColor = Color.Honeydew;                    // ColourUser;
                    editor.Document.Lines[lineCounter].SelectionMarginMarkColor = addedMarkerColour;  // changedMarkerColour;
                }
            }
            // Fix-up changed vs. new/deleted
            for (int i = 0; i < editor.Document.Lines.Count; i++)
            {
                if (editor.Document.Lines[i].SelectionMarginMarkColor == addedMarkerColour)
                {
                    int  startLine       = i;
                    int  endLine         = -1;
                    bool changeProcessed = false;

                    for (int checkCounter = i + 1; checkCounter < editor.Document.Lines.Count; checkCounter++)
                    {
                        if (changeProcessed)
                        {
                            break;
                        }
                        if (editor.Document.Lines[checkCounter].SelectionMarginMarkColor == addedMarkerColour)
                        {
                            continue;
                        }
                        else if (editor.Document.Lines[checkCounter].SelectionMarginMarkColor == deletedMarkerColour)
                        {
                            // We have found a change
                            for (int deleteCounter = checkCounter + 1; deleteCounter < editor.Document.Lines.Count; deleteCounter++)
                            {
                                if (editor.Document.Lines[deleteCounter].SelectionMarginMarkColor != deletedMarkerColour)
                                {
                                    endLine = deleteCounter - 1;

                                    // Apply the Change colouring
                                    for (int changeCounter = startLine; changeCounter <= endLine; changeCounter++)
                                    {
                                        editor.Document.Lines[changeCounter].SelectionMarginMarkColor = changedMarkerColour;
                                        editor.Document.Lines[changeCounter].BackColor = Color.LightYellow;
                                    }
                                    changeProcessed = true;
                                    // We are back to 'normal' lines - no change found
                                    i = checkCounter;
                                    break;
                                }
                                else
                                {
                                    editor.Document.Lines[deleteCounter].CustomLineNumber = string.Empty;
                                }
                            }
                        }
                        else
                        {
                            // We are back to 'normal' lines - no change found
                            i = checkCounter;
                            break;
                        }
                    }
                }
            }
            int lineNumber = 1;

            for (int i = 0; i < editor.Document.Lines.Count; i++)
            {
                if (linesToNotCount.Contains(i))
                {
                    editor.Document.Lines[i].CustomLineNumber = string.Empty;
                }
                else
                {
                    editor.Document.Lines[i].CustomLineNumber = lineNumber.ToString();
                    lineNumber++;
                }
            }
        }
コード例 #30
0
        protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
        {
            string str = e.get_Trigger().get_Key();

            if (str != null)
            {
                if (!(str == "TagAutoCompleteTrigger"))
                {
                    if (str == "TagListTrigger")
                    {
                        IntelliPromptMemberList list = syntaxEditor.get_IntelliPrompt().get_MemberList();
                        list.ResetAllowedCharacters();
                        list.set_ImageList(ActiproSoftware.SyntaxEditor.SyntaxEditor.get_ReflectionImageList());
                        list.Clear();
                        list.Add(new IntelliPromptMemberListItem("<!-- -->", 0x2d, null, "!-- ", " -->"));
                        list.Add(new IntelliPromptMemberListItem("a", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("acronym", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("address", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("applet", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("area", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("b", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("base", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("basefont", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("bdo", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("bgsound", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("big", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("blockquote", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("body", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("br", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("button", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("caption", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("center", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("cite", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("code", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("col", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("colgroup", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dd", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("del", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dfn", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dir", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("div", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dl", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dt", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("em", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("embed", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("fieldset", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("form", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("frame", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("frameset", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h1", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h2", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h3", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h4", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h5", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h6", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("head", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("hr", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("html", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("i", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("iframe", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("img", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("input", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("ins", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("isindex", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("kbd", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("label", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("legend", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("li", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("link", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("listing", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("map", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("marquee", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("menu", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("meta", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("nobr", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("noframes", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("noscript", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("object", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("ol", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("option", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("p", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("param", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("plaintext", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("pre", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("q", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("s", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("samp", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("script", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("select", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("small", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("span", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("strike", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("strong", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("style", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("sub", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("sup", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("table", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tbody", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("td", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("textarea", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tfoot", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("th", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("thead", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("title", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tr", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tt", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("u", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("ul", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("var", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("xml", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("xmp", 0x2b));
                        if (list.get_Count() > 0)
                        {
                            list.Show();
                        }
                    }
                }
                else
                {
                    base.OnSyntaxEditorTriggerActivated(syntaxEditor, e);
                }
            }
        }
コード例 #31
0
 /// <summary>
 /// Performs an auto-complete if the <see cref="SyntaxEditor"/> context with which the IntelliPrompt member list is initialized causes a single selection.
 /// Otherwise, displays a member list in the <see cref="SyntaxEditor"/>.
 /// </summary>
 /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> that will display the IntelliPrompt member list.</param>
 /// <returns>
 /// <c>true</c> if an auto-complete occurred or if an IntelliPrompt member list is displayed; otherwise, <c>false</c>.
 /// </returns>
 public override bool IntelliPromptCompleteWord(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
 {
     // Triggered by Ctrl-Space
     return(ShowIntelliPromptMemberList(syntaxEditor, true));
 }
コード例 #32
0
 /// <summary>
 /// Displays an IntelliPrompt member list in a <see cref="SyntaxEditor"/> based on the current context.
 /// </summary>
 /// <param name="syntaxEditor">The <see cref="SyntaxEditor"/> that will display the IntelliPrompt member list.</param>
 /// <returns>
 /// <c>true</c> if an IntelliPrompt member list is displayed; otherwise, <c>false</c>.
 /// </returns>
 /// <remarks>
 /// Only call this method if the <see cref="IntelliPromptMemberListSupported"/> property is set to <c>true</c>.
 /// </remarks>
 public override bool ShowIntelliPromptMemberList(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor)
 {
     return(ShowIntelliPromptMemberList(syntaxEditor, false));
 }
コード例 #33
0
 private void InitializeComponent()
 {
     Document document = new Document();
     Document document2 = new Document();
     this.customEditor = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.panBottom = new Panel();
     this.chkTopMost = new CheckBox();
     this.btnApply = new Button();
     this.baseEditor = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.splitContainer = new SplitContainer();
     this.label2 = new Label();
     this.label1 = new Label();
     this.panBottom.SuspendLayout();
     this.splitContainer.Panel1.SuspendLayout();
     this.splitContainer.Panel2.SuspendLayout();
     this.splitContainer.SuspendLayout();
     base.SuspendLayout();
     this.customEditor.set_BracketHighlightingVisible(true);
     this.customEditor.Dock = DockStyle.Fill;
     this.customEditor.set_Document(document);
     this.customEditor.set_IndicatorMarginVisible(false);
     this.customEditor.Location = new Point(0, 0x15);
     this.customEditor.Name = "customEditor";
     this.customEditor.set_ScrollBarType(3);
     this.customEditor.Size = new Size(0x1b1, 240);
     this.customEditor.set_SplitType(0);
     this.customEditor.TabIndex = 0;
     this.customEditor.TextChanged += new EventHandler(this.customEditor_TextChanged);
     this.panBottom.Controls.Add(this.chkTopMost);
     this.panBottom.Controls.Add(this.btnApply);
     this.panBottom.Dock = DockStyle.Bottom;
     this.panBottom.Location = new Point(5, 0x27a);
     this.panBottom.Name = "panBottom";
     this.panBottom.Padding = new Padding(0, 6, 0, 0);
     this.panBottom.Size = new Size(0x1b1, 0x23);
     this.panBottom.TabIndex = 1;
     this.chkTopMost.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     this.chkTopMost.AutoSize = true;
     this.chkTopMost.Checked = true;
     this.chkTopMost.CheckState = CheckState.Checked;
     this.chkTopMost.Location = new Point(1, 11);
     this.chkTopMost.Name = "chkTopMost";
     this.chkTopMost.Size = new Size(0x9f, 0x17);
     this.chkTopMost.TabIndex = 3;
     this.chkTopMost.Text = "Keep Window on Top";
     this.chkTopMost.UseVisualStyleBackColor = true;
     this.chkTopMost.CheckedChanged += new EventHandler(this.chkTopMost_CheckedChanged);
     this.btnApply.Dock = DockStyle.Right;
     this.btnApply.Location = new Point(0x13d, 6);
     this.btnApply.Name = "btnApply";
     this.btnApply.Size = new Size(0x74, 0x1d);
     this.btnApply.TabIndex = 0;
     this.btnApply.Text = "&Apply Changes";
     this.btnApply.UseVisualStyleBackColor = true;
     this.btnApply.Click += new EventHandler(this.btnApply_Click);
     this.baseEditor.set_BracketHighlightingVisible(true);
     this.baseEditor.Dock = DockStyle.Fill;
     document2.set_ReadOnly(true);
     this.baseEditor.set_Document(document2);
     this.baseEditor.set_IndicatorMarginVisible(false);
     this.baseEditor.Location = new Point(0, 0x15);
     this.baseEditor.Name = "baseEditor";
     this.baseEditor.set_ScrollBarType(3);
     this.baseEditor.Size = new Size(0x1b1, 340);
     this.baseEditor.set_SplitType(0);
     this.baseEditor.TabIndex = 2;
     this.baseEditor.set_UseDisabledRenderingForReadOnlyMode(true);
     this.splitContainer.Dock = DockStyle.Fill;
     this.splitContainer.Location = new Point(5, 6);
     this.splitContainer.Name = "splitContainer";
     this.splitContainer.Orientation = Orientation.Horizontal;
     this.splitContainer.Panel1.Controls.Add(this.baseEditor);
     this.splitContainer.Panel1.Controls.Add(this.label2);
     this.splitContainer.Panel2.Controls.Add(this.customEditor);
     this.splitContainer.Panel2.Controls.Add(this.label1);
     this.splitContainer.Size = new Size(0x1b1, 0x274);
     this.splitContainer.SplitterDistance = 0x169;
     this.splitContainer.SplitterWidth = 6;
     this.splitContainer.TabIndex = 0;
     this.label2.AutoSize = true;
     this.label2.Dock = DockStyle.Top;
     this.label2.Location = new Point(0, 0);
     this.label2.Margin = new Padding(0, 0, 3, 0);
     this.label2.Name = "label2";
     this.label2.Padding = new Padding(0, 0, 0, 2);
     this.label2.Size = new Size(0x4c, 0x15);
     this.label2.TabIndex = 3;
     this.label2.Text = "Base Styles";
     this.label1.AutoSize = true;
     this.label1.Dock = DockStyle.Top;
     this.label1.Location = new Point(0, 0);
     this.label1.Margin = new Padding(0, 0, 3, 0);
     this.label1.Name = "label1";
     this.label1.Padding = new Padding(0, 0, 0, 2);
     this.label1.Size = new Size(0x67, 0x15);
     this.label1.TabIndex = 1;
     this.label1.Text = "Customizations";
     base.AutoScaleDimensions = new SizeF(7f, 17f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x1bb, 0x2a2);
     base.Controls.Add(this.splitContainer);
     base.Controls.Add(this.panBottom);
     base.FormBorderStyle = FormBorderStyle.SizableToolWindow;
     base.Name = "ResultStylesForm";
     base.Padding = new Padding(5, 6, 5, 5);
     base.StartPosition = FormStartPosition.Manual;
     this.Text = "LINQPad Stylesheet Editor";
     this.panBottom.ResumeLayout(false);
     this.panBottom.PerformLayout();
     this.splitContainer.Panel1.ResumeLayout(false);
     this.splitContainer.Panel1.PerformLayout();
     this.splitContainer.Panel2.ResumeLayout(false);
     this.splitContainer.Panel2.PerformLayout();
     this.splitContainer.ResumeLayout(false);
     base.ResumeLayout(false);
 }
コード例 #34
0
ファイル: UCEditor.cs プロジェクト: Bloodknight/TorqueDev
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     ActiproSoftware.SyntaxEditor.Document document1 = new ActiproSoftware.SyntaxEditor.Document();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCEditor));
     this.txtEditor = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.ctxEditor = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.mnuCt_Cut = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_Copy = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_Paste = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuCt_GoToDef = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_CommentSel = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_UncommentSel = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuCt_ToggleBreak = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_BreakProps = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuCt_Reference = new System.Windows.Forms.ToolStripMenuItem();
     this.ilMainMenu = new System.Windows.Forms.ImageList(this.components);
     this.ilToolbar = new System.Windows.Forms.ImageList(this.components);
     this.sbMain = new System.Windows.Forms.StatusBar();
     this.sbpRow = new System.Windows.Forms.StatusBarPanel();
     this.sbpCol = new System.Windows.Forms.StatusBarPanel();
     this.sbpTextInfo = new System.Windows.Forms.StatusBarPanel();
     this.sbpSelection = new System.Windows.Forms.StatusBarPanel();
     this.sbpFileName = new System.Windows.Forms.StatusBarPanel();
     this.tmrPosNotify = new System.Windows.Forms.Timer(this.components);
     this.tmrErrorMonitor = new System.Windows.Forms.Timer(this.components);
     this.tmrFileWatcher = new System.Windows.Forms.Timer(this.components);
     this.cboCurFileFuncs = new TSDev.ComboBoxEx();
     this.pnlFileChanged = new System.Windows.Forms.Panel();
     this.lnkCancelReload = new System.Windows.Forms.LinkLabel();
     this.lnkReloadContents = new System.Windows.Forms.LinkLabel();
     this.label1 = new System.Windows.Forms.Label();
     this.ctxEditor.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.sbpRow)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpCol)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpTextInfo)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpSelection)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpFileName)).BeginInit();
     this.pnlFileChanged.SuspendLayout();
     this.SuspendLayout();
     //
     // txtEditor
     //
     this.txtEditor.AllowDrop = true;
     this.txtEditor.BracketHighlightBackColor = System.Drawing.Color.Aqua;
     this.txtEditor.BracketHighlightBorderColor = System.Drawing.Color.Transparent;
     this.txtEditor.BracketHighlightForeColor = System.Drawing.Color.Black;
     this.txtEditor.BracketHighlightingInclusive = true;
     this.txtEditor.BracketHighlightingVisible = true;
     this.txtEditor.ContextMenuStrip = this.ctxEditor;
     this.txtEditor.DefaultContextMenuEnabled = false;
     this.txtEditor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.txtEditor.Document = document1;
     this.txtEditor.LineNumberMarginBorderColor = System.Drawing.Color.Gainsboro;
     this.txtEditor.LineNumberMarginForeColor = System.Drawing.Color.DarkGray;
     this.txtEditor.LineNumberMarginVisible = true;
     this.txtEditor.Location = new System.Drawing.Point(0, 45);
     this.txtEditor.Name = "txtEditor";
     this.txtEditor.PrintSettings.DocumentTitle = "netMercs TSDev - torque.netmercs.net";
     this.txtEditor.PrintSettings.LineNumberMarginVisible = true;
     this.txtEditor.Size = new System.Drawing.Size(704, 418);
     this.txtEditor.TabIndex = 0;
     this.txtEditor.UnicodeEnabled = true;
     this.txtEditor.WordWrapGlyphVisible = true;
     this.txtEditor.WordWrapMarginBorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDot;
     this.txtEditor.KeyTyped += new ActiproSoftware.SyntaxEditor.KeyTypedEventHandler(this.txtEditor_KeyTyped);
     this.txtEditor.TextChanged += new System.EventHandler(this.txtEditor_TextChanged);
     this.txtEditor.DocumentTextChanged += new ActiproSoftware.SyntaxEditor.DocumentModificationEventHandler(this.txtEditor_DocumentTextChanged);
     this.txtEditor.KeyTyping += new ActiproSoftware.SyntaxEditor.KeyTypingEventHandler(this.txtEditor_KeyTyping);
     this.txtEditor.TokenMouseHover += new ActiproSoftware.SyntaxEditor.TokenMouseEventHandler(this.txtEditor_TokenMouseHover);
     this.txtEditor.SmartIndent += new ActiproSoftware.SyntaxEditor.SmartIndentEventHandler(this.txtEditor_SmartIndent);
     this.txtEditor.TokenMouseLeave += new ActiproSoftware.SyntaxEditor.TokenMouseEventHandler(this.txtEditor_TokenMouseLeave);
     this.txtEditor.DocumentIndicatorRemoved += new ActiproSoftware.SyntaxEditor.IndicatorEventHandler(this.txtEditor_DocumentIndicatorRemoved);
     this.txtEditor.IndicatorMarginClick += new ActiproSoftware.SyntaxEditor.IndicatorMarginClickEventHandler(this.txtEditor_IndicatorMarginClick);
     this.txtEditor.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtEditor_KeyDown);
     this.txtEditor.TokenMouseEnter += new ActiproSoftware.SyntaxEditor.TokenMouseEventHandler(this.txtEditor_TokenMouseEnter);
     this.txtEditor.DocumentIndicatorAdded += new ActiproSoftware.SyntaxEditor.IndicatorEventHandler(this.txtEditor_DocumentIndicatorAdded);
     this.txtEditor.Trigger += new ActiproSoftware.SyntaxEditor.TriggerEventHandler(this.txtEditor_Trigger);
     //
     // ctxEditor
     //
     this.ctxEditor.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.mnuCt_Cut,
     this.mnuCt_Copy,
     this.mnuCt_Paste,
     this.toolStripMenuItem1,
     this.mnuCt_GoToDef,
     this.mnuCt_CommentSel,
     this.mnuCt_UncommentSel,
     this.toolStripMenuItem2,
     this.mnuCt_ToggleBreak,
     this.mnuCt_BreakProps,
     this.toolStripMenuItem3,
     this.mnuCt_Reference});
     this.ctxEditor.Name = "ctxEditor";
     this.ctxEditor.Size = new System.Drawing.Size(190, 220);
     this.ctxEditor.Opening += new System.ComponentModel.CancelEventHandler(this.ctxEditor_Opening);
     //
     // mnuCt_Cut
     //
     this.mnuCt_Cut.Image = global::TSDev.Properties.Resources.cut;
     this.mnuCt_Cut.Name = "mnuCt_Cut";
     this.mnuCt_Cut.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Cut.Text = "&Cut";
     this.mnuCt_Cut.Click += new System.EventHandler(this.mnuCt_Cut_Click);
     //
     // mnuCt_Copy
     //
     this.mnuCt_Copy.Image = global::TSDev.Properties.Resources.copy;
     this.mnuCt_Copy.Name = "mnuCt_Copy";
     this.mnuCt_Copy.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Copy.Text = "C&opy";
     this.mnuCt_Copy.Click += new System.EventHandler(this.mnuCt_Copy_Click);
     //
     // mnuCt_Paste
     //
     this.mnuCt_Paste.Image = global::TSDev.Properties.Resources.paste;
     this.mnuCt_Paste.Name = "mnuCt_Paste";
     this.mnuCt_Paste.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Paste.Text = "&Paste";
     this.mnuCt_Paste.Click += new System.EventHandler(this.mnuCt_Paste_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(186, 6);
     //
     // mnuCt_GoToDef
     //
     this.mnuCt_GoToDef.Image = global::TSDev.Properties.Resources.arrow_right_blue;
     this.mnuCt_GoToDef.Name = "mnuCt_GoToDef";
     this.mnuCt_GoToDef.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_GoToDef.Text = "&Go to Definition...";
     this.mnuCt_GoToDef.Click += new System.EventHandler(this.mnuCt_GoToDef_Click);
     //
     // mnuCt_CommentSel
     //
     this.mnuCt_CommentSel.Name = "mnuCt_CommentSel";
     this.mnuCt_CommentSel.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_CommentSel.Text = "&Comment Selection";
     this.mnuCt_CommentSel.Click += new System.EventHandler(this.mnuCt_CommentSel_Click);
     //
     // mnuCt_UncommentSel
     //
     this.mnuCt_UncommentSel.Name = "mnuCt_UncommentSel";
     this.mnuCt_UncommentSel.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_UncommentSel.Text = "&Uncomment Selection";
     this.mnuCt_UncommentSel.Click += new System.EventHandler(this.mnuCt_UncommentSel_Click);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new System.Drawing.Size(186, 6);
     //
     // mnuCt_ToggleBreak
     //
     this.mnuCt_ToggleBreak.Image = global::TSDev.Properties.Resources.stop;
     this.mnuCt_ToggleBreak.Name = "mnuCt_ToggleBreak";
     this.mnuCt_ToggleBreak.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_ToggleBreak.Text = "&Toggle Breakpoint";
     this.mnuCt_ToggleBreak.Click += new System.EventHandler(this.mnuCt_ToggleBreak_Click);
     //
     // mnuCt_BreakProps
     //
     this.mnuCt_BreakProps.Name = "mnuCt_BreakProps";
     this.mnuCt_BreakProps.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_BreakProps.Text = "Brea&kpoint Properties...";
     this.mnuCt_BreakProps.Click += new System.EventHandler(this.mnuCt_BreakProps_Click);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new System.Drawing.Size(186, 6);
     //
     // mnuCt_Reference
     //
     this.mnuCt_Reference.Image = global::TSDev.Properties.Resources.unknown;
     this.mnuCt_Reference.Name = "mnuCt_Reference";
     this.mnuCt_Reference.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Reference.Text = "&Reference...";
     this.mnuCt_Reference.Click += new System.EventHandler(this.mnuCt_Reference_Click);
     //
     // ilMainMenu
     //
     this.ilMainMenu.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilMainMenu.ImageStream")));
     this.ilMainMenu.TransparentColor = System.Drawing.Color.Transparent;
     this.ilMainMenu.Images.SetKeyName(0, "");
     this.ilMainMenu.Images.SetKeyName(1, "Assembly.ico");
     this.ilMainMenu.Images.SetKeyName(2, "PublicEvent.ico");
     //
     // ilToolbar
     //
     this.ilToolbar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilToolbar.ImageStream")));
     this.ilToolbar.TransparentColor = System.Drawing.Color.Transparent;
     this.ilToolbar.Images.SetKeyName(0, "");
     this.ilToolbar.Images.SetKeyName(1, "");
     this.ilToolbar.Images.SetKeyName(2, "");
     this.ilToolbar.Images.SetKeyName(3, "");
     this.ilToolbar.Images.SetKeyName(4, "");
     this.ilToolbar.Images.SetKeyName(5, "");
     this.ilToolbar.Images.SetKeyName(6, "");
     this.ilToolbar.Images.SetKeyName(7, "");
     this.ilToolbar.Images.SetKeyName(8, "");
     this.ilToolbar.Images.SetKeyName(9, "");
     this.ilToolbar.Images.SetKeyName(10, "");
     this.ilToolbar.Images.SetKeyName(11, "");
     this.ilToolbar.Images.SetKeyName(12, "");
     this.ilToolbar.Images.SetKeyName(13, "");
     this.ilToolbar.Images.SetKeyName(14, "");
     this.ilToolbar.Images.SetKeyName(15, "");
     this.ilToolbar.Images.SetKeyName(16, "");
     this.ilToolbar.Images.SetKeyName(17, "");
     this.ilToolbar.Images.SetKeyName(18, "");
     this.ilToolbar.Images.SetKeyName(19, "");
     //
     // sbMain
     //
     this.sbMain.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sbMain.Location = new System.Drawing.Point(0, 463);
     this.sbMain.Name = "sbMain";
     this.sbMain.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
     this.sbpRow,
     this.sbpCol,
     this.sbpTextInfo,
     this.sbpSelection,
     this.sbpFileName});
     this.sbMain.ShowPanels = true;
     this.sbMain.Size = new System.Drawing.Size(704, 22);
     this.sbMain.TabIndex = 2;
     this.sbMain.Visible = false;
     //
     // sbpRow
     //
     this.sbpRow.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpRow.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpRow.Icon")));
     this.sbpRow.Name = "sbpRow";
     this.sbpRow.Text = "0";
     this.sbpRow.Width = 169;
     //
     // sbpCol
     //
     this.sbpCol.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpCol.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpCol.Icon")));
     this.sbpCol.Name = "sbpCol";
     this.sbpCol.Text = "0";
     this.sbpCol.Width = 169;
     //
     // sbpTextInfo
     //
     this.sbpTextInfo.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpTextInfo.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpTextInfo.Icon")));
     this.sbpTextInfo.Name = "sbpTextInfo";
     this.sbpTextInfo.Text = "N/A";
     this.sbpTextInfo.Width = 169;
     //
     // sbpSelection
     //
     this.sbpSelection.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpSelection.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpSelection.Icon")));
     this.sbpSelection.Name = "sbpSelection";
     this.sbpSelection.Text = "N/A";
     this.sbpSelection.Width = 169;
     //
     // sbpFileName
     //
     this.sbpFileName.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
     this.sbpFileName.Name = "sbpFileName";
     this.sbpFileName.Width = 10;
     //
     // tmrPosNotify
     //
     this.tmrPosNotify.Interval = 10;
     this.tmrPosNotify.Tick += new System.EventHandler(this.tmrPosNotify_Tick);
     //
     // tmrErrorMonitor
     //
     this.tmrErrorMonitor.Enabled = true;
     this.tmrErrorMonitor.Interval = 1500;
     this.tmrErrorMonitor.Tick += new System.EventHandler(this.tmrErrorMonitor_Tick);
     //
     // tmrFileWatcher
     //
     this.tmrFileWatcher.Interval = 1000;
     this.tmrFileWatcher.Tick += new System.EventHandler(this.tmrFileWatcher_Tick);
     //
     // cboCurFileFuncs
     //
     this.cboCurFileFuncs.Dock = System.Windows.Forms.DockStyle.Top;
     this.cboCurFileFuncs.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cboCurFileFuncs.DropDownHeight = 500;
     this.cboCurFileFuncs.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboCurFileFuncs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cboCurFileFuncs.ImageList = this.ilMainMenu;
     this.cboCurFileFuncs.IntegralHeight = false;
     this.cboCurFileFuncs.ItemHeight = 15;
     this.cboCurFileFuncs.Location = new System.Drawing.Point(0, 24);
     this.cboCurFileFuncs.Name = "cboCurFileFuncs";
     this.cboCurFileFuncs.Size = new System.Drawing.Size(704, 21);
     this.cboCurFileFuncs.Sorted = true;
     this.cboCurFileFuncs.TabIndex = 4;
     this.cboCurFileFuncs.SelectedIndexChanged += new System.EventHandler(this.cboCurFileFuncs_SelectedIndexChanged);
     //
     // pnlFileChanged
     //
     this.pnlFileChanged.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
     this.pnlFileChanged.Controls.Add(this.lnkCancelReload);
     this.pnlFileChanged.Controls.Add(this.lnkReloadContents);
     this.pnlFileChanged.Controls.Add(this.label1);
     this.pnlFileChanged.Dock = System.Windows.Forms.DockStyle.Top;
     this.pnlFileChanged.Location = new System.Drawing.Point(0, 0);
     this.pnlFileChanged.Name = "pnlFileChanged";
     this.pnlFileChanged.Size = new System.Drawing.Size(704, 24);
     this.pnlFileChanged.TabIndex = 5;
     this.pnlFileChanged.Visible = false;
     //
     // lnkCancelReload
     //
     this.lnkCancelReload.AutoSize = true;
     this.lnkCancelReload.Location = new System.Drawing.Point(395, 6);
     this.lnkCancelReload.Name = "lnkCancelReload";
     this.lnkCancelReload.Size = new System.Drawing.Size(40, 13);
     this.lnkCancelReload.TabIndex = 1;
     this.lnkCancelReload.TabStop = true;
     this.lnkCancelReload.Text = "Cancel";
     this.lnkCancelReload.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkCancelReload_LinkClicked);
     //
     // lnkReloadContents
     //
     this.lnkReloadContents.AutoSize = true;
     this.lnkReloadContents.Location = new System.Drawing.Point(348, 6);
     this.lnkReloadContents.Name = "lnkReloadContents";
     this.lnkReloadContents.Size = new System.Drawing.Size(41, 13);
     this.lnkReloadContents.TabIndex = 1;
     this.lnkReloadContents.TabStop = true;
     this.lnkReloadContents.Text = "Reload";
     this.lnkReloadContents.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkReloadContents_LinkClicked);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(3, 6);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(339, 14);
     this.label1.TabIndex = 0;
     this.label1.Text = "The contents of this file have changed outside of this editor:";
     //
     // UCEditor
     //
     this.Controls.Add(this.txtEditor);
     this.Controls.Add(this.cboCurFileFuncs);
     this.Controls.Add(this.pnlFileChanged);
     this.Controls.Add(this.sbMain);
     this.Name = "UCEditor";
     this.Size = new System.Drawing.Size(704, 485);
     this.Tag = "";
     this.Load += new System.EventHandler(this.frmEditor_Load);
     this.ctxEditor.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.sbpRow)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpCol)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpTextInfo)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpSelection)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpFileName)).EndInit();
     this.pnlFileChanged.ResumeLayout(false);
     this.pnlFileChanged.PerformLayout();
     this.ResumeLayout(false);
 }