Subversion Repositories LassyPad

Compare Revisions

Ignore whitespace Rev 12 → Rev 11

/LassyPad/bin/Debug/LassyPad.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/LassyPad/bin/Debug/LassyPad.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/LassyPad/obj/x86/Debug/LassyPad.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/LassyPad/obj/x86/Debug/LassyPad.csproj.GenerateResource.Cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/LassyPad/obj/x86/Debug/LassyPad.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/LassyPad/MainForm.Designer.cs
52,7 → 52,6
this.toolStripButton13 = new System.Windows.Forms.ToolStripButton();
this.formatBar = new System.Windows.Forms.ToolStrip();
this.sizeF = new System.Windows.Forms.ToolStripTextBox();
this.fontTypeF = new System.Windows.Forms.ToolStripTextBox();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.textColourF = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
249,7 → 248,6
this.formatBar.Dock = System.Windows.Forms.DockStyle.None;
this.formatBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.sizeF,
this.fontTypeF,
this.toolStripSeparator3,
this.textColourF,
this.toolStripSeparator4,
264,7 → 262,7
this.toolStripButton8});
this.formatBar.Location = new System.Drawing.Point(3, 0);
this.formatBar.Name = "formatBar";
this.formatBar.Size = new System.Drawing.Size(405, 25);
this.formatBar.Size = new System.Drawing.Size(272, 25);
this.formatBar.TabIndex = 2;
this.formatBar.Text = "toolStrip2";
//
272,18 → 270,9
//
this.sizeF.Name = "sizeF";
this.sizeF.Size = new System.Drawing.Size(50, 25);
this.sizeF.Text = "8.5";
this.sizeF.ToolTipText = "Font Size";
this.sizeF.TextChanged += new System.EventHandler(this.SizeFTextChanged);
//
// fontTypeF
//
this.fontTypeF.Name = "fontTypeF";
this.fontTypeF.Size = new System.Drawing.Size(100, 25);
this.fontTypeF.Text = "Courier New";
this.fontTypeF.ToolTipText = "Font Type";
this.fontTypeF.TextChanged += new System.EventHandler(this.SizeFTextChanged);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
453,7 → 442,7
//
this.undoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("undoToolStripMenuItem.Image")));
this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
this.undoToolStripMenuItem.Size = new System.Drawing.Size(99, 22);
this.undoToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.undoToolStripMenuItem.Text = "Undo";
this.undoToolStripMenuItem.ToolTipText = "Undo";
this.undoToolStripMenuItem.Click += new System.EventHandler(this.UndoToolStripMenuItemClick);
462,7 → 451,7
//
this.redoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("redoToolStripMenuItem.Image")));
this.redoToolStripMenuItem.Name = "redoToolStripMenuItem";
this.redoToolStripMenuItem.Size = new System.Drawing.Size(99, 22);
this.redoToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.redoToolStripMenuItem.Text = "Redo";
this.redoToolStripMenuItem.ToolTipText = "Redo";
this.redoToolStripMenuItem.Click += new System.EventHandler(this.RedoToolStripMenuItemClick);
638,7 → 627,7
//
this.inToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("inToolStripMenuItem.Image")));
this.inToolStripMenuItem.Name = "inToolStripMenuItem";
this.inToolStripMenuItem.Size = new System.Drawing.Size(121, 22);
this.inToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.inToolStripMenuItem.Text = "Zoom In";
this.inToolStripMenuItem.ToolTipText = "Zoom In";
this.inToolStripMenuItem.Click += new System.EventHandler(this.InToolStripMenuItemClick);
647,7 → 636,7
//
this.outToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("outToolStripMenuItem.Image")));
this.outToolStripMenuItem.Name = "outToolStripMenuItem";
this.outToolStripMenuItem.Size = new System.Drawing.Size(121, 22);
this.outToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.outToolStripMenuItem.Text = "Zoom Out";
this.outToolStripMenuItem.ToolTipText = "Zoom Out";
this.outToolStripMenuItem.Click += new System.EventHandler(this.OutToolStripMenuItemClick);
743,7 → 732,6
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.ToolStripTextBox fontTypeF;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem1;
/LassyPad/MainForm.cs
446,10 → 446,8
{
selectionStart = editorView.SelectionStart;
selectionLength = editorView.SelectionLength;
// TODO: Find a way to get first char formatting
// textColourF.ForeColor = editorView.SelectionColor;
textColourF.ForeColor = editorView.SelectionColor;
// sizeF.Text = editorView.SelectionFont.Size.ToString();
// fontTypeF.Text = editorView.SelectionFont.FontFamily();
}
#region File stuff
585,11 → 583,6
}
}
void fontTypeFTextChanged(object sender, EventArgs e)
{
editorView.SelectionFont = new Font(fontTypeF.Text, editorView.SelectionFont.Size, editorView.SelectionFont.Style);
}
#endregion
void WordWrapToolStripMenuItemClick(object sender, EventArgs e)