示例#1
1
        private ScintillaNET.Scintilla MakeEditor(string name, string text, bool src)
        {
            ScintillaNET.Scintilla scintilla1 = new ScintillaNET.Scintilla();
            ((System.ComponentModel.ISupportInitialize)(scintilla1)).BeginInit();

            //
            // scintilla1
            //
            scintilla1.Dock = System.Windows.Forms.DockStyle.Fill;
            scintilla1.Location = new System.Drawing.Point(3, 3);
            scintilla1.Margins.Left = 4;
            scintilla1.Margins.Margin0.Width = 30;
            scintilla1.Margins.Margin1.Width = 0;
            scintilla1.Margins.Margin2.Width = 16;
            scintilla1.Name = name;
            scintilla1.Size = new System.Drawing.Size(581, 494);

            scintilla1.Text = text;
            if (scintilla1.Lines.Count > 1000)
                scintilla1.Margins.Margin0.Width += 6;
            if (scintilla1.Lines.Count > 10000)
                scintilla1.Margins.Margin0.Width += 6;

            scintilla1.Click += new EventHandler(scintilla1_Click);

            scintilla1.Indicators[4].Style = ScintillaNET.IndicatorStyle.RoundBox;
            scintilla1.Indicators[4].Color = Color.DarkGreen;

            ((System.ComponentModel.ISupportInitialize)(scintilla1)).EndInit();

            string syntaxtype = m_Core.APIProps.ShaderExtension.Substring(1);
            var syntaxpath = Path.Combine(Core.ConfigDirectory, syntaxtype + ".xml");

            if (!File.Exists(syntaxpath) ||
                File.GetLastWriteTimeUtc(syntaxpath).CompareTo(File.GetLastWriteTimeUtc(Assembly.GetExecutingAssembly().Location)) < 0)
            {
                using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("renderdocui.Resources." + syntaxtype + ".xml"))
                {
                    using (StreamReader reader = new StreamReader(stream))
                    {
                        try
                        {
                            File.WriteAllText(syntaxpath, reader.ReadToEnd());
                        }
                        catch (System.Exception)
                        {
                            // silently fail if we can't write to the path - syntax highlighting will just be broken
                        }
                    }
                }
            }

            if (src)
            {
                scintilla1.Lexing.LexerLanguageMap[syntaxtype] = "cpp";
                scintilla1.ConfigurationManager.CustomLocation = Core.ConfigDirectory;
                scintilla1.ConfigurationManager.Language = syntaxtype;
                scintilla1.Lexing.SetProperty("lexer.cpp.track.preprocessor", "0");
            }
            else
            {
                scintilla1.ConfigurationManager.Language = "asm";
            }

            scintilla1.Scrolling.HorizontalWidth = 1;

            const uint SCI_SETSCROLLWIDTHTRACKING = 2516;
            scintilla1.NativeInterface.SendMessageDirect(SCI_SETSCROLLWIDTHTRACKING, true);

            return scintilla1;
        }
示例#2
0
        public MainForm()
        {
            InitializeComponent();

            // CREATE CONTROL
            TextArea = new ScintillaNET.Scintilla();
            TextPanel.Controls.Add(TextArea);
            if (File.Exists("Data/ScriptEditor/AutoCompletev1.txt"))
            {
                AutoCompletev1 = File.ReadAllText("Data/ScriptEditor/AutoCompletev1.txt");
            }
            if (File.Exists("Data/ScriptEditor/AutoCompletev2.txt"))
            {
                AutoCompletev2 = File.ReadAllText("Data/ScriptEditor/AutoCompletev2.txt");
            }
            if (File.Exists("Data/ScriptEditor/AutoCompletevB.txt"))
            {
                AutoCompletevB = File.ReadAllText("Data/ScriptEditor/AutoCompletevB.txt");
            }

            //TextArea.AutoCStops(";.");
            TextArea.AutoCSeparator  = (char)13;//'~';
            TextArea.AutoCIgnoreCase = true;

            // BASIC CONFIG
            TextArea.Dock            = System.Windows.Forms.DockStyle.Fill;
            TextArea.AutoCCompleted += new EventHandler <ScintillaNET.AutoCSelectionEventArgs>(this.TextArea_AutoCompleted);
            TextArea.CharAdded      += new EventHandler <ScintillaNET.CharAddedEventArgs>(this.TextArea_CharAdded);

            // INITIAL VIEW CONFIG
            TextArea.WrapMode          = ScintillaNET.WrapMode.None;
            TextArea.IndentationGuides = ScintillaNET.IndentView.LookBoth;

            TextArea.UseTabs = true; //why tf this not default lol

            // STYLING
            InitColours();
            InitSyntaxColoring();

            // NUMBER MARGIN
            InitNumberMargin();

            // BOOKMARK MARGIN
            InitBookmarkMargin();

            // CODE FOLDING MARGIN
            InitCodeFolding();

            // DRAG DROP
            InitDragDropFile();

            // INIT HOTKEYS
            InitHotkeys();

            this.Text = "New Script - RSDK Script Editor";
        }
示例#3
0
        private void Editor_UpdateUI(object sender, ScintillaNET.UpdateUIEventArgs e)
        {
            ScintillaNET.Scintilla Editor = sender as ScintillaNET.Scintilla;

            if ((e.Change & ScintillaNET.UpdateChange.Selection) > 0)
            {
                if (editorToolTip != null && editorToolTip.Active)
                {
                    editorToolTip.Hide(Editor);
                    editorToolTip.Dispose();
                }

                if (Editor.SelectionStart == Editor.SelectionEnd)
                {
                    return;
                }

                string selText = Editor.SelectedText;
                selText = selText.Trim();

                if (selText.Length > 0)
                {
                    if (selText.Length > 4 && selText.StartsWith("U", StringComparison.OrdinalIgnoreCase))
                    {
                        editorToolTip           = new ToolTip();
                        editorToolTip.Popup    += new PopupEventHandler(editorToolTip_Popup);
                        editorToolTip.OwnerDraw = true;
                        editorToolTip.Draw     += new DrawToolTipEventHandler(editorToolTip_Draw);

                        string[]      splitted = selText.Split(' ');
                        StringBuilder concated = new StringBuilder();
                        foreach (string split in splitted)
                        {
                            if (split.StartsWith("U", StringComparison.OrdinalIgnoreCase) && split.Length > 4)
                            {
                                string hexString = split.Substring(1, 4);
                                int    hexCode;
                                if (int.TryParse(hexString, System.Globalization.NumberStyles.AllowHexSpecifier, null, out hexCode))
                                {
                                    concated.Append((char)hexCode);
                                }
                            }
                        }

                        Point caretPoint = new Point();
                        if (GetCaretPos(out caretPoint))
                        {
                            caretPoint.X += 5;
                            caretPoint.Y -= 30;
                            toolTipString = concated.ToString();
                            editorToolTip.Show(toolTipString, Editor, caretPoint);
                        }
                    }
                }
            }
        }
示例#4
0
 /// <summary>
 /// Gets the Scintilla component from the sender
 /// </summary>
 /// <param name="sender"></param>
 /// <returns></returns>
 ScintillaNET.Scintilla GetScintilla(object sender)
 {
     try
     {
         ScintillaNET.Scintilla edit = (((ScintillaNET.Scintilla)sender));
         return(edit);
     }
     catch { }
     return(null);
 }
示例#5
0
 private void RunSourceForm_v3_Load(object sender, System.EventArgs e)
 {
     //_logTextBox.WriteMessage
     pb.Trace.WriteLine("Load");
     pb.Trace.WriteLine("_source {0}", _source.GetType().FullName);
     pb.Trace.WriteLine("_source is ScintillaNET.Scintilla {0}", _source is ScintillaNET.Scintilla);
     ScintillaNET.Scintilla scintilla = _source;
     pb.Trace.WriteLine("scintilla {0}", scintilla.GetType().FullName);
     //pb.Trace.WriteLine("_source.Selection.Start {0}", _source.Selection.Start);
 }
示例#6
0
        public PythonShell(Core core)
        {
            InitializeComponent();

            if (SystemInformation.HighContrast)
            {
                toolStrip1.Renderer = new ToolStripSystemRenderer();
                toolStrip2.Renderer = new ToolStripSystemRenderer();
            }

            shellTable.Dock  = DockStyle.Fill;
            scriptTable.Dock = DockStyle.Fill;

            scriptEditor = new ScintillaNET.Scintilla();
            ((System.ComponentModel.ISupportInitialize)(scriptEditor)).BeginInit();

            scriptEditor.Dock     = System.Windows.Forms.DockStyle.Fill;
            scriptEditor.Location = new System.Drawing.Point(3, 3);
            scriptEditor.Name     = "scripteditor";
            scriptEditor.Font     = new Font("Consolas", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);

            scriptEditor.Margins.Left          = 4;
            scriptEditor.Margins.Margin0.Width = 30;
            scriptEditor.Margins.Margin1.Width = 0;
            scriptEditor.Margins.Margin2.Width = 16;

            scriptEditor.Markers[0].BackColor = System.Drawing.Color.LightCoral;

            scriptEditor.ConfigurationManager.Language = "python";

            ((System.ComponentModel.ISupportInitialize)(scriptEditor)).EndInit();

            scriptEditor.KeyDown     += new KeyEventHandler(scriptEditor_KeyDown);
            scriptEditor.TextChanged += new EventHandler(scriptEditor_TextChanged);

            scriptEditor.Scrolling.HorizontalWidth = 1;

            const uint SCI_SETSCROLLWIDTHTRACKING = 2516;

            scriptEditor.NativeInterface.SendMessageDirect(SCI_SETSCROLLWIDTHTRACKING, true);

            scriptSplit.Panel1.Controls.Add(scriptEditor);

            m_Core = core;

            pythonengine = NewEngine();

            mode_Changed(shellMode, null);

            newScript.PerformClick();

            clearCmd_Click(null, null);

            EnableButtons(true);
        }
示例#7
0
        public PythonShell(Core core)
        {
            InitializeComponent();

            if (SystemInformation.HighContrast)
            {
                toolStrip1.Renderer = new ToolStripSystemRenderer();
                toolStrip2.Renderer = new ToolStripSystemRenderer();
            }

            shellTable.Dock = DockStyle.Fill;
            scriptTable.Dock = DockStyle.Fill;

            scriptEditor = new ScintillaNET.Scintilla();
            ((System.ComponentModel.ISupportInitialize)(scriptEditor)).BeginInit();

            scriptEditor.Dock = System.Windows.Forms.DockStyle.Fill;
            scriptEditor.Location = new System.Drawing.Point(3, 3);
            scriptEditor.Name = "scripteditor";
            scriptEditor.Font = new Font("Consolas", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);

            scriptEditor.Margins.Left = 4;
            scriptEditor.Margins.Margin0.Width = 30;
            scriptEditor.Margins.Margin1.Width = 0;
            scriptEditor.Margins.Margin2.Width = 16;

            scriptEditor.Markers[0].BackColor = System.Drawing.Color.LightCoral;

            scriptEditor.ConfigurationManager.Language = "python";

            ((System.ComponentModel.ISupportInitialize)(scriptEditor)).EndInit();

            scriptEditor.KeyDown += new KeyEventHandler(scriptEditor_KeyDown);
            scriptEditor.TextChanged += new EventHandler(scriptEditor_TextChanged);

            newScript.PerformClick();

            scriptEditor.Scrolling.HorizontalWidth = 1;

            const uint SCI_SETSCROLLWIDTHTRACKING = 2516;
            scriptEditor.NativeInterface.SendMessageDirect(SCI_SETSCROLLWIDTHTRACKING, true);

            scriptSplit.Panel1.Controls.Add(scriptEditor);

            m_Core = core;

            pythonengine = NewEngine();

            mode_Changed(shellMode, null);

            clearCmd_Click(null, null);

            EnableButtons(true);
        }
示例#8
0
        private void TextBox_StyleNeeded(object sender, ScintillaNET.StyleNeededEventArgs e)
        {
            ScintillaNET.Scintilla scintilla = ((ScintillaNET.Scintilla)sender);

            var startPos = scintilla.GetEndStyled();
            var endPos   = e.Position;

            scintilla.StartStyling(100);
            scintilla.SetStyling(100, 1);
            scintilla.SetStyling(100, 2);
        }
示例#9
0
        public BestMatchSnippets CreateBestMatchSnippets(ScintillaNET.Scintilla editor)
        {
            return(new BestMatchSnippets(
                       editor,

                       apiFunctionCache,
                       functionCache,
                       keywordCache,
                       subFunctionCache,
                       importClrCache));
        }
示例#10
0
        public static void UpdateFonts(this ScintillaNET.Scintilla scintilla)
        {
            Font font = scintilla.Font;

            for (int i = 0; i < scintilla.Styles.Max.Index; i++)
            {
                var style = scintilla.Styles[i];
                style.FontName = font.Name;
                style.Size     = font.Size;
                //style.Font = font;
            }
        }
示例#11
0
        public void CreateNewDocument()
        {
            TabPage tab = new TabPage("New *");
            tab.BackColor = SystemColors.Control;
            this.main.tabControlDocument.TabPages.Add(tab);

            ScintillaNET.Scintilla editor = new ScintillaNET.Scintilla();
            editor.Dock = DockStyle.Fill;
            editor.TextChanged += main.Editor_TextChanged;
            editor.Margins[0].Width = 20;
            editor.LineWrapping.Mode = ScintillaNET.LineWrappingMode.Word;
            tab.Controls.Add(editor);
        }
        private void InitializeTextLog()
        {
            txtLog = new ScintillaNET.Scintilla();

            this.pnlLogContainer.Controls.Add(this.txtLog);

            ((System.ComponentModel.ISupportInitialize)(this.txtLog)).BeginInit();
            txtLog.Dock     = System.Windows.Forms.DockStyle.Fill;
            txtLog.Location = new System.Drawing.Point(0, 0);
            txtLog.Name     = "txtLog";
            ((System.ComponentModel.ISupportInitialize)(this.txtLog)).EndInit();
            txtLog.ConfigurationManager.Language = "mssql";
            txtLog.ConfigurationManager.Configure();
        }
示例#13
0
        /// <summary>
        /// Wypelnia snippety dla okna scintilli
        /// </summary>
        /// <param name="doc">biezace okno scintilli</param>
        /// <param name="_type">
        /// 1	zwykle snippety	Query window Snippets
        /// 2	browser snippets Browser Snippets
        /// </param>
        /// <param name="_provider">ORACLE,MSSQL,ALL </param>
        public static void fillSnippets(ref ScintillaNET.Scintilla doc, int _type, string _provider)
        {
            mk.Logic.simpleDebug.dump();


            doc.Snippets.List.Clear();
            IDataReader r = mk.msqllite.GetDataReader("select description,strsql from tblsnipitem where type = '" + _type + "' and (provider = 'ALL' or provider= '" + _provider + "')   order by description;");

            while (r.Read())
            {
                doc.Snippets.List.Add(r[0].ToString(), r[1].ToString(), char.Parse("@"), false);
            }
            r.Close();
        }
示例#14
0
        // ObjectSortMode tableSortMode = ObjectSortMode.WhenUsed;

        public DlgNewQuery(List <DbTable> tables, List <DbColumn> columns)
        {
            if (tables != null)
            {
                workingTables.AddRange(tables);
                if (columns != null)
                {
                    workingColumns.AddRange(columns);
                }
            }

            InitializeComponent();
            queryTypeCombo.Items.AddRange(new string[] { "Select", "Insert", "Replace Into", "Update", "Delete" });
            queryTypeCombo.SelectedIndex = 0;
            sqlEditor             = new ScintillaNET.Scintilla();
            sqlEditor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            sqlEditor.Dock        = System.Windows.Forms.DockStyle.Fill;
            sqlEditor.Location    = new System.Drawing.Point(0, 0);
            sqlEditor.Name        = "sqlEditor";
            sqlEditor.Size        = new System.Drawing.Size(300, 300);
            sqlEditor.TabIndex    = 18;
            sqlEditor.WrapMode    = ScintillaNET.WrapMode.Word;
            previewFrame.Controls.Add(sqlEditor);

            UI.InitializeEditor(sqlEditor);
            Font   = SystemFonts.MessageBoxFont;
            loaded = true;

            showAllColumns.Visible     = workingColumns.Count > 0;
            showAllColumns.Checked     = S.Get("NewQueryShowAllColumns", false);
            includeAllCheckbox.Visible = workingTables.Count > 0;
            includeAllCheckbox.Checked = S.Get("NewQueryIncludeWorkingObjects", true);

            bool selectAll = columnListBoxes.ContainsKey("select") && workingColumns.Count > 0 && workingTables.Count > 0 && workingTables.Count < 3;

            UpdateTableList();
            UpdateColumnTabs();
            if (selectAll)
            {
                tablesList.SelectAll();
            }
            UpdateColumnLists();
            if (selectAll)
            {
                columnListBoxes["select"].SelectAll();
            }

            listsLoaded = true;
            // UpdateEditor();
        }
