Example #1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="WebBrowserForm"/> class.
        /// </summary>
        /// <param name="uri">The URI of the resource to navigate to.</param>
        public WebBrowserForm(string uri)
        {
            this.InitializeComponent();

            this.webView = new WebView(uri, new CefSharp.BrowserSettings());
            this.webView.Dock = DockStyle.Fill;
            this.webView.PropertyChanged += this.WebView_PropertyChanged;
            this.webView.LifeSpanHandler = new WebViewLifeSpanHandler(this);
            this.toolStripContainer1.ContentPanel.Controls.Add(this.webView);
            this.addressTextBox = new ToolStripSpringTextBox();
            this.addressTextBox.KeyDown += this.AddressTextBox_KeyDown;
            this.addressTextBox.ShortcutsEnabled = true;
            this.toolStrip.Items.Add(this.addressTextBox);
        }
Example #2
0
        /// <summary>
        /// Initialises a new instance of the <see cref="WebBrowserForm"/> class.
        /// </summary>
        /// <param name="uri">The URI of the resource to navigate to.</param>
        public WebBrowserForm(string uri)
        {
            this.InitializeComponent();

            this.webView                  = new WebView(uri, new CefSharp.BrowserSettings());
            this.webView.Dock             = DockStyle.Fill;
            this.webView.PropertyChanged += this.WebView_PropertyChanged;
            this.webView.LifeSpanHandler  = new WebViewLifeSpanHandler(this);
            this.toolStripContainer1.ContentPanel.Controls.Add(this.webView);
            this.addressTextBox                  = new ToolStripSpringTextBox();
            this.addressTextBox.KeyDown         += this.AddressTextBox_KeyDown;
            this.addressTextBox.ShortcutsEnabled = true;
            this.toolStrip.Items.Add(this.addressTextBox);
        }
Example #3
0
        private void BaudRateCustominit()
        {
            tbBaudRate             = new ToolStripSpringTextBox();
            tbBaudRate.AutoSize    = false;
            tbBaudRate.Spring      = false;
            tbBaudRate.BorderColor = Color.Gainsboro;
            tbBaudRate.BorderStyle = System.Windows.Forms.BorderStyle.None;
            tbBaudRate.Minimum     = 80;
            tbBaudRate.Padding     = new System.Windows.Forms.Padding(1, 0, 1, 0);
            tbBaudRate.Size        = new System.Drawing.Size(98, 18);
            tbBaudRate.KeyPress   += new KeyPressEventHandler(tbBaudRate_KeyPress);

            tbBaudRate.Visible = false;
            toolStripBaudRate.Items.Insert(2, tbBaudRate);
        }
Example #4
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            booleanToolStripComboBox.Visible = false;
            

            _textToolStripTextBox = new ToolStripSpringTextBox();
            _textToolStripTextBox.Visible = false;

            int index = toolStrip1.Items.IndexOf(textToolStripTextBox);
            toolStrip1.Items.Remove(textToolStripTextBox);
            textToolStripTextBox = null;
            toolStrip1.Items.Insert(index, _textToolStripTextBox);

            booleanToolStripComboBox.Items.AddRange(new object[] { true, false });

            MethodInvoker methodInvoker = new MethodInvoker(RefreshGlobalParametersListView);
            BeginInvoke(methodInvoker);
        }
Example #5
0
        public WebBrowser()
        {
            InitializeComponent();

            addressTextBox = new ToolStripSpringTextBox() {Name = "AddressTextBox", Size = new System.Drawing.Size(350, 25) };
            goButton = new ToolStripButton("Go");


//            ToolStrip toolStrip1 = new ToolStrip();
            toolStrip1.Dock = DockStyle.Top;
            toolStrip1.Items.Add(new ToolStripLabel("Address"));
            toolStrip1.Items.Add(addressTextBox);
            toolStrip1.Items.Add(goButton);
            Controls.Add(toolStrip1);
            Text = "ToolStripSpringTextBox demo";


            goButton.Click += new System.EventHandler(goButton_Click);
            addressTextBox.KeyDown += toolStripTextBox1_KeyDown;
            webBrowser1.Navigated += webBrowser1_Navigated;

            Navigate("http://symjira:8090/display/TAT/Trading+Analytics+Tools+Home");
        }
