Beispiel #1
0
 public void AddItem( UMLDes.Controls.FlatMenuItem fmi, string text, ToolBarIcons icon, bool Checked, EventHandler click_handler )
 {
     UMLDes.Controls.FlatMenuItem curr = new UMLDes.Controls.FlatMenuItem( text, icon != ToolBarIcons.None ? proj.icon_list : null, (int)icon, Checked );
     if( click_handler != null )
         curr.Click += click_handler;
     else
         curr.Enabled = false;
     fmi.MenuItems.Add( curr );
 }
Beispiel #2
0
        public void AddMenuItems( System.Windows.Forms.ContextMenu m, int x, int y )
        {
            FlatMenuItem curr;
            EventHandler evh;

            // Display Options
            evh = new EventHandler( DisplayOptions );
            curr = new FlatMenuItem( "Display &Options...", null, 0, false );
            parent.AddItem( curr, "Show full &qualified name", ToolBarIcons.show_qual, show_full_qual, evh );
            parent.AddItem( curr, "&Show members", ToolBarIcons.None, show_members, evh );
            m.MenuItems.Add( curr );
        }
Beispiel #3
0
 public void AddItem(System.Windows.Forms.ContextMenu cm, string text, ToolBarIcons icon, bool Checked, EventHandler click_handler)
 {
     UMLDes.Controls.FlatMenuItem curr = new UMLDes.Controls.FlatMenuItem(text, icon != ToolBarIcons.None ? proj.icon_list : null, (int)icon, Checked);
     if (click_handler != null)
     {
         curr.Click += click_handler;
     }
     else
     {
         curr.Enabled = false;
     }
     cm.MenuItems.Add(curr);
 }
Beispiel #4
0
        public static FlatMenuItem Create(string text, ImageList iml, int index, bool Checked, EventHandler click_handler, object Tag)
        {
            FlatMenuItem fmi = new FlatMenuItem(text, iml, index, Checked);

            if (click_handler != null)
            {
                fmi.Click += click_handler;
            }
            else
            {
                fmi.Enabled = false;
            }
            fmi.Tag = Tag;
            return(fmi);
        }
        public FlatMenuItem GetStereoMenu()
        {
            FlatMenuItem curr;
            EventHandler evh;

            // Display Options
            evh = new EventHandler( set_stereo );
            curr = new FlatMenuItem( "Stereotype", null, 0, false );
            parent.AddItem( curr, "Other", ToolBarIcons.None, false, evh );
            parent.AddItem( curr, "Clear", ToolBarIcons.None, false, evh );
            parent.AddItem( curr, "-", ToolBarIcons.None, false, null );
            hashed_stereo_list = obj.StereoList;
            foreach( string s in hashed_stereo_list )
                if( s != null )
                    parent.AddItem( curr, "\x00AB"+s+"\xBB", ToolBarIcons.None, false, evh );
                else
                    parent.AddItem( curr, "-", ToolBarIcons.None, false, null );

            return curr;
        }
