/// <summary> /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { components = new Container(); albumList = new ESListBox <Album>(); albumListMenu = albumList.ContextMenuStrip; editFileItem = new ToolStripMenuItem(); cutFileItem = new ToolStripMenuItem(); copyFileItem = new ToolStripMenuItem(); pasteFileItem = new ToolStripMenuItem(); replaceFromFileItem = new ToolStripMenuItem(); addReplaceItem = new ToolStripMenuItem(); replaceToThisFileItem = new ToolStripMenuItem(); saveAsItem = new ToolStripMenuItem(); newFileItem = new ToolStripMenuItem(); exchangeFileItem = new ToolStripMenuItem(); hideImgItem = new ToolStripMenuItem(); addMergeItem = new ToolStripMenuItem(); addOutsideMergeItem = new ToolStripMenuItem(); runMergeItem = new ToolStripMenuItem(); renameItem = new ToolStripMenuItem(); repairFileItem = new ToolStripMenuItem(); recoverFileItem = new ToolStripMenuItem(); compareFileItem = new ToolStripMenuItem(); splitFileItem = new ToolStripMenuItem(); mixFileItem = new ToolStripMenuItem(); imageList = new ESListBox <Sprite>(); imageListMenu = imageList.ContextMenuStrip; editImageItem = new ToolStripMenuItem(); cutImageItem = new ToolStripMenuItem(); copyImageItem = new ToolStripMenuItem(); pasteImageItem = new ToolStripMenuItem(); addLayerItem = new ToolStripMenuItem(); saveImageItem = new ToolStripMenuItem(); changePositionItem = new ToolStripMenuItem(); changeSizeItem = new ToolStripMenuItem(); adjustPositionItem = new ToolStripMenuItem(); replaceImageItem = new ToolStripMenuItem(); hideCheckImageItem = new ToolStripMenuItem(); linkImageItem = new ToolStripMenuItem(); newImageItem = new ToolStripMenuItem(); saveSingleImageItem = new ToolStripMenuItem(); openItem = new ToolStripMenuItem(); openFileItem = new ToolStripMenuItem(); openRecentItem = new ToolStripMenuItem(); addItem = new ToolStripMenuItem(); addDirItem = new ToolStripMenuItem(); addRecentItem = new ToolStripMenuItem(); saveItem = new ToolStripMenuItem(); saveFileItem = new ToolStripMenuItem(); saveRecentItem = new ToolStripMenuItem(); saveDirItem = new ToolStripMenuItem(); exitItem = new ToolStripMenuItem(); convertItem = new ToolStripMenuItem(); mainMenu = new MenuStrip(); fileMenu = new ToolStripMenuItem(); addFileItem = new ToolStripMenuItem(); openDirItem = new ToolStripMenuItem(); saveAsFileItem = new ToolStripMenuItem(); linearDodgeItem = new ToolStripMenuItem(); dyeItem = new ToolStripMenuItem(); editMenu = new ToolStripMenuItem(); undoItem = new ToolStripMenuItem(); redoItem = new ToolStripMenuItem(); classifyItem = new ToolStripMenuItem(); moveItem = new ToolStripMenuItem(); moveUpItem = new ToolStripMenuItem(); moveDownItem = new ToolStripMenuItem(); moveLeftItem = new ToolStripMenuItem(); moveRightItem = new ToolStripMenuItem(); viewMenu = new ToolStripMenuItem(); ruleItem = new ToolStripMenuItem(); displayRuleItem = new ToolStripMenuItem(); adjustRuleItem = new ToolStripMenuItem(); previewItem = new ToolStripMenuItem(); gridItem = new ToolStripMenuItem(); borderItem = new ToolStripMenuItem(); aboutItem = new ToolStripMenuItem(); sortItem = new ToolStripMenuItem(); toolsMenu = new ToolStripMenuItem(); modelMenu = new ToolStripMenuItem(); saveGifItem = new ToolStripMenuItem(); box = new PictureBox(); linearDodgeBox = new CheckBox(); realPositionBox = new CheckBox(); dyeBox = new CheckBox(); displayBox = new CheckBox(); openButton = new ESButton(); closeButton = new ESButton(); historyButton = new ESButton(); searchIcon = new Label(); searchBox = new TextBox(); pathBox = new TextBox(); scaleLabel = new Label(); scaleBox = new NumericUpDown(); pixelateBox = new CheckBox(); aboutMenu = new ToolStripMenuItem(); feedbackItem = new ToolStripMenuItem(); versionItem = new ToolStripMenuItem(); settingItem = new ToolStripMenuItem(); helpItem = new ToolStripMenuItem(); layerList = new ESListBox <IPaint>(); layerMenu = layerList.ContextMenuStrip; upLayerItem = new ToolStripMenuItem(); downLayerItem = new ToolStripMenuItem(); renameLayerItem = new ToolStripMenuItem(); canvasMenu = new ContextMenuStrip(); canvasCutItem = new ToolStripMenuItem(); canvasCopyItem = new ToolStripMenuItem(); canvasPasteItem = new ToolStripMenuItem(); canvasMoveUpItem = new ToolStripMenuItem(); canvasMoveDownItem = new ToolStripMenuItem(); canvasMoveLeftItem = new ToolStripMenuItem(); canvasMoveRightItem = new ToolStripMenuItem(); canvasMoveHereItem = new ToolStripMenuItem(); selectItem = new ToolStripMenuItem(); selectAllHideItem = new ToolStripMenuItem(); selectAllLinkItem = new ToolStripMenuItem(); selectThisLinkItm = new ToolStripMenuItem(); selectThisTargetItem = new ToolStripMenuItem(); previewPanel = new Panel(); colorPanel = new ColorPanel(); messager = new ESMessager(Connector); albumListMenu.SuspendLayout(); imageListMenu.SuspendLayout(); mainMenu.SuspendLayout(); ((ISupportInitialize)(box)).BeginInit(); SuspendLayout(); // // albumList // albumList.HorizontalScrollbar = true; albumList.Location = new Point(20, 90); albumList.Name = "albumList"; albumList.Size = new Size(210, 579); albumList.TabIndex = 3; albumList.CanClear = false; // // albumListMenu // albumListMenu.Items.Add(editFileItem); albumListMenu.Items.Add(newFileItem); albumListMenu.Items.Add(exchangeFileItem); albumListMenu.Items.Add(saveAsItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(addReplaceItem); albumListMenu.Items.Add(replaceToThisFileItem); albumListMenu.Items.Add(replaceFromFileItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(repairFileItem); albumListMenu.Items.Add(recoverFileItem); albumListMenu.Items.AddSeparator(); // albumListMenu.Items.Add(compareFileItem); // albumListMenu.Items.Add(splitFileItem); albumListMenu.Items.Add(mixFileItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(hideImgItem); albumListMenu.Items.Add(renameItem); albumListMenu.Items.Add(convertItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(addMergeItem); albumListMenu.Items.Add(addOutsideMergeItem); albumListMenu.Items.Add(runMergeItem); albumListMenu.Items.AddSeparator(); albumListMenu.Size = new Size(221, 268); editFileItem.Text = Language["Edit"]; editFileItem.DropDownItems.Add(cutFileItem); editFileItem.DropDownItems.Add(copyFileItem); editFileItem.DropDownItems.Add(pasteFileItem); replaceFromFileItem.Text = Language["ReplaceFromFile"]; replaceFromFileItem.ShortcutKeys = Keys.Control | Keys.Q; replaceFromFileItem.Image = Resources.replace; addReplaceItem.Text = Language["AddReplace"]; addReplaceItem.ShortcutKeys = Keys.Control | Keys.W; replaceToThisFileItem.Text = Language["ReplaceToThisFile"]; replaceToThisFileItem.ShortcutKeys = Keys.Control | Keys.E; cutFileItem.Text = Language["Cut"]; cutFileItem.ShortcutKeys = Keys.Control | Keys.X; cutFileItem.Image = Resources.cut; copyFileItem.Text = Language["Copy"]; copyFileItem.ShortcutKeys = Keys.Control | Keys.C; copyFileItem.Image = Resources.copy; pasteFileItem.Text = Language["Paste"]; pasteFileItem.ShortcutKeys = Keys.Control | Keys.V; pasteFileItem.Image = Resources.paste; saveAsItem.Text = Language["SaveAs"]; saveAsItem.ShortcutKeys = Keys.Control | Keys.E; saveAsItem.Image = Resources.saveAs; newFileItem.Text = Language["NewFile"]; newFileItem.ShortcutKeys = Keys.Control | Keys.N; newFileItem.Image = Resources.newFile; exchangeFileItem.Text = Language["ExchangeFile"]; exchangeFileItem.ShortcutKeys = Keys.Control | Keys.G; hideImgItem.Text = Language["HideFile"]; hideImgItem.ShortcutKeys = Keys.Control | Keys.H; convertItem.Text = Language["ConvertVersion"]; convertItem.Image = Resources.change; addMergeItem.Text = Language["AddMerge"]; addMergeItem.ShortcutKeys = Keys.Control | Keys.M; addMergeItem.Image = Resources.addFile; addOutsideMergeItem.Text = Language["AddOutsideMerge"]; addOutsideMergeItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.M; runMergeItem.Text = Language["RunMerge"]; runMergeItem.Image = Resources.play; renameItem.Text = Language["Rename"]; renameItem.ShortcutKeys = Keys.Control | Keys.R; renameItem.Image = Resources.rename; repairFileItem.Text = Language["RepairFile"]; repairFileItem.Image = Resources.repair; recoverFileItem.Text = Language["RecoverFile"]; compareFileItem.Text = Language["CompareFile"]; splitFileItem.Text = Language["SplitFile"]; mixFileItem.Text = Language["MixFile"]; // // imageList // imageList.HorizontalScrollbar = true; imageList.Location = new Point(1070, 90); imageList.Name = "imageList"; imageList.Size = new Size(270, 310); imageList.TabIndex = 4; imageList.CanClear = false; // // imageListMenu // imageListMenu.Items.Add(selectItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(editImageItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(newImageItem); imageListMenu.Items.Add(replaceImageItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(changePositionItem); imageListMenu.Items.Add(changeSizeItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(saveImageItem); imageListMenu.Items.Add(saveSingleImageItem); imageListMenu.Items.Add(saveGifItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(hideCheckImageItem); imageListMenu.Items.Add(linkImageItem); imageListMenu.Items.Add(addLayerItem); imageListMenu.Name = "imageListMenu"; imageListMenu.Size = new Size(161, 202); editImageItem.Text = Language["Edit"]; editImageItem.DropDownItems.Add(cutImageItem); editImageItem.DropDownItems.Add(copyImageItem); editImageItem.DropDownItems.Add(pasteImageItem); editImageItem.DropDownItems.AddSeparator(); editImageItem.DropDownItems.Add(linearDodgeItem); editImageItem.DropDownItems.Add(dyeItem); cutImageItem.Text = Language["Cut"]; cutImageItem.Image = Resources.cut; copyImageItem.Text = Language["Copy"]; copyImageItem.Image = Resources.copy; pasteImageItem.Text = Language["Paste"]; pasteImageItem.Image = Resources.paste; linearDodgeItem.Text = Language["LinearDodge"]; dyeItem.Text = Language["Dye"]; saveImageItem.Text = Language["SaveImage"]; saveImageItem.Image = Resources.save; saveSingleImageItem.Text = Language["SaveAs"]; saveSingleImageItem.Image = Resources.saveAs; saveGifItem.Text = Language["SaveGif"]; saveGifItem.Image = Resources.gif; changePositionItem.Text = Language["ChangeImagePosition"]; changePositionItem.Image = Resources.position; changeSizeItem.Text = Language["ChangeImageSize"]; changeSizeItem.Image = Resources.edit; replaceImageItem.Text = Language["ReplaceImage"]; replaceImageItem.Image = Resources.replace; hideCheckImageItem.Text = Language["HideImage"]; linkImageItem.Text = Language["LinkImage"]; linkImageItem.Image = Resources.link; newImageItem.Text = Language["NewImage"]; newImageItem.Image = Resources.newFile; addLayerItem.Text = Language["AddLayer"]; selectItem.Text = Language["Select"]; selectAllHideItem.Text = Language["SelectHide"]; selectAllLinkItem.Text = Language["SelectLink"]; selectThisLinkItm.Text = Language["SelectThisLink"]; selectThisTargetItem.Text = Language["SelectThisTarget"]; selectItem.DropDownItems.Add(selectAllHideItem); selectItem.DropDownItems.Add(selectAllLinkItem); selectItem.DropDownItems.Add(selectThisLinkItm); selectItem.DropDownItems.Add(selectThisTargetItem); // // mainMenu // mainMenu.BackColor = Config["MainColor"].Color; mainMenu.Items.Add(fileMenu); mainMenu.Items.Add(editMenu); mainMenu.Items.Add(viewMenu); mainMenu.Items.Add(toolsMenu); mainMenu.Items.Add(modelMenu); mainMenu.Items.Add(aboutMenu); modelMenu.Text = Language["Model"]; aboutMenu.Text = Language["About"]; aboutMenu.DropDownItems.Add(aboutItem); aboutMenu.DropDownItems.Add(helpItem); aboutMenu.DropDownItems.Add(versionItem); aboutMenu.DropDownItems.Add(feedbackItem); aboutMenu.DropDownItems.Add(settingItem); aboutItem.Text = Language["About"]; aboutItem.Image = Resources.about; versionItem.Text = Language["Features"]; feedbackItem.Text = Language["FeedBack"]; feedbackItem.Image = Resources.feedback; helpItem.Text = Language["Help"]; helpItem.Image = Resources.help; settingItem.Text = Language["Setting"]; settingItem.Image = Resources.setting; // // fileMenu // fileMenu.DropDownItems.Add(openItem); fileMenu.DropDownItems.Add(addItem); fileMenu.DropDownItems.AddSeparator(); fileMenu.DropDownItems.Add(saveItem); fileMenu.DropDownItems.Add(saveAsFileItem); fileMenu.DropDownItems.AddSeparator(); fileMenu.DropDownItems.Add(exitItem); fileMenu.Text = Language["File"]; openItem.Text = Language["Open"]; openItem.ShowShortcutKeys = false; openItem.Image = Resources.open; openFileItem.Text = Language["File"]; openFileItem.ShowShortcutKeys = false; openFileItem.ShortcutKeys = Keys.Control | Keys.O; openDirItem.Text = Language["Directory"]; openRecentItem.Text = Language["Recent"]; openRecentItem.DropDownItems.AddSeparator(); openItem.DropDownItems.Add(openFileItem); openItem.DropDownItems.Add(openDirItem); openItem.DropDownItems.Add(openRecentItem); addItem.Text = Language["Add"]; addItem.Image = Resources.addFile; addRecentItem.Text = Language["Recent"]; addRecentItem.DropDownItems.AddSeparator(); addFileItem.Text = Language["File"]; addFileItem.ShowShortcutKeys = false; addFileItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.O; addDirItem.Text = Language["Directory"]; addItem.DropDownItems.Add(addFileItem); addItem.DropDownItems.Add(addDirItem); addItem.DropDownItems.Add(addRecentItem); saveItem.Text = Language["Save"]; saveItem.ShowShortcutKeys = false; saveItem.Image = Resources.save; saveRecentItem.Text = Language["Recent"]; saveRecentItem.DropDownItems.AddSeparator(); saveFileItem.Text = Language["File"]; saveFileItem.ShortcutKeys = Keys.Control | Keys.S; saveDirItem.Text = Language["Directory"]; saveItem.DropDownItems.Add(saveFileItem); saveItem.DropDownItems.Add(saveDirItem); saveItem.DropDownItems.Add(saveRecentItem); saveAsFileItem.Text = Language["SaveAs"]; saveAsFileItem.ShowShortcutKeys = false; saveAsFileItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.S; saveAsFileItem.Image = Resources.saveAs; exitItem.Text = Language["Exit"]; exitItem.ShortcutKeys = Keys.Alt | Keys.F4; exitItem.ShowShortcutKeys = false; exitItem.Image = Resources.exit; editMenu.Text = Language["Edit"]; editMenu.DropDownItems.Add(undoItem); editMenu.DropDownItems.Add(redoItem); editMenu.DropDownItems.AddSeparator(); editMenu.DropDownItems.Add(moveItem); editMenu.DropDownItems.Add(adjustPositionItem); editMenu.DropDownItems.AddSeparator(); editMenu.DropDownItems.Add(classifyItem); editMenu.DropDownItems.Add(sortItem); undoItem.Text = Language["Undo"]; undoItem.ShortcutKeys = Keys.Control | Keys.Z; undoItem.Image = Resources.undo; redoItem.Text = Language["Redo"]; redoItem.ShortcutKeys = Keys.Control | Keys.Y; redoItem.Image = Resources.redo; classifyItem.Text = Language["Classify"]; classifyItem.CheckOnClick = true; classifyItem.Image = Resources.classify; sortItem.Text = Language["Sort"]; sortItem.Image = Resources.sort; moveItem.Text = Language["Move"]; moveItem.DropDownItems.Add(moveUpItem); moveItem.DropDownItems.Add(moveDownItem); moveItem.DropDownItems.Add(moveLeftItem); moveItem.DropDownItems.Add(moveRightItem); moveUpItem.Text = Language["MoveUp"]; moveUpItem.ShortcutKeys = Keys.Control | Keys.Up; moveDownItem.Text = Language["MoveDown"]; moveDownItem.ShortcutKeys = Keys.Control | Keys.Down; moveLeftItem.Text = Language["MoveLeft"]; moveLeftItem.ShortcutKeys = Keys.Control | Keys.Left; moveRightItem.Text = Language["MoveRight"]; moveRightItem.ShortcutKeys = Keys.Control | Keys.Right; adjustPositionItem.Text = Language["AdjustPosition"]; adjustPositionItem.ShortcutKeys = Keys.Control | Keys.B; viewMenu.Text = Language["View"]; viewMenu.DropDownItems.Add(ruleItem); viewMenu.DropDownItems.Add(gridItem); viewMenu.DropDownItems.Add(borderItem); viewMenu.DropDownItems.Add(previewItem); ruleItem.Text = Language["Ruler"]; ruleItem.Image = Resources.ruler; ruleItem.DropDownItems.Add(displayRuleItem); ruleItem.DropDownItems.Add(adjustRuleItem); displayRuleItem.Text = Language["DisplayRuler"]; displayRuleItem.Checked = Config["Ruler"].Boolean; displayRuleItem.ShortcutKeys = Keys.Control | Keys.N; displayRuleItem.ShowShortcutKeys = true; displayRuleItem.CheckOnClick = true; adjustRuleItem.Text = Language["ResetRuler"]; previewItem.Text = Language["Preview"]; previewItem.CheckOnClick = true; previewItem.Checked = Config["Preview"].Boolean; gridItem.Text = Language["Grid"]; gridItem.Checked = Config["Grid"].Boolean; gridItem.Image = Resources.grid; borderItem.Text = Language["Border"]; borderItem.Checked = Config["Border"].Boolean; toolsMenu.Text = Language["Tools"]; // // Message // messager.Location = new Point(1072, 25); openButton.Location = new Point(20, 63); openButton.Text = Language["Open"]; openButton.Size = new Size(75, 25); openButton.UseVisualStyleBackColor = true; closeButton.Location = new Point(155, 63); closeButton.Text = Language["Close"]; closeButton.Size = new Size(75, 25); closeButton.UseVisualStyleBackColor = true; pathBox.Location = new Point(20, 40); pathBox.Size = new Size(210, 20); // // box // box.Location = new Point(230, 90); box.Name = "box"; box.BackColor = Color.Gray; if (Config["CanvasSize"].Size != Size.Empty) { box.Size = Config["CanvasSize"].Size; } // //colorPanel // colorPanel.Location = new Point(800, 48); colorPanel.Color = Config["BrushColor"].Color; /// /// /// scaleLabel.AutoSize = true; scaleLabel.Text = Language["CanvasScale"]; scaleLabel.Location = new Point(250, 53); /// /// /// scaleBox.Size = new Size(100, 40); scaleBox.Location = new Point(320, 50); scaleBox.Minimum = 20; scaleBox.Maximum = 100000; // // // pixelateBox.Text = Language["Pixelate"]; pixelateBox.Location = new Point(430, 50); // // realPositionBox // realPositionBox.Location = new Point(1085, 60); realPositionBox.Name = "realPositionBox"; realPositionBox.AutoSize = true; realPositionBox.TabIndex = 11; realPositionBox.Text = Language["RealPosition"]; // // // displayBox.Location = new Point(1210, 60); displayBox.AutoSize = true; displayBox.Text = Language["Animation"]; // // // linearDodgeBox.Location = new Point(1085, 30); linearDodgeBox.AutoSize = true; linearDodgeBox.Text = Language["LinearDodge"]; /// // // dyeBox.Location = new Point(1210, 30); dyeBox.AutoSize = true; dyeBox.Text = Language["Dye"]; // // // historyButton.Location = new Point(945, 47); historyButton.AutoSize = true; historyButton.Size = new Size(85, 25); historyButton.Text = Language["Other"]; historyButton.UseVisualStyleBackColor = true; searchIcon.Location = new Point(204, 672); searchIcon.Size = new Size(16, 16); searchIcon.Image = Resources.search; // // searchBox // searchBox.Location = new Point(20, 668); searchBox.Name = "searchBox"; searchBox.Size = new Size(180, 20); searchBox.TabIndex = 6; layerList.HorizontalScrollbar = true; layerList.Location = new Point(1070, 397); layerList.Name = "layerList"; layerList.Size = new Size(270, 305); layerList.TabIndex = 4; layerList.CanClear = false; layerList.CanDelete = true; layerMenu.Items.Add(upLayerItem); layerMenu.Items.Add(downLayerItem); layerMenu.Items.Add(renameLayerItem); upLayerItem.Text = Language["MoveUp"]; downLayerItem.Text = Language["MoveDown"]; renameLayerItem.Text = Language["Rename"]; colorDialog = new ColorDialog(); canvasMenu.Items.Add(canvasCutItem); canvasMenu.Items.Add(canvasCopyItem); canvasMenu.Items.Add(canvasPasteItem); canvasMenu.Items.AddSeparator(); canvasMenu.Items.Add(canvasMoveUpItem); canvasMenu.Items.Add(canvasMoveDownItem); canvasMenu.Items.Add(canvasMoveLeftItem); canvasMenu.Items.Add(canvasMoveRightItem); canvasMenu.Items.Add(canvasMoveHereItem); canvasCutItem.Text = Language["Cut"]; canvasCutItem.ShortcutKeys = Keys.Control | Keys.X; canvasCutItem.Image = Resources.cut; canvasCopyItem.Text = Language["Copy"]; canvasCopyItem.ShortcutKeys = Keys.Control | Keys.C; canvasCopyItem.Image = Resources.copy; canvasPasteItem.Text = Language["Paste"]; canvasPasteItem.ShortcutKeys = Keys.Control | Keys.V; canvasPasteItem.Image = Resources.paste; canvasMoveUpItem.Text = Language["MoveUp"]; canvasMoveUpItem.ShortcutKeys = Keys.Control | Keys.Up; canvasMoveDownItem.Text = Language["MoveDown"]; canvasMoveDownItem.ShortcutKeys = Keys.Control | Keys.Down; canvasMoveLeftItem.Text = Language["MoveLeft"]; canvasMoveLeftItem.ShortcutKeys = Keys.Control | Keys.Left; canvasMoveRightItem.Text = Language["MoveRight"]; canvasMoveRightItem.ShortcutKeys = Keys.Control | Keys.Right; canvasMoveHereItem.Text = Language["MoveHere"]; AutoScaleDimensions = new SizeF(6F, 12F); AutoScaleMode = AutoScaleMode.Inherit; Controls.Add(imageList); Controls.Add(mainMenu); Controls.Add(searchIcon); Controls.Add(searchBox); Controls.Add(albumList); Controls.Add(layerList); Controls.Add(messager); Controls.Add(openButton); Controls.Add(closeButton); Controls.Add(pathBox); Controls.Add(realPositionBox); Controls.Add(displayBox); Controls.Add(linearDodgeBox); Controls.Add(dyeBox); Controls.Add(box); Controls.Add(historyButton); Controls.Add(colorPanel); Controls.Add(scaleLabel); Controls.Add(scaleBox); Controls.Add(pixelateBox); Controls.Add(previewPanel); MainMenuStrip = mainMenu; Name = "MainForm"; Text = $"{ProductName} Ver { Program.Version} { Config["Title"]}"; AllowDrop = true; ClientSize = Config["MainSize"].Size; BackColor = Config["MainColor"].Color; albumListMenu.ResumeLayout(false); imageListMenu.ResumeLayout(false); mainMenu.ResumeLayout(false); mainMenu.PerformLayout(); previewPanel.Visible = Config["Preview"].Boolean; previewPanel.BorderStyle = BorderStyle.FixedSingle; previewPanel.Size = new Size(150, 150); previewPanel.BackgroundImageLayout = ImageLayout.Zoom; previewPanel.Location = new System.Drawing.Point(920, 90); ((ISupportInitialize)(box)).EndInit(); ResumeLayout(false); PerformLayout(); }
/// <summary> /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { components = new Container(); albumList = new ESListBox <Album>(); albumListMenu = albumList.ContextMenuStrip; cutImgItem = new ToolStripMenuItem(); copyImgItem = new ToolStripMenuItem(); pasteImgItem = new ToolStripMenuItem(); replaceItem = new ToolStripMenuItem(); saveAsItem = new ToolStripMenuItem(); newImgItem = new ToolStripMenuItem(); hideImgItem = new ToolStripMenuItem(); addMergeItem = new ToolStripMenuItem(); addOutsideMergeItem = new ToolStripMenuItem(); runMergeItem = new ToolStripMenuItem(); renameItem = new ToolStripMenuItem(); repairFileItem = new ToolStripMenuItem(); splitFileItem = new ToolStripMenuItem(); mixFileItem = new ToolStripMenuItem(); imageList = new ESListBox <ImageEntity>(); imageListMenu = imageList.ContextMenuStrip; cutImageItem = new ToolStripMenuItem(); copyImageItem = new ToolStripMenuItem(); pasteImageItem = new ToolStripMenuItem(); addLayerItem = new ToolStripMenuItem(); saveImageItem = new ToolStripMenuItem(); changePositionItem = new ToolStripMenuItem(); changeSizeItem = new ToolStripMenuItem(); adjustPositionItem = new ToolStripMenuItem(); replaceImageItem = new ToolStripMenuItem(); hideCheckImageItem = new ToolStripMenuItem(); linkImageItem = new ToolStripMenuItem(); newImageItem = new ToolStripMenuItem(); saveSingleImageItem = new ToolStripMenuItem(); saveAllImageItem = new ToolStripMenuItem(); openFileItem = new ToolStripMenuItem(); saveFileItem = new ToolStripMenuItem(); convertItem = new ToolStripMenuItem(); mainMenu = new MenuStrip(); fileMenu = new ToolStripMenuItem(); addFileItem = new ToolStripMenuItem(); openDirItem = new ToolStripMenuItem(); saveAsFileItem = new ToolStripMenuItem(); saveDirItem = new ToolStripMenuItem(); toolsItem = new ToolStripMenuItem(); canvasImageItem = new ToolStripMenuItem(); uncanvasImageItem = new ToolStripMenuItem(); lineDodgeItem = new ToolStripMenuItem(); editMenu = new ToolStripMenuItem(); undoItem = new ToolStripMenuItem(); redoItem = new ToolStripMenuItem(); classifyItem = new ToolStripMenuItem(); viewMenu = new ToolStripMenuItem(); ruleItem = new ToolStripMenuItem(); displayRuleItem = new ToolStripMenuItem(); displayRuleCrossHairItem = new ToolStripMenuItem(); adjustRuleItem = new ToolStripMenuItem(); lockRuleItem = new ToolStripMenuItem(); previewItem = new ToolStripMenuItem(); gridItem = new ToolStripMenuItem(); aboutItem = new ToolStripMenuItem(); sortItem = new ToolStripMenuItem(); toolsMenu = new ToolStripMenuItem(); modelMenu = new ToolStripMenuItem(); Messager Messager = Messager.Default; saveGifItem = new ToolStripMenuItem(); box = new PictureBox(); mutipleLayerItem = new ToolStripMenuItem(); linedodgeBox = new CheckBox(); realPositionBox = new CheckBox(); onionskinBox = new CheckBox(); displayBox = new CheckBox(); openButton = new ESButton(); closeButton = new ESButton(); historyButton = new ESButton(); searchBox = new TextBox(); pathBox = new TextBox(); scaleLabel = new Label(); scaleBox = new NumericUpDown(); pixelateBox = new CheckBox(); aboutMenu = new ToolStripMenuItem(); debugItem = new ToolStripMenuItem(); versionItem = new ToolStripMenuItem(); pluginItem = new ToolStripMenuItem(); propertyItem = new ToolStripMenuItem(); trackBar = new TrackBar(); layerList = new ESListBox <Layer>(); layerMenu = layerList.ContextMenuStrip; renameLayerItem = new ToolStripMenuItem(); changeLayerPositionItem = new ToolStripMenuItem(); adjustEntityPositionItem = new ToolStripMenuItem(); loadModelItem = new ToolStripMenuItem(); saveAsLayerItem = new ToolStripMenuItem(); replaceLayerItem = new ToolStripMenuItem(); canvasMenu = new ContextMenuStrip(); canvasCutItem = new ToolStripMenuItem(); canvasCopyItem = new ToolStripMenuItem(); canvasPasteItem = new ToolStripMenuItem(); previewPanel = new Panel(); colorPanel = new Panel(); albumListMenu.SuspendLayout(); imageListMenu.SuspendLayout(); mainMenu.SuspendLayout(); ((ISupportInitialize)(box)).BeginInit(); SuspendLayout(); // // albumList // albumList.HorizontalScrollbar = true; albumList.Location = new Point(20, 90); albumList.Name = "albumList"; albumList.Size = new Size(200, 579); albumList.TabIndex = 3; albumList.CanClear = false; // // albumListMenu // albumListMenu.Items.Add(newImgItem); albumListMenu.Items.Add(cutImgItem); albumListMenu.Items.Add(copyImgItem); albumListMenu.Items.Add(pasteImgItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(replaceItem); albumListMenu.Items.Add(saveAsItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(repairFileItem); albumListMenu.Items.Add(splitFileItem); albumListMenu.Items.Add(mixFileItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(hideImgItem); albumListMenu.Items.Add(renameItem); albumListMenu.Items.Add(convertItem); albumListMenu.Items.AddSeparator(); albumListMenu.Items.Add(addMergeItem); albumListMenu.Items.Add(addOutsideMergeItem); albumListMenu.Items.Add(runMergeItem); albumListMenu.Items.AddSeparator(); albumListMenu.Size = new Size(221, 268); replaceItem.Text = Language["ReplaceFile"]; replaceItem.ShortcutKeys = Keys.Control | Keys.Q; cutImgItem.Text = Language["Cut"]; cutImgItem.ShortcutKeys = Keys.Control | Keys.X; copyImgItem.Text = Language["Copy"]; copyImgItem.ShortcutKeys = Keys.Control | Keys.C; pasteImgItem.Text = Language["Paste"]; pasteImgItem.ShortcutKeys = Keys.Control | Keys.V; saveAsItem.Text = Language["SaveAs"]; saveAsItem.ShortcutKeys = Keys.Control | Keys.E; newImgItem.Text = Language["NewFile"]; newImgItem.ShortcutKeys = Keys.Control | Keys.N; hideImgItem.Text = Language["HideFile"]; hideImgItem.ShortcutKeys = Keys.Control | Keys.H; convertItem.Text = Language["ConvertVersion"]; addMergeItem.Text = Language["AddMerge"]; addMergeItem.ShortcutKeys = Keys.Control | Keys.M; addOutsideMergeItem.Text = Language["AddOutsideMerge"]; addOutsideMergeItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.M; runMergeItem.Text = Language["RunMerge"]; renameItem.Text = Language["Rename"]; renameItem.ShortcutKeys = Keys.Control | Keys.R; repairFileItem.Text = Language["RepairFile"]; splitFileItem.Text = Language["SplitFile"]; mixFileItem.Text = Language["MixFile"]; // // imageList // imageList.HorizontalScrollbar = true; imageList.Location = new Point(1050, 90); imageList.Name = "imageList"; imageList.Size = new Size(240, 280); imageList.TabIndex = 4; imageList.CanClear = false; // // imageListMenu // imageListMenu.Items.Add(newImageItem); imageListMenu.Items.Add(cutImageItem); imageListMenu.Items.Add(copyImageItem); imageListMenu.Items.Add(pasteImageItem); imageListMenu.Items.Add(replaceImageItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(addLayerItem); imageListMenu.Items.Add(changePositionItem); imageListMenu.Items.Add(changeSizeItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(saveImageItem); imageListMenu.Items.Add(saveSingleImageItem); imageListMenu.Items.Add(saveAllImageItem); imageListMenu.Items.Add(saveGifItem); imageListMenu.Items.AddSeparator(); imageListMenu.Items.Add(hideCheckImageItem); imageListMenu.Items.Add(linkImageItem); imageListMenu.Items.Add(toolsItem); imageListMenu.Name = "imageListMenu"; imageListMenu.Size = new Size(161, 202); cutImageItem.Text = Language["Cut"]; copyImageItem.Text = Language["Copy"]; pasteImageItem.Text = Language["Paste"]; saveImageItem.Text = Language["SaveImage"]; saveSingleImageItem.Text = Language["SaveAs"]; saveAllImageItem.Text = Language["SaveAllImage"]; saveGifItem.Text = Language["SaveGif"]; changePositionItem.Text = Language["ChangeImagePosition"]; changeSizeItem.Text = Language["ChangeImageSize"]; replaceImageItem.Text = Language["ReplaceImage"]; hideCheckImageItem.Text = Language["HideImage"]; linkImageItem.Text = Language["LinkImage"]; newImageItem.Text = Language["NewImage"]; addLayerItem.Text = Language["AddLayer"]; toolsItem.Text = Language["Other"]; canvasImageItem.Text = Language["CanvasImage"]; uncanvasImageItem.Text = Language["UnCanvasImage"]; lineDodgeItem.Text = Language["LineDodge"]; toolsItem.DropDownItems.Add(canvasImageItem); toolsItem.DropDownItems.Add(uncanvasImageItem); toolsItem.DropDownItems.AddSeparator(); toolsItem.DropDownItems.Add(lineDodgeItem); // // mainMenu // mainMenu.Items.Add(fileMenu); mainMenu.Items.Add(editMenu); mainMenu.Items.Add(viewMenu); mainMenu.Items.Add(toolsMenu); mainMenu.Items.Add(modelMenu); mainMenu.Items.Add(aboutMenu); modelMenu.Text = Language["Model"]; aboutMenu.Text = Language["About"]; aboutMenu.DropDownItems.Add(aboutItem); aboutMenu.DropDownItems.Add(versionItem); aboutMenu.DropDownItems.Add(debugItem); aboutMenu.DropDownItems.Add(propertyItem); aboutItem.Text = Language["About"]; versionItem.Text = Language["Features"]; debugItem.Text = Language["FeedBack"]; pluginItem.Text = Language["Plugin"]; propertyItem.Text = Language["Setting"]; // // fileMenu // fileMenu.DropDownItems.Add(openFileItem); fileMenu.DropDownItems.Add(addFileItem); fileMenu.DropDownItems.AddSeparator(); fileMenu.DropDownItems.Add(saveFileItem); fileMenu.DropDownItems.Add(saveAsFileItem); fileMenu.DropDownItems.AddSeparator(); fileMenu.DropDownItems.Add(openDirItem); fileMenu.DropDownItems.Add(saveDirItem); fileMenu.Text = Language["File"]; openFileItem.Text = Language["Open"]; openFileItem.ShowShortcutKeys = false; openFileItem.ShortcutKeys = Keys.Control | Keys.O; saveFileItem.Text = Language["Save"]; saveFileItem.ShowShortcutKeys = false; saveFileItem.ShortcutKeys = Keys.Control | Keys.S; addFileItem.Text = Language["Add"]; addFileItem.ShowShortcutKeys = false; addFileItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.O; saveAsFileItem.Text = Language["SaveAs"]; saveAsFileItem.ShowShortcutKeys = false; saveAsFileItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.S; openDirItem.Text = Language["OpenDir"]; openDirItem.ToolTipText = "从文件夹打开多个img/npk文件"; saveDirItem.Text = Language["SaveDir"]; saveDirItem.ToolTipText = "将文件分割为多个img保存至文件夹"; editMenu.Text = Language["Edit"]; editMenu.DropDownItems.Add(undoItem); editMenu.DropDownItems.Add(redoItem); editMenu.DropDownItems.AddSeparator(); editMenu.DropDownItems.Add(adjustPositionItem); editMenu.DropDownItems.AddSeparator(); editMenu.DropDownItems.Add(classifyItem); editMenu.DropDownItems.Add(sortItem); undoItem.Text = Language["Undo"]; undoItem.ShortcutKeys = Keys.Control | Keys.Z; redoItem.Text = Language["Redo"]; redoItem.ShortcutKeys = Keys.Control | Keys.Y; classifyItem.Text = Language["Classify"]; classifyItem.CheckOnClick = true; sortItem.Text = Language["Sort"]; adjustPositionItem.Text = Language["AdjustPosition"]; adjustPositionItem.ShortcutKeys = Keys.Control | Keys.B; viewMenu.Text = Language["View"]; viewMenu.DropDownItems.Add(ruleItem); viewMenu.DropDownItems.Add(gridItem); viewMenu.DropDownItems.Add(previewItem); viewMenu.DropDownItems.Add(mutipleLayerItem); ruleItem.Text = Language["Ruler"]; ruleItem.DropDownItems.Add(displayRuleItem); ruleItem.DropDownItems.Add(displayRuleCrossHairItem); ruleItem.DropDownItems.Add(lockRuleItem); ruleItem.DropDownItems.Add(adjustRuleItem); displayRuleItem.Text = Language["DisplayRuler"]; displayRuleItem.Checked = Config["Ruler"].Boolean; displayRuleItem.ShortcutKeys = Keys.Control | Keys.N; displayRuleItem.ShowShortcutKeys = true; displayRuleItem.CheckOnClick = true; displayRuleCrossHairItem.Text = Language["DisplayRulerCrosshair"]; displayRuleCrossHairItem.Checked = Config["RulerCrosshair"].Boolean; displayRuleCrossHairItem.ToolTipText = "显示准心可以让标尺移动"; displayRuleCrossHairItem.CheckOnClick = true; displayRuleCrossHairItem.Checked = true; adjustRuleItem.Text = Language["ResetRuler"]; adjustRuleItem.ToolTipText = "还原标尺位置"; lockRuleItem.Text = Language["LockRuler"]; lockRuleItem.ToolTipText = "固定标尺,禁止移动"; lockRuleItem.CheckOnClick = true; lockRuleItem.Checked = Config["RulerLocked"].Boolean; previewItem.Text = Language["Preview"]; previewItem.CheckOnClick = true; previewItem.Checked = Config["Preview"].Boolean; gridItem.Text = Language["Grid"]; gridItem.CheckOnClick = true; gridItem.Checked = Config["Grid"].Boolean; toolsMenu.Text = Language["Tools"]; mutipleLayerItem.Text = Language["MutipleLayer"]; mutipleLayerItem.CheckOnClick = true; // // Message // Messager.Location = new Point(1100, 30); Messager.Name = "Message"; Messager.Size = new Size(250, 50); Messager.TabIndex = 9; Messager.Text = Language["Tips"]; Messager.Visible = false; openButton.Location = new Point(20, 63); openButton.Text = Language["Open"]; openButton.Size = new Size(75, 25); openButton.UseVisualStyleBackColor = true; closeButton.Location = new Point(145, 63); closeButton.Text = Language["Close"]; closeButton.Size = new Size(75, 25); closeButton.UseVisualStyleBackColor = true; pathBox.Location = new Point(20, 40); pathBox.Size = new Size(200, 20); // // box // box.Location = new Point(230, 90); box.Name = "box"; box.BackColor = Color.Gray; if (Config["CanvasSize"].Size != Size.Empty) { box.Size = Config["CanvasSize"].Size; } // //colorPanel // colorPanel.Location = new Point(800, 48); colorPanel.BackColor = Config["BrushColor"].Color; colorPanel.Size = new Size(25, 25); colorPanel.BorderStyle = BorderStyle.FixedSingle; /// /// /// scaleLabel.AutoSize = true; scaleLabel.Text = Language["CanvasScale"]; scaleLabel.Location = new Point(230, 53); /// /// /// scaleBox.Size = new Size(100, 40); scaleBox.Location = new Point(300, 50); scaleBox.Minimum = 20; scaleBox.Maximum = 100000; scaleBox.Value = Config["CanvasScale"].Integer; // // // pixelateBox.Text = Language["Pixelate"]; pixelateBox.Location = new Point(420, 47); pixelateBox.Checked = Config["Pixelate"].Boolean; // // realPositionBox // realPositionBox.Location = new Point(1050, 70); realPositionBox.Name = "realPositionBox"; realPositionBox.AutoSize = true; realPositionBox.TabIndex = 11; realPositionBox.Text = Language["RealPosition"]; realPositionBox.Checked = Config["RealPosition"].Boolean; // // // displayBox.Location = new Point(1170, 70); displayBox.AutoSize = true; displayBox.Text = Language["Animation"]; displayBox.Checked = Config["Animation"].Boolean; // // // linedodgeBox.Location = new Point(1050, 50); linedodgeBox.AutoSize = true; linedodgeBox.Text = Language["LineDodge"]; linedodgeBox.Checked = Config["LineDodge"].Boolean; /// // // onionskinBox.Location = new Point(1170, 50); onionskinBox.AutoSize = true; onionskinBox.Text = Language["OnionSkin"]; onionskinBox.Checked = Config["OnionSkin"].Boolean; // // // historyButton.Location = new Point(945, 47); historyButton.AutoSize = true; historyButton.Size = new Size(85, 25); historyButton.Text = Language["Other"]; historyButton.UseVisualStyleBackColor = true; // // searchBox // searchBox.Location = new Point(20, 670); searchBox.Name = "searchBox"; searchBox.Size = new Size(200, 20); searchBox.TabIndex = 6; // // MainForm // trackBar.Location = new Point(1050, 370); trackBar.Size = new Size(240, 40); trackBar.LargeChange = trackBar.SmallChange = 1; layerList.HorizontalScrollbar = true; layerList.Location = new Point(1050, 405); layerList.Name = "layerList"; layerList.Size = new Size(240, 280); layerList.TabIndex = 4; layerMenu.Items.Add(renameLayerItem); layerMenu.Items.Add(replaceLayerItem); // layerMenu.Items.Add(changeLayerPositionItem); layerMenu.Items.Add(adjustEntityPositionItem); layerMenu.Items.Add(loadModelItem); layerMenu.Items.Add(saveAsLayerItem); renameLayerItem.Text = Language["Rename"]; changeLayerPositionItem.Text = Language["ChangeLayerPosition"]; adjustEntityPositionItem.Text = Language["AdjustPosition"]; loadModelItem.Text = Language["LoadModel"]; saveAsLayerItem.Text = Language["SaveAs"]; replaceLayerItem.Text = Language["ReplaceImage"]; colorDialog = new ColorDialog(); canvasMenu.Items.Add(canvasCutItem); canvasMenu.Items.Add(canvasCopyItem); canvasMenu.Items.Add(canvasPasteItem); canvasCutItem.Text = Language["Cut"]; canvasCutItem.ShortcutKeys = Keys.Control | Keys.X; canvasCopyItem.Text = Language["Copy"]; canvasCopyItem.ShortcutKeys = Keys.Control | Keys.C; canvasPasteItem.Text = Language["Paste"]; canvasPasteItem.ShortcutKeys = Keys.Control | Keys.V; AutoScaleDimensions = new SizeF(6F, 12F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(imageList); Controls.Add(mainMenu); Controls.Add(searchBox); Controls.Add(albumList); Controls.Add(layerList); Controls.Add(trackBar); Controls.Add(Messager); Controls.Add(openButton); Controls.Add(closeButton); Controls.Add(pathBox); Controls.Add(realPositionBox); Controls.Add(displayBox); Controls.Add(linedodgeBox); Controls.Add(onionskinBox); Controls.Add(box); Controls.Add(historyButton); Controls.Add(colorPanel); Controls.Add(scaleLabel); Controls.Add(scaleBox); Controls.Add(pixelateBox); Controls.Add(previewPanel); MainMenuStrip = mainMenu; Name = "MainForm"; Text = $"{ProductName} Ver { Program.Version} { Config["Title"]}"; AllowDrop = true; ClientSize = Config["MainSize"].Size; BackColor = Config["MainColor"].Color; albumListMenu.ResumeLayout(false); imageListMenu.ResumeLayout(false); mainMenu.ResumeLayout(false); mainMenu.PerformLayout(); previewPanel.Visible = Config["Preview"].Boolean; previewPanel.BorderStyle = BorderStyle.FixedSingle; previewPanel.Size = new Size(100, 100); previewPanel.BackgroundImageLayout = ImageLayout.Zoom; previewPanel.Location = new System.Drawing.Point(930, 90); ((ISupportInitialize)(box)).EndInit(); ResumeLayout(false); PerformLayout(); }