Example #6
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.scrollTimer = new System.Timers.Timer();
     this.textLog     = new System.Windows.Forms.RichTextBox();
     this.toolStrip   = new System.Windows.Forms.ToolStrip();
     this.clearButton = new System.Windows.Forms.ToolStripButton();
     this.findTextBox = new System.Windows.Forms.ToolStripSpringTextBox();
     ((System.ComponentModel.ISupportInitialize)(this.scrollTimer)).BeginInit();
     this.SuspendLayout();
     //
     // scrollTimer
     //
     this.scrollTimer.Enabled             = true;
     this.scrollTimer.Interval            = 50;
     this.scrollTimer.SynchronizingObject = this;
     this.scrollTimer.Elapsed            += new System.Timers.ElapsedEventHandler(this.ScrollTimerElapsed);
     //
     // textLog
     //
     this.textLog.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.textLog.BackColor    = System.Drawing.SystemColors.Window;
     this.textLog.BorderStyle  = System.Windows.Forms.BorderStyle.None;
     this.textLog.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.textLog.Location     = new System.Drawing.Point(1, 22);
     this.textLog.Name         = "textLog";
     this.textLog.ReadOnly     = true;
     this.textLog.Size         = new System.Drawing.Size(278, 330);
     this.textLog.TabIndex     = 1;
     this.textLog.Text         = "";
     this.textLog.WordWrap     = false;
     this.textLog.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.LinkClicked);
     this.textLog.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.PluginUIKeyDown);
     //
     // toolStrip
     //
     this.toolStrip.CanOverflow = false;
     this.toolStrip.Dock        = System.Windows.Forms.DockStyle.Top;
     this.toolStrip.GripStyle   = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.findTextBox, this.clearButton });
     this.toolStrip.Name     = "toolStrip";
     this.toolStrip.Padding  = new System.Windows.Forms.Padding(1, 1, 2, 2);
     this.toolStrip.Size     = new System.Drawing.Size(298, 26);
     this.toolStrip.Stretch  = true;
     this.toolStrip.TabIndex = 1;
     //
     // findTextBox
     //
     this.findTextBox.Name         = "FindTextBox";
     this.findTextBox.Size         = new System.Drawing.Size(200, 22);
     this.findTextBox.Padding      = new System.Windows.Forms.Padding(0, 0, 1, 0);
     this.findTextBox.ForeColor    = System.Drawing.SystemColors.GrayText;
     this.findTextBox.TextChanged += new System.EventHandler(this.FindTextBoxTextChanged);
     this.findTextBox.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.PluginUIKeyDown);
     this.findTextBox.Leave       += new System.EventHandler(this.FindTextBoxLeave);
     this.findTextBox.Enter       += new System.EventHandler(this.FindTextBoxEnter);
     //
     // clearButton
     //
     this.clearButton.Name   = "clearButton";
     this.clearButton.Size   = new System.Drawing.Size(23, 22);
     this.clearButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1);
     this.clearButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.clearButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.clearButton.Size   = new System.Drawing.Size(23, 22);
     this.clearButton.Click += new System.EventHandler(this.ClearButtonClick);
     //
     // PluginUI
     //
     this.Controls.Add(this.textLog);
     this.Controls.Add(this.toolStrip);
     this.Name = "PluginUI";
     this.Size = new System.Drawing.Size(280, 352);
     ((System.ComponentModel.ISupportInitialize)(this.scrollTimer)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #7
0
    public static void Init()
    {
        //using var p = APerf.Create();

        //map command handler names/delegates etc
        _cmd = new CmdHandlers();
        //p.Next();

        //ADebug.MemorySetAnchor_();
        _strips = new AuStripManager(Program.MainForm, _cmd);
        _strips.BuildAll(AFolders.ThisAppBS + @"Default\Strips.xml", ProgramSettings.DirBS + "Strips.xml", new AuDockPanel.ZDockedToolStripRenderer());
        //ADebug.MemoryPrint_();
        //p.Next();

        //get top-level toolstrips (menu bar and toolbars)
        Menubar   = _strips.MenuBar;
        tbFile    = _strips.Toolbars["File"];
        tbEdit    = _strips.Toolbars["Edit"];
        tbRun     = _strips.Toolbars["Run"];
        tbTools   = _strips.Toolbars["Tools"];
        tbHelp    = _strips.Toolbars["Help"];
        tbCustom1 = _strips.Toolbars["Custom1"];
        tbCustom2 = _strips.Toolbars["Custom2"];

        //get submenus that will be filled later or used separately etc
        (ddFileNew = _strips.Submenus["File_New"]).Opening += (o, e) => Panels.Files.ZFillMenuNew(o as ToolStripDropDownMenu);
        _strips.Submenus["File_RecentWorkspaces"].Opening  += (o, e) => Panels.Files.ZFillMenuRecentWorkspaces(o as ToolStripDropDownMenu);
        _strips.Submenus["Tools_Panels"].Opening           += (se, da) => Panels.PanelManager.ZAddShowPanelsToMenu(se as ToolStripDropDown, false, true);
        _strips.Submenus["Tools_Toolbars"].Opening         += (se, da) => Panels.PanelManager.ZAddShowPanelsToMenu(se as ToolStripDropDown, true, true);
        ddFile   = _strips.Submenus["Menu_File"];
        ddEdit   = _strips.Submenus["Menu_Edit"];
        ddOutput = _strips.Submenus["Tools_Output"];
        //ddStatusBar = _strips.Submenus["Tools_StatusBar"];

        //get controls
        cHelpFind = tbHelp.Items["Help_Find"] as ToolStripSpringTextBox;
        //var cw1 = new ComboWrapper(cHelpFind.Control);
        //cw1.ArrowButtonPressed += (unu, sed) => AOutput.Write("not implemented");
        cHelpFind.Visible = false;         //FUTURE

        //p.NW();

        //make some buttons wider
        int wider = Au.Util.ADpi.ScaleInt(5);

        tbRun.Items["Run_Run"].Padding = new Padding(wider, 0, wider, 0);

        //tbHelp.Padding = new Padding(); //removes 1-pixel right margin that causes a visual artifact because of gradient, but then not good when no margin when the edit is at the very right edge of the form

#if DEBUG
        //all commands have menu items?
        //var p = APerf.Create();
        foreach (var k in _cmd.Dict.Keys)
        {
            //AOutput.Write(k);
            if (_strips.Xml.Desc(k) == null)
            {
                AWarning.Write("no menu item for command " + k);
            }
        }
        //p.NW(); //450
        //for vice versa, AuStripManager takes care
#endif

#if TRACE
        //tbCustom2.Items.Add("Test", null, TestCompiler.Test);
        tbCustom2.Items.Add("Test", null, (unu, sed) => {
            Program.MainForm.TestEditor();
            //Panels.Files.Test();
            //Panels.Editor.Test();
            //Program.Model.LoadState();
            //TestCompiler.TestCompiling();
            //TestCompiler.TestParsing();
        });
#endif
    }
Example #8
0
        public LibraryToolStrip(LibraryFilter libraryFilter, LibraryModel libraryModel, Configuration.ConfigLibraryList libraryListSettings, int filterDelay)
        {
            InitializeComponent();

            LibraryFilter       = libraryFilter;
            LibraryModel        = libraryModel;
            LibraryListSettings = libraryListSettings;

            toolStrip                      = new ToolStrip();
            filterTextBox                  = new ToolStripSpringTextBox();
            dateFilterButton               = new ToolStripDropDownButton();
            dateFilterAfterButton          = new ToolStripMenuItem();
            dateFilterAfterDateTimePicker  = new DateTimePicker();
            dateFilterBeforeButton         = new ToolStripMenuItem();
            dateFilterBeforeDateTimePicker = new DateTimePicker();
            filterButton                   = new ToolStripDropDownButton();
            filterNoneButton               = new ToolStripMenuItem();
            filterAllButton                = new ToolStripMenuItem();
            filterQuerySearchButton        = new ToolStripMenuItem();
            filterTaggedSearchButton       = new ToolStripMenuItem();
            sortButton                     = new ToolStripDropDownButton();
            sortTypeCreationTimeButton     = new ToolStripMenuItem();
            sortTypeLastAccessTimeButton   = new ToolStripMenuItem();
            sortTypeLastWriteTimeButton    = new ToolStripMenuItem();
            sortOrderAscendingButton       = new ToolStripMenuItem();
            sortOrderDescendingButton      = new ToolStripMenuItem();
            filterTimer                    = new Timer(components);

            SuspendLayout();

            //
            // filter textbox
            //
            filterTextBox.Dock         = DockStyle.Fill;
            filterTextBox.Margin       = new Padding(0, 0, 6, 0);
            filterTextBox.TextChanged += FilterTextBox_TextChanged;

            //
            // date filter button
            //
            dateFilterButton.Text        = "&Date";
            dateFilterButton.AutoToolTip = false;

            dateFilterAfterButton.Name   = "after";
            dateFilterAfterButton.Text   = "&After";
            dateFilterAfterButton.Click += DateFilterAfterButton_Click;

            dateFilterAfterDateTimePicker.ShowUpDown    = true;
            dateFilterAfterDateTimePicker.ValueChanged += DateFilterAfterDateTimePicker_ValueChanged;

            dateFilterBeforeButton.Name   = "before";
            dateFilterBeforeButton.Text   = "&Before";
            dateFilterBeforeButton.Click += DateFilterBeforeButton_Click;

            dateFilterBeforeDateTimePicker.ShowUpDown    = true;
            dateFilterBeforeDateTimePicker.ValueChanged += DateFilterBeforeDateTimePicker_ValueChanged;

            ContextMenuStrip dateFilterContextMenuStrip = new ContextMenuStrip();

            dateFilterContextMenuStrip.ShowCheckMargin = true;
            dateFilterContextMenuStrip.Items.Add(dateFilterAfterButton);
            ToolStripControlHost afterValueControlHost = new ToolStripControlHost(dateFilterAfterDateTimePicker);

            dateFilterContextMenuStrip.Items.Add(afterValueControlHost);
            dateFilterContextMenuStrip.Items.Add(new ToolStripSeparator());
            dateFilterContextMenuStrip.Items.Add(dateFilterBeforeButton);
            ToolStripControlHost beforeValueControlHost = new ToolStripControlHost(dateFilterBeforeDateTimePicker);

            dateFilterContextMenuStrip.Items.Add(beforeValueControlHost);

            dateFilterContextMenuStrip.Opening    += DateFilterContextMenuStrip_Opening;
            dateFilterContextMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            dateFilterContextMenuStrip.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow;

            dateFilterButton.DropDown = dateFilterContextMenuStrip;

            //
            // filter button
            //
            filterButton.Text        = "&Filters";
            filterButton.AutoToolTip = false;

            filterNoneButton.Name   = "none";
            filterNoneButton.Text   = "&None";
            filterNoneButton.Click += FilterNoneButton_Click;

            filterAllButton.Name   = "all";
            filterAllButton.Text   = "&All";
            filterAllButton.Click += FilterAllButton_Click;

            filterQuerySearchButton.Name   = "folders";
            filterQuerySearchButton.Text   = "&Folders";
            filterQuerySearchButton.Click += FilterQuerySearchButton_Click;

            filterTaggedSearchButton.Name   = "archives";
            filterTaggedSearchButton.Text   = "&Archives";
            filterTaggedSearchButton.Click += FilterTaggedSearchButton_Click;

            ContextMenuStrip filterContextMenuStrip = new ContextMenuStrip();

            filterContextMenuStrip.ShowCheckMargin = true;
            filterContextMenuStrip.Items.Add(filterNoneButton);
            filterContextMenuStrip.Items.Add(filterAllButton);
            filterContextMenuStrip.Items.Add(new ToolStripSeparator());
            filterContextMenuStrip.Items.Add(filterQuerySearchButton);
            filterContextMenuStrip.Items.Add(filterTaggedSearchButton);

            filterContextMenuStrip.Opening    += FilterContextMenuStrip_Opening;
            filterContextMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            filterContextMenuStrip.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow;

            filterButton.DropDown = filterContextMenuStrip;

            //
            // sort button
            //
            sortButton.Text        = "&Sort";
            sortButton.AutoToolTip = false;

            sortTypeCreationTimeButton.Name   = "creationTime";
            sortTypeCreationTimeButton.Text   = "&Creation Time";
            sortTypeCreationTimeButton.Click += SortTypeCreationTimeButton_Click;

            sortTypeLastAccessTimeButton.Name   = "lastAccessTime";
            sortTypeLastAccessTimeButton.Text   = "Last &Access Time";
            sortTypeLastAccessTimeButton.Click += SortTypeLastAccessTimeButton_Click;

            sortTypeLastWriteTimeButton.Name   = "lastWriteTime";
            sortTypeLastWriteTimeButton.Text   = "Last &Write Time";
            sortTypeLastWriteTimeButton.Click += SortTypeLastWriteTimeButton_Click;

            sortOrderAscendingButton.Name   = "sort_order_ascending";
            sortOrderAscendingButton.Text   = "&Ascending";
            sortOrderAscendingButton.Click += SortOrderAscendingButton_Click;

            sortOrderDescendingButton.Name   = "sort_order_descending";
            sortOrderDescendingButton.Text   = "&Descending";
            sortOrderDescendingButton.Click += SortOrderDescendingButton_Click;

            ContextMenuStrip sortContextMenuStrip = new ContextMenuStrip();

            sortContextMenuStrip.ShowCheckMargin = true;
            sortContextMenuStrip.Items.Add(sortTypeCreationTimeButton);
            sortContextMenuStrip.Items.Add(sortTypeLastAccessTimeButton);
            sortContextMenuStrip.Items.Add(sortTypeLastWriteTimeButton);
            sortContextMenuStrip.Items.Add(new ToolStripSeparator());
            sortContextMenuStrip.Items.Add(sortOrderAscendingButton);
            sortContextMenuStrip.Items.Add(sortOrderDescendingButton);

            sortContextMenuStrip.Opening    += SortContextMenuStrip_Opening;
            sortContextMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            sortContextMenuStrip.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow;

            sortButton.DropDown = sortContextMenuStrip;

            //
            // timer
            //
            filterTimer.Interval = filterDelay;
            filterTimer.Tick    += FilterTimer_Tick;

            //
            // toolStrip
            //
            toolStrip.Dock        = DockStyle.Fill;
            toolStrip.CanOverflow = false;
            toolStrip.Items.Add(filterTextBox);
            toolStrip.Items.Add(dateFilterButton);
            toolStrip.Items.Add(filterButton);
            toolStrip.Items.Add(sortButton);

            //
            // this
            //
            Controls.Add(toolStrip);

            libraryFilter.FiltersChanged     += LibraryFilter_FiltersChanged;
            libraryFilter.DateFiltersChanged += LibraryFilter_DateFiltersChanged;
            libraryFilter.AfterDateChanged   += LibraryFilter_AfterDateChanged;
            libraryFilter.BeforeDateChanged  += LibraryFilter_BeforeDateChanged;
            libraryFilter.SortTypeChanged    += LibraryFilter_SortTypeChanged;
            libraryFilter.SortOrderChanged   += LibraryFilter_SortOrderChanged;

            ResumeLayout(false);
        }
Example #9
0
        public TagsToolStrip(TagsFilter tagsFilter, TagsModel tagsModel, Configuration.ConfigTagsList tagsListSettings, MetadataKeywordLists metadataKeywordLists, int filterDelay)
        {
            InitializeComponent();

            TagsFilter           = tagsFilter;
            TagsModel            = tagsModel;
            TagsListSettings     = tagsListSettings;
            MetadataKeywordLists = metadataKeywordLists;

            filterTextBox             = new ToolStripSpringTextBox();
            toolStrip                 = new ToolStrip();
            filterButton              = new ToolStripDropDownButton();
            filterNoneButton          = new ToolStripMenuItem();
            filterAllButton           = new ToolStripMenuItem();
            filterWhitelistButton     = new ToolStripMenuItem();
            filterBlacklistButton     = new ToolStripMenuItem();
            filterIgnorelistButton    = new ToolStripMenuItem();
            filterHidelistButton      = new ToolStripMenuItem();
            filterOtherButton         = new ToolStripMenuItem();
            sortButton                = new ToolStripDropDownButton();
            sortTypeNoneButton        = new ToolStripMenuItem();
            sortTypeNameButton        = new ToolStripMenuItem();
            sortTypeCountButton       = new ToolStripMenuItem();
            sortOrderAscendingButton  = new ToolStripMenuItem();
            sortOrderDescendingButton = new ToolStripMenuItem();
            filterTimer               = new Timer();

            SuspendLayout();

            //
            // filter textbox
            //
            filterTextBox.Dock         = DockStyle.Fill;
            filterTextBox.Margin       = new Padding(0, 0, 6, 0);
            filterTextBox.TextChanged += FilterTextBox_TextChanged;

            //
            // filter button
            //
            filterButton.Text        = "&Filters";
            filterButton.AutoToolTip = false;

            filterNoneButton.Name   = "none";
            filterNoneButton.Text   = "&None";
            filterNoneButton.Click += FilterNoneButton_Click;

            filterAllButton.Name   = "all";
            filterAllButton.Text   = "&All";
            filterAllButton.Click += FilterAllButton_Click;

            filterWhitelistButton.Name   = "whitelist";
            filterWhitelistButton.Text   = "&Whitelisted";
            filterWhitelistButton.Click += FilterWhitelistButton_Click;

            filterBlacklistButton.Name   = "blacklist";
            filterBlacklistButton.Text   = "&Blacklisted";
            filterBlacklistButton.Click += FilterBlacklistButton_Click;

            filterIgnorelistButton.Name   = "ignorelist";
            filterIgnorelistButton.Text   = "&Ignored";
            filterIgnorelistButton.Click += FilterIgnorelistButton_Click;

            filterHidelistButton.Name   = "hidelist";
            filterHidelistButton.Text   = "&Hidden";
            filterHidelistButton.Click += FilterHidelistButton_Click;

            filterOtherButton.Name   = "other";
            filterOtherButton.Text   = "&Unfiltered";
            filterOtherButton.Click += FilterOtherButton_Click;

            ContextMenuStrip filterContextMenuStrip = new ContextMenuStrip();

            filterContextMenuStrip.ShowCheckMargin = true;
            filterContextMenuStrip.Items.Add(filterNoneButton);
            filterContextMenuStrip.Items.Add(filterAllButton);
            filterContextMenuStrip.Items.Add(new ToolStripSeparator());
            filterContextMenuStrip.Items.Add(filterWhitelistButton);
            filterContextMenuStrip.Items.Add(filterBlacklistButton);
            filterContextMenuStrip.Items.Add(filterIgnorelistButton);
            filterContextMenuStrip.Items.Add(filterHidelistButton);
            filterContextMenuStrip.Items.Add(filterOtherButton);

            filterContextMenuStrip.Opening    += FilterContextMenuStrip_Opening;
            filterContextMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            filterContextMenuStrip.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow;

            filterButton.DropDown = filterContextMenuStrip;

            //
            // sort button
            //
            sortButton.Text        = "&Sort";
            sortButton.AutoToolTip = false;

            sortTypeNoneButton.Name   = "sort_type_none";
            sortTypeNoneButton.Text   = "&Date Added";
            sortTypeNoneButton.Click += SortTypeNoneButton_Click;

            sortTypeNameButton.Name   = "sort_type_name";
            sortTypeNameButton.Text   = "&Name";
            sortTypeNameButton.Click += SortTypeNameButton_Click;

            sortTypeCountButton.Name   = "sort_type_count";
            sortTypeCountButton.Text   = "&Count";
            sortTypeCountButton.Click += SortTypeCountButton_Click;

            sortOrderAscendingButton.Name   = "sort_order_ascending";
            sortOrderAscendingButton.Text   = "&Ascending";
            sortOrderAscendingButton.Click += SortOrderAscendingButton_Click;

            sortOrderDescendingButton.Name   = "sort_order_descending";
            sortOrderDescendingButton.Text   = "&Descending";
            sortOrderDescendingButton.Click += SortOrderDescendingButton_Click;

            ContextMenuStrip sortContextMenuStrip = new ContextMenuStrip();

            sortContextMenuStrip.ShowCheckMargin = true;
            sortContextMenuStrip.Items.Add(sortTypeNameButton);
            sortContextMenuStrip.Items.Add(sortTypeCountButton);
            sortContextMenuStrip.Items.Add(sortTypeNoneButton);
            sortContextMenuStrip.Items.Add(new ToolStripSeparator());
            sortContextMenuStrip.Items.Add(sortOrderAscendingButton);
            sortContextMenuStrip.Items.Add(sortOrderDescendingButton);

            sortContextMenuStrip.Opening    += SortContextMenuStrip_Opening;
            sortContextMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            sortContextMenuStrip.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow;

            sortButton.DropDown = sortContextMenuStrip;

            //
            // timer
            //
            filterTimer.Interval = filterDelay;
            filterTimer.Tick    += FilterTimer_Tick;

            //
            // toolStrip
            //
            toolStrip.Dock        = DockStyle.Fill;
            toolStrip.CanOverflow = false;
            toolStrip.Items.Add(filterTextBox);
            toolStrip.Items.Add(filterButton);
            toolStrip.Items.Add(sortButton);

            //
            // this
            //
            Controls.Add(toolStrip);

            tagsFilter.FiltersChanged   += TagsFilter_FiltersChanged;
            tagsFilter.SortTypeChanged  += TagsFilter_SortTypeChanged;
            tagsFilter.SortOrderChanged += TagsFilter_SortOrderChanged;

            ResumeLayout(false);
        }
Example #10
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.entriesView            = new System.Windows.Forms.ListViewEx();
     this.entryType              = new System.Windows.Forms.ColumnHeader();
     this.entryLine              = new System.Windows.Forms.ColumnHeader();
     this.entryDesc              = new System.Windows.Forms.ColumnHeader();
     this.entryFile              = new System.Windows.Forms.ColumnHeader();
     this.entryPath              = new System.Windows.Forms.ColumnHeader();
     this.toolStripFilters       = new PluginCore.Controls.ToolStripEx();
     this.clearFilterButton      = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonError   = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonWarning = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonInfo    = new System.Windows.Forms.ToolStripButton();
     this.toolStripTextBoxFilter = new System.Windows.Forms.ToolStripSpringTextBox();
     this.toolStripLabelFilter   = new System.Windows.Forms.ToolStripLabel();
     this.toolStripFilters.SuspendLayout();
     this.SuspendLayout();
     //
     // clearFilterButton
     //
     this.clearFilterButton.Enabled               = false;
     this.clearFilterButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.clearFilterButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.clearFilterButton.Margin    = new System.Windows.Forms.Padding(0, 1, 0, 1);
     this.clearFilterButton.Name      = "clearFilterButton";
     this.clearFilterButton.Size      = new System.Drawing.Size(23, 26);
     this.clearFilterButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.clearFilterButton.Click    += new System.EventHandler(this.ClearFilterButtonClick);
     //
     // entriesView
     //
     this.entriesView.Dock        = DockStyle.Fill;
     this.entriesView.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.entriesView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.entryType, this.entryLine, this.entryDesc, this.entryFile, this.entryPath });
     this.entriesView.FullRowSelect    = true;
     this.entriesView.GridLines        = true;
     this.entriesView.Location         = new System.Drawing.Point(0, 28);
     this.entriesView.Name             = "entriesView";
     this.entriesView.ShowItemToolTips = true;
     this.entriesView.Size             = new System.Drawing.Size(710, 218);
     this.entriesView.TabIndex         = 1;
     this.entriesView.UseCompatibleStateImageBehavior = false;
     this.entriesView.View         = System.Windows.Forms.View.Details;
     this.entriesView.DoubleClick += new System.EventHandler(this.EntriesViewDoubleClick);
     this.entriesView.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.EntriesViewKeyDown);
     //
     // entryType
     //
     this.entryType.Text  = "!";
     this.entryType.Width = 23;
     //
     // entryLine
     //
     this.entryLine.Text  = "Line";
     this.entryLine.Width = 55;
     //
     // entryDesc
     //
     this.entryDesc.Text  = "Description";
     this.entryDesc.Width = 350;
     //
     // entryFile
     //
     this.entryFile.Text  = "File";
     this.entryFile.Width = 150;
     //
     // entryPath
     //
     this.entryPath.Text  = "Path";
     this.entryPath.Width = 400;
     //
     // toolStripFilters
     //
     this.toolStripFilters.ImageScalingSize = ScaleHelper.Scale(new Size(16, 16));
     this.toolStripFilters.CanOverflow      = false;
     this.toolStripFilters.LayoutStyle      = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
     this.toolStripFilters.Padding          = new System.Windows.Forms.Padding(1, 1, 2, 2);
     this.toolStripFilters.GripStyle        = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStripFilters.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripButtonError,
         new ToolStripSeparator(),
         this.toolStripButtonWarning,
         new ToolStripSeparator(),
         this.toolStripButtonInfo,
         new ToolStripSeparator(),
         this.toolStripLabelFilter,
         this.toolStripTextBoxFilter,
         this.clearFilterButton
     });
     this.toolStripFilters.Name     = "toolStripFilters";
     this.toolStripFilters.Location = new System.Drawing.Point(1, 0);
     this.toolStripFilters.Size     = new System.Drawing.Size(710, 25);
     this.toolStripFilters.TabIndex = 0;
     this.toolStripFilters.Text     = "toolStripFilters";
     //
     // toolStripButtonError
     //
     this.toolStripButtonError.Checked               = true;
     this.toolStripButtonError.CheckOnClick          = true;
     this.toolStripButtonError.Margin                = new System.Windows.Forms.Padding(1, 1, 0, 1);
     this.toolStripButtonError.CheckState            = System.Windows.Forms.CheckState.Checked;
     this.toolStripButtonError.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonError.Name            = "toolStripButtonError";
     this.toolStripButtonError.Size            = new System.Drawing.Size(36, 22);
     this.toolStripButtonError.Text            = "Error";
     this.toolStripButtonError.CheckedChanged += new System.EventHandler(this.ToolStripButtonErrorCheckedChanged);
     //
     // toolStripButtonWarning
     //
     this.toolStripButtonWarning.Checked               = true;
     this.toolStripButtonWarning.CheckOnClick          = true;
     this.toolStripButtonWarning.Margin                = new System.Windows.Forms.Padding(1, 1, 0, 1);
     this.toolStripButtonWarning.CheckState            = System.Windows.Forms.CheckState.Checked;
     this.toolStripButtonWarning.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonWarning.Name            = "toolStripButtonWarning";
     this.toolStripButtonWarning.Size            = new System.Drawing.Size(56, 22);
     this.toolStripButtonWarning.Text            = "Warning";
     this.toolStripButtonWarning.CheckedChanged += new System.EventHandler(this.ToolStripButtonErrorCheckedChanged);
     //
     // toolStripButtonInfo
     //
     this.toolStripButtonInfo.Checked               = true;
     this.toolStripButtonInfo.CheckOnClick          = true;
     this.toolStripButtonInfo.Margin                = new System.Windows.Forms.Padding(1, 1, 0, 1);
     this.toolStripButtonInfo.CheckState            = System.Windows.Forms.CheckState.Checked;
     this.toolStripButtonInfo.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonInfo.Name            = "toolStripButtonInfo";
     this.toolStripButtonInfo.Size            = new System.Drawing.Size(74, 22);
     this.toolStripButtonInfo.Text            = "Information";
     this.toolStripButtonInfo.CheckedChanged += new System.EventHandler(this.ToolStripButtonErrorCheckedChanged);
     //
     // toolStripTextBoxFilter
     //
     this.toolStripTextBoxFilter.Name         = "toolStripTextBoxFilter";
     this.toolStripTextBoxFilter.Size         = new System.Drawing.Size(100, 25);
     this.toolStripTextBoxFilter.Padding      = new System.Windows.Forms.Padding(0, 0, 1, 0);
     this.toolStripTextBoxFilter.TextChanged += new System.EventHandler(this.ToolStripButtonErrorCheckedChanged);
     //
     // toolStripLabelFilter
     //
     this.toolStripLabelFilter.Margin = new System.Windows.Forms.Padding(2, 1, 0, 1);
     this.toolStripLabelFilter.Name   = "toolStripLabelFilter";
     this.toolStripLabelFilter.Size   = new System.Drawing.Size(36, 22);
     this.toolStripLabelFilter.Text   = "Filter:";
     //
     // PluginUI
     //
     this.Name    = "PluginUI";
     this.Resize += this.PluginUIResize;
     this.Controls.Add(this.entriesView);
     this.Controls.Add(this.toolStripFilters);
     this.Size = new System.Drawing.Size(712, 246);
     this.toolStripFilters.ResumeLayout(false);
     this.toolStripFilters.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #11
