Extending functionality. New form to create a new project
This commit is contained in:
278
McBitFont/Form1.Designer.cs
generated
278
McBitFont/Form1.Designer.cs
generated
@@ -24,11 +24,6 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("adasd");
|
||||
System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("ddddd", 0);
|
||||
System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("ffff");
|
||||
System.Windows.Forms.ListViewItem listViewItem8 = new System.Windows.Forms.ListViewItem("");
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.dotPanel = new System.Windows.Forms.Panel();
|
||||
this.nudX = new System.Windows.Forms.NumericUpDown();
|
||||
this.nudY = new System.Windows.Forms.NumericUpDown();
|
||||
@@ -37,7 +32,6 @@
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.cbZoom = new System.Windows.Forms.ComboBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.pbZoom = new System.Windows.Forms.ProgressBar();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btnMirrorY = new System.Windows.Forms.Button();
|
||||
this.btnMirrorX = new System.Windows.Forms.Button();
|
||||
@@ -54,9 +48,29 @@
|
||||
this.hScroll = new System.Windows.Forms.HScrollBar();
|
||||
this.vScroll = new System.Windows.Forms.VScrollBar();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.addSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.fontOptionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.shiftUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.shiftDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.shiftLeftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.shiftRightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.invertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mirrorXToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mirrorYToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudX)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudY)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dotPanel
|
||||
@@ -66,18 +80,19 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dotPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.dotPanel.BackColor = System.Drawing.SystemColors.ControlDark;
|
||||
this.dotPanel.Location = new System.Drawing.Point(12, 12);
|
||||
this.dotPanel.Location = new System.Drawing.Point(12, 27);
|
||||
this.dotPanel.Name = "dotPanel";
|
||||
this.dotPanel.Size = new System.Drawing.Size(593, 518);
|
||||
this.dotPanel.Size = new System.Drawing.Size(593, 503);
|
||||
this.dotPanel.TabIndex = 0;
|
||||
this.dotPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.dotPanel_Paint);
|
||||
this.dotPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dotPanel_MouseMove);
|
||||
this.dotPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.dotPanel_MouseMove);
|
||||
this.dotPanel.Resize += new System.EventHandler(this.cbZoom_SelectedIndexChanged);
|
||||
//
|
||||
// nudX
|
||||
//
|
||||
this.nudX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.nudX.Location = new System.Drawing.Point(810, 12);
|
||||
this.nudX.Location = new System.Drawing.Point(810, 27);
|
||||
this.nudX.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
@@ -101,7 +116,7 @@
|
||||
// nudY
|
||||
//
|
||||
this.nudY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.nudY.Location = new System.Drawing.Point(810, 38);
|
||||
this.nudY.Location = new System.Drawing.Point(810, 53);
|
||||
this.nudY.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
@@ -126,7 +141,7 @@
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(766, 14);
|
||||
this.label1.Location = new System.Drawing.Point(766, 29);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(38, 13);
|
||||
this.label1.TabIndex = 3;
|
||||
@@ -136,7 +151,7 @@
|
||||
//
|
||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(763, 40);
|
||||
this.label2.Location = new System.Drawing.Point(763, 55);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(41, 13);
|
||||
this.label2.TabIndex = 4;
|
||||
@@ -146,7 +161,7 @@
|
||||
//
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(631, 12);
|
||||
this.label3.Location = new System.Drawing.Point(631, 27);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(35, 13);
|
||||
this.label3.TabIndex = 0;
|
||||
@@ -154,7 +169,7 @@
|
||||
//
|
||||
// cbZoom
|
||||
//
|
||||
this.cbZoom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cbZoom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cbZoom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbZoom.FormattingEnabled = true;
|
||||
this.cbZoom.Items.AddRange(new object[] {
|
||||
@@ -170,7 +185,7 @@
|
||||
"40",
|
||||
"45",
|
||||
"50"});
|
||||
this.cbZoom.Location = new System.Drawing.Point(631, 533);
|
||||
this.cbZoom.Location = new System.Drawing.Point(686, 50);
|
||||
this.cbZoom.Name = "cbZoom";
|
||||
this.cbZoom.Size = new System.Drawing.Size(59, 21);
|
||||
this.cbZoom.TabIndex = 6;
|
||||
@@ -179,24 +194,14 @@
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(628, 517);
|
||||
this.label4.Location = new System.Drawing.Point(683, 34);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(62, 13);
|
||||
this.label4.TabIndex = 7;
|
||||
this.label4.Text = "Zoom level:";
|
||||
//
|
||||
// pbZoom
|
||||
//
|
||||
this.pbZoom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbZoom.Location = new System.Drawing.Point(696, 533);
|
||||
this.pbZoom.Name = "pbZoom";
|
||||
this.pbZoom.Size = new System.Drawing.Size(169, 21);
|
||||
this.pbZoom.Step = 1;
|
||||
this.pbZoom.TabIndex = 8;
|
||||
this.pbZoom.Visible = false;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@@ -208,15 +213,15 @@
|
||||
this.panel1.Controls.Add(this.btnShiftUp);
|
||||
this.panel1.Controls.Add(this.btnShiftRight);
|
||||
this.panel1.Controls.Add(this.btnShiftLeft);
|
||||
this.panel1.Location = new System.Drawing.Point(634, 70);
|
||||
this.panel1.Location = new System.Drawing.Point(634, 79);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(231, 80);
|
||||
this.panel1.Size = new System.Drawing.Size(120, 121);
|
||||
this.panel1.TabIndex = 9;
|
||||
//
|
||||
// btnMirrorY
|
||||
//
|
||||
this.btnMirrorY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||
this.btnMirrorY.Location = new System.Drawing.Point(188, 4);
|
||||
this.btnMirrorY.Location = new System.Drawing.Point(80, 76);
|
||||
this.btnMirrorY.Name = "btnMirrorY";
|
||||
this.btnMirrorY.Size = new System.Drawing.Size(30, 30);
|
||||
this.btnMirrorY.TabIndex = 6;
|
||||
@@ -227,7 +232,7 @@
|
||||
// btnMirrorX
|
||||
//
|
||||
this.btnMirrorX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||
this.btnMirrorX.Location = new System.Drawing.Point(152, 4);
|
||||
this.btnMirrorX.Location = new System.Drawing.Point(44, 76);
|
||||
this.btnMirrorX.Name = "btnMirrorX";
|
||||
this.btnMirrorX.Size = new System.Drawing.Size(30, 30);
|
||||
this.btnMirrorX.TabIndex = 5;
|
||||
@@ -238,7 +243,7 @@
|
||||
// btnInvert
|
||||
//
|
||||
this.btnInvert.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||
this.btnInvert.Location = new System.Drawing.Point(116, 4);
|
||||
this.btnInvert.Location = new System.Drawing.Point(8, 76);
|
||||
this.btnInvert.Name = "btnInvert";
|
||||
this.btnInvert.Size = new System.Drawing.Size(30, 30);
|
||||
this.btnInvert.TabIndex = 4;
|
||||
@@ -293,7 +298,7 @@
|
||||
// button1
|
||||
//
|
||||
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button1.Location = new System.Drawing.Point(634, 156);
|
||||
this.button1.Location = new System.Drawing.Point(789, 84);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 10;
|
||||
@@ -303,33 +308,28 @@
|
||||
//
|
||||
// outBox
|
||||
//
|
||||
this.outBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.outBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.outBox.Font = new System.Drawing.Font("Consolas", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||
this.outBox.Location = new System.Drawing.Point(634, 185);
|
||||
this.outBox.Location = new System.Drawing.Point(635, 206);
|
||||
this.outBox.Multiline = true;
|
||||
this.outBox.Name = "outBox";
|
||||
this.outBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||
this.outBox.Size = new System.Drawing.Size(230, 134);
|
||||
this.outBox.Size = new System.Drawing.Size(230, 135);
|
||||
this.outBox.TabIndex = 11;
|
||||
this.outBox.Text = "Output text here";
|
||||
//
|
||||
// miniList
|
||||
//
|
||||
this.miniList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.miniList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.miniList.GridLines = true;
|
||||
this.miniList.HideSelection = false;
|
||||
this.miniList.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
||||
listViewItem5,
|
||||
listViewItem6,
|
||||
listViewItem7,
|
||||
listViewItem8});
|
||||
this.miniList.LargeImageList = this.imageList1;
|
||||
this.miniList.Location = new System.Drawing.Point(634, 325);
|
||||
this.miniList.Location = new System.Drawing.Point(634, 347);
|
||||
this.miniList.MultiSelect = false;
|
||||
this.miniList.Name = "miniList";
|
||||
this.miniList.ShowGroups = false;
|
||||
this.miniList.Size = new System.Drawing.Size(230, 189);
|
||||
this.miniList.Size = new System.Drawing.Size(230, 207);
|
||||
this.miniList.SmallImageList = this.imageList1;
|
||||
this.miniList.TabIndex = 12;
|
||||
this.miniList.TabStop = false;
|
||||
@@ -338,14 +338,14 @@
|
||||
//
|
||||
// imageList1
|
||||
//
|
||||
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
|
||||
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth4Bit;
|
||||
this.imageList1.ImageSize = new System.Drawing.Size(50, 50);
|
||||
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
|
||||
this.imageList1.Images.SetKeyName(0, "firmware.png");
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button2.Location = new System.Drawing.Point(790, 156);
|
||||
this.button2.Location = new System.Drawing.Point(790, 113);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 13;
|
||||
@@ -368,9 +368,9 @@
|
||||
this.vScroll.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.vScroll.LargeChange = 25;
|
||||
this.vScroll.Location = new System.Drawing.Point(608, 12);
|
||||
this.vScroll.Location = new System.Drawing.Point(608, 27);
|
||||
this.vScroll.Name = "vScroll";
|
||||
this.vScroll.Size = new System.Drawing.Size(21, 518);
|
||||
this.vScroll.Size = new System.Drawing.Size(21, 503);
|
||||
this.vScroll.TabIndex = 15;
|
||||
this.vScroll.ValueChanged += new System.EventHandler(this.vScroll_ValueChanged);
|
||||
//
|
||||
@@ -378,26 +378,172 @@
|
||||
//
|
||||
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(632, 25);
|
||||
this.label5.Location = new System.Drawing.Point(632, 40);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(35, 13);
|
||||
this.label5.TabIndex = 16;
|
||||
this.label5.Text = "label5";
|
||||
//
|
||||
// menuStrip1
|
||||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem,
|
||||
this.editToolStripMenuItem,
|
||||
this.toolsToolStripMenuItem,
|
||||
this.aboutToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(877, 24);
|
||||
this.menuStrip1.TabIndex = 17;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// fileToolStripMenuItem
|
||||
//
|
||||
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.newToolStripMenuItem,
|
||||
this.openToolStripMenuItem,
|
||||
this.saveToolStripMenuItem,
|
||||
this.exitToolStripMenuItem});
|
||||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
||||
this.fileToolStripMenuItem.Text = "File";
|
||||
//
|
||||
// newToolStripMenuItem
|
||||
//
|
||||
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
|
||||
this.newToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.newToolStripMenuItem.Text = "New";
|
||||
this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
|
||||
//
|
||||
// saveToolStripMenuItem
|
||||
//
|
||||
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||
this.saveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.saveToolStripMenuItem.Text = "Save";
|
||||
//
|
||||
// openToolStripMenuItem
|
||||
//
|
||||
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
|
||||
this.openToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.openToolStripMenuItem.Text = "Open";
|
||||
//
|
||||
// exitToolStripMenuItem
|
||||
//
|
||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.exitToolStripMenuItem.Text = "Exit";
|
||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||
//
|
||||
// editToolStripMenuItem
|
||||
//
|
||||
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.addSymbolToolStripMenuItem,
|
||||
this.removeSymbolToolStripMenuItem,
|
||||
this.fontOptionsToolStripMenuItem});
|
||||
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
||||
this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
|
||||
this.editToolStripMenuItem.Text = "Edit";
|
||||
//
|
||||
// addSymbolToolStripMenuItem
|
||||
//
|
||||
this.addSymbolToolStripMenuItem.Name = "addSymbolToolStripMenuItem";
|
||||
this.addSymbolToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.addSymbolToolStripMenuItem.Text = "Add symbol";
|
||||
//
|
||||
// removeSymbolToolStripMenuItem
|
||||
//
|
||||
this.removeSymbolToolStripMenuItem.Name = "removeSymbolToolStripMenuItem";
|
||||
this.removeSymbolToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.removeSymbolToolStripMenuItem.Text = "Remove symbol";
|
||||
//
|
||||
// fontOptionsToolStripMenuItem
|
||||
//
|
||||
this.fontOptionsToolStripMenuItem.Name = "fontOptionsToolStripMenuItem";
|
||||
this.fontOptionsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.fontOptionsToolStripMenuItem.Text = "Font Options";
|
||||
//
|
||||
// toolsToolStripMenuItem
|
||||
//
|
||||
this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.shiftUpToolStripMenuItem,
|
||||
this.shiftDownToolStripMenuItem,
|
||||
this.shiftLeftToolStripMenuItem,
|
||||
this.shiftRightToolStripMenuItem,
|
||||
this.invertToolStripMenuItem,
|
||||
this.mirrorXToolStripMenuItem,
|
||||
this.mirrorYToolStripMenuItem});
|
||||
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
|
||||
this.toolsToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
|
||||
this.toolsToolStripMenuItem.Text = "Tools";
|
||||
//
|
||||
// shiftUpToolStripMenuItem
|
||||
//
|
||||
this.shiftUpToolStripMenuItem.Name = "shiftUpToolStripMenuItem";
|
||||
this.shiftUpToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.shiftUpToolStripMenuItem.Text = "Shift Up";
|
||||
this.shiftUpToolStripMenuItem.Click += new System.EventHandler(this.btnShiftUp_Click);
|
||||
//
|
||||
// shiftDownToolStripMenuItem
|
||||
//
|
||||
this.shiftDownToolStripMenuItem.Name = "shiftDownToolStripMenuItem";
|
||||
this.shiftDownToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.shiftDownToolStripMenuItem.Text = "Shift Down";
|
||||
this.shiftDownToolStripMenuItem.Click += new System.EventHandler(this.btnShiftDown_Click);
|
||||
//
|
||||
// shiftLeftToolStripMenuItem
|
||||
//
|
||||
this.shiftLeftToolStripMenuItem.Name = "shiftLeftToolStripMenuItem";
|
||||
this.shiftLeftToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.shiftLeftToolStripMenuItem.Text = "Shift left";
|
||||
this.shiftLeftToolStripMenuItem.Click += new System.EventHandler(this.btnShiftLeft_Click);
|
||||
//
|
||||
// shiftRightToolStripMenuItem
|
||||
//
|
||||
this.shiftRightToolStripMenuItem.Name = "shiftRightToolStripMenuItem";
|
||||
this.shiftRightToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.shiftRightToolStripMenuItem.Text = "Shift Right";
|
||||
this.shiftRightToolStripMenuItem.Click += new System.EventHandler(this.btnShiftRight_Click);
|
||||
//
|
||||
// invertToolStripMenuItem
|
||||
//
|
||||
this.invertToolStripMenuItem.Name = "invertToolStripMenuItem";
|
||||
this.invertToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.invertToolStripMenuItem.Text = "Invert";
|
||||
this.invertToolStripMenuItem.Click += new System.EventHandler(this.btnInvert_Click);
|
||||
//
|
||||
// mirrorXToolStripMenuItem
|
||||
//
|
||||
this.mirrorXToolStripMenuItem.Name = "mirrorXToolStripMenuItem";
|
||||
this.mirrorXToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.mirrorXToolStripMenuItem.Text = "Mirror X";
|
||||
this.mirrorXToolStripMenuItem.Click += new System.EventHandler(this.btnMirrorX_Click);
|
||||
//
|
||||
// mirrorYToolStripMenuItem
|
||||
//
|
||||
this.mirrorYToolStripMenuItem.Name = "mirrorYToolStripMenuItem";
|
||||
this.mirrorYToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.mirrorYToolStripMenuItem.Text = "Mirror Y";
|
||||
this.mirrorYToolStripMenuItem.Click += new System.EventHandler(this.btnMirrorY_Click);
|
||||
//
|
||||
// aboutToolStripMenuItem
|
||||
//
|
||||
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
||||
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(52, 20);
|
||||
this.aboutToolStripMenuItem.Text = "About";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(877, 566);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.vScroll);
|
||||
this.Controls.Add(this.hScroll);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.miniList);
|
||||
this.Controls.Add(this.outBox);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.pbZoom);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.cbZoom);
|
||||
this.Controls.Add(this.label3);
|
||||
@@ -406,6 +552,8 @@
|
||||
this.Controls.Add(this.nudY);
|
||||
this.Controls.Add(this.nudX);
|
||||
this.Controls.Add(this.dotPanel);
|
||||
this.Controls.Add(this.menuStrip1);
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.Name = "Form1";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "McBitFont";
|
||||
@@ -413,6 +561,8 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudX)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudY)).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -428,7 +578,6 @@
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.ComboBox cbZoom;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.ProgressBar pbZoom;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Button btnShiftLeft;
|
||||
private System.Windows.Forms.Button btnShiftRight;
|
||||
@@ -445,6 +594,25 @@
|
||||
private System.Windows.Forms.HScrollBar hScroll;
|
||||
private System.Windows.Forms.VScrollBar vScroll;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem addSymbolToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem removeSymbolToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem fontOptionsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem shiftUpToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem shiftDownToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem shiftLeftToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem shiftRightToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem invertToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem mirrorXToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem mirrorYToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -13,7 +13,7 @@ using System.Windows.Forms.VisualStyles;
|
||||
namespace McBitFont {
|
||||
public partial class Form1 : Form {
|
||||
|
||||
struct FrameMiniature {
|
||||
public struct FrameMiniature {
|
||||
public FrameMiniature(int cc, int ww, int hh) {
|
||||
code = cc;
|
||||
width = ww;
|
||||
@@ -27,6 +27,8 @@ namespace McBitFont {
|
||||
};
|
||||
|
||||
private FrameMiniature f;
|
||||
List<FrameMiniature> frames = new List<FrameMiniature>();
|
||||
//public FrameMiniature[] collection;
|
||||
private int cellSize = 10;
|
||||
private int dotWidth, dotHeight;
|
||||
private int pixelOffset = 5;
|
||||
@@ -52,7 +54,8 @@ namespace McBitFont {
|
||||
cbZoom.SelectedIndexChanged += cbZoom_SelectedIndexChanged;
|
||||
|
||||
f = new FrameMiniature(1, dotWidth, dotHeight);
|
||||
|
||||
frames.Add(f);
|
||||
miniList.Items.Add("Single", "Single", 0);
|
||||
}
|
||||
|
||||
private void dotPanel_MouseWheel(object sender, MouseEventArgs e) {
|
||||
@@ -293,21 +296,29 @@ namespace McBitFont {
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e) {
|
||||
int picSize = (dotWidth > dotHeight) ? dotWidth : dotHeight;
|
||||
var sizedBMP = getMiniPictue(f);
|
||||
imageList1.Images.RemoveByKey("Single");
|
||||
imageList1.Images.Add("Single", (Image)sizedBMP);
|
||||
|
||||
miniList.Items[miniList.Items.IndexOfKey("Single")].ImageKey = "Single";
|
||||
sizedBMP.Dispose();
|
||||
}
|
||||
|
||||
private Bitmap getMiniPictue(FrameMiniature m) {
|
||||
int picSize = (m.width > m.height) ? m.width : m.height;
|
||||
var bmp = new Bitmap(picSize, picSize);
|
||||
int imin = m.width < picSize ? (picSize - m.width) / 2 - 1 : 0;
|
||||
int jmin = m.height < picSize ? (picSize - m.height) / 2 - 1 : 0;
|
||||
Color c;
|
||||
for (int i=0; i<dotWidth; i++) {
|
||||
for (int j=0; j<dotHeight; j++) {
|
||||
for (int i = 0; i < m.width; i++) {
|
||||
for (int j = 0; j < m.height; j++) {
|
||||
c = f.data[i, j] ? Color.Black : Color.White;
|
||||
bmp.SetPixel(i, j, c);
|
||||
bmp.SetPixel(i+imin, j+jmin, c);
|
||||
}
|
||||
}
|
||||
var sizedBMP = new Bitmap(bmp, new Size(50, 50));
|
||||
imageList1.Images.RemoveByKey("32");
|
||||
imageList1.Images.Add("32", (Image)sizedBMP);
|
||||
miniList.Items[0].ImageKey = "32";
|
||||
bmp.Dispose();
|
||||
sizedBMP.Dispose();
|
||||
return sizedBMP;
|
||||
}
|
||||
|
||||
private void dotPanel_Paint(object sender, PaintEventArgs e) {
|
||||
@@ -315,18 +326,35 @@ namespace McBitFont {
|
||||
SolidBrush sbb = new SolidBrush(Color.Black);
|
||||
SolidBrush sbw = new SolidBrush(Color.White);
|
||||
SolidBrush sb;
|
||||
Pen p = new Pen(Color.LightSkyBlue);
|
||||
int x, y;
|
||||
|
||||
for (int i=0; i<dotWidth; i++) {
|
||||
x = pixelOffset + i * (cellSize + gap) - hScroll.Value;
|
||||
if (gap > 0 && i != 0 && (i % 8) == 0) {
|
||||
g.DrawLine(p, x - 1, pixelOffset - vScroll.Value, x - 1, h);
|
||||
}
|
||||
for (int j=0; j<dotHeight; j++) {
|
||||
y = pixelOffset + j * (cellSize + gap) - vScroll.Value;
|
||||
if (gap > 0 && i == 0 && j != 0 && (j % 8) == 0) {
|
||||
g.DrawLine(p, pixelOffset - hScroll.Value, y-1, w, y-1);
|
||||
}
|
||||
if (f.data[i, j]) sb = sbb;
|
||||
else sb = sbw;
|
||||
int x = pixelOffset + i * (cellSize + gap) - hScroll.Value;
|
||||
int y = pixelOffset + j * (cellSize + gap) - vScroll.Value;
|
||||
g.FillRectangle(sb, x, y, cellSize, cellSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void exitToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
Application.Exit();
|
||||
}
|
||||
|
||||
private void newToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
New form = new New();
|
||||
form.ShowDialog();
|
||||
}
|
||||
|
||||
private void hScroll_ValueChanged(object sender, EventArgs e) {
|
||||
label5.Text = hScroll.Value.ToString();
|
||||
dotPanel.Refresh();
|
||||
|
@@ -120,42 +120,7 @@
|
||||
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAA8
|
||||
BwAAAk1TRnQBSQFMAwEBAAEwAQABMAEAATIBAAEyAQAE/wEFAQAI/wFCAU0BdgcAAXYDAAEoAwAByAMA
|
||||
ATIDAAEBAQABBAUAAYgBExgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQADgAMAAf8CAAH/
|
||||
AwAC/wEAAf8DAAH/AQAB/wEAAv8CAAP//wA1AAEPAYgB8AEAAQ8BiAHwAQABDwGIAfBZAAEHAQABgAEA
|
||||
AQcBAAFwAQABCAEAAXBZAAEHAQABgAEAAQcBAAFwAQABCAEAAXBZAAEHAQABgAEAAQcBAAFwAQABCAEA
|
||||
AXBZAAEHAQABgAEAAQcBAAFwAQABCAEAAXBZAAEHAQABgAEAAQcBAAFwAQABCAEAAXBZAAEPAXcB8AEA
|
||||
AQ8BdwHwAQABDwF3AfBZAAv/WAAB9wsAAX9WAAEPAYALAAEIAfBVAAEHDQABcFUAAfANAAEPUQABDwJ3
|
||||
AX8B8A0AAQ8B9wJ3AfBNAAEIAgABBwHwDQABDwFwAgABgE0AAQgCAAEHAfADAAEHAfgDAAGPAXADAAEP
|
||||
AXACAAGATQABDwKIAY8B8AMAAXABDwMAAfABBwMAAQ8B+AKIAfBRAAHwAgABBwEAAQcDAAFwAQABcAIA
|
||||
AQ9VAAHwAgABcAEAAfABAAF3AQABDwEAAQcCAAEPVQAB8AEAAQcBAAEPAQABBwEAAXABAAHwAQABcAEA
|
||||
AQ9VAAHwAQABcAEAAfABjwH/AQAB/wH4AQ8BAAEHAQABD1EAAQ8CdwF/AfABBwEAAQ8BAAFwAwABBwEA
|
||||
AfABAAFwAQ8B9wJ3AfBNAAEIAgABBwHwAYABAAHwAQABjwMAAfgBAAEPAQABCAEPAXACAAGATQABCAIA
|
||||
AQcB8AGAAQAB8AEAAY8DAAH4AQABDwEAAQgBDwFwAgABgE0AAQ8CdwF/AfABBwEAAQ8BAAFwAwABBwEA
|
||||
AfABAAFwAQ8B9wJ3AfBRAAHwAQABcAEAAfABjwH/AQAB/wH4AQ8BAAEHAQABD1UAAfABAAEHAQABDwEA
|
||||
AQcBAAFwAQAB8AEAAXABAAEPVQAB8AIAAXABAAHwAQABdwEAAQ8BAAEHAgABD1UAAfACAAEHAQABBwMA
|
||||
AXABAAFwAgABD1EAAQ8CiAGPAfADAAFwAQ8DAAHwAQcDAAEPAfgCiAHwTQABCAIAAQcB8AMAAQcB+AMA
|
||||
AY8BcAMAAQ8BcAIAAYBNAAEIAgABBwHwDQABDwFwAgABgE0AAQ8CdwF/AfANAAEPAfcCdwHwUQAB8A0A
|
||||
AQ9VAAEHDQABcFUAAQ8BgAsAAQgB8FYAAfcLAAF/WAAL/1kAAQ8BdwHwAQABDwF3AfABAAEPAXcB8FkA
|
||||
AQcBAAGAAQABBwEAAXABAAEIAQABcFkAAQcBAAGAAQABBwEAAXABAAEIAQABcFkAAQcBAAGAAQABBwEA
|
||||
AXABAAEIAQABcFkAAQcBAAGAAQABBwEAAXABAAEIAQABcFkAAQcBAAGAAQABBwEAAXABAAEIAQABcFkA
|
||||
AQ8BiAHwAQABDwGIAfABAAEPAYgB8P8AfwABQgFNAT4HAAE+AwABKAMAAcgDAAEyAwABAQEAAQEFAAF4
|
||||
AQUWAAP/AQAG/wHAFQAG/wHAFQAG/wHAFQAB/wH+Ah4BHwH/AcAVAAH/Af4CHgEfAf8BwBUAAf8B/gIe
|
||||
AR8B/wHAFQAB/wH+Ah4BHwH/AcAVAAH/Af4CHgEfAf8BwBUAAf8B/gIeAR8B/wHAFQAB/wH+Ah4BHwH/
|
||||
AcAVAAH/AfwCAAEPAf8BwBUAAf8B8AIAAQMB/wHAFQAB/wHgAgABAQH/AcAVAAH/AeACAAEBAf8BwBUA
|
||||
Af8BwAMAAf8BwBUAAeAEAAEBAcAVAAHgBAABAQHAFQAB4AQAAQEBwBUAAeABAAEYAQYBAAEBAcAVAAH/
|
||||
AcABOAEHAQAB/wHAFQAB/wHAAXABAwGAAf8BwBUAAf8BwAHgAcEBwAH/AcAVAAH/AcECwAHgAf8BwBUA
|
||||
AeABAwGHAfgBcAEBAcAVAAHgAQcBAwHwATgBAQHAFQAB4AEHAQMB8AE4AQEBwBUAAeABAwGHAfgBcAEB
|
||||
AcAVAAH/AcECwAHgAf8BwBUAAf8BwAHgAcEBwAH/AcAVAAH/AcABcAEDAYAB/wHAFQAB/wHAATgBBwEA
|
||||
Af8BwBUAAeABAAEYAQYBAAEBAcAVAAHgBAABAQHAFQAB4AQAAQEBwBUAAeAEAAEBAcAVAAH/AcADAAH/
|
||||
AcAVAAH/AeACAAEBAf8BwBUAAf8B4AIAAQEB/wHAFQAB/wHwAgABAwH/AcAVAAH/AfwCAAEPAf8BwBUA
|
||||
Af8B/gIeAR8B/wHAFQAB/wH+Ah4BHwH/AcAVAAH/Af4CHgEfAf8BwBUAAf8B/gIeAR8B/wHAFQAB/wH+
|
||||
Ah4BHwH/AcAVAAH/Af4CHgEfAf8BwBUAAf8B/gIeAR8B/wHAFQAG/wHAFQAG/wHAFQAG/wHAFQAL
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>127, 17</value>
|
||||
</metadata>
|
||||
</root>
|
@@ -52,11 +52,20 @@
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="New.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="New.Designer.cs">
|
||||
<DependentUpon>New.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="New.resx">
|
||||
<DependentUpon>New.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
250
McBitFont/New.Designer.cs
generated
Normal file
250
McBitFont/New.Designer.cs
generated
Normal file
@@ -0,0 +1,250 @@
|
||||
namespace McBitFont {
|
||||
partial class New {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) {
|
||||
if (disposing && (components != null)) {
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <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();
|
||||
this.nudNewX = new System.Windows.Forms.NumericUpDown();
|
||||
this.nudNewY = new System.Windows.Forms.NumericUpDown();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.rbMono = new System.Windows.Forms.RadioButton();
|
||||
this.rbVar = new System.Windows.Forms.RadioButton();
|
||||
this.cbNotPrintable = new System.Windows.Forms.CheckBox();
|
||||
this.cbLatin = new System.Windows.Forms.CheckBox();
|
||||
this.cbExtended = new System.Windows.Forms.CheckBox();
|
||||
this.btnOK = new System.Windows.Forms.Button();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.cbSingle = new System.Windows.Forms.CheckBox();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudNewX)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudNewY)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// nudNewX
|
||||
//
|
||||
this.nudNewX.Location = new System.Drawing.Point(74, 11);
|
||||
this.nudNewX.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudNewX.Minimum = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudNewX.Name = "nudNewX";
|
||||
this.nudNewX.Size = new System.Drawing.Size(57, 20);
|
||||
this.nudNewX.TabIndex = 0;
|
||||
this.nudNewX.Value = new decimal(new int[] {
|
||||
32,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// nudNewY
|
||||
//
|
||||
this.nudNewY.Location = new System.Drawing.Point(74, 37);
|
||||
this.nudNewY.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudNewY.Minimum = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudNewY.Name = "nudNewY";
|
||||
this.nudNewY.Size = new System.Drawing.Size(57, 20);
|
||||
this.nudNewY.TabIndex = 1;
|
||||
this.nudNewY.Value = new decimal(new int[] {
|
||||
32,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(30, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(38, 13);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Width:";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(27, 39);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(41, 13);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Height:";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// rbMono
|
||||
//
|
||||
this.rbMono.AutoSize = true;
|
||||
this.rbMono.Checked = true;
|
||||
this.rbMono.Location = new System.Drawing.Point(30, 63);
|
||||
this.rbMono.Name = "rbMono";
|
||||
this.rbMono.Size = new System.Drawing.Size(81, 17);
|
||||
this.rbMono.TabIndex = 4;
|
||||
this.rbMono.TabStop = true;
|
||||
this.rbMono.Text = "Monospace";
|
||||
this.rbMono.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// rbVar
|
||||
//
|
||||
this.rbVar.AutoSize = true;
|
||||
this.rbVar.Location = new System.Drawing.Point(30, 86);
|
||||
this.rbVar.Name = "rbVar";
|
||||
this.rbVar.Size = new System.Drawing.Size(91, 17);
|
||||
this.rbVar.TabIndex = 5;
|
||||
this.rbVar.Text = "Variable width";
|
||||
this.rbVar.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbNotPrintable
|
||||
//
|
||||
this.cbNotPrintable.AutoSize = true;
|
||||
this.cbNotPrintable.Location = new System.Drawing.Point(146, 38);
|
||||
this.cbNotPrintable.Name = "cbNotPrintable";
|
||||
this.cbNotPrintable.Size = new System.Drawing.Size(116, 17);
|
||||
this.cbNotPrintable.TabIndex = 7;
|
||||
this.cbNotPrintable.Text = "0-31 (Not printable)";
|
||||
this.cbNotPrintable.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbLatin
|
||||
//
|
||||
this.cbLatin.AutoSize = true;
|
||||
this.cbLatin.Checked = true;
|
||||
this.cbLatin.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbLatin.Location = new System.Drawing.Point(146, 61);
|
||||
this.cbLatin.Name = "cbLatin";
|
||||
this.cbLatin.Size = new System.Drawing.Size(91, 17);
|
||||
this.cbLatin.TabIndex = 8;
|
||||
this.cbLatin.Text = "32-127 (Latin)";
|
||||
this.cbLatin.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbExtended
|
||||
//
|
||||
this.cbExtended.AutoSize = true;
|
||||
this.cbExtended.Location = new System.Drawing.Point(146, 84);
|
||||
this.cbExtended.Name = "cbExtended";
|
||||
this.cbExtended.Size = new System.Drawing.Size(119, 17);
|
||||
this.cbExtended.TabIndex = 9;
|
||||
this.cbExtended.Text = "128-255 (Extended)";
|
||||
this.cbExtended.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Location = new System.Drawing.Point(56, 121);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnOK.TabIndex = 10;
|
||||
this.btnOK.Text = "OK";
|
||||
this.btnOK.UseVisualStyleBackColor = true;
|
||||
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Location = new System.Drawing.Point(165, 121);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCancel.TabIndex = 11;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// cbSingle
|
||||
//
|
||||
this.cbSingle.AutoSize = true;
|
||||
this.cbSingle.Location = new System.Drawing.Point(146, 15);
|
||||
this.cbSingle.Name = "cbSingle";
|
||||
this.cbSingle.Size = new System.Drawing.Size(84, 17);
|
||||
this.cbSingle.TabIndex = 12;
|
||||
this.cbSingle.Text = "Single frame";
|
||||
this.cbSingle.UseVisualStyleBackColor = true;
|
||||
this.cbSingle.CheckedChanged += new System.EventHandler(this.cbSingle_CheckedChanged);
|
||||
//
|
||||
// toolTip1
|
||||
//
|
||||
this.toolTip1.AutoPopDelay = 10000;
|
||||
this.toolTip1.InitialDelay = 500;
|
||||
this.toolTip1.ReshowDelay = 100;
|
||||
this.toolTip1.ToolTipTitle = "Info";
|
||||
//
|
||||
// New
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(284, 161);
|
||||
this.Controls.Add(this.cbSingle);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Controls.Add(this.cbExtended);
|
||||
this.Controls.Add(this.cbLatin);
|
||||
this.Controls.Add(this.cbNotPrintable);
|
||||
this.Controls.Add(this.rbVar);
|
||||
this.Controls.Add(this.rbMono);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.nudNewY);
|
||||
this.Controls.Add(this.nudNewX);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.MaximizeBox = false;
|
||||
this.MaximumSize = new System.Drawing.Size(300, 200);
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(300, 200);
|
||||
this.Name = "New";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "New";
|
||||
this.Load += new System.EventHandler(this.New_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudNewX)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudNewY)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.NumericUpDown nudNewX;
|
||||
private System.Windows.Forms.NumericUpDown nudNewY;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.RadioButton rbMono;
|
||||
private System.Windows.Forms.RadioButton rbVar;
|
||||
private System.Windows.Forms.CheckBox cbNotPrintable;
|
||||
private System.Windows.Forms.CheckBox cbLatin;
|
||||
private System.Windows.Forms.CheckBox cbExtended;
|
||||
private System.Windows.Forms.Button btnOK;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.CheckBox cbSingle;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
}
|
||||
}
|
45
McBitFont/New.cs
Normal file
45
McBitFont/New.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace McBitFont {
|
||||
public partial class New : Form {
|
||||
public New() {
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void cbSingle_CheckedChanged(object sender, EventArgs e) {
|
||||
bool c = !cbSingle.Checked;
|
||||
cbNotPrintable.Enabled = c;
|
||||
cbLatin.Enabled = c;
|
||||
cbExtended.Enabled = c;
|
||||
rbMono.Enabled = c;
|
||||
rbVar.Enabled = c;
|
||||
}
|
||||
|
||||
private void New_Load(object sender, EventArgs e) {
|
||||
toolTip1.SetToolTip(nudNewX, "Frame Width;\nCharacter width;\nDefault character width for Variable width fonts");
|
||||
toolTip1.SetToolTip(nudNewY, "Frame Height;\nCharacter height");
|
||||
toolTip1.SetToolTip(rbMono, "Monospaced font");
|
||||
toolTip1.SetToolTip(rbVar, "Variable width font");
|
||||
toolTip1.SetToolTip(cbSingle, "Create one single frame");
|
||||
toolTip1.SetToolTip(cbNotPrintable, "Add not printable characters with codes 0 - 31");
|
||||
toolTip1.SetToolTip(cbLatin, "Add Latin characters with codes 32 - 127");
|
||||
toolTip1.SetToolTip(cbExtended, "Add Extended characters with codes 128 - 255");
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e) {
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void btnOK_Click(object sender, EventArgs e) {
|
||||
DialogResult= DialogResult.OK;
|
||||
}
|
||||
}
|
||||
}
|
123
McBitFont/New.resx
Normal file
123
McBitFont/New.resx
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
Reference in New Issue
Block a user