Beispiel #6
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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainWnd));
     this.menu_About = new UMLDes.Controls.FlatMenuItem();
     this.toolbarImages = new System.Windows.Forms.ImageList(this.components);
     this.menumain_Help = new UMLDes.Controls.FlatMenuItem();
     this.menu_show_hints = new UMLDes.Controls.FlatMenuItem();
     this.menu_GC_Collect = new UMLDes.Controls.FlatMenuItem();
     this.mainMenu1 = new System.Windows.Forms.MainMenu();
     this.menumain_File = new UMLDes.Controls.FlatMenuItem();
     this.menu_NewProject = new UMLDes.Controls.FlatMenuItem();
     this.menu_OpenProject = new UMLDes.Controls.FlatMenuItem();
     this.menu_SaveProject = new UMLDes.Controls.FlatMenuItem();
     this.menu_SaveProjAs = new UMLDes.Controls.FlatMenuItem();
     this.menuItem4 = new UMLDes.Controls.FlatMenuItem();
     this.menu_Print = new UMLDes.Controls.FlatMenuItem();
     this.menu_PrintPreview = new UMLDes.Controls.FlatMenuItem();
     this.menu_SaveToImage = new UMLDes.Controls.FlatMenuItem();
     this.menuItem1 = new UMLDes.Controls.FlatMenuItem();
     this.menu_Exit = new UMLDes.Controls.FlatMenuItem();
     this.menumain_Edit = new UMLDes.Controls.FlatMenuItem();
     this.menu_Undo = new UMLDes.Controls.FlatMenuItem();
     this.menu_Redo = new UMLDes.Controls.FlatMenuItem();
     this.menuItem26 = new UMLDes.Controls.FlatMenuItem();
     this.menu_Cut = new UMLDes.Controls.FlatMenuItem();
     this.menu_Copy = new UMLDes.Controls.FlatMenuItem();
     this.menu_Paste = new UMLDes.Controls.FlatMenuItem();
     this.menu_Delete = new UMLDes.Controls.FlatMenuItem();
     this.menuItem31 = new UMLDes.Controls.FlatMenuItem();
     this.menu_SelectAll = new UMLDes.Controls.FlatMenuItem();
     this.menu_copyAsImage = new UMLDes.Controls.FlatMenuItem();
     this.menuItem2 = new UMLDes.Controls.FlatMenuItem();
     this.menu_ZoomIn = new UMLDes.Controls.FlatMenuItem();
     this.menu_ZoomOut = new UMLDes.Controls.FlatMenuItem();
     this.menumain_Project = new UMLDes.Controls.FlatMenuItem();
     this.menu_AddFiles = new UMLDes.Controls.FlatMenuItem();
     this.menu_AddStaticView = new UMLDes.Controls.FlatMenuItem();
     this.menu_Parse = new UMLDes.Controls.FlatMenuItem();
     this.treeImages = new System.Windows.Forms.ImageList(this.components);
     this.toolBar1 = new UMLDes.Controls.FlatToolBar();
     this.panel1 = new System.Windows.Forms.Panel();
     this.ProjectTree = new UMLDes.Controls.UmlSolutionTree();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.ViewCtrl1 = new UMLDes.ViewCtrl();
     this.statusBar1 = new System.Windows.Forms.StatusBar();
     this.status_panel = new System.Windows.Forms.StatusBarPanel();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.status_panel)).BeginInit();
     this.SuspendLayout();
     //
     // menu_About
     //
     this.menu_About.Enabled = false;
     this.menu_About.ImageIndex = 14;
     this.menu_About.Images = this.toolbarImages;
     this.menu_About.Index = 0;
     this.menu_About.OwnerDraw = true;
     this.menu_About.Text = "&About";
     //
     // toolbarImages
     //
     this.toolbarImages.ImageSize = new System.Drawing.Size(16, 16);
     this.toolbarImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolbarImages.ImageStream")));
     this.toolbarImages.TransparentColor = System.Drawing.Color.Silver;
     //
     // menumain_Help
     //
     this.menumain_Help.ImageIndex = 0;
     this.menumain_Help.Images = null;
     this.menumain_Help.Index = 4;
     this.menumain_Help.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                   this.menu_About,
                                                                                   this.menu_show_hints,
                                                                                   this.menu_GC_Collect});
     this.menumain_Help.OwnerDraw = true;
     this.menumain_Help.Text = "&Help";
     this.menumain_Help.Popup += new System.EventHandler(this.Help_Popup);
     //
     // menu_show_hints
     //
     this.menu_show_hints.ImageIndex = 0;
     this.menu_show_hints.Images = null;
     this.menu_show_hints.Index = 1;
     this.menu_show_hints.OwnerDraw = true;
     this.menu_show_hints.Text = "Show &hints";
     //
     // menu_GC_Collect
     //
     this.menu_GC_Collect.ImageIndex = 0;
     this.menu_GC_Collect.Images = null;
     this.menu_GC_Collect.Index = 2;
     this.menu_GC_Collect.OwnerDraw = true;
     this.menu_GC_Collect.Text = "GC.Collect";
     this.menu_GC_Collect.Click += new System.EventHandler(this.menu_GC_Collect_Click);
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this.menumain_File,
                                                                               this.menumain_Edit,
                                                                               this.menuItem2,
                                                                               this.menumain_Project,
                                                                               this.menumain_Help});
     //
     // menumain_File
     //
     this.menumain_File.ImageIndex = 0;
     this.menumain_File.Images = null;
     this.menumain_File.Index = 0;
     this.menumain_File.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                   this.menu_NewProject,
                                                                                   this.menu_OpenProject,
                                                                                   this.menu_SaveProject,
                                                                                   this.menu_SaveProjAs,
                                                                                   this.menuItem4,
                                                                                   this.menu_Print,
                                                                                   this.menu_PrintPreview,
                                                                                   this.menu_SaveToImage,
                                                                                   this.menuItem1,
                                                                                   this.menu_Exit});
     this.menumain_File.OwnerDraw = true;
     this.menumain_File.Text = "&File";
     //
     // menu_NewProject
     //
     this.menu_NewProject.ImageIndex = 0;
     this.menu_NewProject.Images = this.toolbarImages;
     this.menu_NewProject.Index = 0;
     this.menu_NewProject.OwnerDraw = true;
     this.menu_NewProject.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
     this.menu_NewProject.Text = "&New project";
     this.menu_NewProject.Click += new System.EventHandler(this.menu_NewProject_Click);
     //
     // menu_OpenProject
     //
     this.menu_OpenProject.ImageIndex = 1;
     this.menu_OpenProject.Images = this.toolbarImages;
     this.menu_OpenProject.Index = 1;
     this.menu_OpenProject.OwnerDraw = true;
     this.menu_OpenProject.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.menu_OpenProject.Text = "&Open project";
     this.menu_OpenProject.Click += new System.EventHandler(this.LoadProject);
     //
     // menu_SaveProject
     //
     this.menu_SaveProject.ImageIndex = 2;
     this.menu_SaveProject.Images = this.toolbarImages;
     this.menu_SaveProject.Index = 2;
     this.menu_SaveProject.OwnerDraw = true;
     this.menu_SaveProject.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
     this.menu_SaveProject.Text = "&Save project";
     this.menu_SaveProject.Click += new System.EventHandler(this.SaveProject);
     //
     // menu_SaveProjAs
     //
     this.menu_SaveProjAs.ImageIndex = 0;
     this.menu_SaveProjAs.Images = null;
     this.menu_SaveProjAs.Index = 3;
     this.menu_SaveProjAs.OwnerDraw = true;
     this.menu_SaveProjAs.Text = "Save &As ...";
     this.menu_SaveProjAs.Click += new System.EventHandler(this.SaveAsProject);
     //
     // menuItem4
     //
     this.menuItem4.ImageIndex = 0;
     this.menuItem4.Images = null;
     this.menuItem4.Index = 4;
     this.menuItem4.OwnerDraw = true;
     this.menuItem4.Text = "-";
     //
     // menu_Print
     //
     this.menu_Print.ImageIndex = 18;
     this.menu_Print.Images = this.toolbarImages;
     this.menu_Print.Index = 5;
     this.menu_Print.OwnerDraw = true;
     this.menu_Print.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.menu_Print.Text = "&Print";
     this.menu_Print.Click += new System.EventHandler(this.menu_Print_Click);
     //
     // menu_PrintPreview
     //
     this.menu_PrintPreview.ImageIndex = 24;
     this.menu_PrintPreview.Images = this.toolbarImages;
     this.menu_PrintPreview.Index = 6;
     this.menu_PrintPreview.OwnerDraw = true;
     this.menu_PrintPreview.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftP;
     this.menu_PrintPreview.Text = "Print Pre&view";
     this.menu_PrintPreview.Click += new System.EventHandler(this.menu_PrintPreview_Click);
     //
     // menu_SaveToImage
     //
     this.menu_SaveToImage.ImageIndex = 0;
     this.menu_SaveToImage.Images = null;
     this.menu_SaveToImage.Index = 7;
     this.menu_SaveToImage.OwnerDraw = true;
     this.menu_SaveToImage.Shortcut = System.Windows.Forms.Shortcut.CtrlI;
     this.menu_SaveToImage.Text = "Save diagram as Image";
     this.menu_SaveToImage.Click += new System.EventHandler(this.menu_SaveToImage_Click);
     //
     // menuItem1
     //
     this.menuItem1.ImageIndex = 0;
     this.menuItem1.Images = null;
     this.menuItem1.Index = 8;
     this.menuItem1.OwnerDraw = true;
     this.menuItem1.Text = "-";
     //
     // menu_Exit
     //
     this.menu_Exit.ImageIndex = 0;
     this.menu_Exit.Images = null;
     this.menu_Exit.Index = 9;
     this.menu_Exit.OwnerDraw = true;
     this.menu_Exit.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
     this.menu_Exit.Text = "E&xit";
     this.menu_Exit.Click += new System.EventHandler(this.Exit);
     //
     // menumain_Edit
     //
     this.menumain_Edit.ImageIndex = 0;
     this.menumain_Edit.Images = null;
     this.menumain_Edit.Index = 1;
     this.menumain_Edit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                   this.menu_Undo,
                                                                                   this.menu_Redo,
                                                                                   this.menuItem26,
                                                                                   this.menu_Cut,
                                                                                   this.menu_Copy,
                                                                                   this.menu_Paste,
                                                                                   this.menu_Delete,
                                                                                   this.menuItem31,
                                                                                   this.menu_SelectAll,
                                                                                   this.menu_copyAsImage});
     this.menumain_Edit.OwnerDraw = true;
     this.menumain_Edit.Text = "&Edit";
     this.menumain_Edit.Popup += new System.EventHandler(this.EditMenuPopup);
     //
     // menu_Undo
     //
     this.menu_Undo.ImageIndex = 15;
     this.menu_Undo.Images = this.toolbarImages;
     this.menu_Undo.Index = 0;
     this.menu_Undo.OwnerDraw = true;
     this.menu_Undo.Shortcut = System.Windows.Forms.Shortcut.CtrlZ;
     this.menu_Undo.Text = "&Undo";
     this.menu_Undo.Click += new System.EventHandler(this.menu_Undo_Click);
     //
     // menu_Redo
     //
     this.menu_Redo.ImageIndex = 16;
     this.menu_Redo.Images = this.toolbarImages;
     this.menu_Redo.Index = 1;
     this.menu_Redo.OwnerDraw = true;
     this.menu_Redo.Shortcut = System.Windows.Forms.Shortcut.CtrlY;
     this.menu_Redo.Text = "&Redo";
     this.menu_Redo.Click += new System.EventHandler(this.menu_Redo_Click);
     //
     // menuItem26
     //
     this.menuItem26.ImageIndex = 0;
     this.menuItem26.Images = null;
     this.menuItem26.Index = 2;
     this.menuItem26.OwnerDraw = true;
     this.menuItem26.Text = "-";
     //
     // menu_Cut
     //
     this.menu_Cut.ImageIndex = 4;
     this.menu_Cut.Images = this.toolbarImages;
     this.menu_Cut.Index = 3;
     this.menu_Cut.OwnerDraw = true;
     this.menu_Cut.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
     this.menu_Cut.Text = "Cu&t";
     this.menu_Cut.Click += new System.EventHandler(this.menu_Cut_Click);
     //
     // menu_Copy
     //
     this.menu_Copy.ImageIndex = 5;
     this.menu_Copy.Images = this.toolbarImages;
     this.menu_Copy.Index = 4;
     this.menu_Copy.OwnerDraw = true;
     this.menu_Copy.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
     this.menu_Copy.Text = "&Copy";
     this.menu_Copy.Click += new System.EventHandler(this.menu_Copy_Click);
     //
     // menu_Paste
     //
     this.menu_Paste.ImageIndex = 6;
     this.menu_Paste.Images = this.toolbarImages;
     this.menu_Paste.Index = 5;
     this.menu_Paste.OwnerDraw = true;
     this.menu_Paste.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
     this.menu_Paste.Text = "&Paste";
     this.menu_Paste.Click += new System.EventHandler(this.menu_Paste_Click);
     //
     // menu_Delete
     //
     this.menu_Delete.ImageIndex = 19;
     this.menu_Delete.Images = this.toolbarImages;
     this.menu_Delete.Index = 6;
     this.menu_Delete.OwnerDraw = true;
     this.menu_Delete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.menu_Delete.Text = "&Delete";
     this.menu_Delete.Click += new System.EventHandler(this.menuDeleteClick);
     //
     // menuItem31
     //
     this.menuItem31.ImageIndex = 0;
     this.menuItem31.Images = null;
     this.menuItem31.Index = 7;
     this.menuItem31.OwnerDraw = true;
     this.menuItem31.Text = "-";
     //
     // menu_SelectAll
     //
     this.menu_SelectAll.ImageIndex = 0;
     this.menu_SelectAll.Images = null;
     this.menu_SelectAll.Index = 8;
     this.menu_SelectAll.OwnerDraw = true;
     this.menu_SelectAll.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
     this.menu_SelectAll.Text = "Select &All";
     this.menu_SelectAll.Click += new System.EventHandler(this.menu_SelectAll_Click);
     //
     // menu_copyAsImage
     //
     this.menu_copyAsImage.ImageIndex = 0;
     this.menu_copyAsImage.Images = null;
     this.menu_copyAsImage.Index = 9;
     this.menu_copyAsImage.OwnerDraw = true;
     this.menu_copyAsImage.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftC;
     this.menu_copyAsImage.Text = "Copy diagram as Image";
     this.menu_copyAsImage.Click += new System.EventHandler(this.menu_copyAsImage_Click);
     //
     // menuItem2
     //
     this.menuItem2.ImageIndex = 0;
     this.menuItem2.Images = null;
     this.menuItem2.Index = 2;
     this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this.menu_ZoomIn,
                                                                               this.menu_ZoomOut});
     this.menuItem2.OwnerDraw = true;
     this.menuItem2.Text = "&View";
     //
     // menu_ZoomIn
     //
     this.menu_ZoomIn.ImageIndex = 0;
     this.menu_ZoomIn.Images = null;
     this.menu_ZoomIn.Index = 0;
     this.menu_ZoomIn.OwnerDraw = true;
     this.menu_ZoomIn.Shortcut = System.Windows.Forms.Shortcut.CtrlJ;
     this.menu_ZoomIn.Text = "Zoom in";
     this.menu_ZoomIn.Click += new System.EventHandler(this.menu_ZoomIn_Click);
     //
     // menu_ZoomOut
     //
     this.menu_ZoomOut.ImageIndex = 0;
     this.menu_ZoomOut.Images = null;
     this.menu_ZoomOut.Index = 1;
     this.menu_ZoomOut.OwnerDraw = true;
     this.menu_ZoomOut.Shortcut = System.Windows.Forms.Shortcut.CtrlK;
     this.menu_ZoomOut.Text = "Zoom out";
     this.menu_ZoomOut.Click += new System.EventHandler(this.menu_ZoomOut_Click);
     //
     // menumain_Project
     //
     this.menumain_Project.ImageIndex = 0;
     this.menumain_Project.Images = null;
     this.menumain_Project.Index = 3;
     this.menumain_Project.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                      this.menu_AddFiles,
                                                                                      this.menu_AddStaticView,
                                                                                      this.menu_Parse});
     this.menumain_Project.OwnerDraw = true;
     this.menumain_Project.Text = "&Project";
     //
     // menu_AddFiles
     //
     this.menu_AddFiles.ImageIndex = 20;
     this.menu_AddFiles.Images = this.toolbarImages;
     this.menu_AddFiles.Index = 0;
     this.menu_AddFiles.OwnerDraw = true;
     this.menu_AddFiles.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.menu_AddFiles.Text = "&Add files";
     this.menu_AddFiles.Click += new System.EventHandler(this.AddFiles);
     //
     // menu_AddStaticView
     //
     this.menu_AddStaticView.ImageIndex = 13;
     this.menu_AddStaticView.Images = this.toolbarImages;
     this.menu_AddStaticView.Index = 1;
     this.menu_AddStaticView.OwnerDraw = true;
     this.menu_AddStaticView.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftN;
     this.menu_AddStaticView.Text = "&Add static view";
     this.menu_AddStaticView.Click += new System.EventHandler(this.menu_AddStaticView_Click);
     //
     // menu_Parse
     //
     this.menu_Parse.ImageIndex = 17;
     this.menu_Parse.Images = this.toolbarImages;
     this.menu_Parse.Index = 2;
     this.menu_Parse.OwnerDraw = true;
     this.menu_Parse.Shortcut = System.Windows.Forms.Shortcut.F5;
     this.menu_Parse.Text = "Parse files, refresh tree";
     this.menu_Parse.Click += new System.EventHandler(this.RefreshProject);
     //
     // treeImages
     //
     this.treeImages.ImageSize = new System.Drawing.Size(16, 16);
     this.treeImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("treeImages.ImageStream")));
     this.treeImages.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolBar1
     //
     this.toolBar1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(219)), ((System.Byte)(216)), ((System.Byte)(209)));
     this.toolBar1.Dock = System.Windows.Forms.DockStyle.Top;
     this.toolBar1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(219)), ((System.Byte)(216)), ((System.Byte)(209)));
     this.toolBar1.images = this.toolbarImages;
     this.toolBar1.Location = new System.Drawing.Point(0, 0);
     this.toolBar1.Name = "toolBar1";
     this.toolBar1.Size = new System.Drawing.Size(784, 24);
     this.toolBar1.TabIndex = 10;
     this.toolBar1.TabStop = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ProjectTree);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 24);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(216, 415);
     this.panel1.TabIndex = 13;
     //
     // ProjectTree
     //
     this.ProjectTree.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ProjectTree.ImageIndex = -1;
     this.ProjectTree.Location = new System.Drawing.Point(0, 0);
     this.ProjectTree.Name = "ProjectTree";
     this.ProjectTree.SelectedImageIndex = -1;
     this.ProjectTree.Size = new System.Drawing.Size(216, 415);
     this.ProjectTree.TabIndex = 2;
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(216, 24);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(3, 415);
     this.splitter1.TabIndex = 14;
     this.splitter1.TabStop = false;
     //
     // ViewCtrl1
     //
     this.ViewCtrl1.AllowDrop = true;
     this.ViewCtrl1.Curr = null;
     this.ViewCtrl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ViewCtrl1.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.ViewCtrl1.Location = new System.Drawing.Point(219, 24);
     this.ViewCtrl1.Name = "ViewCtrl1";
     this.ViewCtrl1.Size = new System.Drawing.Size(565, 415);
     this.ViewCtrl1.TabIndex = 15;
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 439);
     this.statusBar1.Name = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
                                                                                   this.status_panel});
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size = new System.Drawing.Size(784, 18);
     this.statusBar1.TabIndex = 1;
     //
     // status_panel
     //
     this.status_panel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.status_panel.Text = "Ready";
     this.status_panel.ToolTipText = "Status";
     this.status_panel.Width = 768;
     //
     // MainWnd
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(784, 457);
     this.Controls.Add(this.ViewCtrl1);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.toolBar1);
     this.Controls.Add(this.statusBar1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Location = new System.Drawing.Point(0, 0);
     this.Menu = this.mainMenu1;
     this.Name = "MainWnd";
     this.Text = "C# UML Designer";
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.status_panel)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #7
0
        void TryDropDownMenu( int x, int y, object obj, TreeNode n )
        {
            MenuItem[] mi = null;

            if( obj is UMLDes.GUI.View ) {
                mi = new FlatMenuItem[] { FlatMenuItem.Create( "Rename", null, 0, false, new EventHandler(RenameNode), n ) };
            }

            if( mi == null )
                return;
            ContextMenu m = new ContextMenu( mi );
            m.Show( ProjectTree, new Point( x, y ) );
        }