0
 private void InitializeComponents(ImageList imageList)
 {
     this.toolStripLabelFilter     = new System.Windows.Forms.ToolStripLabel();
     this.toolStripTextBoxFilter   = new System.Windows.Forms.ToolStripSpringTextBox();
     this.clearFilterButton        = new System.Windows.Forms.ToolStripButton();
     this.toolStripDropDownOptions = new System.Windows.Forms.ToolStripDropDownButton();
     this.toolStripItemMatchCase   = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripItemRegEx       = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripItemNegate      = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripFilters         = new PluginCore.Controls.ToolStripEx();
     this.toolStripFilters.SuspendLayout();
     //
     // toolStripTextBoxFilter
     //
     this.toolStripTextBoxFilter.Name         = "toolStripTextBoxFilter";
     this.toolStripTextBoxFilter.Size         = new System.Drawing.Size(100, 25);
     this.toolStripTextBoxFilter.Padding      = new System.Windows.Forms.Padding(0, 0, 1, 0);
     this.toolStripTextBoxFilter.Enabled      = false;
     this.toolStripTextBoxFilter.TextChanged += new System.EventHandler(this.ToolStripTextFieldFilter_Changed);
     //
     // toolStripLabelFilter
     //
     this.toolStripLabelFilter.Margin = new System.Windows.Forms.Padding(2, 1, 0, 1);
     this.toolStripLabelFilter.Name   = "toolStripLabelFilter";
     this.toolStripLabelFilter.Size   = new System.Drawing.Size(36, 22);
     this.toolStripLabelFilter.Text   = "Filter:";
     //
     // clearFilterButton
     //
     this.clearFilterButton.Enabled               = false;
     this.clearFilterButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.clearFilterButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.clearFilterButton.Margin    = new System.Windows.Forms.Padding(0, 1, 0, 1);
     this.clearFilterButton.Name      = "clearFilterButton";
     this.clearFilterButton.Size      = new System.Drawing.Size(23, 26);
     this.clearFilterButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.clearFilterButton.Image     = PluginBase.MainForm.FindImage("153");
     this.clearFilterButton.Click    += new System.EventHandler(this.ClearFilterButton_Click);
     //
     // toolStripItemMatchCase
     //
     this.toolStripItemMatchCase.Name         = "toolStripItemMatchCase";
     this.toolStripItemMatchCase.CheckOnClick = true;
     this.toolStripItemMatchCase.Text         = "Match Case";
     this.toolStripItemNegate.Click          += FilterOption_Click;
     //
     // toolStripItemRegEx
     //
     this.toolStripItemRegEx.Name         = "toolStripItemRegEx";
     this.toolStripItemRegEx.CheckOnClick = true;
     this.toolStripItemRegEx.Text         = "Regular Expression";
     this.toolStripItemNegate.Click      += FilterOption_Click;
     //
     // toolStripItemNegate
     //
     this.toolStripItemNegate.Name         = "toolStripItemNegate";
     this.toolStripItemNegate.CheckOnClick = true;
     this.toolStripItemNegate.Text         = "Match Opposite";
     this.toolStripItemNegate.Click       += FilterOption_Click;
     //
     // toolStripDropDownOptions
     //
     this.toolStripDropDownOptions.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.toolStripDropDownOptions.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripItemMatchCase,
         this.toolStripItemRegEx,
         this.toolStripItemNegate
     });
     this.toolStripDropDownOptions.Name = "toolStripDropDownOptions";
     this.toolStripDropDownOptions.Text = "Options";
     //
     // toolStripFilters
     //
     this.toolStripFilters.ImageScalingSize = ScaleHelper.Scale(new System.Drawing.Size(16, 16));
     this.toolStripFilters.CanOverflow      = false;
     this.toolStripFilters.LayoutStyle      = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
     this.toolStripFilters.Padding          = new System.Windows.Forms.Padding(1, 1, 2, 2);
     this.toolStripFilters.GripStyle        = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStripFilters.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripLabelFilter,
         this.toolStripTextBoxFilter,
         this.clearFilterButton,
         this.toolStripDropDownOptions
     });
     this.toolStripFilters.Name     = "toolStripFilters";
     this.toolStripFilters.Location = new System.Drawing.Point(1, 0);
     this.toolStripFilters.Size     = new System.Drawing.Size(710, 25);
     this.toolStripFilters.TabIndex = 0;
     this.toolStripFilters.Text     = "toolStripFilters";
     // lv
     this.lv = new ListViewEx();
     this.lv.ShowItemToolTips     = true;
     this.imageColumnHeader       = new ColumnHeader();
     this.imageColumnHeader.Text  = string.Empty;
     this.imageColumnHeader.Width = 20;
     this.frameColumnHeader       = new ColumnHeader();
     this.frameColumnHeader.Text  = string.Empty;
     this.lv.Columns.AddRange(new ColumnHeader[] {
         this.imageColumnHeader,
         this.frameColumnHeader
     });
     this.lv.FullRowSelect = true;
     this.lv.BorderStyle   = BorderStyle.None;
     this.lv.Dock          = System.Windows.Forms.DockStyle.Fill;
     foreach (ColumnHeader column in lv.Columns)
     {
         column.Width = ScaleHelper.Scale(column.Width);
     }
     lv.SmallImageList    = imageList;
     currentImageIndex    = imageList.Images.IndexOfKey("StartContinue");
     lv.View              = System.Windows.Forms.View.Details;
     lv.MouseDoubleClick += new MouseEventHandler(Lv_MouseDoubleClick);
     lv.KeyDown          += new KeyEventHandler(Lv_KeyDown);
     lv.SizeChanged      += new EventHandler(Lv_SizeChanged);
     this.Controls.Add(lv);
     this.Controls.Add(toolStripFilters);
     this.toolStripFilters.ResumeLayout(false);
     this.toolStripFilters.PerformLayout();
 }
