public ToolConfigRow(ToolBarConfigItems toolBarConfigItems)
            {
                this.toolBarConfigItems = toolBarConfigItems;

                this.headerLabel = new HeaderLabel();
                this.headerLabel.Name = "headerLabel:" + toolBarConfigItems.ToString();
                this.headerLabel.Text = PdnResources.GetString(GetHeaderResourceName());
                this.headerLabel.RightMargin = 0;

                this.toolConfigStrip = new ToolConfigStrip();
                this.toolConfigStrip.Name = "toolConfigStrip:" + toolBarConfigItems.ToString();
                this.toolConfigStrip.AutoSize = true;
                this.toolConfigStrip.Dock = DockStyle.None;
                this.toolConfigStrip.GripStyle = ToolStripGripStyle.Hidden;
                this.toolConfigStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
                this.toolConfigStrip.ToolBarConfigItems = this.toolBarConfigItems;
            }
Exemple #2
0
 private void InitializeComponent()
 {
     this.SuspendLayout();
     this.mainMenu = new PdnMainMenu();
     this.toolStripPanel = new ToolStripPanel();
     this.commonActionsStrip = new CommonActionsStrip();
     this.viewConfigStrip = new ViewConfigStrip();
     this.toolChooserStrip = new ToolChooserStrip();
     this.toolConfigStrip = new ToolConfigStrip();
     this.documentStrip = new OurDocumentStrip();
     this.documentListButton = new ArrowButton();
     this.imageListMenu = new ImageListMenu();
     this.toolStripPanel.BeginInit();
     this.toolStripPanel.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.Name = "mainMenu";
     //
     // toolStripContainer
     //
     this.toolStripPanel.AutoSize = true;
     this.toolStripPanel.Name = "toolStripPanel";
     this.toolStripPanel.TabIndex = 0;
     this.toolStripPanel.TabStop = false;
     this.toolStripPanel.Join(this.viewConfigStrip);
     this.toolStripPanel.Join(this.commonActionsStrip);
     this.toolStripPanel.Join(this.toolConfigStrip);
     this.toolStripPanel.Join(this.toolChooserStrip);
     //
     // commonActionsStrip
     //
     this.commonActionsStrip.Name = "commonActionsStrip";
     this.commonActionsStrip.AutoSize = false;
     this.commonActionsStrip.TabIndex = 0;
     this.commonActionsStrip.Dock = DockStyle.None;
     this.commonActionsStrip.GripStyle = toolStripsGripStyle;
     //
     // viewConfigStrip
     //
     this.viewConfigStrip.Name = "viewConfigStrip";
     this.viewConfigStrip.AutoSize = false;
     this.viewConfigStrip.ZoomBasis = PaintDotNet.ZoomBasis.FitToWindow;
     this.viewConfigStrip.TabStop = false;
     this.viewConfigStrip.DrawGrid = false;
     this.viewConfigStrip.TabIndex = 1;
     this.viewConfigStrip.Dock = DockStyle.None;
     this.viewConfigStrip.GripStyle = toolStripsGripStyle;
     //
     // toolChooserStrip
     //
     this.toolChooserStrip.Name = "toolChooserStrip";
     this.toolChooserStrip.AutoSize = false;
     this.toolChooserStrip.TabIndex = 2;
     this.toolChooserStrip.Dock = DockStyle.None;
     this.toolChooserStrip.GripStyle = toolStripsGripStyle;
     this.toolChooserStrip.ChooseDefaultsClicked += new EventHandler(ToolChooserStrip_ChooseDefaultsClicked);
     //
     // toolConfigStrip
     //
     this.toolConfigStrip.Name = "drawConfigStrip";
     this.toolConfigStrip.AutoSize = false;
     this.toolConfigStrip.ShapeDrawType = PaintDotNet.ShapeDrawType.Outline;
     this.toolConfigStrip.TabIndex = 3;
     this.toolConfigStrip.Dock = DockStyle.None;
     this.toolConfigStrip.GripStyle = toolStripsGripStyle;
     this.toolConfigStrip.Layout +=
         delegate(object sender, LayoutEventArgs e)
         {
             PerformLayout();
         };
     //
     // documentStrip
     //
     this.documentStrip.AutoSize = false;
     this.documentStrip.Name = "documentStrip";
     this.documentStrip.TabIndex = 5;
     this.documentStrip.ShowScrollButtons = true;
     this.documentStrip.DocumentListChanged += new EventHandler(DocumentStrip_DocumentListChanged);
     this.documentStrip.DocumentClicked += new EventHandler<Pair<DocumentWorkspace, DocumentClickAction>>(DocumentStrip_DocumentClicked);
     this.documentStrip.ManagedFocus = true;
     //
     // documentListButton
     //
     this.documentListButton.Name = "documentListButton";
     this.documentListButton.ArrowDirection = ArrowDirection.Down;
     this.documentListButton.ReverseArrowColors = true;
     this.documentListButton.Click += new EventHandler(DocumentListButton_Click);
     //
     // imageListMenu
     //
     this.imageListMenu.Name = "imageListMenu";
     this.imageListMenu.Closed += new EventHandler(ImageListMenu_Closed);
     this.imageListMenu.ItemClicked += new EventHandler<ImageListMenu.Item>(ImageListMenu_ItemClicked);
     //
     // PdnToolBar
     //
     this.Controls.Add(this.documentListButton);
     this.Controls.Add(this.documentStrip);
     this.Controls.Add(this.toolStripPanel);
     this.Controls.Add(this.mainMenu);
     this.Controls.Add(this.imageListMenu);
     this.toolStripPanel.ResumeLayout(false);
     this.toolStripPanel.EndInit();
     this.ResumeLayout(false);
 }
Exemple #3
0
 public ToolConfigStrip_SelectionDrawModeUnitsChangeHandler(ToolConfigStrip toolConfigStrip, Document activeDocument)
 {
     this.toolConfigStrip = toolConfigStrip;
     this.activeDocument = activeDocument;
     this.oldUnits = toolConfigStrip.SelectionDrawModeInfo.Units;
 }