Beispiel #8
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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainWnd));
     this.menu_About         = new UMLDes.Controls.FlatMenuItem();
     this.toolbarImages      = new System.Windows.Forms.ImageList(this.components);
     this.menumain_Help      = new UMLDes.Controls.FlatMenuItem();
     this.menu_show_hints    = new UMLDes.Controls.FlatMenuItem();
     this.menu_GC_Collect    = new UMLDes.Controls.FlatMenuItem();
     this.mainMenu1          = new System.Windows.Forms.MainMenu();
     this.menumain_File      = new UMLDes.Controls.FlatMenuItem();
     this.menu_NewProject    = new UMLDes.Controls.FlatMenuItem();
     this.menu_OpenProject   = new UMLDes.Controls.FlatMenuItem();
     this.menu_SaveProject   = new UMLDes.Controls.FlatMenuItem();
     this.menu_SaveProjAs    = new UMLDes.Controls.FlatMenuItem();
     this.menuItem4          = new UMLDes.Controls.FlatMenuItem();
     this.menu_Print         = new UMLDes.Controls.FlatMenuItem();
     this.menu_PrintPreview  = new UMLDes.Controls.FlatMenuItem();
     this.menu_SaveToImage   = new UMLDes.Controls.FlatMenuItem();
     this.menuItem1          = new UMLDes.Controls.FlatMenuItem();
     this.menu_Exit          = new UMLDes.Controls.FlatMenuItem();
     this.menumain_Edit      = new UMLDes.Controls.FlatMenuItem();
     this.menu_Undo          = new UMLDes.Controls.FlatMenuItem();
     this.menu_Redo          = new UMLDes.Controls.FlatMenuItem();
     this.menuItem26         = new UMLDes.Controls.FlatMenuItem();
     this.menu_Cut           = new UMLDes.Controls.FlatMenuItem();
     this.menu_Copy          = new UMLDes.Controls.FlatMenuItem();
     this.menu_Paste         = new UMLDes.Controls.FlatMenuItem();
     this.menu_Delete        = new UMLDes.Controls.FlatMenuItem();
     this.menuItem31         = new UMLDes.Controls.FlatMenuItem();
     this.menu_SelectAll     = new UMLDes.Controls.FlatMenuItem();
     this.menu_copyAsImage   = new UMLDes.Controls.FlatMenuItem();
     this.menuItem2          = new UMLDes.Controls.FlatMenuItem();
     this.menu_ZoomIn        = new UMLDes.Controls.FlatMenuItem();
     this.menu_ZoomOut       = new UMLDes.Controls.FlatMenuItem();
     this.menumain_Project   = new UMLDes.Controls.FlatMenuItem();
     this.menu_AddFiles      = new UMLDes.Controls.FlatMenuItem();
     this.menu_AddStaticView = new UMLDes.Controls.FlatMenuItem();
     this.menu_Parse         = new UMLDes.Controls.FlatMenuItem();
     this.treeImages         = new System.Windows.Forms.ImageList(this.components);
     this.toolBar1           = new UMLDes.Controls.FlatToolBar();
     this.panel1             = new System.Windows.Forms.Panel();
     this.ProjectTree        = new UMLDes.Controls.UmlSolutionTree();
     this.splitter1          = new System.Windows.Forms.Splitter();
     this.ViewCtrl1          = new UMLDes.ViewCtrl();
     this.statusBar1         = new System.Windows.Forms.StatusBar();
     this.status_panel       = new System.Windows.Forms.StatusBarPanel();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.status_panel)).BeginInit();
     this.SuspendLayout();
     //
     // menu_About
     //
     this.menu_About.Enabled    = false;
     this.menu_About.ImageIndex = 14;
     this.menu_About.Images     = this.toolbarImages;
     this.menu_About.Index      = 0;
     this.menu_About.OwnerDraw  = true;
     this.menu_About.Text       = "&About";
     //
     // toolbarImages
     //
     this.toolbarImages.ImageSize        = new System.Drawing.Size(16, 16);
     this.toolbarImages.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolbarImages.ImageStream")));
     this.toolbarImages.TransparentColor = System.Drawing.Color.Silver;
     //
     // menumain_Help
     //
     this.menumain_Help.ImageIndex = 0;
     this.menumain_Help.Images     = null;
     this.menumain_Help.Index      = 4;
     this.menumain_Help.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menu_About,
         this.menu_show_hints,
         this.menu_GC_Collect
     });
     this.menumain_Help.OwnerDraw = true;
     this.menumain_Help.Text      = "&Help";
     this.menumain_Help.Popup    += new System.EventHandler(this.Help_Popup);
     //
     // menu_show_hints
     //
     this.menu_show_hints.ImageIndex = 0;
     this.menu_show_hints.Images     = null;
     this.menu_show_hints.Index      = 1;
     this.menu_show_hints.OwnerDraw  = true;
     this.menu_show_hints.Text       = "Show &hints";
     //
     // menu_GC_Collect
     //
     this.menu_GC_Collect.ImageIndex = 0;
     this.menu_GC_Collect.Images     = null;
     this.menu_GC_Collect.Index      = 2;
     this.menu_GC_Collect.OwnerDraw  = true;
     this.menu_GC_Collect.Text       = "GC.Collect";
     this.menu_GC_Collect.Click     += new System.EventHandler(this.menu_GC_Collect_Click);
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menumain_File,
         this.menumain_Edit,
         this.menuItem2,
         this.menumain_Project,
         this.menumain_Help
     });
     //
     // menumain_File
     //
     this.menumain_File.ImageIndex = 0;
     this.menumain_File.Images     = null;
     this.menumain_File.Index      = 0;
     this.menumain_File.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menu_NewProject,
         this.menu_OpenProject,
         this.menu_SaveProject,
         this.menu_SaveProjAs,
         this.menuItem4,
         this.menu_Print,
         this.menu_PrintPreview,
         this.menu_SaveToImage,
         this.menuItem1,
         this.menu_Exit
     });
     this.menumain_File.OwnerDraw = true;
     this.menumain_File.Text      = "&File";
     //
     // menu_NewProject
     //
     this.menu_NewProject.ImageIndex = 0;
     this.menu_NewProject.Images     = this.toolbarImages;
     this.menu_NewProject.Index      = 0;
     this.menu_NewProject.OwnerDraw  = true;
     this.menu_NewProject.Shortcut   = System.Windows.Forms.Shortcut.CtrlN;
     this.menu_NewProject.Text       = "&New project";
     this.menu_NewProject.Click     += new System.EventHandler(this.menu_NewProject_Click);
     //
     // menu_OpenProject
     //
     this.menu_OpenProject.ImageIndex = 1;
     this.menu_OpenProject.Images     = this.toolbarImages;
     this.menu_OpenProject.Index      = 1;
     this.menu_OpenProject.OwnerDraw  = true;
     this.menu_OpenProject.Shortcut   = System.Windows.Forms.Shortcut.CtrlO;
     this.menu_OpenProject.Text       = "&Open project";
     this.menu_OpenProject.Click     += new System.EventHandler(this.LoadProject);
     //
     // menu_SaveProject
     //
     this.menu_SaveProject.ImageIndex = 2;
     this.menu_SaveProject.Images     = this.toolbarImages;
     this.menu_SaveProject.Index      = 2;
     this.menu_SaveProject.OwnerDraw  = true;
     this.menu_SaveProject.Shortcut   = System.Windows.Forms.Shortcut.CtrlS;
     this.menu_SaveProject.Text       = "&Save project";
     this.menu_SaveProject.Click     += new System.EventHandler(this.SaveProject);
     //
     // menu_SaveProjAs
     //
     this.menu_SaveProjAs.ImageIndex = 0;
     this.menu_SaveProjAs.Images     = null;
     this.menu_SaveProjAs.Index      = 3;
     this.menu_SaveProjAs.OwnerDraw  = true;
     this.menu_SaveProjAs.Text       = "Save &As ...";
     this.menu_SaveProjAs.Click     += new System.EventHandler(this.SaveAsProject);
     //
     // menuItem4
     //
     this.menuItem4.ImageIndex = 0;
     this.menuItem4.Images     = null;
     this.menuItem4.Index      = 4;
     this.menuItem4.OwnerDraw  = true;
     this.menuItem4.Text       = "-";
     //
     // menu_Print
     //
     this.menu_Print.ImageIndex = 18;
     this.menu_Print.Images     = this.toolbarImages;
     this.menu_Print.Index      = 5;
     this.menu_Print.OwnerDraw  = true;
     this.menu_Print.Shortcut   = System.Windows.Forms.Shortcut.CtrlP;
     this.menu_Print.Text       = "&Print";
     this.menu_Print.Click     += new System.EventHandler(this.menu_Print_Click);
     //
     // menu_PrintPreview
     //
     this.menu_PrintPreview.ImageIndex = 24;
     this.menu_PrintPreview.Images     = this.toolbarImages;
     this.menu_PrintPreview.Index      = 6;
     this.menu_PrintPreview.OwnerDraw  = true;
     this.menu_PrintPreview.Shortcut   = System.Windows.Forms.Shortcut.CtrlShiftP;
     this.menu_PrintPreview.Text       = "Print Pre&view";
     this.menu_PrintPreview.Click     += new System.EventHandler(this.menu_PrintPreview_Click);
     //
     // menu_SaveToImage
     //
     this.menu_SaveToImage.ImageIndex = 0;
     this.menu_SaveToImage.Images     = null;
     this.menu_SaveToImage.Index      = 7;
     this.menu_SaveToImage.OwnerDraw  = true;
     this.menu_SaveToImage.Shortcut   = System.Windows.Forms.Shortcut.CtrlI;
     this.menu_SaveToImage.Text       = "Save diagram as Image";
     this.menu_SaveToImage.Click     += new System.EventHandler(this.menu_SaveToImage_Click);
     //
     // menuItem1
     //
     this.menuItem1.ImageIndex = 0;
     this.menuItem1.Images     = null;
     this.menuItem1.Index      = 8;
     this.menuItem1.OwnerDraw  = true;
     this.menuItem1.Text       = "-";
     //
     // menu_Exit
     //
     this.menu_Exit.ImageIndex = 0;
     this.menu_Exit.Images     = null;
     this.menu_Exit.Index      = 9;
     this.menu_Exit.OwnerDraw  = true;
     this.menu_Exit.Shortcut   = System.Windows.Forms.Shortcut.CtrlX;
     this.menu_Exit.Text       = "E&xit";
     this.menu_Exit.Click     += new System.EventHandler(this.Exit);
     //
     // menumain_Edit
     //
     this.menumain_Edit.ImageIndex = 0;
     this.menumain_Edit.Images     = null;
     this.menumain_Edit.Index      = 1;
     this.menumain_Edit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menu_Undo,
         this.menu_Redo,
         this.menuItem26,
         this.menu_Cut,
         this.menu_Copy,
         this.menu_Paste,
         this.menu_Delete,
         this.menuItem31,
         this.menu_SelectAll,
         this.menu_copyAsImage
     });
     this.menumain_Edit.OwnerDraw = true;
     this.menumain_Edit.Text      = "&Edit";
     this.menumain_Edit.Popup    += new System.EventHandler(this.EditMenuPopup);
     //
     // menu_Undo
     //
     this.menu_Undo.ImageIndex = 15;
     this.menu_Undo.Images     = this.toolbarImages;
     this.menu_Undo.Index      = 0;
     this.menu_Undo.OwnerDraw  = true;
     this.menu_Undo.Shortcut   = System.Windows.Forms.Shortcut.CtrlZ;
     this.menu_Undo.Text       = "&Undo";
     this.menu_Undo.Click     += new System.EventHandler(this.menu_Undo_Click);
     //
     // menu_Redo
     //
     this.menu_Redo.ImageIndex = 16;
     this.menu_Redo.Images     = this.toolbarImages;
     this.menu_Redo.Index      = 1;
     this.menu_Redo.OwnerDraw  = true;
     this.menu_Redo.Shortcut   = System.Windows.Forms.Shortcut.CtrlY;
     this.menu_Redo.Text       = "&Redo";
     this.menu_Redo.Click     += new System.EventHandler(this.menu_Redo_Click);
     //
     // menuItem26
     //
     this.menuItem26.ImageIndex = 0;
     this.menuItem26.Images     = null;
     this.menuItem26.Index      = 2;
     this.menuItem26.OwnerDraw  = true;
     this.menuItem26.Text       = "-";
     //
     // menu_Cut
     //
     this.menu_Cut.ImageIndex = 4;
     this.menu_Cut.Images     = this.toolbarImages;
     this.menu_Cut.Index      = 3;
     this.menu_Cut.OwnerDraw  = true;
     this.menu_Cut.Shortcut   = System.Windows.Forms.Shortcut.CtrlX;
     this.menu_Cut.Text       = "Cu&t";
     this.menu_Cut.Click     += new System.EventHandler(this.menu_Cut_Click);
     //
     // menu_Copy
     //
     this.menu_Copy.ImageIndex = 5;
     this.menu_Copy.Images     = this.toolbarImages;
     this.menu_Copy.Index      = 4;
     this.menu_Copy.OwnerDraw  = true;
     this.menu_Copy.Shortcut   = System.Windows.Forms.Shortcut.CtrlC;
     this.menu_Copy.Text       = "&Copy";
     this.menu_Copy.Click     += new System.EventHandler(this.menu_Copy_Click);
     //
     // menu_Paste
     //
     this.menu_Paste.ImageIndex = 6;
     this.menu_Paste.Images     = this.toolbarImages;
     this.menu_Paste.Index      = 5;
     this.menu_Paste.OwnerDraw  = true;
     this.menu_Paste.Shortcut   = System.Windows.Forms.Shortcut.CtrlV;
     this.menu_Paste.Text       = "&Paste";
     this.menu_Paste.Click     += new System.EventHandler(this.menu_Paste_Click);
     //
     // menu_Delete
     //
     this.menu_Delete.ImageIndex = 19;
     this.menu_Delete.Images     = this.toolbarImages;
     this.menu_Delete.Index      = 6;
     this.menu_Delete.OwnerDraw  = true;
     this.menu_Delete.Shortcut   = System.Windows.Forms.Shortcut.Del;
     this.menu_Delete.Text       = "&Delete";
     this.menu_Delete.Click     += new System.EventHandler(this.menuDeleteClick);
     //
     // menuItem31
     //
     this.menuItem31.ImageIndex = 0;
     this.menuItem31.Images     = null;
     this.menuItem31.Index      = 7;
     this.menuItem31.OwnerDraw  = true;
     this.menuItem31.Text       = "-";
     //
     // menu_SelectAll
     //
     this.menu_SelectAll.ImageIndex = 0;
     this.menu_SelectAll.Images     = null;
     this.menu_SelectAll.Index      = 8;
     this.menu_SelectAll.OwnerDraw  = true;
     this.menu_SelectAll.Shortcut   = System.Windows.Forms.Shortcut.CtrlA;
     this.menu_SelectAll.Text       = "Select &All";
     this.menu_SelectAll.Click     += new System.EventHandler(this.menu_SelectAll_Click);
     //
     // menu_copyAsImage
     //
     this.menu_copyAsImage.ImageIndex = 0;
     this.menu_copyAsImage.Images     = null;
     this.menu_copyAsImage.Index      = 9;
     this.menu_copyAsImage.OwnerDraw  = true;
     this.menu_copyAsImage.Shortcut   = System.Windows.Forms.Shortcut.CtrlShiftC;
     this.menu_copyAsImage.Text       = "Copy diagram as Image";
     this.menu_copyAsImage.Click     += new System.EventHandler(this.menu_copyAsImage_Click);
     //
     // menuItem2
     //
     this.menuItem2.ImageIndex = 0;
     this.menuItem2.Images     = null;
     this.menuItem2.Index      = 2;
     this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menu_ZoomIn,
         this.menu_ZoomOut
     });
     this.menuItem2.OwnerDraw = true;
     this.menuItem2.Text      = "&View";
     //
     // menu_ZoomIn
     //
     this.menu_ZoomIn.ImageIndex = 0;
     this.menu_ZoomIn.Images     = null;
     this.menu_ZoomIn.Index      = 0;
     this.menu_ZoomIn.OwnerDraw  = true;
     this.menu_ZoomIn.Shortcut   = System.Windows.Forms.Shortcut.CtrlJ;
     this.menu_ZoomIn.Text       = "Zoom in";
     this.menu_ZoomIn.Click     += new System.EventHandler(this.menu_ZoomIn_Click);
     //
     // menu_ZoomOut
     //
     this.menu_ZoomOut.ImageIndex = 0;
     this.menu_ZoomOut.Images     = null;
     this.menu_ZoomOut.Index      = 1;
     this.menu_ZoomOut.OwnerDraw  = true;
     this.menu_ZoomOut.Shortcut   = System.Windows.Forms.Shortcut.CtrlK;
     this.menu_ZoomOut.Text       = "Zoom out";
     this.menu_ZoomOut.Click     += new System.EventHandler(this.menu_ZoomOut_Click);
     //
     // menumain_Project
     //
     this.menumain_Project.ImageIndex = 0;
     this.menumain_Project.Images     = null;
     this.menumain_Project.Index      = 3;
     this.menumain_Project.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menu_AddFiles,
         this.menu_AddStaticView,
         this.menu_Parse
     });
     this.menumain_Project.OwnerDraw = true;
     this.menumain_Project.Text      = "&Project";
     //
     // menu_AddFiles
     //
     this.menu_AddFiles.ImageIndex = 20;
     this.menu_AddFiles.Images     = this.toolbarImages;
     this.menu_AddFiles.Index      = 0;
     this.menu_AddFiles.OwnerDraw  = true;
     this.menu_AddFiles.Shortcut   = System.Windows.Forms.Shortcut.CtrlF;
     this.menu_AddFiles.Text       = "&Add files";
     this.menu_AddFiles.Click     += new System.EventHandler(this.AddFiles);
     //
     // menu_AddStaticView
     //
     this.menu_AddStaticView.ImageIndex = 13;
     this.menu_AddStaticView.Images     = this.toolbarImages;
     this.menu_AddStaticView.Index      = 1;
     this.menu_AddStaticView.OwnerDraw  = true;
     this.menu_AddStaticView.Shortcut   = System.Windows.Forms.Shortcut.CtrlShiftN;
     this.menu_AddStaticView.Text       = "&Add static view";
     this.menu_AddStaticView.Click     += new System.EventHandler(this.menu_AddStaticView_Click);
     //
     // menu_Parse
     //
     this.menu_Parse.ImageIndex = 17;
     this.menu_Parse.Images     = this.toolbarImages;
     this.menu_Parse.Index      = 2;
     this.menu_Parse.OwnerDraw  = true;
     this.menu_Parse.Shortcut   = System.Windows.Forms.Shortcut.F5;
     this.menu_Parse.Text       = "Parse files, refresh tree";
     this.menu_Parse.Click     += new System.EventHandler(this.RefreshProject);
     //
     // treeImages
     //
     this.treeImages.ImageSize        = new System.Drawing.Size(16, 16);
     this.treeImages.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("treeImages.ImageStream")));
     this.treeImages.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolBar1
     //
     this.toolBar1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(219)), ((System.Byte)(216)), ((System.Byte)(209)));
     this.toolBar1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.toolBar1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(219)), ((System.Byte)(216)), ((System.Byte)(209)));
     this.toolBar1.images    = this.toolbarImages;
     this.toolBar1.Location  = new System.Drawing.Point(0, 0);
     this.toolBar1.Name      = "toolBar1";
     this.toolBar1.Size      = new System.Drawing.Size(784, 24);
     this.toolBar1.TabIndex  = 10;
     this.toolBar1.TabStop   = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ProjectTree);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 24);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(216, 415);
     this.panel1.TabIndex = 13;
     //
     // ProjectTree
     //
     this.ProjectTree.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.ProjectTree.ImageIndex         = -1;
     this.ProjectTree.Location           = new System.Drawing.Point(0, 0);
     this.ProjectTree.Name               = "ProjectTree";
     this.ProjectTree.SelectedImageIndex = -1;
     this.ProjectTree.Size               = new System.Drawing.Size(216, 415);
     this.ProjectTree.TabIndex           = 2;
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(216, 24);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(3, 415);
     this.splitter1.TabIndex = 14;
     this.splitter1.TabStop  = false;
     //
     // ViewCtrl1
     //
     this.ViewCtrl1.AllowDrop = true;
     this.ViewCtrl1.Curr      = null;
     this.ViewCtrl1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.ViewCtrl1.Font      = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.ViewCtrl1.Location  = new System.Drawing.Point(219, 24);
     this.ViewCtrl1.Name      = "ViewCtrl1";
     this.ViewCtrl1.Size      = new System.Drawing.Size(565, 415);
     this.ViewCtrl1.TabIndex  = 15;
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 439);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.status_panel
     });
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(784, 18);
     this.statusBar1.TabIndex   = 1;
     //
     // status_panel
     //
     this.status_panel.AutoSize    = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.status_panel.Text        = "Ready";
     this.status_panel.ToolTipText = "Status";
     this.status_panel.Width       = 768;
     //
     // MainWnd
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(784, 457);
     this.Controls.Add(this.ViewCtrl1);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.toolBar1);
     this.Controls.Add(this.statusBar1);
     this.Icon     = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Location = new System.Drawing.Point(0, 0);
     this.Menu     = this.mainMenu1;
     this.Name     = "MainWnd";
     this.Text     = "C# UML Designer";
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.status_panel)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #9
0
        public void AddMenuItems( System.Windows.Forms.ContextMenu m, int x, int y )
        {
            FlatMenuItem curr;
            EventHandler evh;

            if( st == null || st.Deleted ) {
                parent.AddItem( m, "Enter new name", ToolBarIcons.None, false, new EventHandler( RestoreName ) );
                return;
            }

            // Display Options
            evh = new EventHandler( DisplayOptions );
            curr = new FlatMenuItem( "Display &Options...", null, 0, false );
            parent.AddItem( curr, "&Attributes", ToolBarIcons.show_attrs, show_vars, evh );
            parent.AddItem( curr, "&Operations", ToolBarIcons.show_opers, show_members, evh );
            parent.AddItem( curr, "&Properties", ToolBarIcons.show_properties, show_properties, evh );
            parent.AddItem( curr, "Show full &qualified name", ToolBarIcons.show_qual, show_full_qual, evh );
            parent.AddItem( curr, "Show operations &signature", ToolBarIcons.oper_signature, show_method_signatures, evh );
            parent.AddItem( curr, "Only public", ToolBarIcons.None, show_only_public, evh );
            m.MenuItems.Add( curr );

            evh = new EventHandler( Import );
            curr = new FlatMenuItem( "Import", parent.proj.icon_list, (int)ToolBarIcons.add_related, false );
            parent.AddItem( curr, "Import ancestor && interfaces", ToolBarIcons.None, false, evh );
            parent.AddItem( curr, "Import successors", ToolBarIcons.None, false, evh );
            m.MenuItems.Add( curr );

            m.MenuItems.Add( new StereoTypeHelper( this ).GetStereoMenu() );

            parent.AddItem( m, "Show/Hide Members", ToolBarIcons.None, false, new EventHandler( showhide ) );
        }
Beispiel #10
0
        public void AddMenuItems( System.Windows.Forms.ContextMenu m, int x, int y )
        {
            if( !source_dependant )
                parent.AddItem( m, "Rename package", ToolBarIcons.None, false, new EventHandler(Rename_click) );

            FlatMenuItem curr;
            EventHandler evh;

            // Display Options
            evh = new EventHandler( DisplayOptions );
            curr = new FlatMenuItem( "Display &Options...", null, 0, false );
            parent.AddItem( curr, "Show full &qualified name", ToolBarIcons.show_qual, show_full_qual, evh );
            parent.AddItem( curr, "&Show members", ToolBarIcons.None, show_members, evh );
            m.MenuItems.Add( curr );

            m.MenuItems.Add( new StereoTypeHelper( this ).GetStereoMenu() );
        }
Beispiel #11
0
 public static FlatMenuItem Create( string text, ImageList iml, int index, bool Checked, EventHandler click_handler, object Tag )
 {
     FlatMenuItem fmi = new FlatMenuItem( text, iml, index, Checked );
     if( click_handler != null )
         fmi.Click += click_handler;
     else
         fmi.Enabled = false;
     fmi.Tag = Tag;
     return fmi;
 }