Example #12
0
        public BookmarksToolStrip(BookmarksFilter bookmarksFilter, BookmarksModel bookmarksModel, Configuration.ConfigBookmarksList bookmarksListSettings, int filterDelay)
        {
            InitializeComponent();

            BookmarksFilter       = bookmarksFilter;
            BookmarksModel        = bookmarksModel;
            BookmarksListSettings = bookmarksListSettings;

            filterTextBox            = new ToolStripSpringTextBox();
            filterButton             = new ToolStripDropDownButton();
            filterNoneButton         = new ToolStripMenuItem();
            filterAllButton          = new ToolStripMenuItem();
            filterRecentSearchButton = new ToolStripMenuItem();
            filterQuerySearchButton  = new ToolStripMenuItem();
            filterTaggedSearchButton = new ToolStripMenuItem();
            filterLibraryButton      = new ToolStripMenuItem();
            filterDetailsButton      = new ToolStripMenuItem();
            filterDownloadButton     = new ToolStripMenuItem();
            toolStrip   = new ToolStrip();
            filterTimer = new Timer();

            SuspendLayout();

            //
            // filter textbox
            //
            filterTextBox.Dock         = DockStyle.Fill;
            filterTextBox.Margin       = new Padding(0, 0, 6, 0);
            filterTextBox.TextChanged += FilterTextBox_TextChanged;

            //
            // filter button
            //
            filterButton.Text        = "&Filters";
            filterButton.AutoToolTip = false;

            filterNoneButton.Name   = "none";
            filterNoneButton.Text   = "&None";
            filterNoneButton.Click += FilterNoneButton_Click;

            filterAllButton.Name   = "all";
            filterAllButton.Text   = "&All";
            filterAllButton.Click += FilterAllButton_Click;

            filterRecentSearchButton.Name   = "recent";
            filterRecentSearchButton.Text   = "&Recent Searches";
            filterRecentSearchButton.Click += FilterRecentSearchButton_Click;

            filterQuerySearchButton.Name   = "query";
            filterQuerySearchButton.Text   = "&Query Searches";
            filterQuerySearchButton.Click += FilterQuerySearchButton_Click;

            filterTaggedSearchButton.Name   = "tagged";
            filterTaggedSearchButton.Text   = "&Tagged Searches";
            filterTaggedSearchButton.Click += FilterTaggedSearchButton_Click;

            filterLibraryButton.Name   = "library";
            filterLibraryButton.Text   = "&Library";
            filterLibraryButton.Click += FilterLibraryButton_Click;

            filterDetailsButton.Name   = "details";
            filterDetailsButton.Text   = "&Details";
            filterDetailsButton.Click += FilterDetailsButton_Click;

            filterDownloadButton.Name   = "download";
            filterDownloadButton.Text   = "&Download";
            filterDownloadButton.Click += FilterDownloadButton_Click;

            ContextMenuStrip filterContextMenuStrip = new ContextMenuStrip();

            filterContextMenuStrip.ShowCheckMargin = true;
            filterContextMenuStrip.Items.Add(filterNoneButton);
            filterContextMenuStrip.Items.Add(filterAllButton);
            filterContextMenuStrip.Items.Add(new ToolStripSeparator());
            filterContextMenuStrip.Items.Add(filterRecentSearchButton);
            filterContextMenuStrip.Items.Add(filterQuerySearchButton);
            filterContextMenuStrip.Items.Add(filterTaggedSearchButton);
            filterContextMenuStrip.Items.Add(filterLibraryButton);
            filterContextMenuStrip.Items.Add(filterDetailsButton);
            filterContextMenuStrip.Items.Add(filterDownloadButton);

            filterContextMenuStrip.Opening    += Dropdown_Opening;
            filterContextMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            filterContextMenuStrip.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow;

            filterButton.DropDown = filterContextMenuStrip;

            //
            // filter timer
            //
            filterTimer.Interval = filterDelay;
            filterTimer.Tick    += FilterTimer_Tick;

            //
            // toolstrip
            //
            toolStrip.Dock        = DockStyle.Fill;
            toolStrip.CanOverflow = false;
            toolStrip.Items.Add(filterTextBox);
            toolStrip.Items.Add(filterButton);

            //
            // this
            //
            Controls.Add(toolStrip);

            bookmarksFilter.FiltersChanged += BookmarksFilter_FiltersChanged;

            ResumeLayout(false);
        }
