예제 #1
0
 void initialize_tree_view(UMLDes.Controls.UmlSolutionTree tv)
 {
     tv.BackColor        = System.Drawing.SystemColors.Window;
     tv.ImageList        = this.treeImages;
     tv.LabelEdit        = true;
     tv.BeforeLabelEdit += new NodeLabelEditEventHandler(BeforeLabelEdit);
     tv.AfterLabelEdit  += new NodeLabelEditEventHandler(AfterLabelEdit);
     tv.MouseDown       += new System.Windows.Forms.MouseEventHandler(this.TreeMouseDown);
     tv.MouseUp         += new System.Windows.Forms.MouseEventHandler(this.TreeMouseUp);
     tv.MouseMove       += new System.Windows.Forms.MouseEventHandler(this.TreeMouseMove);
     tv.GiveFeedback    += new System.Windows.Forms.GiveFeedbackEventHandler(this.tree_GiveFeedback);
 }
예제 #2
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);
 }
예제 #3
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);
 }