示例#15
0
        private void Setup()
        {
            txtLog = new ScintillaNET.Scintilla();

            this.panel1.Controls.Add(this.txtLog);

            ((System.ComponentModel.ISupportInitialize)(this.txtLog)).BeginInit();
            txtLog.Dock     = System.Windows.Forms.DockStyle.Fill;
            txtLog.Location = new System.Drawing.Point(0, 0);
            txtLog.Name     = "txtLog";
            txtLog.Size     = new System.Drawing.Size(1256, 329);
            txtLog.TabIndex = 0;
            ((System.ComponentModel.ISupportInitialize)(this.txtLog)).EndInit();
        }
示例#16
0
        public void IzvestajIzProcesa(IAnalizaProblema proces, ScintillaNET.Scintilla scintilla, bool sacuvaj = false)
        {
            var izvestaj = new StringBuilder(sacuvaj ? scintilla.Text : string.Empty);

            var linije = proces.Izvestaj();

            foreach (var linija in linije)
            {
                izvestaj.Append(System.Environment.NewLine);
                izvestaj.Append(linija);
            }

            scintilla.Text = izvestaj.ToString();
        }
示例#17
0
        private void gotoLineToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TabPage P = tabControl1.SelectedTab;

            if (P == null)
            {
                return;
            }
            ScintillaNET.Scintilla note = (ScintillaNET.Scintilla)tabControl1.SelectedTab.Controls[0].Controls["editor"];
            if (note == null)
            {
                return;
            }
            note.GoTo.ShowGoToDialog();
        }
示例#18
0
        public void open_tab(string name, int line)
        {
            ScintillaNET.Scintilla chat;
            if (name.Contains(info.dir))
            {
                name = name.Remove(0, info.dir.Length + 1);
            }
            foreach (TabPage B in tabControl1.TabPages)
            {
                fileInfo fi = (fileInfo)B.Tag;
                if (fi.InternalPath == name)
                {
                    tabControl1.SelectTab(B);
                    chat = (ScintillaNET.Scintilla)tabControl1.SelectedTab.Controls[0].Controls["editor"];
                    chat.GoTo.Line(line);
                    return;
                }
            }

            if (!info.files.ContainsKey(info.dir + "\\" + name))
            {
                throw new NullReferenceException("Could not find file " + info.dir + "\\" + name);
            }
            fileInfo F = info.files[info.dir + "\\" + name];

            if (F.Extension != ".dm")
            {
                return;
            }
            if (F == null)
            {
                throw new NullReferenceException("Could not find file " + info.dir + "\\" + name);
            }
            TabPage P = new TabPage(F.FileName + F.Extension);

            P.Controls.Add(new textEditor(this, console, P));
            P.Controls[0].Controls["editor"].Text = F.Text;
            P.Controls[0].Size = tabControl1.Size;
            // P.Controls[0].Dock = DockStyle.Fill;
            ScintillaNET.Scintilla note = (ScintillaNET.Scintilla)P.Controls[0].Controls["editor"];
            note.UndoRedo.EmptyUndoBuffer();
            P.Controls["editor"].Tag = P;
            P.Tag = F;
            tabControl1.TabPages.Add(P);
            tabControl1.SelectTab(P);
            chat = (ScintillaNET.Scintilla)tabControl1.SelectedTab.Controls[0].Controls["editor"];
            chat.GoTo.Line(Convert.ToInt32(line));
        }
示例#19
0
        /// <summary>
        /// Displays a popup containing a list of files relative to either the path of the
        /// file being edited or if the file hasn't been saved relative to the DevNotepad
        /// strorage path on the Local app data.
        /// </summary>
        /// <param name="curPos"></param>
        /// <param name="editor"></param>
        /// <param name="doc"></param>
        private void showFilePopup(int curPos, ScintillaNET.Scintilla editor, IDocument doc)
        {
            if (doc != null)
            {
                string[] displayFiles = null;
                string[] displayDirs  = null;
                string   rootDir      = "";
                if (!String.IsNullOrEmpty(doc.FileName))
                {
                    rootDir      = Path.GetDirectoryName(doc.FileName);
                    displayFiles = Directory.GetFiles(rootDir, "*.*", SearchOption.AllDirectories);
                    displayDirs  = Directory.GetDirectories(rootDir, "*.*", SearchOption.AllDirectories);
                }
                else
                {
                    rootDir      = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "DevNotepad");
                    displayFiles = Directory.GetFiles(rootDir, "*.*", SearchOption.AllDirectories);
                    displayDirs  = Directory.GetDirectories(rootDir, "*.*", SearchOption.AllDirectories);
                }
                if (displayFiles != null || displayDirs != null)
                {
                    for (int i = 0; i < displayFiles.Length; i++)
                    {
                        displayFiles[i] = String.Format("{0}?0", GetTopPath(rootDir, displayFiles[i]));
                    }

                    for (int i = 0; i < displayDirs.Length; i++)
                    {
                        displayDirs[i] = String.Format("{0}/?1", GetTopPath(rootDir, displayDirs[i]));
                    }

                    List <string> display = new List <string>();
                    if (displayDirs != null)
                    {
                        display.AddRange(displayDirs);
                    }
                    if (displayFiles != null)
                    {
                        display.AddRange(displayFiles);
                    }

                    editor.AutoComplete.ListSeparator = '|';
                    editor.AutoComplete.List          = display;
                    editor.AutoComplete.Show();
                }
            }
        }
示例#20
0
        public ShowSQLUI(string sql, bool isReadOnly = false)
        {
            InitializeComponent();

            _designMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime);

            if (_designMode) //dont add the QueryEditor if we are in design time (visual studio) because it breaks
            {
                return;
            }

            QueryEditor          = new ScintillaTextEditorFactory().Create();
            QueryEditor.Text     = sql;
            QueryEditor.ReadOnly = isReadOnly;

            this.Controls.Add(QueryEditor);
        }
        public ConfigurePrimaryKeyCollisionResolverUI(TableInfo table, IActivateItems activator) : base(activator)
        {
            _table = table;
            InitializeComponent();

            if (VisualStudioDesignMode || table == null) //dont add the QueryEditor if we are in design time (visual studio) because it breaks
            {
                return;
            }

            QueryEditor          = new ScintillaTextEditorFactory().Create();
            QueryEditor.ReadOnly = false;

            splitContainer1.Panel2.Controls.Add(QueryEditor);

            RefreshUIFromDatabase();
        }
示例#22
0
        public TemplatesForm(SettingsXml settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _settings = settings;
            InitializeComponent();

            _rtbTemplateSource = new ScintillaNET.Scintilla
            {
                Parent = splitContainer1.Panel2,
                ConfigurationManager = { Language = "cs" },
                Dock = DockStyle.Fill
            };
        }
示例#23
0
        private void Editor_CharAdded(object sender, ScintillaNET.CharAddedEventArgs e)
        {
            ScintillaNET.Scintilla Editor = sender as ScintillaNET.Scintilla;

            curWord = Editor.GetWordFromPosition(Editor.SelectionStart);
            if (curWord.Length == 0)
            {
                return;
            }
            Predicate <string> startWord = compareWithCurrentWord;
            List <string>      list      = autoCompleteList.FindAll(startWord);

            if (list.Count > 0)
            {
                Editor.AutoCShow(curWord.Length, string.Join(SciEditor.AutoCSeparator.ToString(), list.ToArray()));
            }
        }
示例#24
0
    public Form1()
    {
        InitializeComponent();
        var editor = new ScintillaNET.Scintilla {
            Dock = DockStyle.Fill,
        };

        this.Controls.Add(editor);
        editor.StyleResetDefault();
        editor.Styles[Style.Default].Font = "Consolas";
        editor.Styles[Style.Default].Size = 10;
        editor.StyleClearAll();
        editor.Styles[CustomLexer.StyleText].ForeColor   = Color.Black;
        editor.Styles[CustomLexer.StyleParens].ForeColor = Color.Red;
        editor.Lexer        = Lexer.Container;
        editor.StyleNeeded += scintilla_StyleNeeded;
    }
示例#25
0
        private void UpdateMarginWidth(ScintillaNET.Scintilla scintilla = null)
        {
            var Width = 0;

            if (lineNumbersToolStripMenuItem.Checked)
            {
                Width = 30;
            }

            if (scintilla != null)
            {
                scintilla.Margins[0].Width = Width;
            }
            else
            {
                ForEachDocument(doc => doc.Editor.Margins[0].Width = Width);
            }
        }
示例#26
0
        public static void Highlight(ScintillaNET.Scintilla sci, INote n, string searchText)
        {
            sci.IndicatorCurrent = ScintillaHighlighter.INDICATOR_GLOBAL_SEARCH;

            sci.IndicatorClearRange(0, sci.TextLength);

            if (string.IsNullOrWhiteSpace(searchText))
            {
                return;
            }

            if (SearchStringParser.IsRegex(searchText, out var searchRegex))
            {
                var m = searchRegex.Matches(sci.Text);

                foreach (Match match in m)
                {
                    sci.IndicatorFillRange(match.Index, match.Length);
                }

                return;
            }
            else
            {
                string txt     = sci.Text.ToLower();
                int    lastIdx = 0;
                while (lastIdx >= 0)
                {
                    lastIdx = txt.IndexOf(searchText, lastIdx, StringComparison.OrdinalIgnoreCase);
                    if (lastIdx == -1)
                    {
                        continue;
                    }

                    sci.IndicatorFillRange(lastIdx, searchText.Length);
                    lastIdx += searchText.Length;
                }

                return;
            }
        }
示例#27
0
        private void FormConfiger_Load(object sender, EventArgs e)
        {
            setting.RestoreFormRect(this);

            InitToolsPanel();
            this.configer = InitConfiger();

            SetTitle(configer.GetAlias());
            ToggleToolsPanel(isShowPanel);

            chkIsV4.Checked = setting.isUseV4;

            editor = configer
                     .GetComponent <Controllers.ConfigerComponet.Editor>()
                     .GetEditor();

            editor.Click += OnMouseLeaveToolsPanel;
            BindServerEvents();

            this.FormClosing += (s, a) =>
            {
                if (!configer.IsConfigSaved())
                {
                    a.Cancel = !Misc.UI.Confirm(I18N.ConfirmCloseWinWithoutSave);
                }
            };

            this.FormClosed += (s, a) =>
            {
                formSearch?.Close();
                editor.Click -= OnMouseLeaveToolsPanel;
                toolsPanelController.Dispose();
                ReleaseServerEvents();
                configer.Cleanup();
                editor?.Dispose();
                setting.SaveFormRect(this);
                setting.LazyGC();
            };

            configer.UpdateServerMenusLater();
        }
示例#28
0
        public override void Highlight(ScintillaNET.Scintilla sci, int start, int end, AppSettings s)
        {
            bool startsWithNL = sci.GetCharAt(start) == '\n' || (start + 1 < sci.TextLength && sci.GetCharAt(start) == '\r' && sci.GetCharAt(start + 1) == '\n');
            bool endsWithNL   = sci.GetCharAt(end) == '\n' || (end - 1 >= 0 && sci.GetCharAt(end - 1) == '\n');

            // move back to start of line
            if (!startsWithNL)
            {
                for (int i = 0; i < MAX_BACKTRACE && start > 0; i++, start--)
                {
                    if (start > 0 && sci.GetCharAt(start - 1) == '\n')
                    {
                        break;
                    }
                }
            }

            // move forward to end of line
            if (!endsWithNL)
            {
                for (int i = 0; i < MAX_FORWARDTRACE && end < sci.TextLength; i++, end++)
                {
                    if (end >= sci.TextLength || sci.GetCharAt(end) == '\n')
                    {
                        break;
                    }
                }
            }

            var text = sci.GetTextRange(start, end - start);

            if (s.LinkMode != LinkHighlightMode.Disabled)
            {
                LinkHighlight(sci, start, text);
            }
            else
            {
                sci.StartStyling(start);
                sci.SetStyling(end - start, STYLE_DEFAULT);
            }
        }
示例#29
0
        public ViewExtractionConfigurationSQLUI()
        {
            InitializeComponent();

            if (VisualStudioDesignMode)
            {
                return;
            }

            QueryEditor = new ScintillaTextEditorFactory().Create();

            Controls.Add(QueryEditor);

            bool before = QueryEditor.ReadOnly;

            QueryEditor.ReadOnly = false;
            QueryEditor.Text     = "";
            QueryEditor.ReadOnly = before;

            AssociatedCollection = RDMPCollection.DataExport;
        }
示例#30
0
        FormEditor(
            VgcApis.Interfaces.Services.IApiService api,
            Services.Settings settings,
            Services.LuaServer luaServer,
            Services.FormMgrSvc formMgr,

            Models.Data.LuaCoreSetting initialCoreSettings)
        {
            this.api                 = api;
            this.formMgr             = formMgr;
            this.initialCoreSettings = initialCoreSettings;

            this.settings  = settings;
            this.luaServer = luaServer;

            InitializeComponent();
            VgcApis.Misc.UI.AutoSetFormIcon(this);
            title = string.Format(I18N.LunaScrEditor, Properties.Resources.Version);

            editor    = Misc.UI.CreateLuaEditor(pnlScriptEditor);
            this.Text = title;
        }
示例#31
0
        public SQLPreviewWindow(string title, string msg, string sql)
        {
            InitializeComponent();

            lblMessage.Text = msg;
            this.Text       = title;

            bool designMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime);

            if (designMode) //dont add the QueryEditor if we are in design time (visual studio) because it breaks
            {
                return;
            }

            QueryEditor      = new ScintillaTextEditorFactory().Create();
            QueryEditor.Text = sql;

            QueryEditor.ReadOnly = true;

            panel1.Controls.Add(QueryEditor);
            btnOk.Select();
        }
示例#32
0
 /// <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();
     this.AutoScaleMode  = System.Windows.Forms.AutoScaleMode.Font;
     this.Text           = "DocumentForm";
     this.scintilla      = new ScintillaNET.Scintilla();
     this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
     ((System.ComponentModel.ISupportInitialize)(this.scintilla)).BeginInit();
     this.SuspendLayout();
     //
     // _scintilla
     //
     this.scintilla.Dock = System.Windows.Forms.DockStyle.Fill;
     this.scintilla.LineWrapping.VisualFlags = ScintillaNET.LineWrappingVisualFlags.End;
     this.scintilla.Location = new System.Drawing.Point(0, 0);
     this.scintilla.Margins.Margin1.AutoToggleMarkerNumber = 0;
     this.scintilla.Margins.Margin1.IsClickable            = true;
     this.scintilla.Margins.Margin2.Width = 16;
     this.scintilla.Name             = "_scintilla";
     this.scintilla.Size             = new System.Drawing.Size(292, 266);
     this.scintilla.TabIndex         = 0;
     this.scintilla.StyleNeeded     += new System.EventHandler <ScintillaNET.StyleNeededEventArgs>(this.scintilla_StyleNeeded);
     this.scintilla.ModifiedChanged += new System.EventHandler(this.scintilla_ModifiedChanged);
     //
     // saveFileDialog
     //
     this.saveFileDialog.Filter = "All Files (*.*)|*.*";
     //
     // DocumentForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(292, 266);
     this.Controls.Add(this.scintilla);
     this.Name         = "DocumentForm";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.DocumentForm_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.scintilla)).EndInit();
     this.ResumeLayout(false);
 }
示例#33
0
 public override void SetKeywords(ScintillaNET.Scintilla scintilla)
 {
     // Set keyword lists
     // Word = 0
     scintilla.SetKeywords(0, "go add alter as authorization backup begin bigint binary bit break " +
                           "browse bulk by cascade case catch check checkpoint close clustered " +
                           "column commit compute constraint containstable continue create current " +
                           "cursor cursor database date datetime datetime2 datetimeoffset dbcc " +
                           "deallocate decimal declare default delete deny desc disk distinct " +
                           "distributed double drop dump else end errlvl escape except exec execute " +
                           "exit external fetch file fillfactor float for foreign freetext freetexttable " +
                           "from full function goto grant group having hierarchyid holdlock identity " +
                           "identity_insert identitycol if image index insert int intersect into key kill " +
                           "lineno load merge money national nchar nocheck nocount nolock nonclustered " +
                           "ntext numeric nvarchar of off offsets on open opendatasource openquery " +
                           "openrowset openxml option order over percent plan precision primary print " +
                           "proc procedure public raiserror read readtext real reconfigure references " +
                           "replication restore restrict return revert revoke rollback rowcount " +
                           "rowguidcol rule save schema securityaudit select set setuser shutdown " +
                           "smalldatetime smallint smallmoney sql_variant statistics table " +
                           "tablesample text textsize then time timestamp tinyint to top tran " +
                           "transaction trigger truncate try union unique uniqueidentifier update " +
                           "updatetext use user values varbinary varchar varying view waitfor when " +
                           "where while with writetext xml " +
                           //Custom TPT
                           "define job operator type schema attributes varchar integer decimal character apply step to select from");
     // Word2 = 1
     scintilla.SetKeywords(1, "ascii cast char charindex ceiling coalesce collate contains convert " +
                           "current_date current_time current_timestamp current_user floor isnull " +
                           "max min nullif object_id session_user substring system_user tsequal ");
     // User1 = 4
     scintilla.SetKeywords(4, "all and any between cross exists in inner is join left like not null " +
                           "or outer pivot right some unpivot ( ) * " +
                           //Custom TPT
                           "update load odbc");
     // User2 = 5
     scintilla.SetKeywords(5, "sys objects sysobjects ");
 }
示例#34
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.scintilla = new ScintillaNET.Scintilla();
            this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
            ((System.ComponentModel.ISupportInitialize)(this.scintilla)).BeginInit();
            this.SuspendLayout();
            // 
            // _scintilla
            // 
            this.scintilla.Dock = System.Windows.Forms.DockStyle.Fill;
            this.scintilla.LineWrapping.VisualFlags = ScintillaNET.LineWrappingVisualFlags.End;
            this.scintilla.Location = new System.Drawing.Point(0, 0);
            this.scintilla.Margins.Margin1.AutoToggleMarkerNumber = 0;
            this.scintilla.Margins.Margin1.IsClickable = true;
            this.scintilla.Margins.Margin2.Width = 16;
            this.scintilla.Name = "_scintilla";
            this.scintilla.Size = new System.Drawing.Size(292, 266);
            this.scintilla.TabIndex = 0;
            this.scintilla.StyleNeeded += new System.EventHandler<ScintillaNET.StyleNeededEventArgs>(this.scintilla_StyleNeeded);
            this.scintilla.ModifiedChanged += new System.EventHandler(this.scintilla_ModifiedChanged);
            // 
            // saveFileDialog
            // 
            this.saveFileDialog.Filter = "All Files (*.*)|*.*";
            // 
            // DocumentForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(292, 266);
            this.Controls.Add(this.scintilla);
            this.Name = "DocumentForm";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.DocumentForm_FormClosing);
            ((System.ComponentModel.ISupportInitialize)(this.scintilla)).EndInit();
            this.ResumeLayout(false);

        }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.scintilla = new ScintillaNET.Scintilla();
     ((System.ComponentModel.ISupportInitialize)(this.scintilla)).BeginInit();
     this.SuspendLayout();
     //
     // scintilla
     //
     this.scintilla.Dock = System.Windows.Forms.DockStyle.Fill;
     this.scintilla.Font = new System.Drawing.Font("Courier New", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.scintilla.Location = new System.Drawing.Point(0, 0);
     this.scintilla.Margins.Margin0.Width = 50;
     this.scintilla.Name = "scintilla";
     this.scintilla.Size = new System.Drawing.Size(471, 274);
     this.scintilla.Styles.BraceBad.Size = 10F;
     this.scintilla.Styles.BraceLight.Size = 10F;
     this.scintilla.Styles.ControlChar.Size = 10F;
     this.scintilla.Styles.Default.BackColor = System.Drawing.SystemColors.Window;
     this.scintilla.Styles.Default.Size = 10F;
     this.scintilla.Styles.IndentGuide.Size = 10F;
     this.scintilla.Styles.LastPredefined.Size = 10F;
     this.scintilla.Styles.LineNumber.Size = 9F;
     this.scintilla.Styles.Max.Size = 10F;
     this.scintilla.TabIndex = 1;
     this.scintilla.SelectionChanged += new System.EventHandler(this.scintilla_SelectionChanged);
     //
     // SourceFileTabPage
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.scintilla);
     this.Name = "SourceFileTabPage";
     this.Size = new System.Drawing.Size(471, 274);
     ((System.ComponentModel.ISupportInitialize)(this.scintilla)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(IBScriptEditor));
     this.scintilla1 = new ScintillaNET.Scintilla();
     this.splitContainerMain = new System.Windows.Forms.SplitContainer();
     this.splitContainerScript = new System.Windows.Forms.SplitContainer();
     this.txtInfo = new System.Windows.Forms.TextBox();
     this.cmbFunctions = new System.Windows.Forms.ComboBox();
     this.lbxFunctions = new System.Windows.Forms.ListBox();
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.tsSaveScript = new System.Windows.Forms.ToolStripButton();
     this.tsShowWhiteSpace = new System.Windows.Forms.ToolStripButton();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerMain)).BeginInit();
     this.splitContainerMain.Panel1.SuspendLayout();
     this.splitContainerMain.Panel2.SuspendLayout();
     this.splitContainerMain.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerScript)).BeginInit();
     this.splitContainerScript.Panel1.SuspendLayout();
     this.splitContainerScript.Panel2.SuspendLayout();
     this.splitContainerScript.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // scintilla1
     //
     this.scintilla1.AutoCMaxHeight = 25;
     this.scintilla1.AutoCOrder = ScintillaNET.Order.PerformSort;
     this.scintilla1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.scintilla1.Location = new System.Drawing.Point(0, 0);
     this.scintilla1.Name = "scintilla1";
     this.scintilla1.Size = new System.Drawing.Size(738, 408);
     this.scintilla1.TabIndex = 1;
     this.scintilla1.TabWidth = 3;
     this.scintilla1.UseTabs = false;
     this.scintilla1.CharAdded += new System.EventHandler<ScintillaNET.CharAddedEventArgs>(this.scintilla1_CharAdded);
     //
     // splitContainerMain
     //
     this.splitContainerMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.splitContainerMain.Location = new System.Drawing.Point(0, 28);
     this.splitContainerMain.Name = "splitContainerMain";
     //
     // splitContainerMain.Panel1
     //
     this.splitContainerMain.Panel1.Controls.Add(this.splitContainerScript);
     //
     // splitContainerMain.Panel2
     //
     this.splitContainerMain.Panel2.Controls.Add(this.cmbFunctions);
     this.splitContainerMain.Panel2.Controls.Add(this.lbxFunctions);
     this.splitContainerMain.Size = new System.Drawing.Size(972, 527);
     this.splitContainerMain.SplitterDistance = 738;
     this.splitContainerMain.TabIndex = 2;
     //
     // splitContainerScript
     //
     this.splitContainerScript.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainerScript.Location = new System.Drawing.Point(0, 0);
     this.splitContainerScript.Name = "splitContainerScript";
     this.splitContainerScript.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainerScript.Panel1
     //
     this.splitContainerScript.Panel1.Controls.Add(this.scintilla1);
     //
     // splitContainerScript.Panel2
     //
     this.splitContainerScript.Panel2.Controls.Add(this.txtInfo);
     this.splitContainerScript.Size = new System.Drawing.Size(738, 527);
     this.splitContainerScript.SplitterDistance = 408;
     this.splitContainerScript.TabIndex = 0;
     //
     // txtInfo
     //
     this.txtInfo.Dock = System.Windows.Forms.DockStyle.Fill;
     this.txtInfo.Location = new System.Drawing.Point(0, 0);
     this.txtInfo.Multiline = true;
     this.txtInfo.Name = "txtInfo";
     this.txtInfo.Size = new System.Drawing.Size(738, 115);
     this.txtInfo.TabIndex = 0;
     //
     // cmbFunctions
     //
     this.cmbFunctions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.cmbFunctions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbFunctions.FormattingEnabled = true;
     this.cmbFunctions.Location = new System.Drawing.Point(3, 3);
     this.cmbFunctions.Name = "cmbFunctions";
     this.cmbFunctions.Size = new System.Drawing.Size(224, 21);
     this.cmbFunctions.TabIndex = 1;
     //
     // lbxFunctions
     //
     this.lbxFunctions.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.lbxFunctions.FormattingEnabled = true;
     this.lbxFunctions.Location = new System.Drawing.Point(3, 26);
     this.lbxFunctions.Name = "lbxFunctions";
     this.lbxFunctions.Size = new System.Drawing.Size(224, 498);
     this.lbxFunctions.TabIndex = 0;
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.tsSaveScript,
     this.tsShowWhiteSpace});
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new System.Drawing.Size(972, 25);
     this.toolStrip1.TabIndex = 3;
     this.toolStrip1.Text = "toolStrip1";
     //
     // tsSaveScript
     //
     this.tsSaveScript.BackColor = System.Drawing.Color.LightGreen;
     this.tsSaveScript.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.tsSaveScript.Image = ((System.Drawing.Image)(resources.GetObject("tsSaveScript.Image")));
     this.tsSaveScript.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsSaveScript.Name = "tsSaveScript";
     this.tsSaveScript.Size = new System.Drawing.Size(68, 22);
     this.tsSaveScript.Text = "Save Script";
     this.tsSaveScript.Click += new System.EventHandler(this.tsSaveScript_Click);
     //
     // tsShowWhiteSpace
     //
     this.tsShowWhiteSpace.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.tsShowWhiteSpace.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.tsShowWhiteSpace.Image = ((System.Drawing.Image)(resources.GetObject("tsShowWhiteSpace.Image")));
     this.tsShowWhiteSpace.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsShowWhiteSpace.Name = "tsShowWhiteSpace";
     this.tsShowWhiteSpace.Size = new System.Drawing.Size(102, 22);
     this.tsShowWhiteSpace.Text = "ShowWhiteSpace";
     this.tsShowWhiteSpace.Click += new System.EventHandler(this.tsShowWhiteSpace_Click);
     //
     // IBScriptEditor
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(972, 555);
     this.Controls.Add(this.toolStrip1);
     this.Controls.Add(this.splitContainerMain);
     this.DoubleBuffered = true;
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.MinimumSize = new System.Drawing.Size(856, 554);
     this.Name = "IBScriptEditor";
     this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.Document;
     this.Text = "IB Script Editor";
     this.splitContainerMain.Panel1.ResumeLayout(false);
     this.splitContainerMain.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerMain)).EndInit();
     this.splitContainerMain.ResumeLayout(false);
     this.splitContainerScript.Panel1.ResumeLayout(false);
     this.splitContainerScript.Panel2.ResumeLayout(false);
     this.splitContainerScript.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerScript)).EndInit();
     this.splitContainerScript.ResumeLayout(false);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#37
0
        void scintilla1_Leave(object sender, EventArgs e)
        {
            ScintillaNET.Scintilla scintilla1 = sender as ScintillaNET.Scintilla;

            variableHover.Hide(scintilla1);
            hoverTimer.Enabled = false;
            m_HoverScintilla = null;
            m_HoverItem = null;
            m_HoverNode = null;
            m_HoverPos = Point.Empty;
        }
示例#38
0
        void FindAllFiles()
        {
            if (m_Scintillas.Count == 0)
                return;

            if (m_FindResultsDisplay == null)
            {
                m_FindResultsDisplay = new ScintillaNET.Scintilla();
                ((System.ComponentModel.ISupportInitialize)(m_FindResultsDisplay)).BeginInit();

                m_FindResultsDisplay.Dock = System.Windows.Forms.DockStyle.Fill;
                m_FindResultsDisplay.Margins.Left = 0;
                m_FindResultsDisplay.Name = "findResults";
                m_FindResultsDisplay.ConfigurationManager.Language = "errorlist";

                m_FindResultsDisplay.DoubleClick += new EventHandler(findResults_DoubleClick);

                ((System.ComponentModel.ISupportInitialize)(m_FindResultsDisplay)).EndInit();

                var w = Helpers.WrapDockContent(dockPanel, m_FindResultsDisplay, "Find Results");
                w.DockAreas |= DockAreas.Float;
                w.DockState = DockState.DockBottom;
                w.HideOnClose = true;
                w.Show((m_Scintillas[0].Parent as DockContent).Pane, DockAlignment.Bottom, 0.5);
            }
            else
            {
                m_FindResultsDisplay.Text = "";
                m_FindResultsDisplay.Parent.Show();
            }

            var findResultsByEd = new Dictionary<ScintillaNET.Scintilla, List<ScintillaNET.Range>>();

            if (m_FindAll.Regexs)
            {
                m_FindResultsDisplay.Text = String.Format("Find all \"{0}\", Regular Expressions", m_FindAll.Search);

                foreach (var s in m_Scintillas)
                {
                    if (s == m_DisassemblyView)
                        continue;
                    findResultsByEd.Add(s, s.FindReplace.FindAll(m_FindAll.SearchRegex));
                }
            }
            else
            {
                m_FindResultsDisplay.Text = String.Format("Find all \"{0}\"", m_FindAll.Search);

                if((m_FindAll.FindAllOptions & ScintillaNET.SearchFlags.MatchCase) != 0)
                    m_FindResultsDisplay.Text += ", Match case";
                if ((m_FindAll.FindAllOptions & ScintillaNET.SearchFlags.WholeWord) != 0)
                    m_FindResultsDisplay.Text += ", Whole word";
                if ((m_FindAll.FindAllOptions & ScintillaNET.SearchFlags.WordStart) != 0)
                    m_FindResultsDisplay.Text += ", Word start";

                foreach (var s in m_Scintillas)
                {
                    if (s == m_DisassemblyView)
                        continue;
                    findResultsByEd.Add(s, s.FindReplace.FindAll(m_FindAll.Search, m_FindAll.FindAllOptions));
                }
            }

            int fileCount = 0;

            foreach (var kv in findResultsByEd)
            {
                string filename = (kv.Key.Parent as DockContent).Text;

                if (kv.Value.Count > 0)
                    fileCount++;

                foreach(var result in kv.Value)
                {
                    string text = kv.Key.Lines[result.StartingLine.Number].Text;

                    int nl = text.IndexOf('\n');
                    if (nl != -1)
                        text = text.Substring(0, nl);

                    m_FindResultsDisplay.Text += String.Format("{0}  {1}({2}): {3}", Environment.NewLine, filename, result.StartingLine.Number + 1, text);

                    m_FindResults.Add(new KeyValuePair<ScintillaNET.Scintilla, ScintillaNET.Range>(kv.Key, result));
                }
            }

            m_FindResultsDisplay.Text += String.Format("{0}Matching lines: {1} Matching files: {2} Total files searched: {3}",
                Environment.NewLine, m_FindResults.Count, fileCount, m_Scintillas.Count - (m_DisassemblyView != null ? 1 : 0));
        }
示例#39
0
        private ScintillaNET.Scintilla MakeEditor(string name, string text, bool hlsl)
        {
            ScintillaNET.Scintilla scintilla1 = new ScintillaNET.Scintilla();
            ((System.ComponentModel.ISupportInitialize)(scintilla1)).BeginInit();

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShaderViewer));

            //
            // scintilla1
            //
            scintilla1.Dock = System.Windows.Forms.DockStyle.Fill;
            scintilla1.Location = new System.Drawing.Point(3, 3);
            scintilla1.Margins.Left = 4;
            scintilla1.Margins.Margin0.Width = 30;
            scintilla1.Margins.Margin1.Width = 0;
            scintilla1.Margins.Margin2.Width = 16;
            scintilla1.Name = name;
            scintilla1.Size = new System.Drawing.Size(581, 494);

            scintilla1.Text = text;
            if (scintilla1.Lines.Count > 1000)
                scintilla1.Margins.Margin0.Width += 6;
            if (scintilla1.Lines.Count > 10000)
                scintilla1.Margins.Margin0.Width += 6;

            scintilla1.Click += new EventHandler(scintilla1_Click);

            scintilla1.Indicators[4].Style = ScintillaNET.IndicatorStyle.RoundBox;
            scintilla1.Indicators[4].Color = Color.DarkGreen;

            ((System.ComponentModel.ISupportInitialize)(scintilla1)).EndInit();

            var hlslpath = Path.Combine(Core.ConfigDirectory, "hlsl.xml");

            if (!File.Exists(hlslpath) ||
                File.GetLastWriteTimeUtc(hlslpath).CompareTo(File.GetLastWriteTimeUtc(Assembly.GetExecutingAssembly().Location)) < 0)
            {
                using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("renderdocui.Resources.hlsl.xml"))
                {
                    using (StreamReader reader = new StreamReader(stream))
                    {
                        File.WriteAllText(hlslpath, reader.ReadToEnd());
                    }
                }
            }

            if (hlsl)
            {
                scintilla1.Lexing.LexerLanguageMap["hlsl"] = "cpp";
                scintilla1.ConfigurationManager.CustomLocation = Core.ConfigDirectory;
                scintilla1.ConfigurationManager.Language = "hlsl";
                scintilla1.Lexing.SetProperty("lexer.cpp.track.preprocessor", "0");
            }
            else
            {
                scintilla1.ConfigurationManager.Language = "asm";
            }

            scintilla1.Scrolling.HorizontalWidth = 1;

            const uint SCI_SETSCROLLWIDTHTRACKING = 2516;
            scintilla1.NativeInterface.SendMessageDirect(SCI_SETSCROLLWIDTHTRACKING, true);

            return scintilla1;
        }
示例#40
0
        void scintilla1_MouseMove(object sender, MouseEventArgs e)
        {
            if (m_Trace == null || m_Trace.states.Length == 0) return;

            ScintillaNET.Scintilla scintilla1 = sender as ScintillaNET.Scintilla;

            var pt = scintilla1.PointToClient(Cursor.Position);

            if (pt.X == m_HoverPos.X && pt.Y == m_HoverPos.Y) return;

            m_HoverPos = pt;

            variableHover.Hide(scintilla1);
            hoverTimer.Enabled = false;
            m_HoverItem = null;
            m_HoverNode = null;
            m_HoverScintilla = null;

            int pos = scintilla1.PositionFromPoint(pt.X, pt.Y);

            string word = scintilla1.GetWordFromPosition(pos);

            var match = Regex.Match(word, "^[rvo][0-9]+$");

            if (match.Success)
            {
                m_HoverReg = word;
                m_HoverScintilla = scintilla1;

                hoverTimer.Enabled = true;
                hoverTimer.Start();
            }
        }
示例#41
0
        void scintilla1_Leave(object sender, EventArgs e)
        {
            ScintillaNET.Scintilla scintilla1 = sender as ScintillaNET.Scintilla;

            System.Diagnostics.Trace.WriteLine("leave");

            variableHover.Hide(scintilla1);
            hoverTimer.Enabled = false;
            m_HoverScintilla = null;
            m_HoverItem = null;
            m_HoverNode = null;
            m_HoverPos = Point.Empty;
        }
示例#42
0
        public ShaderViewer(Core core, ShaderReflection shader, ShaderStageType stage, ShaderDebugTrace trace, string debugContext)
        {
            InitializeComponent();

            constantRegs.Font =
                variableRegs.Font =
                watchRegs.Font =
                inSig.Font =
                outSig.Font =
                core.Config.PreferredFont;

            Icon = global::renderdocui.Properties.Resources.icon;

            this.SuspendLayout();

            mainLayout.Dock = DockStyle.Fill;

            constantRegs.Font =
                variableRegs.Font =
                watchRegs.Font =
                inSig.Font =
                outSig.Font =
                core.Config.PreferredFont;

            m_Core = core;
            m_ShaderDetails = shader;
            m_Trace = trace;
            m_Stage = null;
            switch (stage)
            {
                case ShaderStageType.Vertex: m_Stage = m_Core.CurD3D11PipelineState.m_VS; break;
                case ShaderStageType.Domain: m_Stage = m_Core.CurD3D11PipelineState.m_DS; break;
                case ShaderStageType.Hull: m_Stage = m_Core.CurD3D11PipelineState.m_HS; break;
                case ShaderStageType.Geometry: m_Stage = m_Core.CurD3D11PipelineState.m_GS; break;
                case ShaderStageType.Pixel: m_Stage = m_Core.CurD3D11PipelineState.m_PS; break;
                case ShaderStageType.Compute: m_Stage = m_Core.CurD3D11PipelineState.m_CS; break;
            }

            if (trace != null)
                Text = String.Format("Debugging {0} - {1}", m_Core.CurPipelineState.GetShaderName(stage), debugContext);
            else
                Text = m_Core.CurPipelineState.GetShaderName(stage);

            var disasm = shader.Disassembly;

            if (m_Core.Config.ShaderViewer_FriendlyNaming)
            {
                for (int i = 0; i < m_ShaderDetails.ConstantBlocks.Length; i++)
                {
                    var stem = string.Format("cb{0}", i);

                    var cbuf = m_ShaderDetails.ConstantBlocks[i];

                    if (cbuf.variables.Length == 0)
                        continue;

                    disasm = FriendlyName(disasm, stem, "", cbuf.variables);
                }

                foreach (var r in m_ShaderDetails.Resources)
                {
                    if (r.IsSRV)
                    {
                        var needle = string.Format(", t{0}([^0-9])", r.bindPoint);
                        var replacement = string.Format(", {0}$1", r.name);

                        Regex rgx = new Regex(needle);
                        disasm = rgx.Replace(disasm, replacement);
                    }
                    if (r.IsSampler)
                    {
                        var needle = string.Format(", s{0}([^0-9])", r.bindPoint);
                        var replacement = string.Format(", {0}$1", r.name);

                        Regex rgx = new Regex(needle);
                        disasm = rgx.Replace(disasm, replacement);
                    }
                    if (r.IsReadWrite)
                    {
                        var needle = string.Format(", u{0}([^0-9])", r.bindPoint);
                        var replacement = string.Format(", {0}$1", r.name);

                        Regex rgx = new Regex(needle);
                        disasm = rgx.Replace(disasm, replacement);
                    }
                }
            }

            {
                m_DisassemblyView = MakeEditor("scintillaDisassem", disasm, false);
                m_DisassemblyView.IsReadOnly = true;
                m_DisassemblyView.TabIndex = 0;

                m_DisassemblyView.KeyDown += new KeyEventHandler(m_DisassemblyView_KeyDown);
                m_DisassemblyView.KeyDown += new KeyEventHandler(readonlyScintilla_KeyDown);

                m_DisassemblyView.Markers[CURRENT_MARKER].BackColor = System.Drawing.Color.LightCoral;
                m_DisassemblyView.Markers[CURRENT_MARKER].Symbol = ScintillaNET.MarkerSymbol.Background;
                m_DisassemblyView.Markers[CURRENT_MARKER+1].BackColor = System.Drawing.Color.LightCoral;
                m_DisassemblyView.Markers[CURRENT_MARKER+1].Symbol = ScintillaNET.MarkerSymbol.ShortArrow;

                CurrentLineMarkers.Add(CURRENT_MARKER);
                CurrentLineMarkers.Add(CURRENT_MARKER+1);

                m_DisassemblyView.Markers[FINISHED_MARKER].BackColor = System.Drawing.Color.LightSlateGray;
                m_DisassemblyView.Markers[FINISHED_MARKER].Symbol = ScintillaNET.MarkerSymbol.Background;
                m_DisassemblyView.Markers[FINISHED_MARKER + 1].BackColor = System.Drawing.Color.LightSlateGray;
                m_DisassemblyView.Markers[FINISHED_MARKER + 1].Symbol = ScintillaNET.MarkerSymbol.RoundRectangle;

                FinishedMarkers.Add(FINISHED_MARKER);
                FinishedMarkers.Add(FINISHED_MARKER + 1);

                m_DisassemblyView.Markers[BREAKPOINT_MARKER].BackColor = System.Drawing.Color.Red;
                m_DisassemblyView.Markers[BREAKPOINT_MARKER].Symbol = ScintillaNET.MarkerSymbol.Background;
                m_DisassemblyView.Markers[BREAKPOINT_MARKER+1].BackColor = System.Drawing.Color.Red;
                m_DisassemblyView.Markers[BREAKPOINT_MARKER+1].Symbol = ScintillaNET.MarkerSymbol.Circle;

                BreakpointMarkers.Add(BREAKPOINT_MARKER);
                BreakpointMarkers.Add(BREAKPOINT_MARKER + 1);

                if (trace != null)
                {
                    m_DisassemblyView.ContextMenu = AssemblyContextMenu();
                    m_DisassemblyView.MouseDown += new MouseEventHandler(contextMouseDown);
                }

                m_Scintillas.Add(m_DisassemblyView);

                var w = Helpers.WrapDockContent(dockPanel, m_DisassemblyView, "Disassembly");
                w.DockState = DockState.Document;
                w.Show();

                w.CloseButton = false;
                w.CloseButtonVisible = false;
            }

            if (shader.DebugInfo.entryFunc.Length > 0 && shader.DebugInfo.files.Length > 0)
            {
                if(trace != null)
                    Text = String.Format("Debug {0}() - {1}", shader.DebugInfo.entryFunc, debugContext);
                else
                    Text = String.Format("{0}()", shader.DebugInfo.entryFunc);

                int fileIdx = 0;

                DockContent sel = null;
                foreach (var f in shader.DebugInfo.files)
                {
                    var name = f.BaseFilename;

                    ScintillaNET.Scintilla scintilla1 = MakeEditor("scintilla" + name, f.filetext, true);
                    scintilla1.IsReadOnly = true;

                    scintilla1.Tag = name;

                    scintilla1.KeyDown += new KeyEventHandler(readonlyScintilla_KeyDown);

                    var w = Helpers.WrapDockContent(dockPanel, scintilla1, name);
                    w.CloseButton = false;
                    w.CloseButtonVisible = false;
                    w.Show(dockPanel);

                    m_Scintillas.Add(scintilla1);

                    if (shader.DebugInfo.entryFile >= 0 && shader.DebugInfo.entryFile < shader.DebugInfo.files.Length)
                    {
                        if (fileIdx == shader.DebugInfo.entryFile)
                            sel = w;
                    }
                    else if (f.filetext.Contains(shader.DebugInfo.entryFunc))
                    {
                        sel = w;
                    }

                    fileIdx++;
                }

                if (shader.DebugInfo.files.Length > 2)
                    AddFileList();

                if (trace != null || sel == null)
                    sel = (DockContent)m_DisassemblyView.Parent;

                sel.Show();
            }

            m_FindAll = new FindAllDialog(FindAllFiles);
            m_FindAll.Hide();

            ShowConstants();
            ShowVariables();
            ShowWatch();
            ShowErrors();

            editStrip.Visible = false;

            m_ErrorsDock.Hide();

            if (trace == null)
            {
                debuggingStrip.Visible = false;
                m_ConstantsDock.Hide();
                m_VariablesDock.Hide();
                m_WatchDock.Hide();

                var insig = Helpers.WrapDockContent(dockPanel, inSigBox);
                insig.CloseButton = insig.CloseButtonVisible = false;

                var outsig = Helpers.WrapDockContent(dockPanel, outSigBox);
                outsig.CloseButton = outsig.CloseButtonVisible = false;

                insig.Show(dockPanel, DockState.DockBottom);
                outsig.Show(insig.Pane, DockAlignment.Right, 0.5);

                foreach (var s in m_ShaderDetails.InputSig)
                {
                    string name = s.varName.Length == 0 ? s.semanticName : String.Format("{0} ({1})", s.varName, s.semanticName);
                    if (s.semanticName.Length == 0) name = s.varName;

                    inSig.Nodes.Add(new object[] { name, s.semanticIndex, s.regIndex, s.TypeString, s.systemValue.ToString(),
                                                                SigParameter.GetComponentString(s.regChannelMask), SigParameter.GetComponentString(s.channelUsedMask) });
                }

                bool multipleStreams = false;
                for (int i = 0; i < m_ShaderDetails.OutputSig.Length; i++)
                {
                    if (m_ShaderDetails.OutputSig[i].stream > 0)
                    {
                        multipleStreams = true;
                        break;
                    }
                }

                foreach (var s in m_ShaderDetails.OutputSig)
                {
                    string name = s.varName.Length == 0 ? s.semanticName : String.Format("{0} ({1})", s.varName, s.semanticName);
                    if (s.semanticName.Length == 0) name = s.varName;

                    if(multipleStreams)
                        name = String.Format("Stream {0} : {1}", s.stream, name);

                    outSig.Nodes.Add(new object[] { name, s.semanticIndex, s.regIndex, s.TypeString, s.systemValue.ToString(),
                                                                SigParameter.GetComponentString(s.regChannelMask), SigParameter.GetComponentString(s.channelUsedMask) });
                }
            }
            else
            {
                inSigBox.Visible = false;
                outSigBox.Visible = false;

                m_DisassemblyView.Margins.Margin1.Width = 20;

                m_DisassemblyView.Margins.Margin2.Width = 0;

                m_DisassemblyView.Margins.Margin3.Width = 20;
                m_DisassemblyView.Margins.Margin3.IsMarkerMargin = true;
                m_DisassemblyView.Margins.Margin3.IsFoldMargin = false;
                m_DisassemblyView.Margins.Margin3.Type = ScintillaNET.MarginType.Symbol;

                m_DisassemblyView.Margins.Margin1.Mask = (int)m_DisassemblyView.Markers[BREAKPOINT_MARKER + 1].Mask;
                m_DisassemblyView.Margins.Margin3.Mask &= ~((int)m_DisassemblyView.Markers[BREAKPOINT_MARKER + 1].Mask);

                m_DisassemblyView.MouseMove += new MouseEventHandler(scintilla1_MouseMove);
                m_DisassemblyView.Leave += new EventHandler(scintilla1_Leave);
                m_DisassemblyView.KeyDown += new KeyEventHandler(scintilla1_DebuggingKeyDown);

                watchRegs.Items.Add(new ListViewItem(new string[] { "", "", "" }));
            }

            CurrentStep = 0;

            this.ResumeLayout(false);
        }
示例#43
0
        public MainForm()
        {
            // Find the location of visual studio (%VS90COMNTOOLS%\..\..\vc\vcvarsall.bat)
            // source: http://stackoverflow.com/questions/30504/programmatically-retrieve-visual-studio-install-directory (Kevin Kibler 2014)
            string visualStudioRegistryKeyPath = @"SOFTWARE\Microsoft\VisualStudio";
            string visualCSharpExpressRegistryKeyPath = @"SOFTWARE\Microsoft\VCSExpress";
            List<Version> vsVersions = new List<Version>() { new Version("12.0"), new Version("11.0"), 
                new Version("14.0"), new Version("10.0"), new Version("15.0") };
            foreach (var version in vsVersions)
            {
                foreach (var isExpress in new bool[] { false, true })
                {
                    RegistryKey registryBase32 = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32);
                    RegistryKey vsVersionRegistryKey = registryBase32.OpenSubKey(
                        string.Format(@"{0}\{1}.{2}", (isExpress) ? visualCSharpExpressRegistryKeyPath : visualStudioRegistryKeyPath, version.Major, version.Minor));
                    if (vsVersionRegistryKey == null) { continue; }
                    string path = vsVersionRegistryKey.GetValue("InstallDir", string.Empty).ToString();
                    if (!String.IsNullOrEmpty(path))
                    {
                        path = Directory.GetParent(path).Parent.Parent.FullName;
                        if (File.Exists(path + @"\VC\bin\cl.exe") && File.Exists(path + @"\VC\vcvarsall.bat"))
                        {
                            vsStudioPath = path;
                            break;
                        }
                    }
                }
                if (!String.IsNullOrEmpty(vsStudioPath)) 
                    break;
            }


            if (String.IsNullOrEmpty(vsStudioPath))
                if (MessageBox.Show(this, "The cl.exe and//or vcvarsall.bat cannot be found in the Visual " 
                    + "Studio directory. Please download Visual Studio from Microsoft's website. \nDo still "
                    + "wish to continue although CudaPAD may not run correctly?",
                    "Missing Cuda Compiler", MessageBoxButtons.YesNo,
                    MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == DialogResult.No)
                    Application.Exit();

            /////////// SETUP TEMP\cupad09 FOLDER ///////////
            // Set All the Paths for CLEXE_PATH, and TEMP_PATH
            string system_temp_folder = System.Environment.GetEnvironmentVariable("TEMP");
            if (system_temp_folder == null)
                throw new ApplicationException("Environment Variable 'TEMP' does not exists.");

            // Make sure the folder cupad09 folder exists
            TEMP_PATH = system_temp_folder + @"\cupad09\";
            if (!Directory.Exists(TEMP_PATH))
                Directory.CreateDirectory(TEMP_PATH);
            else //folder already exists
                foreach (string filename in new string[] { 
                    "data.cubin", 
                    "data.ptx", 
                    "rtcof.dat", 
                    "rtcof.bat", 
                    "data.cu", 
                    "info.txt", 
                    "SASS.txt", 
                    "data.cudafe1.c", 
                    "data.cudafe1.stub.c",
                    "data.cudafe2.c", 
                    "data.cudafe2.stub.c",
                    "data.cudafe1.cpp" ,
                    "data.cpp1.i" ,
                    "data.cpp1.i.res" ,
                    "data.cpp2.i" ,
                    "data.cpp2.i.res" ,
                    "data.cpp3.i" ,
                    "data.cpp3.i.res" ,
                    "data.cpp4.i" ,
                    "data.cpp4.i.res" ,
                    "data.cpp5.i" ,
                    "data.cpp5.i.res" ,
                    "data.cpp1.ii" ,
                    "data.cpp1.ii.res" ,
                    "data.cpp2.ii" ,
                    "data.cpp2.ii.res" ,
                    "data.cpp3.ii" ,
                    "data.cpp3.ii.res" ,
                    "data.cpp4.ii" ,
                    "data.cpp4.ii.res" ,
                    "data.cpp5.ii" ,
                    "data.cpp5.ii.res" 
                })

            if (File.Exists(TEMP_PATH + @"\" + filename))
                File.Delete(TEMP_PATH + filename);


            // Initialize some random stuff
            InitializeComponent();
            this.Icon = Properties.Resources.PTXIcon48x48x8Only;
            SetPanelSize();


            /////////// Setup RegExCleaner ///////////
            ConfigureRegExCleaner(false);

            linesDrawPanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;

            txtDst.Text = "Loading....";

            lastTextBoxSelected = txtSrc;

            BuildNvccBatchFile();

            process.StartInfo.FileName = TEMP_PATH + @"\rtcof.bat";
            process.StartInfo.WorkingDirectory = TEMP_PATH;

            // Is there a file in the command line arguments load that
            foreach (string arg in Environment.GetCommandLineArgs())
            {
                OpenFile(arg);
                if (!String.IsNullOrEmpty(curOpenCudaFile))
                    break;
            }
            if (String.IsNullOrEmpty(curOpenCudaFile))
            {
                StringBuilder sb = new StringBuilder(2000);
                sb.AppendLine(@"/* Welcome to CudaPAD. */");
                sb.AppendLine(@"");
                sb.AppendLine(@"//a modified version of the timedReduction example from NVidia's API");
                sb.AppendLine(@"extern ""C"" __global__ void timedReduction(const float * input, float * output, clock_t * timer)");
                sb.AppendLine(@"{");
                sb.AppendLine(@"    extern __shared__ float shared[];");
                sb.AppendLine(@"    const char* some_string = ""testing   123"";");
                sb.AppendLine(@"    const int tid = threadIdx.x;");
                sb.AppendLine(@"    const int bid = blockIdx.x;");
                sb.AppendLine(@"");
                sb.AppendLine(@"    if (tid == 0) timer[bid] = clock();");
                sb.AppendLine(@"");
                sb.AppendLine(@"    // Copy input.");
                sb.AppendLine(@"    shared[tid] = input[tid];");
                sb.AppendLine(@"    shared[tid + blockDim.x] = input[tid + blockDim.x];");
                sb.AppendLine(@"");
                sb.AppendLine(@"    // Perform reduction to find minimum.");
                sb.AppendLine(@"    for(int d = blockDim.x; d > 0; d /= 2)");
                sb.AppendLine(@"    {");
                sb.AppendLine(@"        __syncthreads();");
                sb.AppendLine(@"");
                sb.AppendLine(@"        if (tid < d)");
                sb.AppendLine(@"        {");
                sb.AppendLine(@"            float f0 = shared[tid];");
                sb.AppendLine(@"            float f1 = shared[tid + d];");
                sb.AppendLine(@"");
                sb.AppendLine(@"            if (f1 < f0) {");
                sb.AppendLine(@"                shared[tid] = f1;");
                sb.AppendLine(@"            }");
                sb.AppendLine(@"        }");
                sb.AppendLine(@"    }");
                sb.AppendLine(@"");
                sb.AppendLine(@"    // Write result.");
                sb.AppendLine(@"    if (tid == 0) output[bid] = shared[0];");
                sb.AppendLine(@"    __syncthreads();");
                sb.AppendLine(@"    if (tid == 0) timer[bid+gridDim.x] = clock();");
                sb.AppendLine(@"}");
                txtSrc.AppendText(sb.ToString());
            }


            txtDst.CurrentPos = 3;
            LinesEnabled = true;

            txtSrc.MouseWheel += delegate(object sender, MouseEventArgs e) { ReDrawLines(); };
            txtDst.MouseWheel += delegate(object sender, MouseEventArgs e) { ReDrawLines(); };

            changeTimer.Interval = 500;
            changeTimer.Enabled = true;
            changeTimer.Tick += changeTimer_Tick;

            unsavedChanges = false;
        }
示例#44
0
 private void txtCompileInfo_Enter(object sender, EventArgs e)
 {
     lastTextBoxSelected = txtCompileInfo;
 }
示例#45
0
 private void txtSrc_Enter(object sender, EventArgs e)
 {
     lastTextBoxSelected = txtSrc;
 }
示例#46
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.txtSql = new ScintillaNET.Scintilla();
     this.button1 = new System.Windows.Forms.Button();
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.tabControl1 = new System.Windows.Forms.TabControl();
     this.tabResult = new System.Windows.Forms.TabPage();
     this.tabInfo = new System.Windows.Forms.TabPage();
     this.listInfo = new System.Windows.Forms.ListView();
     this.Sql = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.affectedRows = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     ((System.ComponentModel.ISupportInitialize)(this.txtSql)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.tabResult.SuspendLayout();
     this.tabInfo.SuspendLayout();
     this.SuspendLayout();
     //
     // txtSql
     //
     this.txtSql.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.txtSql.AutoComplete.AutoHide = false;
     this.txtSql.AutoComplete.IsCaseSensitive = false;
     this.txtSql.AutoComplete.ListString = "";
     this.txtSql.Lexing.Lexer = ScintillaNET.Lexer.Sql;
     this.txtSql.Lexing.LexerName = "sql";
     this.txtSql.Lexing.LineCommentPrefix = "";
     this.txtSql.Lexing.StreamCommentPrefix = "";
     this.txtSql.Lexing.StreamCommentSufix = "";
     this.txtSql.Location = new System.Drawing.Point(3, 3);
     this.txtSql.Name = "txtSql";
     this.txtSql.Size = new System.Drawing.Size(1039, 136);
     this.txtSql.Styles.BraceBad.FontName = "Verd\0\0";
     this.txtSql.Styles.BraceBad.Size = 9F;
     this.txtSql.Styles.BraceLight.FontName = "Verd\0\0";
     this.txtSql.Styles.BraceLight.Size = 9F;
     this.txtSql.Styles.CallTip.FontName = "Micr\0\0";
     this.txtSql.Styles.ControlChar.FontName = "Verd\0\0";
     this.txtSql.Styles.ControlChar.Size = 9F;
     this.txtSql.Styles.Default.BackColor = System.Drawing.SystemColors.Window;
     this.txtSql.Styles.Default.FontName = "Verd\0\0";
     this.txtSql.Styles.Default.Size = 9F;
     this.txtSql.Styles.IndentGuide.FontName = "Verd\0\0";
     this.txtSql.Styles.IndentGuide.Size = 9F;
     this.txtSql.Styles.LastPredefined.FontName = "Verd\0\0";
     this.txtSql.Styles.LastPredefined.Size = 9F;
     this.txtSql.Styles.LineNumber.FontName = "Verd\0\0";
     this.txtSql.Styles.LineNumber.Size = 9F;
     this.txtSql.Styles.Max.FontName = "Verd\0\0";
     this.txtSql.Styles.Max.Size = 9F;
     this.txtSql.TabIndex = 2;
     this.txtSql.CharAdded += new System.EventHandler<ScintillaNET.CharAddedEventArgs>(this.txtSql_CharAdded);
     this.txtSql.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtSql_KeyDown_1);
     //
     // button1
     //
     this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Location = new System.Drawing.Point(1048, 3);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(113, 136);
     this.button1.TabIndex = 1;
     this.button1.Text = "Execute";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // dataGridView1
     //
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView1.Location = new System.Drawing.Point(3, 3);
     this.dataGridView1.Name = "dataGridView1";
     this.dataGridView1.RowTemplate.Height = 23;
     this.dataGridView1.Size = new System.Drawing.Size(1154, 504);
     this.dataGridView1.TabIndex = 2;
     //
     // splitContainer1
     //
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.txtSql);
     this.splitContainer1.Panel1.Controls.Add(this.button1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.tabControl1);
     this.splitContainer1.Size = new System.Drawing.Size(1172, 693);
     this.splitContainer1.SplitterDistance = 147;
     this.splitContainer1.TabIndex = 3;
     //
     // tabControl1
     //
     this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.tabControl1.Controls.Add(this.tabResult);
     this.tabControl1.Controls.Add(this.tabInfo);
     this.tabControl1.Location = new System.Drawing.Point(4, 4);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size = new System.Drawing.Size(1168, 536);
     this.tabControl1.TabIndex = 3;
     //
     // tabResult
     //
     this.tabResult.Controls.Add(this.dataGridView1);
     this.tabResult.Location = new System.Drawing.Point(4, 22);
     this.tabResult.Name = "tabResult";
     this.tabResult.Padding = new System.Windows.Forms.Padding(3);
     this.tabResult.Size = new System.Drawing.Size(1160, 510);
     this.tabResult.TabIndex = 0;
     this.tabResult.Text = "Result";
     this.tabResult.UseVisualStyleBackColor = true;
     //
     // tabInfo
     //
     this.tabInfo.Controls.Add(this.listInfo);
     this.tabInfo.Location = new System.Drawing.Point(4, 22);
     this.tabInfo.Name = "tabInfo";
     this.tabInfo.Padding = new System.Windows.Forms.Padding(3);
     this.tabInfo.Size = new System.Drawing.Size(1160, 518);
     this.tabInfo.TabIndex = 1;
     this.tabInfo.Text = "Info";
     this.tabInfo.UseVisualStyleBackColor = true;
     //
     // listInfo
     //
     this.listInfo.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.Sql,
     this.affectedRows});
     this.listInfo.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listInfo.GridLines = true;
     this.listInfo.Location = new System.Drawing.Point(3, 3);
     this.listInfo.Name = "listInfo";
     this.listInfo.Size = new System.Drawing.Size(1154, 512);
     this.listInfo.TabIndex = 0;
     this.listInfo.UseCompatibleStateImageBehavior = false;
     this.listInfo.View = System.Windows.Forms.View.List;
     this.listInfo.ItemActivate += new System.EventHandler(this.listInfo_ItemActivate);
     this.listInfo.DoubleClick += new System.EventHandler(this.listInfo_DoubleClick);
     //
     // Sql
     //
     this.Sql.Text = "Sql";
     this.Sql.Width = 500;
     //
     // affectedRows
     //
     this.affectedRows.Text = "影响行数";
     //
     // DbQuery
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(1172, 693);
     this.Controls.Add(this.splitContainer1);
     this.Name = "DbQuery";
     this.Text = "DbQuery";
     this.Load += new System.EventHandler(this.DbQuery_Load);
     ((System.ComponentModel.ISupportInitialize)(this.txtSql)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.tabControl1.ResumeLayout(false);
     this.tabResult.ResumeLayout(false);
     this.tabInfo.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#47
0
		/// <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();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this.NavigationPanel = new System.Windows.Forms.StatusStrip();
            this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
            this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
            this.mainToolStrip = new System.Windows.Forms.ToolStrip();
            this.toolStripButtonNew = new System.Windows.Forms.ToolStripButton();
            this.toolStripOpenButton = new System.Windows.Forms.ToolStripButton();
            this.toolStripSaveButton = new System.Windows.Forms.ToolStripButton();
            this.toolStripSaveAsButton = new System.Windows.Forms.ToolStripButton();
            this.toolStripButtonSaveStore = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripOptionsButton = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripGenerateButton = new System.Windows.Forms.ToolStripButton();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.nodes_list = new System.Windows.Forms.ListBox();
            this.nodesContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
            this.moveUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.moveDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripSeparator();
            this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.nodesToolStrip = new System.Windows.Forms.ToolStrip();
            this.toolStripButtonAddNode = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButtonMoveUp = new System.Windows.Forms.ToolStripButton();
            this.toolStripButtonMoveDown = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButtonDeleteNode = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButtonSort = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButtonTagSelected = new System.Windows.Forms.ToolStripButton();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.panel3 = new System.Windows.Forms.Panel();
            this.scintilla1 = new ScintillaNET.Scintilla();
            this.edtiorToolStrip = new System.Windows.Forms.ToolStrip();
            this.toolStripButtonCut = new System.Windows.Forms.ToolStripButton();
            this.toolStripButtonCopy = new System.Windows.Forms.ToolStripButton();
            this.toolStripButtonPaste = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButtonUndo = new System.Windows.Forms.ToolStripButton();
            this.toolStripButtonRedo = new System.Windows.Forms.ToolStripButton();
            this.splitter2 = new System.Windows.Forms.Splitter();
            this.panel2 = new System.Windows.Forms.Panel();
            this.help_context = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.splitter1 = new System.Windows.Forms.Splitter();
            this.panel4 = new System.Windows.Forms.Panel();
            this.tags = new System.Windows.Forms.Label();
            this.tagItems = new System.Windows.Forms.TextBox();
            this.tagCategories = new System.Windows.Forms.ListBox();
            this.label4 = new System.Windows.Forms.Label();
            this.panel1 = new System.Windows.Forms.Panel();
            this.saveNodeButton = new System.Windows.Forms.Button();
            this.reloadButton = new System.Windows.Forms.Button();
            this.base_class = new System.Windows.Forms.ComboBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.node_name = new System.Windows.Forms.TextBox();
            this.panel5 = new System.Windows.Forms.Panel();
            this.panel6 = new System.Windows.Forms.Panel();
            this.filterItems = new System.Windows.Forms.ListView();
            this.filtersPanelContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.editInTagsCollectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.filterCategories = new System.Windows.Forms.ListBox();
            this.panelFilterButtons = new System.Windows.Forms.Panel();
            this.filterSelected = new System.Windows.Forms.Button();
            this.filterAncestors = new System.Windows.Forms.Button();
            this.resetFilterButton = new System.Windows.Forms.Button();
            this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.saveAndStoreToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
            this.quitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.nodesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.addNodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
            this.moveNodeUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.moveNodeDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
            this.deleteNodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
            this.sortToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.присвоитьТегToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.globalRenamerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.contentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
            this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.filterPanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.optionsToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
            this.tagsCollectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.runToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.generateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.grammarBrowserToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.mainMenu = new System.Windows.Forms.MenuStrip();
            this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.splitter3 = new System.Windows.Forms.Splitter();
            this.NavigationPanel.SuspendLayout();
            this.mainToolStrip.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.nodesContextMenu.SuspendLayout();
            this.nodesToolStrip.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.panel3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.scintilla1)).BeginInit();
            this.edtiorToolStrip.SuspendLayout();
            this.panel2.SuspendLayout();
            this.panel4.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel5.SuspendLayout();
            this.panel6.SuspendLayout();
            this.filtersPanelContextMenu.SuspendLayout();
            this.panelFilterButtons.SuspendLayout();
            this.mainMenu.SuspendLayout();
            this.SuspendLayout();
            // 
            // openFileDialog1
            // 
            this.openFileDialog1.DefaultExt = "nin";
            this.openFileDialog1.Filter = "Файлы синтаксического дерева (*.nin)|*.nin|Все файлы (*.*)|*.*";
            // 
            // saveFileDialog1
            // 
            this.saveFileDialog1.DefaultExt = "nin";
            this.saveFileDialog1.Filter = "Файлы синтаксического дерева (*.nin)|*.nin|Все файлы (*.*)|*.*";
            // 
            // toolStripStatusLabel1
            // 
            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 17);
            // 
            // NavigationPanel
            // 
            this.NavigationPanel.Font = new System.Drawing.Font("Tahoma", 9F);
            this.NavigationPanel.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.NavigationPanel.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripDropDownButton1,
            this.toolStripStatusLabel2});
            this.NavigationPanel.Location = new System.Drawing.Point(0, 696);
            this.NavigationPanel.Name = "NavigationPanel";
            this.NavigationPanel.Size = new System.Drawing.Size(1088, 28);
            this.NavigationPanel.SizingGrip = false;
            this.NavigationPanel.TabIndex = 18;
            this.NavigationPanel.Resize += new System.EventHandler(this.NavigationPanel_Resize);
            // 
            // toolStripDropDownButton1
            // 
            this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripDropDownButton1.Font = new System.Drawing.Font("Tahoma", 9F);
            this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
            this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripDropDownButton1.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
            this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
            this.toolStripDropDownButton1.Size = new System.Drawing.Size(34, 24);
            this.toolStripDropDownButton1.Text = "toolStripDropDownButton1";
            // 
            // toolStripStatusLabel2
            // 
            this.toolStripStatusLabel2.Name = "toolStripStatusLabel2";
            this.toolStripStatusLabel2.Size = new System.Drawing.Size(0, 23);
            // 
            // mainToolStrip
            // 
            this.mainToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.mainToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripButtonNew,
            this.toolStripOpenButton,
            this.toolStripSaveButton,
            this.toolStripSaveAsButton,
            this.toolStripButtonSaveStore,
            this.toolStripSeparator1,
            this.toolStripOptionsButton,
            this.toolStripSeparator2,
            this.toolStripGenerateButton});
            this.mainToolStrip.Location = new System.Drawing.Point(0, 0);
            this.mainToolStrip.Name = "mainToolStrip";
            this.mainToolStrip.Size = new System.Drawing.Size(1088, 27);
            this.mainToolStrip.TabIndex = 19;
            this.mainToolStrip.Text = "toolStrip1";
            // 
            // toolStripButtonNew
            // 
            this.toolStripButtonNew.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonNew.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonNew.Image")));
            this.toolStripButtonNew.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonNew.Name = "toolStripButtonNew";
            this.toolStripButtonNew.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonNew.Text = "Новый";
            this.toolStripButtonNew.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
            // 
            // toolStripOpenButton
            // 
            this.toolStripOpenButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripOpenButton.Image = ((System.Drawing.Image)(resources.GetObject("toolStripOpenButton.Image")));
            this.toolStripOpenButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripOpenButton.Name = "toolStripOpenButton";
            this.toolStripOpenButton.Size = new System.Drawing.Size(24, 24);
            this.toolStripOpenButton.Text = "Открыть...";
            this.toolStripOpenButton.Click += new System.EventHandler(this.open_Click);
            // 
            // toolStripSaveButton
            // 
            this.toolStripSaveButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripSaveButton.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSaveButton.Image")));
            this.toolStripSaveButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripSaveButton.Name = "toolStripSaveButton";
            this.toolStripSaveButton.Size = new System.Drawing.Size(24, 24);
            this.toolStripSaveButton.Text = "Сохранить";
            this.toolStripSaveButton.Click += new System.EventHandler(this.save_Click);
            // 
            // toolStripSaveAsButton
            // 
            this.toolStripSaveAsButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripSaveAsButton.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSaveAsButton.Image")));
            this.toolStripSaveAsButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripSaveAsButton.Name = "toolStripSaveAsButton";
            this.toolStripSaveAsButton.Size = new System.Drawing.Size(24, 24);
            this.toolStripSaveAsButton.Text = "Сохранить как...";
            this.toolStripSaveAsButton.Click += new System.EventHandler(this.save_as_Click);
            // 
            // toolStripButtonSaveStore
            // 
            this.toolStripButtonSaveStore.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonSaveStore.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonSaveStore.Image")));
            this.toolStripButtonSaveStore.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonSaveStore.Name = "toolStripButtonSaveStore";
            this.toolStripButtonSaveStore.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonSaveStore.Text = "Сохранить и сделать копию";
            this.toolStripButtonSaveStore.Click += new System.EventHandler(this.toolStripButtonSaveStore_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 27);
            // 
            // toolStripOptionsButton
            // 
            this.toolStripOptionsButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripOptionsButton.Image = ((System.Drawing.Image)(resources.GetObject("toolStripOptionsButton.Image")));
            this.toolStripOptionsButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripOptionsButton.Name = "toolStripOptionsButton";
            this.toolStripOptionsButton.Size = new System.Drawing.Size(24, 24);
            this.toolStripOptionsButton.Text = "Настройки...";
            this.toolStripOptionsButton.Click += new System.EventHandler(this.toolStripOptionsButton_Click);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 27);
            // 
            // toolStripGenerateButton
            // 
            this.toolStripGenerateButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripGenerateButton.Image = ((System.Drawing.Image)(resources.GetObject("toolStripGenerateButton.Image")));
            this.toolStripGenerateButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripGenerateButton.Name = "toolStripGenerateButton";
            this.toolStripGenerateButton.Size = new System.Drawing.Size(24, 24);
            this.toolStripGenerateButton.Text = "Генерировать";
            this.toolStripGenerateButton.Click += new System.EventHandler(this.toolStripGenerateButton_Click);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.nodes_list);
            this.groupBox1.Controls.Add(this.nodesToolStrip);
            this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
            this.groupBox1.Location = new System.Drawing.Point(0, 164);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(295, 532);
            this.groupBox1.TabIndex = 20;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Узлы:";
            // 
            // nodes_list
            // 
            this.nodes_list.ContextMenuStrip = this.nodesContextMenu;
            this.nodes_list.Dock = System.Windows.Forms.DockStyle.Fill;
            this.nodes_list.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.nodes_list.IntegralHeight = false;
            this.nodes_list.ItemHeight = 20;
            this.nodes_list.Location = new System.Drawing.Point(3, 45);
            this.nodes_list.Name = "nodes_list";
            this.nodes_list.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
            this.nodes_list.Size = new System.Drawing.Size(289, 484);
            this.nodes_list.TabIndex = 4;
            this.nodes_list.SelectedIndexChanged += new System.EventHandler(this.nodes_list_SelectedIndexChanged);
            this.nodes_list.KeyDown += new System.Windows.Forms.KeyEventHandler(this.nodes_list_KeyDown);
            this.nodes_list.MouseDown += new System.Windows.Forms.MouseEventHandler(this.nodes_list_MouseMove);
            this.nodes_list.MouseMove += new System.Windows.Forms.MouseEventHandler(this.nodes_list_MouseMove);
            // 
            // nodesContextMenu
            // 
            this.nodesContextMenu.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.nodesContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.addToolStripMenuItem,
            this.toolStripMenuItem6,
            this.moveUpToolStripMenuItem,
            this.moveDownToolStripMenuItem,
            this.toolStripMenuItem7,
            this.deleteToolStripMenuItem});
            this.nodesContextMenu.Name = "contextMenuStrip1";
            this.nodesContextMenu.Size = new System.Drawing.Size(216, 120);
            // 
            // addToolStripMenuItem
            // 
            this.addToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("addToolStripMenuItem.Image")));
            this.addToolStripMenuItem.Name = "addToolStripMenuItem";
            this.addToolStripMenuItem.Size = new System.Drawing.Size(215, 26);
            this.addToolStripMenuItem.Text = "Добавить";
            this.addToolStripMenuItem.Click += new System.EventHandler(this.add_Click);
            // 
            // toolStripMenuItem6
            // 
            this.toolStripMenuItem6.Name = "toolStripMenuItem6";
            this.toolStripMenuItem6.Size = new System.Drawing.Size(212, 6);
            // 
            // moveUpToolStripMenuItem
            // 
            this.moveUpToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("moveUpToolStripMenuItem.Image")));
            this.moveUpToolStripMenuItem.Name = "moveUpToolStripMenuItem";
            this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(215, 26);
            this.moveUpToolStripMenuItem.Text = "Передвинуть вверх";
            this.moveUpToolStripMenuItem.Click += new System.EventHandler(this.Up_Click);
            // 
            // moveDownToolStripMenuItem
            // 
            this.moveDownToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("moveDownToolStripMenuItem.Image")));
            this.moveDownToolStripMenuItem.Name = "moveDownToolStripMenuItem";
            this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(215, 26);
            this.moveDownToolStripMenuItem.Text = "Передвинуть вниз";
            this.moveDownToolStripMenuItem.Click += new System.EventHandler(this.Down_Click);
            // 
            // toolStripMenuItem7
            // 
            this.toolStripMenuItem7.Name = "toolStripMenuItem7";
            this.toolStripMenuItem7.Size = new System.Drawing.Size(212, 6);
            // 
            // deleteToolStripMenuItem
            // 
            this.deleteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("deleteToolStripMenuItem.Image")));
            this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
            this.deleteToolStripMenuItem.Size = new System.Drawing.Size(215, 26);
            this.deleteToolStripMenuItem.Text = "Удалить";
            this.deleteToolStripMenuItem.Click += new System.EventHandler(this.delete_Click);
            // 
            // nodesToolStrip
            // 
            this.nodesToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.nodesToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripButtonAddNode,
            this.toolStripSeparator3,
            this.toolStripButtonMoveUp,
            this.toolStripButtonMoveDown,
            this.toolStripSeparator4,
            this.toolStripButtonDeleteNode,
            this.toolStripSeparator5,
            this.toolStripButtonSort,
            this.toolStripSeparator7,
            this.toolStripButtonTagSelected});
            this.nodesToolStrip.Location = new System.Drawing.Point(3, 18);
            this.nodesToolStrip.Name = "nodesToolStrip";
            this.nodesToolStrip.Size = new System.Drawing.Size(289, 27);
            this.nodesToolStrip.TabIndex = 27;
            this.nodesToolStrip.Text = "toolStrip2";
            // 
            // toolStripButtonAddNode
            // 
            this.toolStripButtonAddNode.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonAddNode.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonAddNode.Image")));
            this.toolStripButtonAddNode.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonAddNode.Name = "toolStripButtonAddNode";
            this.toolStripButtonAddNode.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonAddNode.Text = "Add Node";
            this.toolStripButtonAddNode.Click += new System.EventHandler(this.add_Click);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 27);
            // 
            // toolStripButtonMoveUp
            // 
            this.toolStripButtonMoveUp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonMoveUp.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonMoveUp.Image")));
            this.toolStripButtonMoveUp.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonMoveUp.Name = "toolStripButtonMoveUp";
            this.toolStripButtonMoveUp.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonMoveUp.Text = "Move Up";
            this.toolStripButtonMoveUp.Click += new System.EventHandler(this.Up_Click);
            // 
            // toolStripButtonMoveDown
            // 
            this.toolStripButtonMoveDown.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonMoveDown.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonMoveDown.Image")));
            this.toolStripButtonMoveDown.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonMoveDown.Name = "toolStripButtonMoveDown";
            this.toolStripButtonMoveDown.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonMoveDown.Text = "Move Down";
            this.toolStripButtonMoveDown.Click += new System.EventHandler(this.Down_Click);
            // 
            // toolStripSeparator4
            // 
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(6, 27);
            // 
            // toolStripButtonDeleteNode
            // 
            this.toolStripButtonDeleteNode.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonDeleteNode.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonDeleteNode.Image")));
            this.toolStripButtonDeleteNode.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonDeleteNode.Name = "toolStripButtonDeleteNode";
            this.toolStripButtonDeleteNode.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonDeleteNode.Text = "Delete Node";
            this.toolStripButtonDeleteNode.Click += new System.EventHandler(this.delete_Click);
            // 
            // toolStripSeparator5
            // 
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(6, 27);
            // 
            // toolStripButtonSort
            // 
            this.toolStripButtonSort.CheckOnClick = true;
            this.toolStripButtonSort.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonSort.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonSort.Image")));
            this.toolStripButtonSort.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonSort.Name = "toolStripButtonSort";
            this.toolStripButtonSort.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonSort.Text = "Sort";
            this.toolStripButtonSort.CheckedChanged += new System.EventHandler(this.toolStripButton1_CheckedChanged);
            // 
            // toolStripSeparator7
            // 
            this.toolStripSeparator7.Name = "toolStripSeparator7";
            this.toolStripSeparator7.Size = new System.Drawing.Size(6, 27);
            // 
            // toolStripButtonTagSelected
            // 
            this.toolStripButtonTagSelected.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonTagSelected.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonTagSelected.Image")));
            this.toolStripButtonTagSelected.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonTagSelected.Name = "toolStripButtonTagSelected";
            this.toolStripButtonTagSelected.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonTagSelected.Text = "Присвоить тег";
            this.toolStripButtonTagSelected.Click += new System.EventHandler(this.saveTempFilter_Click);
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.panel3);
            this.groupBox2.Controls.Add(this.splitter2);
            this.groupBox2.Controls.Add(this.panel2);
            this.groupBox2.Controls.Add(this.splitter1);
            this.groupBox2.Controls.Add(this.panel4);
            this.groupBox2.Controls.Add(this.panel1);
            this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.groupBox2.Location = new System.Drawing.Point(295, 164);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(793, 532);
            this.groupBox2.TabIndex = 21;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Содержимое узлов:";
            // 
            // panel3
            // 
            this.panel3.Controls.Add(this.scintilla1);
            this.panel3.Controls.Add(this.edtiorToolStrip);
            this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel3.Location = new System.Drawing.Point(3, 73);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(787, 165);
            this.panel3.TabIndex = 29;
            // 
            // scintilla1
            // 
            this.scintilla1.AutoComplete.IsCaseSensitive = false;
            this.scintilla1.AutoComplete.ListString = "";
            this.scintilla1.AutoComplete.MaxHeight = 10;
            this.scintilla1.ConfigurationManager.Language = "cs";
            this.scintilla1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.scintilla1.Indentation.IndentWidth = 2;
            this.scintilla1.Indentation.SmartIndentType = ScintillaNET.SmartIndent.CPP;
            this.scintilla1.Location = new System.Drawing.Point(0, 27);
            this.scintilla1.Name = "scintilla1";
            this.scintilla1.Size = new System.Drawing.Size(787, 138);
            this.scintilla1.Styles.BraceBad.Size = 7F;
            this.scintilla1.Styles.BraceLight.Size = 7F;
            this.scintilla1.Styles.ControlChar.Size = 7F;
            this.scintilla1.Styles.Default.BackColor = System.Drawing.SystemColors.Window;
            this.scintilla1.Styles.Default.Size = 7F;
            this.scintilla1.Styles.IndentGuide.Size = 7F;
            this.scintilla1.Styles.LastPredefined.Size = 7F;
            this.scintilla1.Styles.LineNumber.Size = 7F;
            this.scintilla1.Styles.Max.Size = 7F;
            this.scintilla1.TabIndex = 23;
            // 
            // edtiorToolStrip
            // 
            this.edtiorToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.edtiorToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripButtonCut,
            this.toolStripButtonCopy,
            this.toolStripButtonPaste,
            this.toolStripSeparator6,
            this.toolStripButtonUndo,
            this.toolStripButtonRedo});
            this.edtiorToolStrip.Location = new System.Drawing.Point(0, 0);
            this.edtiorToolStrip.Name = "edtiorToolStrip";
            this.edtiorToolStrip.Size = new System.Drawing.Size(787, 27);
            this.edtiorToolStrip.TabIndex = 24;
            this.edtiorToolStrip.Text = "toolStrip3";
            // 
            // toolStripButtonCut
            // 
            this.toolStripButtonCut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonCut.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonCut.Image")));
            this.toolStripButtonCut.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonCut.Name = "toolStripButtonCut";
            this.toolStripButtonCut.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonCut.Text = "Cut";
            this.toolStripButtonCut.Click += new System.EventHandler(this.toolStripButtonCut_Click);
            // 
            // toolStripButtonCopy
            // 
            this.toolStripButtonCopy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonCopy.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonCopy.Image")));
            this.toolStripButtonCopy.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonCopy.Name = "toolStripButtonCopy";
            this.toolStripButtonCopy.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonCopy.Text = "Copy";
            this.toolStripButtonCopy.Click += new System.EventHandler(this.toolStripButtonCopy_Click);
            // 
            // toolStripButtonPaste
            // 
            this.toolStripButtonPaste.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonPaste.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonPaste.Image")));
            this.toolStripButtonPaste.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonPaste.Name = "toolStripButtonPaste";
            this.toolStripButtonPaste.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonPaste.Text = "Paste";
            this.toolStripButtonPaste.Click += new System.EventHandler(this.toolStripButtonPaste_Click);
            // 
            // toolStripSeparator6
            // 
            this.toolStripSeparator6.Name = "toolStripSeparator6";
            this.toolStripSeparator6.Size = new System.Drawing.Size(6, 27);
            // 
            // toolStripButtonUndo
            // 
            this.toolStripButtonUndo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonUndo.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonUndo.Image")));
            this.toolStripButtonUndo.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonUndo.Name = "toolStripButtonUndo";
            this.toolStripButtonUndo.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonUndo.Text = "Undo";
            this.toolStripButtonUndo.Click += new System.EventHandler(this.toolStripButtonUndo_Click);
            // 
            // toolStripButtonRedo
            // 
            this.toolStripButtonRedo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonRedo.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonRedo.Image")));
            this.toolStripButtonRedo.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonRedo.Name = "toolStripButtonRedo";
            this.toolStripButtonRedo.Size = new System.Drawing.Size(24, 24);
            this.toolStripButtonRedo.Text = "Redo";
            this.toolStripButtonRedo.Click += new System.EventHandler(this.toolStripButtonRedo_Click);
            // 
            // splitter2
            // 
            this.splitter2.Cursor = System.Windows.Forms.Cursors.HSplit;
            this.splitter2.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.splitter2.Location = new System.Drawing.Point(3, 238);
            this.splitter2.MinExtra = 40;
            this.splitter2.MinSize = 40;
            this.splitter2.Name = "splitter2";
            this.splitter2.Size = new System.Drawing.Size(787, 3);
            this.splitter2.TabIndex = 30;
            this.splitter2.TabStop = false;
            // 
            // panel2
            // 
            this.panel2.Controls.Add(this.help_context);
            this.panel2.Controls.Add(this.label3);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel2.Location = new System.Drawing.Point(3, 241);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(787, 117);
            this.panel2.TabIndex = 28;
            // 
            // help_context
            // 
            this.help_context.Dock = System.Windows.Forms.DockStyle.Fill;
            this.help_context.Location = new System.Drawing.Point(0, 18);
            this.help_context.Multiline = true;
            this.help_context.Name = "help_context";
            this.help_context.Size = new System.Drawing.Size(787, 99);
            this.help_context.TabIndex = 25;
            // 
            // label3
            // 
            this.label3.Dock = System.Windows.Forms.DockStyle.Top;
            this.label3.Location = new System.Drawing.Point(0, 0);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(787, 18);
            this.label3.TabIndex = 26;
            this.label3.Text = "Справочная информация:";
            // 
            // splitter1
            // 
            this.splitter1.Cursor = System.Windows.Forms.Cursors.HSplit;
            this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.splitter1.Location = new System.Drawing.Point(3, 358);
            this.splitter1.MinExtra = 40;
            this.splitter1.MinSize = 40;
            this.splitter1.Name = "splitter1";
            this.splitter1.Size = new System.Drawing.Size(787, 3);
            this.splitter1.TabIndex = 3;
            this.splitter1.TabStop = false;
            // 
            // panel4
            // 
            this.panel4.Controls.Add(this.tags);
            this.panel4.Controls.Add(this.tagItems);
            this.panel4.Controls.Add(this.tagCategories);
            this.panel4.Controls.Add(this.label4);
            this.panel4.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel4.Location = new System.Drawing.Point(3, 361);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(787, 168);
            this.panel4.TabIndex = 27;
            // 
            // tags
            // 
            this.tags.AutoSize = true;
            this.tags.Location = new System.Drawing.Point(269, 0);
            this.tags.Name = "tags";
            this.tags.Size = new System.Drawing.Size(42, 17);
            this.tags.TabIndex = 3;
            this.tags.Text = "Теги:";
            // 
            // tagItems
            // 
            this.tagItems.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tagItems.Location = new System.Drawing.Point(269, 17);
            this.tagItems.Multiline = true;
            this.tagItems.Name = "tagItems";
            this.tagItems.Size = new System.Drawing.Size(518, 151);
            this.tagItems.TabIndex = 2;
            this.tagItems.TextChanged += new System.EventHandler(this.tagItems_TextChanged);
            // 
            // tagCategories
            // 
            this.tagCategories.Dock = System.Windows.Forms.DockStyle.Left;
            this.tagCategories.FormattingEnabled = true;
            this.tagCategories.IntegralHeight = false;
            this.tagCategories.ItemHeight = 16;
            this.tagCategories.Location = new System.Drawing.Point(0, 17);
            this.tagCategories.Name = "tagCategories";
            this.tagCategories.Size = new System.Drawing.Size(269, 151);
            this.tagCategories.TabIndex = 1;
            this.tagCategories.SelectedIndexChanged += new System.EventHandler(this.tagCategories_SelectedIndexChanged);
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Dock = System.Windows.Forms.DockStyle.Top;
            this.label4.Location = new System.Drawing.Point(0, 0);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(81, 17);
            this.label4.TabIndex = 0;
            this.label4.Text = "Категории:";
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.saveNodeButton);
            this.panel1.Controls.Add(this.reloadButton);
            this.panel1.Controls.Add(this.base_class);
            this.panel1.Controls.Add(this.label2);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.node_name);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(3, 18);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(787, 55);
            this.panel1.TabIndex = 27;
            // 
            // saveNodeButton
            // 
            this.saveNodeButton.Location = new System.Drawing.Point(4, 3);
            this.saveNodeButton.Name = "saveNodeButton";
            this.saveNodeButton.Size = new System.Drawing.Size(116, 26);
            this.saveNodeButton.TabIndex = 32;
            this.saveNodeButton.Text = "Применить";
            this.saveNodeButton.UseVisualStyleBackColor = true;
            this.saveNodeButton.Click += new System.EventHandler(this.saveNodeButton_Click);
            // 
            // reloadButton
            // 
            this.reloadButton.Location = new System.Drawing.Point(4, 29);
            this.reloadButton.Name = "reloadButton";
            this.reloadButton.Size = new System.Drawing.Size(116, 25);
            this.reloadButton.TabIndex = 31;
            this.reloadButton.Text = "Перезагрузить";
            this.reloadButton.UseVisualStyleBackColor = true;
            this.reloadButton.Click += new System.EventHandler(this.reloadButton_Click_1);
            // 
            // base_class
            // 
            this.base_class.FormattingEnabled = true;
            this.base_class.Location = new System.Drawing.Point(241, 29);
            this.base_class.Name = "base_class";
            this.base_class.Size = new System.Drawing.Size(539, 24);
            this.base_class.TabIndex = 30;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(128, 32);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(110, 17);
            this.label2.TabIndex = 29;
            this.label2.Text = "Базовый класс:";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(128, 8);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(73, 17);
            this.label1.TabIndex = 28;
            this.label1.Text = "Имя узла:";
            // 
            // node_name
            // 
            this.node_name.Location = new System.Drawing.Point(241, 3);
            this.node_name.Name = "node_name";
            this.node_name.Size = new System.Drawing.Size(539, 22);
            this.node_name.TabIndex = 27;
            // 
            // panel5
            // 
            this.panel5.Controls.Add(this.panel6);
            this.panel5.Controls.Add(this.mainToolStrip);
            this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel5.Location = new System.Drawing.Point(0, 26);
            this.panel5.Name = "panel5";
            this.panel5.Size = new System.Drawing.Size(1088, 135);
            this.panel5.TabIndex = 23;
            // 
            // panel6
            // 
            this.panel6.Controls.Add(this.filterItems);
            this.panel6.Controls.Add(this.filterCategories);
            this.panel6.Controls.Add(this.panelFilterButtons);
            this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel6.Location = new System.Drawing.Point(0, 27);
            this.panel6.Name = "panel6";
            this.panel6.Size = new System.Drawing.Size(1088, 108);
            this.panel6.TabIndex = 20;
            // 
            // filterItems
            // 
            this.filterItems.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.filterItems.CheckBoxes = true;
            this.filterItems.ContextMenuStrip = this.filtersPanelContextMenu;
            this.filterItems.Dock = System.Windows.Forms.DockStyle.Fill;
            this.filterItems.Location = new System.Drawing.Point(322, 0);
            this.filterItems.MultiSelect = false;
            this.filterItems.Name = "filterItems";
            this.filterItems.Size = new System.Drawing.Size(766, 108);
            this.filterItems.TabIndex = 5;
            this.filterItems.UseCompatibleStateImageBehavior = false;
            this.filterItems.View = System.Windows.Forms.View.List;
            this.filterItems.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.filterItems_ItemChecked);
            // 
            // filtersPanelContextMenu
            // 
            this.filtersPanelContextMenu.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.filtersPanelContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.editInTagsCollectionToolStripMenuItem});
            this.filtersPanelContextMenu.Name = "filtersPanelContextMenu";
            this.filtersPanelContextMenu.Size = new System.Drawing.Size(198, 26);
            // 
            // editInTagsCollectionToolStripMenuItem
            // 
            this.editInTagsCollectionToolStripMenuItem.Name = "editInTagsCollectionToolStripMenuItem";
            this.editInTagsCollectionToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
            this.editInTagsCollectionToolStripMenuItem.Text = "Редактор тегов...";
            this.editInTagsCollectionToolStripMenuItem.Click += new System.EventHandler(this.tagsCollectionToolStripMenuItem_Click);
            // 
            // filterCategories
            // 
            this.filterCategories.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.filterCategories.ContextMenuStrip = this.filtersPanelContextMenu;
            this.filterCategories.Dock = System.Windows.Forms.DockStyle.Left;
            this.filterCategories.IntegralHeight = false;
            this.filterCategories.ItemHeight = 16;
            this.filterCategories.Location = new System.Drawing.Point(140, 0);
            this.filterCategories.Name = "filterCategories";
            this.filterCategories.Size = new System.Drawing.Size(182, 108);
            this.filterCategories.TabIndex = 6;
            this.filterCategories.SelectedIndexChanged += new System.EventHandler(this.filterCategories_SelectedIndexChanged);
            // 
            // panelFilterButtons
            // 
            this.panelFilterButtons.Controls.Add(this.filterSelected);
            this.panelFilterButtons.Controls.Add(this.filterAncestors);
            this.panelFilterButtons.Controls.Add(this.resetFilterButton);
            this.panelFilterButtons.Dock = System.Windows.Forms.DockStyle.Left;
            this.panelFilterButtons.Location = new System.Drawing.Point(0, 0);
            this.panelFilterButtons.Name = "panelFilterButtons";
            this.panelFilterButtons.Size = new System.Drawing.Size(140, 108);
            this.panelFilterButtons.TabIndex = 3;
            // 
            // filterSelected
            // 
            this.filterSelected.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.filterSelected.Dock = System.Windows.Forms.DockStyle.Fill;
            this.filterSelected.FlatAppearance.BorderColor = System.Drawing.Color.Black;
            this.filterSelected.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ButtonShadow;
            this.filterSelected.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.filterSelected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.filterSelected.Location = new System.Drawing.Point(0, 29);
            this.filterSelected.Name = "filterSelected";
            this.filterSelected.Size = new System.Drawing.Size(140, 50);
            this.filterSelected.TabIndex = 1;
            this.filterSelected.Text = "Только выделенные";
            this.filterSelected.UseVisualStyleBackColor = true;
            this.filterSelected.Click += new System.EventHandler(this.customFilterMode_CheckedChanged);
            // 
            // filterAncestors
            // 
            this.filterAncestors.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.filterAncestors.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.filterAncestors.FlatAppearance.BorderColor = System.Drawing.Color.Black;
            this.filterAncestors.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ButtonShadow;
            this.filterAncestors.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.filterAncestors.Location = new System.Drawing.Point(0, 79);
            this.filterAncestors.Name = "filterAncestors";
            this.filterAncestors.Size = new System.Drawing.Size(140, 29);
            this.filterAncestors.TabIndex = 2;
            this.filterAncestors.Text = "Только предки";
            this.filterAncestors.UseVisualStyleBackColor = true;
            this.filterAncestors.Click += new System.EventHandler(this.filterAncestors_Click);
            // 
            // resetFilterButton
            // 
            this.resetFilterButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.resetFilterButton.Dock = System.Windows.Forms.DockStyle.Top;
            this.resetFilterButton.FlatAppearance.BorderColor = System.Drawing.Color.Black;
            this.resetFilterButton.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ButtonShadow;
            this.resetFilterButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.resetFilterButton.Location = new System.Drawing.Point(0, 0);
            this.resetFilterButton.Name = "resetFilterButton";
            this.resetFilterButton.Size = new System.Drawing.Size(140, 29);
            this.resetFilterButton.TabIndex = 0;
            this.resetFilterButton.Text = "Очистить фильтр";
            this.resetFilterButton.UseVisualStyleBackColor = true;
            this.resetFilterButton.Click += new System.EventHandler(this.resetFilterButton_Click);
            // 
            // fileToolStripMenuItem
            // 
            this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.newToolStripMenuItem,
            this.openToolStripMenuItem,
            this.saveToolStripMenuItem,
            this.saveAsToolStripMenuItem,
            this.saveAndStoreToolStripMenuItem,
            this.toolStripMenuItem1,
            this.quitToolStripMenuItem});
            this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
            this.fileToolStripMenuItem.Size = new System.Drawing.Size(54, 22);
            this.fileToolStripMenuItem.Text = "Файл";
            // 
            // newToolStripMenuItem
            // 
            this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image")));
            this.newToolStripMenuItem.Name = "newToolStripMenuItem";
            this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
            this.newToolStripMenuItem.Size = new System.Drawing.Size(273, 26);
            this.newToolStripMenuItem.Text = "Новый";
            this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
            // 
            // openToolStripMenuItem
            // 
            this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image")));
            this.openToolStripMenuItem.Name = "openToolStripMenuItem";
            this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
            this.openToolStripMenuItem.Size = new System.Drawing.Size(273, 26);
            this.openToolStripMenuItem.Text = "Открыть...";
            this.openToolStripMenuItem.Click += new System.EventHandler(this.open_Click);
            // 
            // saveToolStripMenuItem
            // 
            this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
            this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
            this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
            this.saveToolStripMenuItem.Size = new System.Drawing.Size(273, 26);
            this.saveToolStripMenuItem.Text = "Сохранить";
            this.saveToolStripMenuItem.Click += new System.EventHandler(this.save_Click);
            // 
            // saveAsToolStripMenuItem
            // 
            this.saveAsToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveAsToolStripMenuItem.Image")));
            this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
            this.saveAsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Alt) 
            | System.Windows.Forms.Keys.S)));
            this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(273, 26);
            this.saveAsToolStripMenuItem.Text = "Сохранить как...";
            this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.save_as_Click);
            // 
            // saveAndStoreToolStripMenuItem
            // 
            this.saveAndStoreToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveAndStoreToolStripMenuItem.Image")));
            this.saveAndStoreToolStripMenuItem.Name = "saveAndStoreToolStripMenuItem";
            this.saveAndStoreToolStripMenuItem.Size = new System.Drawing.Size(273, 26);
            this.saveAndStoreToolStripMenuItem.Text = "Сохранить и сделать копию";
            // 
            // toolStripMenuItem1
            // 
            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size = new System.Drawing.Size(270, 6);
            // 
            // quitToolStripMenuItem
            // 
            this.quitToolStripMenuItem.Name = "quitToolStripMenuItem";
            this.quitToolStripMenuItem.Size = new System.Drawing.Size(273, 26);
            this.quitToolStripMenuItem.Text = "Выйти";
            this.quitToolStripMenuItem.Click += new System.EventHandler(this.quitToolStripMenuItem_Click);
            // 
            // nodesToolStripMenuItem
            // 
            this.nodesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.addNodeToolStripMenuItem,
            this.toolStripMenuItem2,
            this.moveNodeUpToolStripMenuItem,
            this.moveNodeDownToolStripMenuItem,
            this.toolStripMenuItem3,
            this.deleteNodeToolStripMenuItem,
            this.toolStripMenuItem4,
            this.sortToolStripMenuItem,
            this.присвоитьТегToolStripMenuItem,
            this.globalRenamerToolStripMenuItem});
            this.nodesToolStripMenuItem.Name = "nodesToolStripMenuItem";
            this.nodesToolStripMenuItem.Size = new System.Drawing.Size(54, 22);
            this.nodesToolStripMenuItem.Text = "Узлы";
            // 
            // addNodeToolStripMenuItem
            // 
            this.addNodeToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("addNodeToolStripMenuItem.Image")));
            this.addNodeToolStripMenuItem.Name = "addNodeToolStripMenuItem";
            this.addNodeToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
            this.addNodeToolStripMenuItem.Size = new System.Drawing.Size(279, 26);
            this.addNodeToolStripMenuItem.Text = "Добавить узел";
            this.addNodeToolStripMenuItem.Click += new System.EventHandler(this.add_Click);
            // 
            // toolStripMenuItem2
            // 
            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size = new System.Drawing.Size(276, 6);
            // 
            // moveNodeUpToolStripMenuItem
            // 
            this.moveNodeUpToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("moveNodeUpToolStripMenuItem.Image")));
            this.moveNodeUpToolStripMenuItem.Name = "moveNodeUpToolStripMenuItem";
            this.moveNodeUpToolStripMenuItem.Size = new System.Drawing.Size(279, 26);
            this.moveNodeUpToolStripMenuItem.Text = "Передвинуть узел вверх";
            this.moveNodeUpToolStripMenuItem.Click += new System.EventHandler(this.Up_Click);
            // 
            // moveNodeDownToolStripMenuItem
            // 
            this.moveNodeDownToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("moveNodeDownToolStripMenuItem.Image")));
            this.moveNodeDownToolStripMenuItem.Name = "moveNodeDownToolStripMenuItem";
            this.moveNodeDownToolStripMenuItem.Size = new System.Drawing.Size(279, 26);
            this.moveNodeDownToolStripMenuItem.Text = "Передвинуть узел вниз";
            this.moveNodeDownToolStripMenuItem.Click += new System.EventHandler(this.Down_Click);
            // 
            // toolStripMenuItem3
            // 
            this.toolStripMenuItem3.Name = "toolStripMenuItem3";
            this.toolStripMenuItem3.Size = new System.Drawing.Size(276, 6);
            // 
            // deleteNodeToolStripMenuItem
            // 
            this.deleteNodeToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("deleteNodeToolStripMenuItem.Image")));
            this.deleteNodeToolStripMenuItem.Name = "deleteNodeToolStripMenuItem";
            this.deleteNodeToolStripMenuItem.Size = new System.Drawing.Size(279, 26);
            this.deleteNodeToolStripMenuItem.Text = "Удалить узел";
            this.deleteNodeToolStripMenuItem.Click += new System.EventHandler(this.delete_Click);
            // 
            // toolStripMenuItem4
            // 
            this.toolStripMenuItem4.Name = "toolStripMenuItem4";
            this.toolStripMenuItem4.Size = new System.Drawing.Size(276, 6);
            // 
            // sortToolStripMenuItem
            // 
            this.sortToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("sortToolStripMenuItem.Image")));
            this.sortToolStripMenuItem.Name = "sortToolStripMenuItem";
            this.sortToolStripMenuItem.Size = new System.Drawing.Size(279, 26);
            this.sortToolStripMenuItem.Text = "Отсортировать узлы";
            this.sortToolStripMenuItem.Click += new System.EventHandler(this.sortToolStripMenuItem_Click);
            // 
            // присвоитьТегToolStripMenuItem
            // 
            this.присвоитьТегToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("присвоитьТегToolStripMenuItem.Image")));
            this.присвоитьТегToolStripMenuItem.Name = "присвоитьТегToolStripMenuItem";
            this.присвоитьТегToolStripMenuItem.Size = new System.Drawing.Size(279, 26);
            this.присвоитьТегToolStripMenuItem.Text = "Присвоить тег";
            this.присвоитьТегToolStripMenuItem.Click += new System.EventHandler(this.saveTempFilter_Click);
            // 
            // globalRenamerToolStripMenuItem
            // 
            this.globalRenamerToolStripMenuItem.Name = "globalRenamerToolStripMenuItem";
            this.globalRenamerToolStripMenuItem.Size = new System.Drawing.Size(279, 26);
            this.globalRenamerToolStripMenuItem.Text = "Глобальное переименование";
            this.globalRenamerToolStripMenuItem.Click += new System.EventHandler(this.globalRenamerToolStripMenuItem_Click);
            // 
            // contentsToolStripMenuItem
            // 
            this.contentsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.cutToolStripMenuItem,
            this.copyToolStripMenuItem,
            this.pasteToolStripMenuItem,
            this.toolStripMenuItem5,
            this.undoToolStripMenuItem,
            this.redoToolStripMenuItem});
            this.contentsToolStripMenuItem.Name = "contentsToolStripMenuItem";
            this.contentsToolStripMenuItem.Size = new System.Drawing.Size(69, 22);
            this.contentsToolStripMenuItem.Text = "Правка";
            // 
            // cutToolStripMenuItem
            // 
            this.cutToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripMenuItem.Image")));
            this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
            this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
            this.cutToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.cutToolStripMenuItem.Text = "Вырезать";
            this.cutToolStripMenuItem.Click += new System.EventHandler(this.toolStripButtonCut_Click);
            // 
            // copyToolStripMenuItem
            // 
            this.copyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripMenuItem.Image")));
            this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
            this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
            this.copyToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.copyToolStripMenuItem.Text = "Копировать";
            this.copyToolStripMenuItem.Click += new System.EventHandler(this.toolStripButtonCopy_Click);
            // 
            // pasteToolStripMenuItem
            // 
            this.pasteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripMenuItem.Image")));
            this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
            this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
            this.pasteToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.pasteToolStripMenuItem.Text = "Вставить";
            this.pasteToolStripMenuItem.Click += new System.EventHandler(this.toolStripButtonPaste_Click);
            // 
            // toolStripMenuItem5
            // 
            this.toolStripMenuItem5.Name = "toolStripMenuItem5";
            this.toolStripMenuItem5.Size = new System.Drawing.Size(221, 6);
            // 
            // undoToolStripMenuItem
            // 
            this.undoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("undoToolStripMenuItem.Image")));
            this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
            this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
            this.undoToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.undoToolStripMenuItem.Text = "Отменить";
            this.undoToolStripMenuItem.Click += new System.EventHandler(this.toolStripButtonUndo_Click);
            // 
            // redoToolStripMenuItem
            // 
            this.redoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("redoToolStripMenuItem.Image")));
            this.redoToolStripMenuItem.Name = "redoToolStripMenuItem";
            this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) 
            | System.Windows.Forms.Keys.Z)));
            this.redoToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.redoToolStripMenuItem.Text = "Вернуть";
            this.redoToolStripMenuItem.Click += new System.EventHandler(this.toolStripButtonRedo_Click);
            // 
            // viewToolStripMenuItem
            // 
            this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.filterPanelToolStripMenuItem});
            this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
            this.viewToolStripMenuItem.Size = new System.Drawing.Size(45, 22);
            this.viewToolStripMenuItem.Text = "Вид";
            // 
            // filterPanelToolStripMenuItem
            // 
            this.filterPanelToolStripMenuItem.Checked = true;
            this.filterPanelToolStripMenuItem.CheckOnClick = true;
            this.filterPanelToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
            this.filterPanelToolStripMenuItem.Name = "filterPanelToolStripMenuItem";
            this.filterPanelToolStripMenuItem.Size = new System.Drawing.Size(191, 26);
            this.filterPanelToolStripMenuItem.Text = "Панель фильтра";
            this.filterPanelToolStripMenuItem.CheckedChanged += new System.EventHandler(this.filterPanelToolStripMenuItem_CheckedChanged);
            // 
            // optionsToolStripMenuItem
            // 
            this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.optionsToolStripMenuItem1,
            this.tagsCollectionToolStripMenuItem});
            this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
            this.optionsToolStripMenuItem.Size = new System.Drawing.Size(92, 22);
            this.optionsToolStripMenuItem.Text = "Настройки";
            // 
            // optionsToolStripMenuItem1
            // 
            this.optionsToolStripMenuItem1.Name = "optionsToolStripMenuItem1";
            this.optionsToolStripMenuItem1.Size = new System.Drawing.Size(197, 22);
            this.optionsToolStripMenuItem1.Text = "Настройки...";
            this.optionsToolStripMenuItem1.Click += new System.EventHandler(this.toolStripOptionsButton_Click);
            // 
            // tagsCollectionToolStripMenuItem
            // 
            this.tagsCollectionToolStripMenuItem.Name = "tagsCollectionToolStripMenuItem";
            this.tagsCollectionToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
            this.tagsCollectionToolStripMenuItem.Text = "Редактор тегов...";
            this.tagsCollectionToolStripMenuItem.Click += new System.EventHandler(this.tagsCollectionToolStripMenuItem_Click);
            // 
            // runToolStripMenuItem
            // 
            this.runToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.generateToolStripMenuItem,
            this.grammarBrowserToolStripMenuItem});
            this.runToolStripMenuItem.Name = "runToolStripMenuItem";
            this.runToolStripMenuItem.Size = new System.Drawing.Size(81, 22);
            this.runToolStripMenuItem.Text = "Команды";
            // 
            // generateToolStripMenuItem
            // 
            this.generateToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("generateToolStripMenuItem.Image")));
            this.generateToolStripMenuItem.Name = "generateToolStripMenuItem";
            this.generateToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F9;
            this.generateToolStripMenuItem.Size = new System.Drawing.Size(205, 26);
            this.generateToolStripMenuItem.Text = "Генерировать";
            this.generateToolStripMenuItem.Click += new System.EventHandler(this.toolStripGenerateButton_Click);
            // 
            // grammarBrowserToolStripMenuItem
            // 
            this.grammarBrowserToolStripMenuItem.Name = "grammarBrowserToolStripMenuItem";
            this.grammarBrowserToolStripMenuItem.Size = new System.Drawing.Size(205, 26);
            this.grammarBrowserToolStripMenuItem.Text = "Иерархия узлов...";
            // 
            // mainMenu
            // 
            this.mainMenu.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.fileToolStripMenuItem,
            this.contentsToolStripMenuItem,
            this.nodesToolStripMenuItem,
            this.viewToolStripMenuItem,
            this.optionsToolStripMenuItem,
            this.runToolStripMenuItem,
            this.helpToolStripMenuItem});
            this.mainMenu.Location = new System.Drawing.Point(0, 0);
            this.mainMenu.Name = "mainMenu";
            this.mainMenu.Size = new System.Drawing.Size(1088, 26);
            this.mainMenu.TabIndex = 22;
            this.mainMenu.Text = "menuStrip1";
            // 
            // helpToolStripMenuItem
            // 
            this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.aboutToolStripMenuItem});
            this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
            this.helpToolStripMenuItem.Size = new System.Drawing.Size(76, 22);
            this.helpToolStripMenuItem.Text = "Справка";
            this.helpToolStripMenuItem.Click += new System.EventHandler(this.helpToolStripMenuItem_Click);
            // 
            // aboutToolStripMenuItem
            // 
            this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
            this.aboutToolStripMenuItem.Size = new System.Drawing.Size(181, 22);
            this.aboutToolStripMenuItem.Text = "О программе...";
            this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
            // 
            // splitter3
            // 
            this.splitter3.Dock = System.Windows.Forms.DockStyle.Top;
            this.splitter3.Location = new System.Drawing.Point(0, 161);
            this.splitter3.Name = "splitter3";
            this.splitter3.Size = new System.Drawing.Size(1088, 3);
            this.splitter3.TabIndex = 31;
            this.splitter3.TabStop = false;
            // 
            // Form1
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
            this.ClientSize = new System.Drawing.Size(1088, 724);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.splitter3);
            this.Controls.Add(this.panel5);
            this.Controls.Add(this.NavigationPanel);
            this.Controls.Add(this.mainMenu);
            this.KeyPreview = true;
            this.MainMenuStrip = this.mainMenu;
            this.MinimumSize = new System.Drawing.Size(1080, 692);
            this.Name = "Form1";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "SyNerator";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
            this.Load += new System.EventHandler(this.Form1_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_ShortCutsHandler);
            this.NavigationPanel.ResumeLayout(false);
            this.NavigationPanel.PerformLayout();
            this.mainToolStrip.ResumeLayout(false);
            this.mainToolStrip.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.nodesContextMenu.ResumeLayout(false);
            this.nodesToolStrip.ResumeLayout(false);
            this.nodesToolStrip.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.scintilla1)).EndInit();
            this.edtiorToolStrip.ResumeLayout(false);
            this.edtiorToolStrip.PerformLayout();
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
            this.panel4.ResumeLayout(false);
            this.panel4.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.panel5.ResumeLayout(false);
            this.panel5.PerformLayout();
            this.panel6.ResumeLayout(false);
            this.filtersPanelContextMenu.ResumeLayout(false);
            this.panelFilterButtons.ResumeLayout(false);
            this.mainMenu.ResumeLayout(false);
            this.mainMenu.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

		}
示例#48
0
        void scripts_OnFileChosen(System.IO.FileInfo File, string Contents)
        {
            TabPage page = new TabPage(File.Name);
            page.Tag = File;
            ScintillaNET.Scintilla editor = new ScintillaNET.Scintilla();
            editor.ConfigurationManager.Language = "js";
            editor.Margins[0].Width = 20;
            editor.Margins[1].Width = 20;
            editor.Margins[1].IsClickable = true;
            editor.MarginClick += editor_MarginClick;

            editor.Dock = DockStyle.Fill;
            editor.Text = Contents;
            editor.MatchBraces = true;

            editor.KeyUp += editor_KeyUp;
            page.Controls.Add(editor);
            this.tabControl2.TabPages.Add(page);

            this.saveButton.Enabled = true;
            this.playButton.Enabled = true;

            tabControl2.SelectedTab = page;
        }