--- trunk/RomCheater.ScratchPad/ScratchPadDocument.Designer.cs 2013/06/20 22:33:04 774 +++ trunk/RomCheater.ScratchPad/ScratchPadDocument.Designer.cs 2013/06/20 22:59:40 775 @@ -31,43 +31,45 @@ this.components = new System.ComponentModel.Container(); Fireball.Windows.Forms.LineMarginRender lineMarginRender1 = new Fireball.Windows.Forms.LineMarginRender(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ScratchPadDocument)); - this.codeEditorControl1 = new Fireball.Windows.Forms.CodeEditorControl(); + this.txtEditor = new Fireball.Windows.Forms.CodeEditorControl(); this.syntaxDocument1 = new Fireball.Syntax.SyntaxDocument(this.components); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.mnuItemOpen = new System.Windows.Forms.ToolStripButton(); this.mnuItemSave = new System.Windows.Forms.ToolStripButton(); this.mnuItemClose = new System.Windows.Forms.ToolStripButton(); + this.FileLoader = new System.Windows.Forms.OpenFileDialog(); + this.FileSaver = new System.Windows.Forms.SaveFileDialog(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // - // codeEditorControl1 + // txtEditor // - this.codeEditorControl1.ActiveView = Fireball.Windows.Forms.CodeEditor.ActiveView.BottomRight; - this.codeEditorControl1.AutoListPosition = null; - this.codeEditorControl1.AutoListSelectedText = "a123"; - this.codeEditorControl1.AutoListVisible = false; - this.codeEditorControl1.CopyAsRTF = false; - this.codeEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.codeEditorControl1.Document = this.syntaxDocument1; - this.codeEditorControl1.InfoTipCount = 1; - this.codeEditorControl1.InfoTipPosition = null; - this.codeEditorControl1.InfoTipSelectedIndex = 1; - this.codeEditorControl1.InfoTipVisible = false; + this.txtEditor.ActiveView = Fireball.Windows.Forms.CodeEditor.ActiveView.BottomRight; + this.txtEditor.AutoListPosition = null; + this.txtEditor.AutoListSelectedText = "a123"; + this.txtEditor.AutoListVisible = false; + this.txtEditor.CopyAsRTF = false; + this.txtEditor.Dock = System.Windows.Forms.DockStyle.Fill; + this.txtEditor.Document = this.syntaxDocument1; + this.txtEditor.InfoTipCount = 1; + this.txtEditor.InfoTipPosition = null; + this.txtEditor.InfoTipSelectedIndex = 1; + this.txtEditor.InfoTipVisible = false; lineMarginRender1.Bounds = new System.Drawing.Rectangle(19, 0, 19, 16); - this.codeEditorControl1.LineMarginRender = lineMarginRender1; - this.codeEditorControl1.Location = new System.Drawing.Point(0, 25); - this.codeEditorControl1.LockCursorUpdate = false; - this.codeEditorControl1.Name = "codeEditorControl1"; - this.codeEditorControl1.Saved = false; - this.codeEditorControl1.ShowScopeIndicator = false; - this.codeEditorControl1.Size = new System.Drawing.Size(913, 521); - this.codeEditorControl1.SmoothScroll = false; - this.codeEditorControl1.SplitviewH = -4; - this.codeEditorControl1.SplitviewV = -4; - this.codeEditorControl1.TabGuideColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233))))); - this.codeEditorControl1.TabIndex = 0; - this.codeEditorControl1.Text = "codeEditorControl1"; - this.codeEditorControl1.WhitespaceColor = System.Drawing.SystemColors.ControlDark; + this.txtEditor.LineMarginRender = lineMarginRender1; + this.txtEditor.Location = new System.Drawing.Point(0, 25); + this.txtEditor.LockCursorUpdate = false; + this.txtEditor.Name = "txtEditor"; + this.txtEditor.Saved = false; + this.txtEditor.ShowScopeIndicator = false; + this.txtEditor.Size = new System.Drawing.Size(913, 521); + this.txtEditor.SmoothScroll = false; + this.txtEditor.SplitviewH = -4; + this.txtEditor.SplitviewV = -4; + this.txtEditor.TabGuideColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233))))); + this.txtEditor.TabIndex = 0; + this.txtEditor.Text = "codeEditorControl1"; + this.txtEditor.WhitespaceColor = System.Drawing.SystemColors.ControlDark; // // syntaxDocument1 // @@ -116,11 +118,23 @@ this.mnuItemClose.Text = "&Close"; this.mnuItemClose.Click += new System.EventHandler(this.mnuItemClose_Click); // + // FileLoader + // + this.FileLoader.Filter = "All files|*.*"; + this.FileLoader.SupportMultiDottedExtensions = true; + this.FileLoader.Title = "Please choose the file to open"; + // + // FileSaver + // + this.FileSaver.Filter = "All files|*.*"; + this.FileSaver.SupportMultiDottedExtensions = true; + this.FileSaver.Title = "Please choose the file to save"; + // // ScratchPadDocument // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.codeEditorControl1); + this.Controls.Add(this.txtEditor); this.Controls.Add(this.toolStrip1); this.Name = "ScratchPadDocument"; this.Size = new System.Drawing.Size(913, 546); @@ -133,11 +147,13 @@ #endregion - private Fireball.Windows.Forms.CodeEditorControl codeEditorControl1; + private Fireball.Windows.Forms.CodeEditorControl txtEditor; private Fireball.Syntax.SyntaxDocument syntaxDocument1; private System.Windows.Forms.ToolStrip toolStrip1; private System.Windows.Forms.ToolStripButton mnuItemOpen; private System.Windows.Forms.ToolStripButton mnuItemSave; private System.Windows.Forms.ToolStripButton mnuItemClose; + private System.Windows.Forms.OpenFileDialog FileLoader; + private System.Windows.Forms.SaveFileDialog FileSaver; } } \ No newline at end of file