Example #13
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PluginUI));
     this.scrollTimer         = new System.Timers.Timer();
     this.textLog             = new System.Windows.Forms.RichTextBox();
     this.toolStrip           = new PluginCore.Controls.ToolStripEx();
     this.toggleButton        = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.findTextBox         = new System.Windows.Forms.ToolStripSpringTextBox();
     this.clearButton         = new System.Windows.Forms.ToolStripButton();
     ((System.ComponentModel.ISupportInitialize)(this.scrollTimer)).BeginInit();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // scrollTimer
     //
     this.scrollTimer.Enabled             = true;
     this.scrollTimer.Interval            = 50;
     this.scrollTimer.SynchronizingObject = this;
     this.scrollTimer.Elapsed            += new System.Timers.ElapsedEventHandler(this.ScrollTimerElapsed);
     //
     // textLog
     //
     this.textLog.BackColor    = System.Drawing.SystemColors.Window;
     this.textLog.BorderStyle  = System.Windows.Forms.BorderStyle.None;
     this.textLog.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.textLog.Location     = new System.Drawing.Point(1, 26);
     this.textLog.Name         = "textLog";
     this.textLog.ReadOnly     = true;
     this.textLog.Size         = new System.Drawing.Size(278, 326);
     this.textLog.TabIndex     = 1;
     this.textLog.Text         = "";
     this.textLog.WordWrap     = false;
     this.textLog.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.PluginUIKeyDown);
     this.textLog.MouseUp     += new System.Windows.Forms.MouseEventHandler(this.TextLogMouseUp);
     this.textLog.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.LinkClicked);
     this.textLog.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.TextLogMouseDown);
     //
     // toolStrip
     //
     this.toolStrip.CanOverflow      = false;
     this.toolStrip.GripStyle        = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip.ImageScalingSize = ScaleHelper.Scale(new Size(16, 16));
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toggleButton,
         this.toolStripSeparator1,
         this.findTextBox,
         this.clearButton
     });
     this.toolStrip.Location = new System.Drawing.Point(1, 0);
     this.toolStrip.Name     = "toolStrip";
     this.toolStrip.Padding  = new System.Windows.Forms.Padding(1, 1, 2, 2);
     this.toolStrip.Size     = new System.Drawing.Size(278, 26);
     this.toolStrip.Stretch  = true;
     this.toolStrip.TabIndex = 1;
     //
     // toggleButton
     //
     this.toggleButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toggleButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toggleButton.Name   = "toggleButton";
     this.toggleButton.Size   = new System.Drawing.Size(23, 20);
     this.toggleButton.Text   = "toolStripButton1";
     this.toggleButton.Click += new System.EventHandler(this.ToggleButtonClick);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 23);
     //
     // findTextBox
     //
     this.findTextBox.Name         = "FindTextBox";
     this.findTextBox.Size         = new System.Drawing.Size(190, 23);
     this.findTextBox.Padding      = new System.Windows.Forms.Padding(0, 0, 1, 0);
     this.findTextBox.ForeColor    = System.Drawing.SystemColors.GrayText;
     this.findTextBox.TextChanged += new System.EventHandler(this.FindTextBoxTextChanged);
     this.findTextBox.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.PluginUIKeyDown);
     this.findTextBox.Leave       += new System.EventHandler(this.FindTextBoxLeave);
     this.findTextBox.Enter       += new System.EventHandler(this.FindTextBoxEnter);
     //
     // clearButton
     //
     this.clearButton.Name   = "clearButton";
     this.clearButton.Size   = new System.Drawing.Size(23, 21);
     this.clearButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1);
     this.clearButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.clearButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.clearButton.Click += new System.EventHandler(this.ClearButtonClick);
     //
     // PluginUI
     //
     this.Controls.Add(this.textLog);
     this.Controls.Add(this.toolStrip);
     this.Name = "PluginUI";
     this.Size = new System.Drawing.Size(280, 352);
     ((System.ComponentModel.ISupportInitialize)(this.scrollTimer)).EndInit();
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #14
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PluginUI));
     this.treeIcons           = new System.Windows.Forms.ImageList(this.components);
     this.toolStrip           = new System.Windows.Forms.ToolStrip();
     this.sortDropDown        = new System.Windows.Forms.ToolStripDropDownButton();
     this.noneItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.sortedItem          = new System.Windows.Forms.ToolStripMenuItem();
     this.sortedByKindItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.sortedSmartItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.sortedGroupItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.findProcTxt         = new System.Windows.Forms.ToolStripSpringTextBox();
     this.clearButton         = new System.Windows.Forms.ToolStripButton();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // treeIcons
     //
     this.treeIcons.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("treeIcons.ImageStream")));
     this.treeIcons.TransparentColor = System.Drawing.Color.Transparent;
     this.treeIcons.Images.SetKeyName(0, "FilePlain.png");
     this.treeIcons.Images.SetKeyName(1, "FolderClosed.png");
     this.treeIcons.Images.SetKeyName(2, "FolderOpen.png");
     this.treeIcons.Images.SetKeyName(3, "CheckAS.png");
     this.treeIcons.Images.SetKeyName(4, "QuickBuild.png");
     this.treeIcons.Images.SetKeyName(5, "Package.png");
     this.treeIcons.Images.SetKeyName(6, "Interface.png");
     this.treeIcons.Images.SetKeyName(7, "Intrinsic.png");
     this.treeIcons.Images.SetKeyName(8, "Class.png");
     this.treeIcons.Images.SetKeyName(9, "Variable.png");
     this.treeIcons.Images.SetKeyName(10, "VariableProtected.png");
     this.treeIcons.Images.SetKeyName(11, "VariablePrivate.png");
     this.treeIcons.Images.SetKeyName(12, "Const.png");
     this.treeIcons.Images.SetKeyName(13, "ConstProtected.png");
     this.treeIcons.Images.SetKeyName(14, "ConstPrivate.png");
     this.treeIcons.Images.SetKeyName(15, "Method.png");
     this.treeIcons.Images.SetKeyName(16, "MethodProtected.png");
     this.treeIcons.Images.SetKeyName(17, "MethodPrivate.png");
     this.treeIcons.Images.SetKeyName(18, "Property.png");
     this.treeIcons.Images.SetKeyName(19, "PropertyProtected.png");
     this.treeIcons.Images.SetKeyName(20, "PropertyPrivate.png");
     this.treeIcons.Images.SetKeyName(21, "Template.png");
     this.treeIcons.Images.SetKeyName(22, "Declaration.png");
     //
     // toolStrip
     //
     this.toolStrip.CanOverflow = false;
     this.toolStrip.GripStyle   = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.sortDropDown,
         this.toolStripSeparator1,
         this.findProcTxt,
         this.clearButton
     });
     this.toolStrip.Location = new System.Drawing.Point(1, 0);
     this.toolStrip.Name     = "toolStrip";
     this.toolStrip.Size     = new System.Drawing.Size(266, 25);
     this.toolStrip.TabIndex = 0;
     //
     // sortDropDown
     //
     this.sortDropDown.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.sortDropDown.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.noneItem,
         this.sortedItem,
         this.sortedByKindItem,
         this.sortedSmartItem,
         this.sortedGroupItem
     });
     this.sortDropDown.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.sortDropDown.Name = "sortDropDown";
     this.sortDropDown.Size = new System.Drawing.Size(13, 22);
     this.sortDropDown.Text = "";
     this.sortDropDown.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.sortDropDown_DropDownItemClicked);
     this.sortDropDown.DropDownOpening     += new System.EventHandler(this.sortDropDown_DropDownOpening);
     this.sortDropDown.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1);
     //
     // noneItem
     //
     this.noneItem.Name = "noneItem";
     this.noneItem.Size = new System.Drawing.Size(152, 22);
     this.noneItem.Text = "None";
     //
     // sortedItem
     //
     this.sortedItem.Name = "sortedItem";
     this.sortedItem.Size = new System.Drawing.Size(152, 22);
     this.sortedItem.Text = "Sorted";
     //
     // sortedByKindItem
     //
     this.sortedByKindItem.Name = "sortedByKindItem";
     this.sortedByKindItem.Size = new System.Drawing.Size(152, 22);
     this.sortedByKindItem.Text = "SortedByKind";
     //
     // sortedSmartItem
     //
     this.sortedSmartItem.Name = "sortedSmartItem";
     this.sortedSmartItem.Size = new System.Drawing.Size(152, 22);
     this.sortedSmartItem.Text = "SortedSmart";
     //
     // sortedGroupItem
     //
     this.sortedGroupItem.Name = "sortedGroupItem";
     this.sortedGroupItem.Size = new System.Drawing.Size(152, 22);
     this.sortedGroupItem.Text = "SortedGroup";
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // findProcTxt
     //
     this.findProcTxt.Name         = "findProcTxt";
     this.findProcTxt.Size         = new System.Drawing.Size(100, 25);
     this.findProcTxt.Padding      = new System.Windows.Forms.Padding(0, 0, 1, 0);
     this.findProcTxt.Leave       += new System.EventHandler(this.FindProcTxtLeave);
     this.findProcTxt.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.FindProcTxtKeyDown);
     this.findProcTxt.Enter       += new System.EventHandler(this.FindProcTxtEnter);
     this.findProcTxt.TextChanged += new System.EventHandler(this.FindProcTxtChanged);
     //
     // clearButton
     //
     this.clearButton.Margin                = new System.Windows.Forms.Padding(0, 1, 0, 1);
     this.clearButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.clearButton.Image                 = ((System.Drawing.Image)(resources.GetObject("clearButton.Image")));
     this.clearButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.clearButton.Name   = "clearButton";
     this.clearButton.Size   = new System.Drawing.Size(23, 22);
     this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
     //
     // PluginUI
     //
     this.Controls.Add(this.toolStrip);
     this.Name = "PluginUI";
     this.Size = new System.Drawing.Size(268, 300);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }