Example #1
0
 private void InitializeComponent()
 {
     this.fileMenu = new FileMenu();
     this.editMenu = new EditMenu();
     this.viewMenu = new ViewMenu();
     this.imageMenu = new ImageMenu();
     this.adjustmentsMenu = new AdjustmentsMenu();
     this.effectsMenu = new EffectsMenu();
     this.layersMenu = new LayersMenu();
     this.windowMenu = new WindowMenu();
     this.helpMenu = new HelpMenu();
     SuspendLayout();
     //
     // PdnMainMenu
     //
     this.Name = "PdnMainMenu";
     this.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
     this.Items.AddRange(
         new ToolStripItem[] 
         {
             this.fileMenu,
             this.editMenu,
             this.viewMenu,
             this.imageMenu,
             this.layersMenu,
             this.adjustmentsMenu,
             this.effectsMenu,
             this.windowMenu,
             this.helpMenu
         });
     ResumeLayout();
 }
Example #2
0
 private void InitializeComponent()
 {
     this.fileMenu        = new FileMenu();
     this.editMenu        = new EditMenu();
     this.viewMenu        = new ViewMenu();
     this.imageMenu       = new ImageMenu();
     this.adjustmentsMenu = new AdjustmentsMenu();
     this.effectsMenu     = new EffectsMenu();
     this.layersMenu      = new LayersMenu();
     this.windowMenu      = new WindowMenu();
     this.helpMenu        = new HelpMenu();
     SuspendLayout();
     //
     // PdnMainMenu
     //
     this.Name        = "PdnMainMenu";
     this.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
     this.Items.AddRange(
         new ToolStripItem[]
     {
         this.fileMenu,
         this.editMenu,
         this.viewMenu,
         this.imageMenu,
         this.layersMenu,
         this.adjustmentsMenu,
         this.effectsMenu,
         this.windowMenu,
         this.helpMenu
     });
     ResumeLayout();
 }
Example #3
0
        private void InitializeComponent()
        {
            Size size = new Size(UIUtil.ScaleWidth(0x10) + 6, UIUtil.ScaleHeight(0x10) + 6);

            this.toolsWindowToggleButton                = new ToolStripButton();
            this.toolsWindowToggleButton.Image          = PdnResources.GetImageResource("Icons.Settings.Tools.16.png").Reference;
            this.toolsWindowToggleButton.Checked        = true;
            this.toolsWindowToggleButton.Click         += new EventHandler(this.OnToggleButtonClick);
            this.toolsWindowToggleButton.Text           = PdnResources.GetString("Menu.Window.Tools.Text");
            this.toolsWindowToggleButton.DisplayStyle   = ToolStripItemDisplayStyle.Image;
            this.toolsWindowToggleButton.AutoSize       = false;
            this.toolsWindowToggleButton.Size           = size;
            this.toolsWindowToggleButton.Margin         = new Padding(0, 0, 1, 0);
            this.historyWindowToggleButton              = new ToolStripButton();
            this.historyWindowToggleButton.Image        = PdnResources.GetImageResource("Icons.MenuWindowHistoryIcon.16.png").Reference;
            this.historyWindowToggleButton.Checked      = true;
            this.historyWindowToggleButton.Click       += new EventHandler(this.OnToggleButtonClick);
            this.historyWindowToggleButton.Text         = PdnResources.GetString("Menu.Window.History.Text");
            this.historyWindowToggleButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.historyWindowToggleButton.AutoSize     = false;
            this.historyWindowToggleButton.Size         = size;
            this.historyWindowToggleButton.Margin       = new Padding(0, 0, 1, 0);
            this.layersWindowToggleButton               = new ToolStripButton();
            this.layersWindowToggleButton.Image         = PdnResources.GetImageResource("Icons.MenuWindowLayersIcon.16.png").Reference;
            this.layersWindowToggleButton.Checked       = true;
            this.layersWindowToggleButton.Click        += new EventHandler(this.OnToggleButtonClick);
            this.layersWindowToggleButton.Text          = PdnResources.GetString("Menu.Window.Layers.Text");
            this.layersWindowToggleButton.DisplayStyle  = ToolStripItemDisplayStyle.Image;
            this.layersWindowToggleButton.AutoSize      = false;
            this.layersWindowToggleButton.Size          = size;
            this.layersWindowToggleButton.Margin        = new Padding(0, 0, 1, 0);
            this.colorsWindowToggleButton               = new ToolStripButton();
            this.colorsWindowToggleButton.Image         = PdnResources.GetImageResource("Icons.MenuWindowColorsIcon.16.png").Reference;
            this.colorsWindowToggleButton.Checked       = true;
            this.colorsWindowToggleButton.Click        += new EventHandler(this.OnToggleButtonClick);
            this.colorsWindowToggleButton.Text          = PdnResources.GetString("Menu.Window.Colors.Text");
            this.colorsWindowToggleButton.DisplayStyle  = ToolStripItemDisplayStyle.Image;
            this.colorsWindowToggleButton.AutoSize      = false;
            this.colorsWindowToggleButton.Size          = size;
            this.showSettingsButton              = new ToolStripButton();
            this.showSettingsButton.Image        = PdnResources.GetImageResource("Icons.MenuUtilitiesSettingsIcon.16.png").Reference;
            this.showSettingsButton.Checked      = false;
            this.showSettingsButton.Click       += new EventHandler(this.OnShowSettingsClick);
            this.showSettingsButton.Text         = PdnResources.GetString("Menu.Settings.Text");
            this.showSettingsButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.showSettingsButton.AutoSize     = false;
            this.showSettingsButton.Size         = size;
            this.showSettingsButton.Margin       = new Padding(1, 0, 0, 0);
            this.helpMenu        = new HelpMenu();
            this.helpMenu.Margin = new Padding(1, 0, 0, 0);
            base.SuspendLayout();
            base.Name             = "PdnAuxMenu";
            base.LayoutStyle      = ToolStripLayoutStyle.HorizontalStackWithOverflow;
            base.ShowItemToolTips = true;
            ToolStripItem[] toolStripItems = new ToolStripItem[] { this.toolsWindowToggleButton, this.historyWindowToggleButton, this.layersWindowToggleButton, this.colorsWindowToggleButton, new ToolStripSeparator(), this.showSettingsButton, this.helpMenu };
            this.Items.AddRange(toolStripItems);
            base.ResumeLayout();
        }