Compare commits
32 Commits
Author | SHA1 | Date | |
---|---|---|---|
6a8ff0eb50 | |||
011c24b94b | |||
6fbe668284 | |||
5fc69e9992 | |||
f2b01d4a27 | |||
5164060ffc | |||
68bce8e14e | |||
6fb5a1f773 | |||
2a940c8933 | |||
0aeec8bd19 | |||
d24143d1a6 | |||
03ef799381 | |||
647e5f5601 | |||
|
c5e440ee44 | ||
|
34bec25b3d | ||
|
b1acbdd98f | ||
|
6d5f90aaac | ||
72ad6e5be0 | |||
9d1ca65f34 | |||
|
dd3f4f4b4b | ||
|
8889b846dc | ||
|
fe0e1dabfd | ||
|
e0786bdb07 | ||
4fa818f35e | |||
11b268a350 | |||
703e8d91ef | |||
de8aa295da | |||
|
232b543a35 | ||
cc63ce349a | |||
|
793337cc5b | ||
|
c5f832b44a | ||
|
024c7b76bd |
136
McBitFont/About.Designer.cs
generated
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
namespace McBitFont {
|
||||||
|
partial class About {
|
||||||
|
/// <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() {
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About));
|
||||||
|
this.lblVersion = new System.Windows.Forms.Label();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// lblVersion
|
||||||
|
//
|
||||||
|
this.lblVersion.AutoSize = true;
|
||||||
|
this.lblVersion.Location = new System.Drawing.Point(12, 189);
|
||||||
|
this.lblVersion.Name = "lblVersion";
|
||||||
|
this.lblVersion.Size = new System.Drawing.Size(63, 13);
|
||||||
|
this.lblVersion.TabIndex = 0;
|
||||||
|
this.lblVersion.Text = "Version: 1.1";
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(0, 80);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(384, 35);
|
||||||
|
this.label1.TabIndex = 1;
|
||||||
|
this.label1.Text = "McBitFont";
|
||||||
|
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.label2.Location = new System.Drawing.Point(0, 115);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(384, 25);
|
||||||
|
this.label2.TabIndex = 2;
|
||||||
|
this.label2.Text = "McFLY\'s Bit Font and Image Editor";
|
||||||
|
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// pictureBox1
|
||||||
|
//
|
||||||
|
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.pictureBox1.Image = global::McBitFont.Properties.Resources.icon_64;
|
||||||
|
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.pictureBox1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 3);
|
||||||
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
|
this.pictureBox1.Size = new System.Drawing.Size(384, 75);
|
||||||
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
|
this.pictureBox1.TabIndex = 3;
|
||||||
|
this.pictureBox1.TabStop = false;
|
||||||
|
//
|
||||||
|
// linkLabel1
|
||||||
|
//
|
||||||
|
this.linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
|
||||||
|
this.linkLabel1.Location = new System.Drawing.Point(0, 140);
|
||||||
|
this.linkLabel1.Name = "linkLabel1";
|
||||||
|
this.linkLabel1.Size = new System.Drawing.Size(384, 23);
|
||||||
|
this.linkLabel1.TabIndex = 4;
|
||||||
|
this.linkLabel1.Text = "mcfly@mcflyer.ru";
|
||||||
|
this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||||
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||||
|
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.button1.Location = new System.Drawing.Point(146, 175);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(89, 27);
|
||||||
|
this.button1.TabIndex = 5;
|
||||||
|
this.button1.Text = "OK";
|
||||||
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// About
|
||||||
|
//
|
||||||
|
this.AcceptButton = this.button1;
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(384, 211);
|
||||||
|
this.Controls.Add(this.button1);
|
||||||
|
this.Controls.Add(this.linkLabel1);
|
||||||
|
this.Controls.Add(this.pictureBox1);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.lblVersion);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.Name = "About";
|
||||||
|
this.ShowInTaskbar = false;
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
|
this.Text = "About";
|
||||||
|
this.Load += new System.EventHandler(this.About_Load);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label lblVersion;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
|
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
}
|
||||||
|
}
|
25
McBitFont/About.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
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 About : Form {
|
||||||
|
public About() {
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void About_Load(object sender, EventArgs e) {
|
||||||
|
lblVersion.Text = "Version: v" + MainForm.version;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) {
|
||||||
|
System.Diagnostics.Process.Start("mailto:mcfly@mcflyer.ru");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
140
McBitFont/About.resx
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
<?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>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAQAMAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAA1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTXW1tbW1tbW
|
||||||
|
1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAADW1tbW1tbW
|
||||||
|
1tbW1tbW1tbW1tYAAAAAAADW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAADW1tbW1tbW1tbW1tbW1tbW1tYA
|
||||||
|
AAAAAADW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAADW1tbW1tbW1tbW1tbW1tbW1tYAAAAAAADW1tbW1tY1
|
||||||
|
NTU1NTXW1tbW1tYAAAAAAADW1tbW1tbW1tbW1tbW1tbW1tYAAAAAAADW1tbW1tY1NTU1NTXW1tbW1tYA
|
||||||
|
AAAAAADW1tbW1tbW1tbW1tbW1tbW1tYAAAAAAADW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAADW1tbW1tYA
|
||||||
|
AAAAAADW1tbW1tYAAAAAAADW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAADW1tbW1tYAAAAAAADW1tbW1tYA
|
||||||
|
AAAAAADW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAADW1tYAAAAAAAAAAAAAAADW1tYAAAAAAADW1tbW1tY1
|
||||||
|
NTU1NTXW1tbW1tYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADW1tbW1tY1NTU1NTXW1tbW1tYA
|
||||||
|
AAAAAAAAAAAAAADW1tbW1tYAAAAAAAAAAAAAAADW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAAAAAADW1tbW
|
||||||
|
1tbW1tbW1tYAAAAAAAAAAADW1tbW1tY1NTU1NTXW1tbW1tYAAAAAAADW1tbW1tbW1tbW1tbW1tbW1tYA
|
||||||
|
AAAAAADW1tbW1tY1NTU1NTXW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tY1
|
||||||
|
NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTUAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
@@ -1,6 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
12
McBitFont/Export.Designer.cs
generated
@@ -23,6 +23,7 @@
|
|||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent() {
|
private void InitializeComponent() {
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
this.txtOutput = new System.Windows.Forms.RichTextBox();
|
this.txtOutput = new System.Windows.Forms.RichTextBox();
|
||||||
this.gbScan = new System.Windows.Forms.GroupBox();
|
this.gbScan = new System.Windows.Forms.GroupBox();
|
||||||
this.cbVDir = new System.Windows.Forms.ComboBox();
|
this.cbVDir = new System.Windows.Forms.ComboBox();
|
||||||
@@ -43,6 +44,7 @@
|
|||||||
this.cbFormat = new System.Windows.Forms.ComboBox();
|
this.cbFormat = new System.Windows.Forms.ComboBox();
|
||||||
this.btnGenerate = new System.Windows.Forms.Button();
|
this.btnGenerate = new System.Windows.Forms.Button();
|
||||||
this.btnClose = new System.Windows.Forms.Button();
|
this.btnClose = new System.Windows.Forms.Button();
|
||||||
|
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.gbScan.SuspendLayout();
|
this.gbScan.SuspendLayout();
|
||||||
this.gbOptions.SuspendLayout();
|
this.gbOptions.SuspendLayout();
|
||||||
this.gbNumbers.SuspendLayout();
|
this.gbNumbers.SuspendLayout();
|
||||||
@@ -138,6 +140,7 @@
|
|||||||
this.cbZeroes.Size = new System.Drawing.Size(98, 17);
|
this.cbZeroes.Size = new System.Drawing.Size(98, 17);
|
||||||
this.cbZeroes.TabIndex = 2;
|
this.cbZeroes.TabIndex = 2;
|
||||||
this.cbZeroes.Text = "Leading zeroes";
|
this.cbZeroes.Text = "Leading zeroes";
|
||||||
|
this.toolTip1.SetToolTip(this.cbZeroes, "Add leading zeroes: 0x01 / 0x1");
|
||||||
this.cbZeroes.UseVisualStyleBackColor = true;
|
this.cbZeroes.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// cbHeader
|
// cbHeader
|
||||||
@@ -150,6 +153,7 @@
|
|||||||
this.cbHeader.Size = new System.Drawing.Size(86, 17);
|
this.cbHeader.Size = new System.Drawing.Size(86, 17);
|
||||||
this.cbHeader.TabIndex = 1;
|
this.cbHeader.TabIndex = 1;
|
||||||
this.cbHeader.Text = "Meta header";
|
this.cbHeader.Text = "Meta header";
|
||||||
|
this.toolTip1.SetToolTip(this.cbHeader, "Add meta header with meta data");
|
||||||
this.cbHeader.UseVisualStyleBackColor = true;
|
this.cbHeader.UseVisualStyleBackColor = true;
|
||||||
this.cbHeader.CheckedChanged += new System.EventHandler(this.cbFormat_SelectedIndexChanged);
|
this.cbHeader.CheckedChanged += new System.EventHandler(this.cbFormat_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
@@ -163,6 +167,7 @@
|
|||||||
this.cbComments.Size = new System.Drawing.Size(75, 17);
|
this.cbComments.Size = new System.Drawing.Size(75, 17);
|
||||||
this.cbComments.TabIndex = 0;
|
this.cbComments.TabIndex = 0;
|
||||||
this.cbComments.Text = "Comments";
|
this.cbComments.Text = "Comments";
|
||||||
|
this.toolTip1.SetToolTip(this.cbComments, "Add descriptive comments");
|
||||||
this.cbComments.UseVisualStyleBackColor = true;
|
this.cbComments.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// gbNumbers
|
// gbNumbers
|
||||||
@@ -309,6 +314,12 @@
|
|||||||
this.btnClose.Text = "Close";
|
this.btnClose.Text = "Close";
|
||||||
this.btnClose.UseVisualStyleBackColor = true;
|
this.btnClose.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// toolTip1
|
||||||
|
//
|
||||||
|
this.toolTip1.AutoPopDelay = 10000;
|
||||||
|
this.toolTip1.InitialDelay = 500;
|
||||||
|
this.toolTip1.ReshowDelay = 100;
|
||||||
|
//
|
||||||
// Export
|
// Export
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
@@ -362,5 +373,6 @@
|
|||||||
private System.Windows.Forms.Button btnGenerate;
|
private System.Windows.Forms.Button btnGenerate;
|
||||||
private System.Windows.Forms.Button btnClose;
|
private System.Windows.Forms.Button btnClose;
|
||||||
private System.Windows.Forms.CheckBox cbZeroes;
|
private System.Windows.Forms.CheckBox cbZeroes;
|
||||||
|
private System.Windows.Forms.ToolTip toolTip1;
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -88,7 +88,7 @@ namespace McBitFont {
|
|||||||
int imin, jmin, imax, jmax, idir, jdir;
|
int imin, jmin, imax, jmax, idir, jdir;
|
||||||
|
|
||||||
if (com) {
|
if (com) {
|
||||||
//Header comments
|
// Header comments
|
||||||
output += comments["header"];
|
output += comments["header"];
|
||||||
output += comments["scan_order"] + cbOrder.Text + "\n";
|
output += comments["scan_order"] + cbOrder.Text + "\n";
|
||||||
output += comments["scan_hdir"] + cbHDir.Text + "\n";
|
output += comments["scan_hdir"] + cbHDir.Text + "\n";
|
||||||
@@ -107,7 +107,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Figure out mins and maxes
|
// Figure out mins and maxes
|
||||||
if (cbOrder.SelectedIndex == 0) {
|
if (cbOrder.SelectedIndex == 0) {
|
||||||
if (cbHDir.SelectedIndex == 0) {
|
if (cbHDir.SelectedIndex == 0) {
|
||||||
// Columns; Left to right
|
// Columns; Left to right
|
||||||
@@ -342,7 +342,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
if (lines == 1) {
|
if (lines == 1) {
|
||||||
// "1 symbol per line" - closing line
|
// "1 symbol per line" - closing line
|
||||||
if (!f.Equals(flast)) output += ",";
|
if (!f.Equals(flast) && f.width > 0) output += ",";
|
||||||
if (com && fcount > 1) {
|
if (com && fcount > 1) {
|
||||||
//...with a comment
|
//...with a comment
|
||||||
output += " // " + f.code.ToString() + " --> " + mainForm.decodeSymbol(f.code);
|
output += " // " + f.code.ToString() + " --> " + mainForm.decodeSymbol(f.code);
|
||||||
|
@@ -117,4 +117,10 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</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>
|
||||||
|
<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>
|
</root>
|
253
McBitFont/Form1.Designer.cs
generated
@@ -34,6 +34,7 @@
|
|||||||
this.cbZoom = new System.Windows.Forms.ComboBox();
|
this.cbZoom = new System.Windows.Forms.ComboBox();
|
||||||
this.label4 = new System.Windows.Forms.Label();
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
this.panel1 = new System.Windows.Forms.Panel();
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.btnClear = new System.Windows.Forms.Button();
|
||||||
this.btnMirrorY = new System.Windows.Forms.Button();
|
this.btnMirrorY = new System.Windows.Forms.Button();
|
||||||
this.btnMirrorX = new System.Windows.Forms.Button();
|
this.btnMirrorX = new System.Windows.Forms.Button();
|
||||||
this.btnInvert = new System.Windows.Forms.Button();
|
this.btnInvert = new System.Windows.Forms.Button();
|
||||||
@@ -52,12 +53,19 @@
|
|||||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.saveDEVToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.prependSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.appendSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.removeSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.removeSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.applyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.applyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.ClearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.shiftUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.shiftUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.shiftDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.shiftDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.shiftLeftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.shiftLeftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
@@ -69,8 +77,11 @@
|
|||||||
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.dlgSave = new System.Windows.Forms.SaveFileDialog();
|
this.dlgSave = new System.Windows.Forms.SaveFileDialog();
|
||||||
this.dlgOpen = new System.Windows.Forms.OpenFileDialog();
|
this.dlgOpen = new System.Windows.Forms.OpenFileDialog();
|
||||||
this.prependSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.btnBaseline = new System.Windows.Forms.Button();
|
||||||
this.appendSymbolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||||
|
this.chkLeftSide = new System.Windows.Forms.CheckBox();
|
||||||
|
this.chkTopSide = new System.Windows.Forms.CheckBox();
|
||||||
|
this.openDEVToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.nudX)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.nudX)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.nudY)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.nudY)).BeginInit();
|
||||||
this.panel1.SuspendLayout();
|
this.panel1.SuspendLayout();
|
||||||
@@ -96,20 +107,16 @@
|
|||||||
// nudX
|
// nudX
|
||||||
//
|
//
|
||||||
this.nudX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.nudX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.nudX.Location = new System.Drawing.Point(717, 27);
|
this.nudX.Location = new System.Drawing.Point(666, 27);
|
||||||
this.nudX.Maximum = new decimal(new int[] {
|
this.nudX.Maximum = new decimal(new int[] {
|
||||||
255,
|
255,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.nudX.Minimum = new decimal(new int[] {
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0});
|
|
||||||
this.nudX.Name = "nudX";
|
this.nudX.Name = "nudX";
|
||||||
this.nudX.Size = new System.Drawing.Size(55, 20);
|
this.nudX.Size = new System.Drawing.Size(40, 20);
|
||||||
this.nudX.TabIndex = 1;
|
this.nudX.TabIndex = 1;
|
||||||
|
this.toolTip1.SetToolTip(this.nudX, "Symbol width");
|
||||||
this.nudX.Value = new decimal(new int[] {
|
this.nudX.Value = new decimal(new int[] {
|
||||||
32,
|
32,
|
||||||
0,
|
0,
|
||||||
@@ -120,7 +127,7 @@
|
|||||||
// nudY
|
// nudY
|
||||||
//
|
//
|
||||||
this.nudY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.nudY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.nudY.Location = new System.Drawing.Point(717, 53);
|
this.nudY.Location = new System.Drawing.Point(666, 49);
|
||||||
this.nudY.Maximum = new decimal(new int[] {
|
this.nudY.Maximum = new decimal(new int[] {
|
||||||
255,
|
255,
|
||||||
0,
|
0,
|
||||||
@@ -132,8 +139,9 @@
|
|||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.nudY.Name = "nudY";
|
this.nudY.Name = "nudY";
|
||||||
this.nudY.Size = new System.Drawing.Size(55, 20);
|
this.nudY.Size = new System.Drawing.Size(40, 20);
|
||||||
this.nudY.TabIndex = 2;
|
this.nudY.TabIndex = 2;
|
||||||
|
this.toolTip1.SetToolTip(this.nudY, "Symbol height");
|
||||||
this.nudY.Value = new decimal(new int[] {
|
this.nudY.Value = new decimal(new int[] {
|
||||||
32,
|
32,
|
||||||
0,
|
0,
|
||||||
@@ -145,7 +153,7 @@
|
|||||||
//
|
//
|
||||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.label1.AutoSize = true;
|
this.label1.AutoSize = true;
|
||||||
this.label1.Location = new System.Drawing.Point(673, 29);
|
this.label1.Location = new System.Drawing.Point(622, 29);
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(38, 13);
|
this.label1.Size = new System.Drawing.Size(38, 13);
|
||||||
this.label1.TabIndex = 3;
|
this.label1.TabIndex = 3;
|
||||||
@@ -155,7 +163,7 @@
|
|||||||
//
|
//
|
||||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.label2.AutoSize = true;
|
this.label2.AutoSize = true;
|
||||||
this.label2.Location = new System.Drawing.Point(670, 55);
|
this.label2.Location = new System.Drawing.Point(619, 51);
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(41, 13);
|
this.label2.Size = new System.Drawing.Size(41, 13);
|
||||||
this.label2.TabIndex = 4;
|
this.label2.TabIndex = 4;
|
||||||
@@ -189,18 +197,19 @@
|
|||||||
"40",
|
"40",
|
||||||
"45",
|
"45",
|
||||||
"50"});
|
"50"});
|
||||||
this.cbZoom.Location = new System.Drawing.Point(605, 45);
|
this.cbZoom.Location = new System.Drawing.Point(554, 45);
|
||||||
this.cbZoom.Name = "cbZoom";
|
this.cbZoom.Name = "cbZoom";
|
||||||
this.cbZoom.Size = new System.Drawing.Size(59, 21);
|
this.cbZoom.Size = new System.Drawing.Size(59, 21);
|
||||||
this.cbZoom.TabIndex = 6;
|
this.cbZoom.TabIndex = 6;
|
||||||
this.cbZoom.TabStop = false;
|
this.cbZoom.TabStop = false;
|
||||||
|
this.toolTip1.SetToolTip(this.cbZoom, "Canvas zoom level");
|
||||||
this.cbZoom.SelectedIndexChanged += new System.EventHandler(this.cbZoom_SelectedIndexChanged);
|
this.cbZoom.SelectedIndexChanged += new System.EventHandler(this.cbZoom_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// label4
|
// label4
|
||||||
//
|
//
|
||||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | 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.AutoSize = true;
|
||||||
this.label4.Location = new System.Drawing.Point(602, 29);
|
this.label4.Location = new System.Drawing.Point(553, 29);
|
||||||
this.label4.Name = "label4";
|
this.label4.Name = "label4";
|
||||||
this.label4.Size = new System.Drawing.Size(62, 13);
|
this.label4.Size = new System.Drawing.Size(62, 13);
|
||||||
this.label4.TabIndex = 7;
|
this.label4.TabIndex = 7;
|
||||||
@@ -210,6 +219,7 @@
|
|||||||
//
|
//
|
||||||
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panel1.Controls.Add(this.btnClear);
|
||||||
this.panel1.Controls.Add(this.btnMirrorY);
|
this.panel1.Controls.Add(this.btnMirrorY);
|
||||||
this.panel1.Controls.Add(this.btnMirrorX);
|
this.panel1.Controls.Add(this.btnMirrorX);
|
||||||
this.panel1.Controls.Add(this.btnInvert);
|
this.panel1.Controls.Add(this.btnInvert);
|
||||||
@@ -222,6 +232,18 @@
|
|||||||
this.panel1.Size = new System.Drawing.Size(120, 121);
|
this.panel1.Size = new System.Drawing.Size(120, 121);
|
||||||
this.panel1.TabIndex = 9;
|
this.panel1.TabIndex = 9;
|
||||||
//
|
//
|
||||||
|
// btnClear
|
||||||
|
//
|
||||||
|
this.btnClear.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.btnClear.Location = new System.Drawing.Point(7, 8);
|
||||||
|
this.btnClear.Name = "btnClear";
|
||||||
|
this.btnClear.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.btnClear.TabIndex = 7;
|
||||||
|
this.btnClear.Text = "○";
|
||||||
|
this.toolTip1.SetToolTip(this.btnClear, "Clear canvas");
|
||||||
|
this.btnClear.UseVisualStyleBackColor = true;
|
||||||
|
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
|
||||||
|
//
|
||||||
// btnMirrorY
|
// btnMirrorY
|
||||||
//
|
//
|
||||||
this.btnMirrorY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
this.btnMirrorY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
@@ -230,6 +252,7 @@
|
|||||||
this.btnMirrorY.Size = new System.Drawing.Size(30, 30);
|
this.btnMirrorY.Size = new System.Drawing.Size(30, 30);
|
||||||
this.btnMirrorY.TabIndex = 6;
|
this.btnMirrorY.TabIndex = 6;
|
||||||
this.btnMirrorY.Text = "⩥";
|
this.btnMirrorY.Text = "⩥";
|
||||||
|
this.toolTip1.SetToolTip(this.btnMirrorY, "Mirror by Y axis (vertical)");
|
||||||
this.btnMirrorY.UseVisualStyleBackColor = true;
|
this.btnMirrorY.UseVisualStyleBackColor = true;
|
||||||
this.btnMirrorY.Click += new System.EventHandler(this.btnMirrorY_Click);
|
this.btnMirrorY.Click += new System.EventHandler(this.btnMirrorY_Click);
|
||||||
//
|
//
|
||||||
@@ -241,6 +264,7 @@
|
|||||||
this.btnMirrorX.Size = new System.Drawing.Size(30, 30);
|
this.btnMirrorX.Size = new System.Drawing.Size(30, 30);
|
||||||
this.btnMirrorX.TabIndex = 5;
|
this.btnMirrorX.TabIndex = 5;
|
||||||
this.btnMirrorX.Text = "◮";
|
this.btnMirrorX.Text = "◮";
|
||||||
|
this.toolTip1.SetToolTip(this.btnMirrorX, "Mirror by X axis (horizontal)");
|
||||||
this.btnMirrorX.UseVisualStyleBackColor = true;
|
this.btnMirrorX.UseVisualStyleBackColor = true;
|
||||||
this.btnMirrorX.Click += new System.EventHandler(this.btnMirrorX_Click);
|
this.btnMirrorX.Click += new System.EventHandler(this.btnMirrorX_Click);
|
||||||
//
|
//
|
||||||
@@ -252,6 +276,7 @@
|
|||||||
this.btnInvert.Size = new System.Drawing.Size(30, 30);
|
this.btnInvert.Size = new System.Drawing.Size(30, 30);
|
||||||
this.btnInvert.TabIndex = 4;
|
this.btnInvert.TabIndex = 4;
|
||||||
this.btnInvert.Text = "◪";
|
this.btnInvert.Text = "◪";
|
||||||
|
this.toolTip1.SetToolTip(this.btnInvert, "Invert pixel colors");
|
||||||
this.btnInvert.UseVisualStyleBackColor = true;
|
this.btnInvert.UseVisualStyleBackColor = true;
|
||||||
this.btnInvert.Click += new System.EventHandler(this.btnInvert_Click);
|
this.btnInvert.Click += new System.EventHandler(this.btnInvert_Click);
|
||||||
//
|
//
|
||||||
@@ -263,6 +288,7 @@
|
|||||||
this.btnShiftDown.Size = new System.Drawing.Size(30, 30);
|
this.btnShiftDown.Size = new System.Drawing.Size(30, 30);
|
||||||
this.btnShiftDown.TabIndex = 3;
|
this.btnShiftDown.TabIndex = 3;
|
||||||
this.btnShiftDown.Text = "▼";
|
this.btnShiftDown.Text = "▼";
|
||||||
|
this.toolTip1.SetToolTip(this.btnShiftDown, "Shift pixels down");
|
||||||
this.btnShiftDown.UseVisualStyleBackColor = true;
|
this.btnShiftDown.UseVisualStyleBackColor = true;
|
||||||
this.btnShiftDown.Click += new System.EventHandler(this.btnShiftDown_Click);
|
this.btnShiftDown.Click += new System.EventHandler(this.btnShiftDown_Click);
|
||||||
//
|
//
|
||||||
@@ -274,6 +300,7 @@
|
|||||||
this.btnShiftUp.Size = new System.Drawing.Size(30, 30);
|
this.btnShiftUp.Size = new System.Drawing.Size(30, 30);
|
||||||
this.btnShiftUp.TabIndex = 2;
|
this.btnShiftUp.TabIndex = 2;
|
||||||
this.btnShiftUp.Text = "▲";
|
this.btnShiftUp.Text = "▲";
|
||||||
|
this.toolTip1.SetToolTip(this.btnShiftUp, "Shift pixels up");
|
||||||
this.btnShiftUp.UseVisualStyleBackColor = true;
|
this.btnShiftUp.UseVisualStyleBackColor = true;
|
||||||
this.btnShiftUp.Click += new System.EventHandler(this.btnShiftUp_Click);
|
this.btnShiftUp.Click += new System.EventHandler(this.btnShiftUp_Click);
|
||||||
//
|
//
|
||||||
@@ -285,6 +312,7 @@
|
|||||||
this.btnShiftRight.Size = new System.Drawing.Size(30, 30);
|
this.btnShiftRight.Size = new System.Drawing.Size(30, 30);
|
||||||
this.btnShiftRight.TabIndex = 1;
|
this.btnShiftRight.TabIndex = 1;
|
||||||
this.btnShiftRight.Text = "▶";
|
this.btnShiftRight.Text = "▶";
|
||||||
|
this.toolTip1.SetToolTip(this.btnShiftRight, "Shift pixels right");
|
||||||
this.btnShiftRight.UseVisualStyleBackColor = true;
|
this.btnShiftRight.UseVisualStyleBackColor = true;
|
||||||
this.btnShiftRight.Click += new System.EventHandler(this.btnShiftRight_Click);
|
this.btnShiftRight.Click += new System.EventHandler(this.btnShiftRight_Click);
|
||||||
//
|
//
|
||||||
@@ -296,17 +324,19 @@
|
|||||||
this.btnShiftLeft.Size = new System.Drawing.Size(30, 30);
|
this.btnShiftLeft.Size = new System.Drawing.Size(30, 30);
|
||||||
this.btnShiftLeft.TabIndex = 0;
|
this.btnShiftLeft.TabIndex = 0;
|
||||||
this.btnShiftLeft.Text = "◀";
|
this.btnShiftLeft.Text = "◀";
|
||||||
|
this.toolTip1.SetToolTip(this.btnShiftLeft, "Shift pixels left");
|
||||||
this.btnShiftLeft.UseVisualStyleBackColor = true;
|
this.btnShiftLeft.UseVisualStyleBackColor = true;
|
||||||
this.btnShiftLeft.Click += new System.EventHandler(this.btnShiftLeft_Click);
|
this.btnShiftLeft.Click += new System.EventHandler(this.btnShiftLeft_Click);
|
||||||
//
|
//
|
||||||
// btnExport
|
// btnExport
|
||||||
//
|
//
|
||||||
this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnExport.Location = new System.Drawing.Point(696, 99);
|
this.btnExport.Location = new System.Drawing.Point(696, 109);
|
||||||
this.btnExport.Name = "btnExport";
|
this.btnExport.Name = "btnExport";
|
||||||
this.btnExport.Size = new System.Drawing.Size(75, 23);
|
this.btnExport.Size = new System.Drawing.Size(75, 23);
|
||||||
this.btnExport.TabIndex = 10;
|
this.btnExport.TabIndex = 10;
|
||||||
this.btnExport.Text = "Export";
|
this.btnExport.Text = "Export";
|
||||||
|
this.toolTip1.SetToolTip(this.btnExport, "Configure and export data");
|
||||||
this.btnExport.UseVisualStyleBackColor = true;
|
this.btnExport.UseVisualStyleBackColor = true;
|
||||||
this.btnExport.Click += new System.EventHandler(this.button1_Click);
|
this.btnExport.Click += new System.EventHandler(this.button1_Click);
|
||||||
//
|
//
|
||||||
@@ -341,11 +371,12 @@
|
|||||||
// btnApply
|
// btnApply
|
||||||
//
|
//
|
||||||
this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnApply.Location = new System.Drawing.Point(589, 99);
|
this.btnApply.Location = new System.Drawing.Point(615, 109);
|
||||||
this.btnApply.Name = "btnApply";
|
this.btnApply.Name = "btnApply";
|
||||||
this.btnApply.Size = new System.Drawing.Size(75, 23);
|
this.btnApply.Size = new System.Drawing.Size(75, 23);
|
||||||
this.btnApply.TabIndex = 13;
|
this.btnApply.TabIndex = 13;
|
||||||
this.btnApply.Text = "Apply";
|
this.btnApply.Text = "Apply";
|
||||||
|
this.toolTip1.SetToolTip(this.btnApply, "Apply changes made to the symbol");
|
||||||
this.btnApply.UseVisualStyleBackColor = true;
|
this.btnApply.UseVisualStyleBackColor = true;
|
||||||
this.btnApply.Click += new System.EventHandler(this.button2_Click);
|
this.btnApply.Click += new System.EventHandler(this.button2_Click);
|
||||||
//
|
//
|
||||||
@@ -374,7 +405,7 @@
|
|||||||
//
|
//
|
||||||
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.label5.AutoSize = true;
|
this.label5.AutoSize = true;
|
||||||
this.label5.Location = new System.Drawing.Point(640, 71);
|
this.label5.Location = new System.Drawing.Point(554, 114);
|
||||||
this.label5.Name = "label5";
|
this.label5.Name = "label5";
|
||||||
this.label5.Size = new System.Drawing.Size(24, 13);
|
this.label5.Size = new System.Drawing.Size(24, 13);
|
||||||
this.label5.TabIndex = 16;
|
this.label5.TabIndex = 16;
|
||||||
@@ -399,7 +430,10 @@
|
|||||||
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.newToolStripMenuItem,
|
this.newToolStripMenuItem,
|
||||||
this.openToolStripMenuItem,
|
this.openToolStripMenuItem,
|
||||||
|
this.openDEVToolStripMenuItem,
|
||||||
|
this.saveDEVToolStripMenuItem,
|
||||||
this.saveToolStripMenuItem,
|
this.saveToolStripMenuItem,
|
||||||
|
this.saveAsToolStripMenuItem,
|
||||||
this.exitToolStripMenuItem});
|
this.exitToolStripMenuItem});
|
||||||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
||||||
@@ -411,7 +445,7 @@
|
|||||||
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
|
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
|
||||||
this.newToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+N";
|
this.newToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+N";
|
||||||
this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
|
this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
|
||||||
this.newToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.newToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||||
this.newToolStripMenuItem.Text = "New";
|
this.newToolStripMenuItem.Text = "New";
|
||||||
this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
|
this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
@@ -421,30 +455,53 @@
|
|||||||
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
|
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
|
||||||
this.openToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+O";
|
this.openToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+O";
|
||||||
this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
|
this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
|
||||||
this.openToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.openToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||||
this.openToolStripMenuItem.Text = "Open";
|
this.openToolStripMenuItem.Text = "Open";
|
||||||
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
|
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// saveDEVToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.saveDEVToolStripMenuItem.Name = "saveDEVToolStripMenuItem";
|
||||||
|
this.saveDEVToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||||
|
this.saveDEVToolStripMenuItem.Text = "Save as (new format)";
|
||||||
|
this.saveDEVToolStripMenuItem.Click += new System.EventHandler(this.saveJSONToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// saveToolStripMenuItem
|
// saveToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.saveToolStripMenuItem.Image = global::McBitFont.Properties.Resources.save;
|
this.saveToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Famfamfam_Silk_Disk_16;
|
||||||
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||||
this.saveToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+S";
|
this.saveToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+S";
|
||||||
this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
|
this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
|
||||||
this.saveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.saveToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||||
this.saveToolStripMenuItem.Text = "Save as";
|
this.saveToolStripMenuItem.Text = "Save";
|
||||||
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
|
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click_1);
|
||||||
|
//
|
||||||
|
// saveAsToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.saveAsToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Famfamfam_Silk_Disk_16;
|
||||||
|
this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
|
||||||
|
this.saveAsToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+S";
|
||||||
|
this.saveAsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
||||||
|
| System.Windows.Forms.Keys.S)));
|
||||||
|
this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||||
|
this.saveAsToolStripMenuItem.Text = "Save as";
|
||||||
|
this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// exitToolStripMenuItem
|
// exitToolStripMenuItem
|
||||||
//
|
//
|
||||||
|
this.exitToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Famfamfam_Silk_Door_out_16;
|
||||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.exitToolStripMenuItem.ShortcutKeyDisplayString = "Alt+X";
|
||||||
|
this.exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.X)));
|
||||||
|
this.exitToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||||
this.exitToolStripMenuItem.Text = "Exit";
|
this.exitToolStripMenuItem.Text = "Exit";
|
||||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// editToolStripMenuItem
|
// editToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.copyToolStripMenuItem,
|
||||||
|
this.pasteToolStripMenuItem,
|
||||||
this.prependSymbolToolStripMenuItem,
|
this.prependSymbolToolStripMenuItem,
|
||||||
this.appendSymbolToolStripMenuItem,
|
this.appendSymbolToolStripMenuItem,
|
||||||
this.removeSymbolToolStripMenuItem,
|
this.removeSymbolToolStripMenuItem,
|
||||||
@@ -453,25 +510,75 @@
|
|||||||
this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
|
this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
|
||||||
this.editToolStripMenuItem.Text = "Edit";
|
this.editToolStripMenuItem.Text = "Edit";
|
||||||
//
|
//
|
||||||
|
// copyToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.copyToolStripMenuItem.Enabled = false;
|
||||||
|
this.copyToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Famfamfam_Silk_Page_copy_16;
|
||||||
|
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
|
||||||
|
this.copyToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+C";
|
||||||
|
this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
|
||||||
|
this.copyToolStripMenuItem.Size = new System.Drawing.Size(212, 22);
|
||||||
|
this.copyToolStripMenuItem.Text = "Copy";
|
||||||
|
this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// pasteToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.pasteToolStripMenuItem.Enabled = false;
|
||||||
|
this.pasteToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Famfamfam_Silk_Page_paste_16;
|
||||||
|
this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
|
||||||
|
this.pasteToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+V";
|
||||||
|
this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
|
||||||
|
this.pasteToolStripMenuItem.Size = new System.Drawing.Size(212, 22);
|
||||||
|
this.pasteToolStripMenuItem.Text = "Paste";
|
||||||
|
this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// prependSymbolToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.prependSymbolToolStripMenuItem.Enabled = false;
|
||||||
|
this.prependSymbolToolStripMenuItem.Image = global::McBitFont.Properties.Resources.action_add;
|
||||||
|
this.prependSymbolToolStripMenuItem.Name = "prependSymbolToolStripMenuItem";
|
||||||
|
this.prependSymbolToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Ins";
|
||||||
|
this.prependSymbolToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Insert)));
|
||||||
|
this.prependSymbolToolStripMenuItem.Size = new System.Drawing.Size(212, 22);
|
||||||
|
this.prependSymbolToolStripMenuItem.Text = "Prepend symbol";
|
||||||
|
this.prependSymbolToolStripMenuItem.Click += new System.EventHandler(this.prependSymbolToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// appendSymbolToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.appendSymbolToolStripMenuItem.Enabled = false;
|
||||||
|
this.appendSymbolToolStripMenuItem.Image = global::McBitFont.Properties.Resources.action_add;
|
||||||
|
this.appendSymbolToolStripMenuItem.Name = "appendSymbolToolStripMenuItem";
|
||||||
|
this.appendSymbolToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+End";
|
||||||
|
this.appendSymbolToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.End)));
|
||||||
|
this.appendSymbolToolStripMenuItem.Size = new System.Drawing.Size(212, 22);
|
||||||
|
this.appendSymbolToolStripMenuItem.Text = "Append symbol";
|
||||||
|
this.appendSymbolToolStripMenuItem.Click += new System.EventHandler(this.prependSymbolToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// removeSymbolToolStripMenuItem
|
// removeSymbolToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.removeSymbolToolStripMenuItem.Enabled = false;
|
this.removeSymbolToolStripMenuItem.Enabled = false;
|
||||||
this.removeSymbolToolStripMenuItem.Image = global::McBitFont.Properties.Resources.action_remove;
|
this.removeSymbolToolStripMenuItem.Image = global::McBitFont.Properties.Resources.action_remove;
|
||||||
this.removeSymbolToolStripMenuItem.Name = "removeSymbolToolStripMenuItem";
|
this.removeSymbolToolStripMenuItem.Name = "removeSymbolToolStripMenuItem";
|
||||||
this.removeSymbolToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.removeSymbolToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Del";
|
||||||
|
this.removeSymbolToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Delete)));
|
||||||
|
this.removeSymbolToolStripMenuItem.Size = new System.Drawing.Size(212, 22);
|
||||||
this.removeSymbolToolStripMenuItem.Text = "Remove symbol";
|
this.removeSymbolToolStripMenuItem.Text = "Remove symbol";
|
||||||
this.removeSymbolToolStripMenuItem.Click += new System.EventHandler(this.removeSymbolToolStripMenuItem_Click);
|
this.removeSymbolToolStripMenuItem.Click += new System.EventHandler(this.removeSymbolToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// applyToolStripMenuItem
|
// applyToolStripMenuItem
|
||||||
//
|
//
|
||||||
|
this.applyToolStripMenuItem.Image = global::McBitFont.Properties.Resources.action_check;
|
||||||
this.applyToolStripMenuItem.Name = "applyToolStripMenuItem";
|
this.applyToolStripMenuItem.Name = "applyToolStripMenuItem";
|
||||||
this.applyToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.applyToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Space";
|
||||||
|
this.applyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Space)));
|
||||||
|
this.applyToolStripMenuItem.Size = new System.Drawing.Size(212, 22);
|
||||||
this.applyToolStripMenuItem.Text = "Apply";
|
this.applyToolStripMenuItem.Text = "Apply";
|
||||||
this.applyToolStripMenuItem.Click += new System.EventHandler(this.button2_Click);
|
this.applyToolStripMenuItem.Click += new System.EventHandler(this.button2_Click);
|
||||||
//
|
//
|
||||||
// toolsToolStripMenuItem
|
// toolsToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.ClearToolStripMenuItem,
|
||||||
this.shiftUpToolStripMenuItem,
|
this.shiftUpToolStripMenuItem,
|
||||||
this.shiftDownToolStripMenuItem,
|
this.shiftDownToolStripMenuItem,
|
||||||
this.shiftLeftToolStripMenuItem,
|
this.shiftLeftToolStripMenuItem,
|
||||||
@@ -481,9 +588,18 @@
|
|||||||
this.mirrorYToolStripMenuItem,
|
this.mirrorYToolStripMenuItem,
|
||||||
this.exportToolStripMenuItem});
|
this.exportToolStripMenuItem});
|
||||||
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
|
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
|
||||||
this.toolsToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
|
this.toolsToolStripMenuItem.Size = new System.Drawing.Size(47, 20);
|
||||||
this.toolsToolStripMenuItem.Text = "Tools";
|
this.toolsToolStripMenuItem.Text = "Tools";
|
||||||
//
|
//
|
||||||
|
// ClearToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.ClearToolStripMenuItem.Name = "ClearToolStripMenuItem";
|
||||||
|
this.ClearToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+W";
|
||||||
|
this.ClearToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W)));
|
||||||
|
this.ClearToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
|
||||||
|
this.ClearToolStripMenuItem.Text = "Clear canvas";
|
||||||
|
this.ClearToolStripMenuItem.Click += new System.EventHandler(this.btnClear_Click);
|
||||||
|
//
|
||||||
// shiftUpToolStripMenuItem
|
// shiftUpToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.shiftUpToolStripMenuItem.Image = global::McBitFont.Properties.Resources.arrow_top;
|
this.shiftUpToolStripMenuItem.Image = global::McBitFont.Properties.Resources.arrow_top;
|
||||||
@@ -526,6 +642,7 @@
|
|||||||
//
|
//
|
||||||
// invertToolStripMenuItem
|
// invertToolStripMenuItem
|
||||||
//
|
//
|
||||||
|
this.invertToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Ionic_Ionicons_Invert_mode_outline_16;
|
||||||
this.invertToolStripMenuItem.Name = "invertToolStripMenuItem";
|
this.invertToolStripMenuItem.Name = "invertToolStripMenuItem";
|
||||||
this.invertToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+I";
|
this.invertToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+I";
|
||||||
this.invertToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I)));
|
this.invertToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I)));
|
||||||
@@ -535,6 +652,7 @@
|
|||||||
//
|
//
|
||||||
// mirrorXToolStripMenuItem
|
// mirrorXToolStripMenuItem
|
||||||
//
|
//
|
||||||
|
this.mirrorXToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Famfamfam_Silk_Shape_flip_horizontal_16;
|
||||||
this.mirrorXToolStripMenuItem.Name = "mirrorXToolStripMenuItem";
|
this.mirrorXToolStripMenuItem.Name = "mirrorXToolStripMenuItem";
|
||||||
this.mirrorXToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+X";
|
this.mirrorXToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+X";
|
||||||
this.mirrorXToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
|
this.mirrorXToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
|
||||||
@@ -544,6 +662,7 @@
|
|||||||
//
|
//
|
||||||
// mirrorYToolStripMenuItem
|
// mirrorYToolStripMenuItem
|
||||||
//
|
//
|
||||||
|
this.mirrorYToolStripMenuItem.Image = global::McBitFont.Properties.Resources.Famfamfam_Silk_Shape_flip_vertical_16;
|
||||||
this.mirrorYToolStripMenuItem.Name = "mirrorYToolStripMenuItem";
|
this.mirrorYToolStripMenuItem.Name = "mirrorYToolStripMenuItem";
|
||||||
this.mirrorYToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Y";
|
this.mirrorYToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Y";
|
||||||
this.mirrorYToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
|
this.mirrorYToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
|
||||||
@@ -562,44 +681,77 @@
|
|||||||
//
|
//
|
||||||
// aboutToolStripMenuItem
|
// aboutToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.aboutToolStripMenuItem.Enabled = false;
|
|
||||||
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
||||||
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(52, 20);
|
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(52, 20);
|
||||||
this.aboutToolStripMenuItem.Text = "About";
|
this.aboutToolStripMenuItem.Text = "About";
|
||||||
|
this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// dlgSave
|
// dlgSave
|
||||||
//
|
//
|
||||||
this.dlgSave.DefaultExt = "mbf";
|
this.dlgSave.DefaultExt = "mbf";
|
||||||
this.dlgSave.Filter = "McBitFont files|*.mbf|All files|*.*";
|
this.dlgSave.Filter = "McBitFont files|*.mbf|McBitFont new format|*.mbfont|All files|*.*";
|
||||||
//
|
//
|
||||||
// dlgOpen
|
// dlgOpen
|
||||||
//
|
//
|
||||||
this.dlgOpen.DefaultExt = "mbf";
|
this.dlgOpen.DefaultExt = "mbf";
|
||||||
this.dlgOpen.Filter = "McBitFont files|*.mbf|All files|*.*";
|
this.dlgOpen.Filter = "McBitFont files|*.mbf|All files|*.*";
|
||||||
//
|
//
|
||||||
// prependSymbolToolStripMenuItem
|
// btnBaseline
|
||||||
//
|
//
|
||||||
this.prependSymbolToolStripMenuItem.Enabled = false;
|
this.btnBaseline.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.prependSymbolToolStripMenuItem.Image = global::McBitFont.Properties.Resources.action_add;
|
this.btnBaseline.Location = new System.Drawing.Point(615, 80);
|
||||||
this.prependSymbolToolStripMenuItem.Name = "prependSymbolToolStripMenuItem";
|
this.btnBaseline.Name = "btnBaseline";
|
||||||
this.prependSymbolToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.btnBaseline.Size = new System.Drawing.Size(75, 23);
|
||||||
this.prependSymbolToolStripMenuItem.Text = "Prepend symbol";
|
this.btnBaseline.TabIndex = 18;
|
||||||
this.prependSymbolToolStripMenuItem.Click += new System.EventHandler(this.prependSymbolToolStripMenuItem_Click);
|
this.btnBaseline.Text = "Baseline";
|
||||||
|
this.toolTip1.SetToolTip(this.btnBaseline, "Set irtual base line for the font");
|
||||||
|
this.btnBaseline.UseVisualStyleBackColor = true;
|
||||||
|
this.btnBaseline.Click += new System.EventHandler(this.btnBaseline_Click);
|
||||||
//
|
//
|
||||||
// appendSymbolToolStripMenuItem
|
// toolTip1
|
||||||
//
|
//
|
||||||
this.appendSymbolToolStripMenuItem.Enabled = false;
|
this.toolTip1.AutoPopDelay = 10000;
|
||||||
this.appendSymbolToolStripMenuItem.Image = global::McBitFont.Properties.Resources.action_add;
|
this.toolTip1.InitialDelay = 500;
|
||||||
this.appendSymbolToolStripMenuItem.Name = "appendSymbolToolStripMenuItem";
|
this.toolTip1.ReshowDelay = 100;
|
||||||
this.appendSymbolToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
//
|
||||||
this.appendSymbolToolStripMenuItem.Text = "Append symbol";
|
// chkLeftSide
|
||||||
this.appendSymbolToolStripMenuItem.Click += new System.EventHandler(this.prependSymbolToolStripMenuItem_Click);
|
//
|
||||||
|
this.chkLeftSide.AutoSize = true;
|
||||||
|
this.chkLeftSide.Location = new System.Drawing.Point(712, 29);
|
||||||
|
this.chkLeftSide.Name = "chkLeftSide";
|
||||||
|
this.chkLeftSide.Size = new System.Drawing.Size(66, 17);
|
||||||
|
this.chkLeftSide.TabIndex = 19;
|
||||||
|
this.chkLeftSide.Text = "Left side";
|
||||||
|
this.toolTip1.SetToolTip(this.chkLeftSide, "Width changes will be made on Left/Right side");
|
||||||
|
this.chkLeftSide.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// chkTopSide
|
||||||
|
//
|
||||||
|
this.chkTopSide.AutoSize = true;
|
||||||
|
this.chkTopSide.Location = new System.Drawing.Point(712, 50);
|
||||||
|
this.chkTopSide.Name = "chkTopSide";
|
||||||
|
this.chkTopSide.Size = new System.Drawing.Size(67, 17);
|
||||||
|
this.chkTopSide.TabIndex = 20;
|
||||||
|
this.chkTopSide.Text = "Top side";
|
||||||
|
this.toolTip1.SetToolTip(this.chkTopSide, "Height changes will be made on Top/Bottom side");
|
||||||
|
this.chkTopSide.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// openDEVToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.openDEVToolStripMenuItem.Name = "openDEVToolStripMenuItem";
|
||||||
|
this.openDEVToolStripMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||||
|
this.openDEVToolStripMenuItem.Text = "Open DEV";
|
||||||
|
this.openDEVToolStripMenuItem.Visible = false;
|
||||||
|
this.openDEVToolStripMenuItem.Click += new System.EventHandler(this.openDEVToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// MainForm
|
// MainForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(784, 561);
|
this.ClientSize = new System.Drawing.Size(784, 561);
|
||||||
|
this.Controls.Add(this.chkTopSide);
|
||||||
|
this.Controls.Add(this.chkLeftSide);
|
||||||
|
this.Controls.Add(this.btnBaseline);
|
||||||
this.Controls.Add(this.btnApply);
|
this.Controls.Add(this.btnApply);
|
||||||
this.Controls.Add(this.btnExport);
|
this.Controls.Add(this.btnExport);
|
||||||
this.Controls.Add(this.label5);
|
this.Controls.Add(this.label5);
|
||||||
@@ -662,7 +814,7 @@
|
|||||||
private System.Windows.Forms.MenuStrip menuStrip1;
|
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||||
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
|
||||||
@@ -682,6 +834,17 @@
|
|||||||
private System.Windows.Forms.ToolStripMenuItem exportToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem exportToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem prependSymbolToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem prependSymbolToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem appendSymbolToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem appendSymbolToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.Button btnBaseline;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolTip toolTip1;
|
||||||
|
private System.Windows.Forms.Button btnClear;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem ClearToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.CheckBox chkLeftSide;
|
||||||
|
private System.Windows.Forms.CheckBox chkTopSide;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem saveDEVToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem openDEVToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,24 +1,29 @@
|
|||||||
using System;
|
using MessagePack;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Drawing.Drawing2D;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Runtime.InteropServices.ComTypes;
|
||||||
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Windows.Forms.VisualStyles;
|
using System.Windows.Forms.VisualStyles;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.IO;
|
|
||||||
using System.Runtime.Serialization.Formatters.Binary;
|
|
||||||
using System.Runtime.InteropServices.ComTypes;
|
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
namespace McBitFont {
|
namespace McBitFont {
|
||||||
public partial class MainForm : Form {
|
public partial class MainForm : Form {
|
||||||
|
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
[MessagePackObject]
|
||||||
public struct FrameMiniature {
|
public struct FrameMiniature {
|
||||||
public FrameMiniature(int cc, int ww, int hh) {
|
public FrameMiniature(int cc, int ww, int hh) {
|
||||||
code = cc;
|
code = cc;
|
||||||
@@ -26,16 +31,26 @@ namespace McBitFont {
|
|||||||
height = hh;
|
height = hh;
|
||||||
data = new bool[ww, hh];
|
data = new bool[ww, hh];
|
||||||
}
|
}
|
||||||
|
[Key(0)]
|
||||||
public int code;
|
public int code;
|
||||||
|
[Key(1)]
|
||||||
public int width;
|
public int width;
|
||||||
|
[Key(2)]
|
||||||
public int height;
|
public int height;
|
||||||
|
[Key(3)]
|
||||||
public bool[,] data;
|
public bool[,] data;
|
||||||
};
|
};
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
[MessagePackObject]
|
||||||
public struct SaveBlock {
|
public struct SaveBlock {
|
||||||
|
[Key(4)]
|
||||||
public bool monospaced;
|
public bool monospaced;
|
||||||
|
[Key(5)]
|
||||||
public int codepage;
|
public int codepage;
|
||||||
|
[Key(6)]
|
||||||
|
public int baseline;
|
||||||
|
[Key(7)]
|
||||||
public List<FrameMiniature> frames;
|
public List<FrameMiniature> frames;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,9 +64,14 @@ namespace McBitFont {
|
|||||||
public bool monospaced = false;
|
public bool monospaced = false;
|
||||||
bool modified = false;
|
bool modified = false;
|
||||||
bool prjModified = false;
|
bool prjModified = false;
|
||||||
public const string version = "1.0";
|
public const string version = "1.7";
|
||||||
public string prjName = "Untitled";
|
public string prjName = "Untitled";
|
||||||
|
public string prjFileName = "";
|
||||||
public int codepage = 1251;
|
public int codepage = 1251;
|
||||||
|
private FrameMiniature fbuf;
|
||||||
|
private bool fbuffer = false;
|
||||||
|
public int baseline = 0;
|
||||||
|
public bool set_base = false;
|
||||||
|
|
||||||
public MainForm() {
|
public MainForm() {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@@ -72,7 +92,7 @@ namespace McBitFont {
|
|||||||
cbZoom.SelectedIndexChanged += cbZoom_SelectedIndexChanged;
|
cbZoom.SelectedIndexChanged += cbZoom_SelectedIndexChanged;
|
||||||
|
|
||||||
frames.Add(new FrameMiniature(0, dotWidth, dotHeight));
|
frames.Add(new FrameMiniature(0, dotWidth, dotHeight));
|
||||||
miniList.Items.Add("0", "0 Single", "0");
|
miniList.Items.Add("000", "000 Single", "000");
|
||||||
miniList.Refresh();
|
miniList.Refresh();
|
||||||
miniList.Items[0].Selected = true;
|
miniList.Items[0].Selected = true;
|
||||||
miniList.Select();
|
miniList.Select();
|
||||||
@@ -81,6 +101,13 @@ namespace McBitFont {
|
|||||||
ListViewItem_SetSpacing(miniList, 50 + 2, 50 + 22);
|
ListViewItem_SetSpacing(miniList, 50 + 2, 50 + 22);
|
||||||
|
|
||||||
this.Text = "McBitFont " + version + " - " + prjName;
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
|
|
||||||
|
fbuf = new FrameMiniature(0, dotWidth, dotHeight);
|
||||||
|
|
||||||
|
// Chek for arguments
|
||||||
|
if (Environment.GetCommandLineArgs().Length > 1) {
|
||||||
|
loadProject(Environment.GetCommandLineArgs()[1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("user32.dll")]
|
[DllImport("user32.dll")]
|
||||||
@@ -105,12 +132,12 @@ namespace McBitFont {
|
|||||||
private void dotPanel_MouseWheel(object sender, MouseEventArgs e) {
|
private void dotPanel_MouseWheel(object sender, MouseEventArgs e) {
|
||||||
int t = e.Delta / 120;
|
int t = e.Delta / 120;
|
||||||
if (e.Delta == 0) return;
|
if (e.Delta == 0) return;
|
||||||
if (ModifierKeys.HasFlag(Keys.Shift)) {
|
if (ModifierKeys.HasFlag(Keys.Control)) {
|
||||||
t += cbZoom.SelectedIndex;
|
t += cbZoom.SelectedIndex;
|
||||||
if (t > cbZoom.Items.Count - 1) return;
|
if (t > cbZoom.Items.Count - 1) return;
|
||||||
if (t < 0) return;
|
if (t < 0) return;
|
||||||
cbZoom.SelectedIndex = t;
|
cbZoom.SelectedIndex = t;
|
||||||
} else if (ModifierKeys.HasFlag(Keys.Control)) {
|
} else if (ModifierKeys.HasFlag(Keys.Shift)) {
|
||||||
if (hScroll.Enabled) {
|
if (hScroll.Enabled) {
|
||||||
t = t * -1 * (cellSize + gap) + hScroll.Value;
|
t = t * -1 * (cellSize + gap) + hScroll.Value;
|
||||||
if (t < hScroll.Minimum) t = hScroll.Minimum;
|
if (t < hScroll.Minimum) t = hScroll.Minimum;
|
||||||
@@ -133,7 +160,7 @@ namespace McBitFont {
|
|||||||
for (int i = 0; i < frames.Count; i++) {
|
for (int i = 0; i < frames.Count; i++) {
|
||||||
frames[i] = frameResize(frames[i], (int)nudX.Value, dotHeight);
|
frames[i] = frameResize(frames[i], (int)nudX.Value, dotHeight);
|
||||||
bmp = getMiniPictue(frames[i]);
|
bmp = getMiniPictue(frames[i]);
|
||||||
string s = frames[i].code.ToString();
|
string s = frames[i].code.ToString().PadLeft(3, '0');
|
||||||
ilMiniatures.Images.RemoveByKey(s);
|
ilMiniatures.Images.RemoveByKey(s);
|
||||||
ilMiniatures.Images.Add(s, (Image)bmp);
|
ilMiniatures.Images.Add(s, (Image)bmp);
|
||||||
miniList.Items[s].ImageKey = s;
|
miniList.Items[s].ImageKey = s;
|
||||||
@@ -148,13 +175,14 @@ namespace McBitFont {
|
|||||||
private void nudY_ValueChanged(object sender, EventArgs e) {
|
private void nudY_ValueChanged(object sender, EventArgs e) {
|
||||||
Bitmap bmp;
|
Bitmap bmp;
|
||||||
for (int i = 0; i < frames.Count; i++) {
|
for (int i = 0; i < frames.Count; i++) {
|
||||||
frames[i] = frameResize(frames[i], dotWidth, (int)nudY.Value);
|
frames[i] = frameResize(frames[i], frames[i].width, (int)nudY.Value);
|
||||||
bmp = getMiniPictue(frames[i]);
|
bmp = getMiniPictue(frames[i]);
|
||||||
string s = frames[i].code.ToString();
|
string s = frames[i].code.ToString().PadLeft(3, '0');
|
||||||
ilMiniatures.Images.RemoveByKey(s);
|
ilMiniatures.Images.RemoveByKey(s);
|
||||||
ilMiniatures.Images.Add(s, (Image)bmp);
|
ilMiniatures.Images.Add(s, (Image)bmp);
|
||||||
miniList.Items[s].ImageKey = s;
|
miniList.Items[s].ImageKey = s;
|
||||||
}
|
}
|
||||||
|
if (nudY.Focused) modified = true;
|
||||||
prjModified = true;
|
prjModified = true;
|
||||||
dotResize(dotWidth, (int)nudY.Value);
|
dotResize(dotWidth, (int)nudY.Value);
|
||||||
}
|
}
|
||||||
@@ -162,20 +190,24 @@ namespace McBitFont {
|
|||||||
private FrameMiniature frameResize(FrameMiniature ff, int neww, int newh) {
|
private FrameMiniature frameResize(FrameMiniature ff, int neww, int newh) {
|
||||||
int oldw = ff.width;
|
int oldw = ff.width;
|
||||||
int oldh = ff.height;
|
int oldh = ff.height;
|
||||||
|
int di = 0, dj = 0;
|
||||||
int imax, jmax;
|
int imax, jmax;
|
||||||
bool[,] t;
|
bool[,] t;
|
||||||
|
|
||||||
if (neww < oldw) imax = neww;
|
if (chkLeftSide.Checked) di = oldw - neww;
|
||||||
else imax = oldw;
|
if (chkTopSide.Checked) dj = oldh - newh;
|
||||||
if (newh < oldh) jmax = newh;
|
|
||||||
else jmax = oldh;
|
imax = (neww < oldw) ? neww : oldw;
|
||||||
|
jmax = (newh < oldh) ? newh : oldh;
|
||||||
|
if (neww > oldw) imax -= di;
|
||||||
|
if (newh > oldh) jmax -= dj;
|
||||||
|
|
||||||
ff.width = neww;
|
ff.width = neww;
|
||||||
ff.height = newh;
|
ff.height = newh;
|
||||||
t = new bool[neww, newh];
|
t = new bool[neww, newh];
|
||||||
for (int i=0; i<imax; i++) {
|
for (int i=0; i<imax; i++) {
|
||||||
for (int j=0;j<jmax; j++) {
|
for (int j=0;j<jmax; j++) {
|
||||||
t[i, j] = ff.data[i, j];
|
if (i+di >= 0 && j+dj >= 0) t[i, j] = ff.data[i + di, j + dj];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ff.data = t;
|
ff.data = t;
|
||||||
@@ -184,23 +216,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void dotResize(int ww, int hh) {
|
private void dotResize(int ww, int hh) {
|
||||||
int imax, jmax;
|
f = frameResize(f, ww, hh);
|
||||||
bool[,] t;
|
|
||||||
|
|
||||||
if (ww < dotWidth) imax = ww;
|
|
||||||
else imax = dotWidth;
|
|
||||||
if (hh < dotHeight) jmax = hh;
|
|
||||||
else jmax = dotHeight;
|
|
||||||
|
|
||||||
f.width = ww;
|
|
||||||
f.height = hh;
|
|
||||||
t = new bool[ww, hh];
|
|
||||||
for (int i=0; i<imax; i++) {
|
|
||||||
for (int j=0; j<jmax; j++) {
|
|
||||||
t[i, j] = f.data[i, j];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
f.data = t;
|
|
||||||
dotWidth = ww;
|
dotWidth = ww;
|
||||||
dotHeight = hh;
|
dotHeight = hh;
|
||||||
w = pixelOffset + dotWidth * (cellSize + gap);
|
w = pixelOffset + dotWidth * (cellSize + gap);
|
||||||
@@ -247,6 +263,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modified = true;
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -262,10 +279,32 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modified = true;
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void dotPanel_MouseMove(object sender, MouseEventArgs e) {
|
private void dotPanel_MouseMove(object sender, MouseEventArgs e) {
|
||||||
|
Rectangle rect1, rect2;
|
||||||
|
if (set_base) {
|
||||||
|
|
||||||
|
int yy = pixelOffset + baseline * (cellSize + gap) - vScroll.Value - 1;
|
||||||
|
rect1 = new Rectangle(pixelOffset, yy, w, 2);
|
||||||
|
baseline = (e.Y - pixelOffset + vScroll.Value) / (cellSize + gap);
|
||||||
|
|
||||||
|
if (baseline >= dotHeight) baseline = dotHeight - 1;
|
||||||
|
if (baseline < 0) baseline = 0;
|
||||||
|
|
||||||
|
yy = pixelOffset + baseline * (cellSize + gap) - vScroll.Value - 1;
|
||||||
|
rect2 = new Rectangle(pixelOffset, yy, w, 2);
|
||||||
|
|
||||||
|
dotPanel.Invalidate(rect1);
|
||||||
|
dotPanel.Invalidate(rect2);
|
||||||
|
|
||||||
|
if (e.Button == MouseButtons.Left) {
|
||||||
|
set_base = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (e.X >= w || e.X <= pixelOffset || e.Y >= h || e.Y <= pixelOffset) return;
|
if (e.X >= w || e.X <= pixelOffset || e.Y >= h || e.Y <= pixelOffset) return;
|
||||||
int i = (e.X - pixelOffset + hScroll.Value) / (cellSize + gap);
|
int i = (e.X - pixelOffset + hScroll.Value) / (cellSize + gap);
|
||||||
int j = (e.Y - pixelOffset + vScroll.Value) / (cellSize + gap);
|
int j = (e.Y - pixelOffset + vScroll.Value) / (cellSize + gap);
|
||||||
@@ -277,8 +316,9 @@ namespace McBitFont {
|
|||||||
f.data[i, j] = true;
|
f.data[i, j] = true;
|
||||||
int x = pixelOffset + i * (cellSize + gap) - hScroll.Value;
|
int x = pixelOffset + i * (cellSize + gap) - hScroll.Value;
|
||||||
int y = pixelOffset + j * (cellSize + gap) - vScroll.Value;
|
int y = pixelOffset + j * (cellSize + gap) - vScroll.Value;
|
||||||
g.FillRectangle(sbb, x, y, cellSize, cellSize);
|
|
||||||
modified = true;
|
modified = true;
|
||||||
|
rect1 = new Rectangle(x, y, cellSize, cellSize);
|
||||||
|
dotPanel.Invalidate(rect1);
|
||||||
}
|
}
|
||||||
if (e.Button == MouseButtons.Right && f.data[i, j]) {
|
if (e.Button == MouseButtons.Right && f.data[i, j]) {
|
||||||
Graphics g = dotPanel.CreateGraphics();
|
Graphics g = dotPanel.CreateGraphics();
|
||||||
@@ -286,8 +326,9 @@ namespace McBitFont {
|
|||||||
f.data[i, j] = false;
|
f.data[i, j] = false;
|
||||||
int x = pixelOffset + i * (cellSize + gap) - hScroll.Value;
|
int x = pixelOffset + i * (cellSize + gap) - hScroll.Value;
|
||||||
int y = pixelOffset + j * (cellSize + gap) - vScroll.Value;
|
int y = pixelOffset + j * (cellSize + gap) - vScroll.Value;
|
||||||
g.FillRectangle(sbw, x, y, cellSize, cellSize);
|
|
||||||
modified = true;
|
modified = true;
|
||||||
|
rect1 = new Rectangle(x, y, cellSize, cellSize);
|
||||||
|
dotPanel.Invalidate(rect1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -304,6 +345,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modified = true;
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,6 +361,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modified = true;
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,6 +371,7 @@ namespace McBitFont {
|
|||||||
f.data[i, j] = !f.data[i, j];
|
f.data[i, j] = !f.data[i, j];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modified = true;
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,6 +390,7 @@ namespace McBitFont {
|
|||||||
b--;
|
b--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modified = true;
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -364,6 +409,7 @@ namespace McBitFont {
|
|||||||
b--;
|
b--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modified = true;
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -436,9 +482,19 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
if (f.data[i, j]) sb = sbb;
|
if (f.data[i, j]) sb = sbb;
|
||||||
else sb = sbw;
|
else sb = sbw;
|
||||||
g.FillRectangle(sb, x, y, cellSize, cellSize);
|
g.FillRectangle(sb, x, (baseline == j ? y+1 : y), cellSize, (baseline == j ? cellSize-1 : cellSize));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (baseline > 0 && gap > 0) {
|
||||||
|
x = pixelOffset - hScroll.Value;
|
||||||
|
y = pixelOffset + baseline * (cellSize + gap) - vScroll.Value;
|
||||||
|
g.DrawLine(
|
||||||
|
new Pen(Color.Blue, 2),
|
||||||
|
x, y,
|
||||||
|
w, y
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void exitToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void exitToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
@@ -451,14 +507,38 @@ namespace McBitFont {
|
|||||||
return enc.GetString(new byte[] { (byte)code });
|
return enc.GetString(new byte[] { (byte)code });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private FrameMiniature fillFrame(FrameMiniature ff, Font font, int sx, int sy) {
|
||||||
|
string s = decodeSymbol(ff.code);
|
||||||
|
Bitmap bmp = new Bitmap(ff.width, ff.height);
|
||||||
|
Graphics g = Graphics.FromImage(bmp);
|
||||||
|
g.Clear(Color.White);
|
||||||
|
g.SmoothingMode = SmoothingMode.None;
|
||||||
|
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||||
|
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||||
|
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
|
||||||
|
g.DrawString(s, font, Brushes.Black, sx, sy);
|
||||||
|
g.Flush();
|
||||||
|
|
||||||
|
for (int i = 0; i < ff.width; i++)
|
||||||
|
for (int j = 0; j < ff.height; j++) {
|
||||||
|
if (bmp.GetPixel(i, j).Name != "ffffffff")
|
||||||
|
ff.data[i, j] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bmp.Dispose();
|
||||||
|
g.Dispose();
|
||||||
|
return ff;
|
||||||
|
}
|
||||||
|
|
||||||
private void newToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void newToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
checkModifiedFrame();
|
||||||
if (prjModified) {
|
if (prjModified) {
|
||||||
if (MessageBox.Show("The project is modified.\nDo you want to save it first?", "Project was modified!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
|
if (MessageBox.Show("The project is modified.\nDo you want to save it first?", "Project was modified!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
|
||||||
saveToolStripMenuItem.PerformClick();
|
saveToolStripMenuItem.PerformClick();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
New form = new New();
|
New form = new New(this);
|
||||||
if (form.ShowDialog() == DialogResult.OK) {
|
if (form.ShowDialog() == DialogResult.OK) {
|
||||||
frames.Clear();
|
frames.Clear();
|
||||||
miniList.Clear();
|
miniList.Clear();
|
||||||
@@ -469,32 +549,41 @@ namespace McBitFont {
|
|||||||
int newh = (int)form.nudNewY.Value;
|
int newh = (int)form.nudNewY.Value;
|
||||||
nudX.Value = neww;
|
nudX.Value = neww;
|
||||||
nudY.Value = newh;
|
nudY.Value = newh;
|
||||||
|
FrameMiniature newf;
|
||||||
if (form.cbSingle.Checked) {
|
if (form.cbSingle.Checked) {
|
||||||
frames.Add( new FrameMiniature(0, neww, newh));
|
frames.Add( new FrameMiniature(0, neww, newh));
|
||||||
//f = frames.Find(x => x.code == 0);
|
//f = frames.Find(x => x.code == 0);
|
||||||
append = "Single";
|
append = "Single";
|
||||||
monospaced = false;
|
monospaced = false;
|
||||||
} else {
|
} else {
|
||||||
int i;
|
int i, imin, imax;
|
||||||
if (form.cbNotPrintable.Checked) {
|
if (form.cbDigits.Checked) {
|
||||||
for (i=0; i < 32; i++)
|
imin = 48;
|
||||||
frames.Add(new FrameMiniature(i, neww, newh));
|
imax = 57;
|
||||||
|
} else {
|
||||||
|
if (form.cbNotPrintable.Checked) imin = 0;
|
||||||
|
else if (form.cbLatin.Checked) imin = 32;
|
||||||
|
else imin = 128;
|
||||||
|
|
||||||
|
if (form.cbExtended.Checked) imax = 255;
|
||||||
|
else if (form.cbLatin.Checked) imax = 127;
|
||||||
|
else imax = 31;
|
||||||
}
|
}
|
||||||
if (form.cbLatin.Checked) {
|
|
||||||
for (i = 32; i < 128; i++)
|
|
||||||
frames.Add(new FrameMiniature(i, neww, newh));
|
for (i = imin; i <= imax; i++) {
|
||||||
}
|
newf = new FrameMiniature(i, neww, newh);
|
||||||
if (form.cbExtended.Checked) {
|
if (form.cbFontBased.Checked) newf = fillFrame(newf, form.dlgFont.Font, (int)form.nudShiftX.Value, (int)form.nudShiftY.Value);
|
||||||
for (i = 128; i < 256; i++)
|
frames.Add(newf);
|
||||||
frames.Add(new FrameMiniature(i, neww, newh));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
monospaced = form.rbMono.Checked;
|
monospaced = form.rbMono.Checked;
|
||||||
}
|
}
|
||||||
lblType.Text = monospaced ? "Monospaced" : "Variable width / Single";
|
lblType.Text = monospaced ? "Monospaced" : "Variable width / Single";
|
||||||
|
codepage = (form.cbEncoding.SelectedItem as New.EncodingItem).Code;
|
||||||
foreach (FrameMiniature ff in frames) {
|
foreach (FrameMiniature ff in frames) {
|
||||||
var s = ff.code.ToString().PadLeft(3, '0');
|
var s = ff.code.ToString().PadLeft(3, '0');
|
||||||
ilMiniatures.Images.Add(s, (Image)getMiniPictue(ff));
|
ilMiniatures.Images.Add(s, (Image)getMiniPictue(ff));
|
||||||
codepage =(form.cbEncoding.SelectedItem as New.EncodingItem).Code;
|
|
||||||
var sss = decodeSymbol(ff.code);
|
var sss = decodeSymbol(ff.code);
|
||||||
miniList.Items.Add(s, s+' '+append+sss, s);
|
miniList.Items.Add(s, s+' '+append+sss, s);
|
||||||
}
|
}
|
||||||
@@ -503,23 +592,25 @@ namespace McBitFont {
|
|||||||
miniList.Refresh();
|
miniList.Refresh();
|
||||||
form.Dispose();
|
form.Dispose();
|
||||||
|
|
||||||
|
baseline = 0;
|
||||||
|
|
||||||
prjName = "Untitled";
|
prjName = "Untitled";
|
||||||
|
prjFileName = "";
|
||||||
this.Text = "McBitFont " + version + " - " + prjName;
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
modified = false;
|
modified = false;
|
||||||
checkForAdd();
|
checkForAdd();
|
||||||
|
fbuffer = false;
|
||||||
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void miniList_SelectedIndexChanged(object sender, EventArgs e) {
|
private void miniList_SelectedIndexChanged(object sender, EventArgs e) {
|
||||||
if (miniList.FocusedItem == null) return;
|
if (miniList.FocusedItem == null) return;
|
||||||
if (modified) {
|
checkModifiedFrame();
|
||||||
if (MessageBox.Show("Current symbol is modified.\nDo you want to save the changes?", "Symbol was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
|
||||||
saveFrame();
|
|
||||||
}
|
|
||||||
modified = false;
|
|
||||||
}
|
|
||||||
if (miniList.SelectedItems.Count == 0) {
|
if (miniList.SelectedItems.Count == 0) {
|
||||||
removeSymbolToolStripMenuItem.Enabled = false;
|
removeSymbolToolStripMenuItem.Enabled = false;
|
||||||
|
copyToolStripMenuItem.Enabled = false;
|
||||||
|
pasteToolStripMenuItem.Enabled = false;
|
||||||
return;
|
return;
|
||||||
//miniList.Items[0].Selected = true;
|
//miniList.Items[0].Selected = true;
|
||||||
}
|
}
|
||||||
@@ -536,14 +627,19 @@ namespace McBitFont {
|
|||||||
} else {
|
} else {
|
||||||
removeSymbolToolStripMenuItem.Enabled = false;
|
removeSymbolToolStripMenuItem.Enabled = false;
|
||||||
}
|
}
|
||||||
|
copyToolStripMenuItem.Enabled = true;
|
||||||
|
if (fbuffer) pasteToolStripMenuItem.Enabled = true;
|
||||||
|
else pasteToolStripMenuItem.Enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void saveToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void saveToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
checkModifiedFrame();
|
||||||
if (dlgSave.ShowDialog() == DialogResult.OK) {
|
if (dlgSave.ShowDialog() == DialogResult.OK) {
|
||||||
SaveBlock sav;
|
SaveBlock sav;
|
||||||
sav.monospaced = monospaced;
|
sav.monospaced = monospaced;
|
||||||
sav.frames = frames;
|
sav.frames = frames;
|
||||||
sav.codepage = codepage;
|
sav.codepage = codepage;
|
||||||
|
sav.baseline = baseline;
|
||||||
BinaryFormatter formatter = new BinaryFormatter();
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
using (Stream ms = File.OpenWrite(dlgSave.FileName)) {
|
using (Stream ms = File.OpenWrite(dlgSave.FileName)) {
|
||||||
formatter.Serialize(ms, sav);
|
formatter.Serialize(ms, sav);
|
||||||
@@ -551,52 +647,78 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
prjModified = false;
|
prjModified = false;
|
||||||
prjName = Path.GetFileNameWithoutExtension(dlgSave.FileName);
|
prjName = Path.GetFileNameWithoutExtension(dlgSave.FileName);
|
||||||
|
prjFileName = dlgSave.FileName;
|
||||||
this.Text = "McBitFont " + version + " - " + prjName;
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void loadProject(string filename) {
|
||||||
|
SaveBlock sav;
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
|
||||||
|
using (FileStream fs = File.Open(filename, FileMode.Open)) {
|
||||||
|
sav = (SaveBlock)formatter.Deserialize(fs);
|
||||||
|
fs.Close();
|
||||||
|
}
|
||||||
|
monospaced = sav.monospaced;
|
||||||
|
codepage = sav.codepage;
|
||||||
|
baseline = sav.baseline;
|
||||||
|
lblType.Text = monospaced ? "Monospaced" : "Variable width / Single";
|
||||||
|
frames = sav.frames;
|
||||||
|
miniList.Items.Clear();
|
||||||
|
ilMiniatures.Images.Clear();
|
||||||
|
foreach (FrameMiniature ff in frames) {
|
||||||
|
var s = ff.code.ToString().PadLeft(3, '0');
|
||||||
|
var sss = decodeSymbol(ff.code);
|
||||||
|
ilMiniatures.Images.Add(s, (Image)getMiniPictue(ff));
|
||||||
|
miniList.Items.Add(s, s + ' ' + sss, s);
|
||||||
|
}
|
||||||
|
nudX.ValueChanged -= nudX_ValueChanged;
|
||||||
|
nudY.ValueChanged -= nudY_ValueChanged;
|
||||||
|
nudX.Value = frames.First().width;
|
||||||
|
nudY.Value = frames.First().height;
|
||||||
|
dotResize((int)nudX.Value, (int)nudY.Value);
|
||||||
|
nudX.ValueChanged += nudX_ValueChanged;
|
||||||
|
nudY.ValueChanged += nudY_ValueChanged;
|
||||||
|
f = copyFrame(frames.First());
|
||||||
|
dotPanel.Refresh();
|
||||||
|
miniList.Refresh();
|
||||||
|
modified = false;
|
||||||
|
prjModified = false;
|
||||||
|
|
||||||
|
prjFileName = filename;
|
||||||
|
prjName = Path.GetFileNameWithoutExtension(filename);
|
||||||
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
|
checkForAdd();
|
||||||
|
fbuffer = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void saveProject(string filename) {
|
||||||
|
SaveBlock sav;
|
||||||
|
sav.monospaced = monospaced;
|
||||||
|
sav.frames = frames;
|
||||||
|
sav.codepage = codepage;
|
||||||
|
sav.baseline = baseline;
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
using (Stream ms = File.OpenWrite(filename)) {
|
||||||
|
formatter.Serialize(ms, sav);
|
||||||
|
ms.Close();
|
||||||
|
}
|
||||||
|
prjModified = false;
|
||||||
|
prjName = Path.GetFileNameWithoutExtension(filename);
|
||||||
|
prjFileName = filename;
|
||||||
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
|
}
|
||||||
|
|
||||||
private void openToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void openToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
if (prjModified) {
|
if (prjModified) {
|
||||||
if (MessageBox.Show("The project is modified.\nDo you want to save it first?", "Project was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
if (MessageBox.Show("The project is modified.\nDo you want to save it first?", "Project was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
||||||
saveToolStripMenuItem.PerformClick();
|
saveAsToolStripMenuItem.PerformClick();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (dlgOpen.ShowDialog() == DialogResult.OK) {
|
if (dlgOpen.ShowDialog() == DialogResult.OK) {
|
||||||
SaveBlock sav;
|
loadProject(dlgOpen.FileName);
|
||||||
BinaryFormatter formatter = new BinaryFormatter();
|
|
||||||
|
|
||||||
using (FileStream fs = File.Open(dlgOpen.FileName, FileMode.Open)) {
|
|
||||||
sav = (SaveBlock)formatter.Deserialize(fs);
|
|
||||||
fs.Close();
|
|
||||||
}
|
|
||||||
monospaced = sav.monospaced;
|
|
||||||
codepage = sav.codepage;
|
|
||||||
lblType.Text = monospaced ? "Monospaced" : "Variable width / Single";
|
|
||||||
frames = sav.frames;
|
|
||||||
miniList.Items.Clear();
|
|
||||||
ilMiniatures.Images.Clear();
|
|
||||||
foreach (FrameMiniature ff in frames) {
|
|
||||||
var s = ff.code.ToString();
|
|
||||||
ilMiniatures.Images.Add(s, (Image)getMiniPictue(ff));
|
|
||||||
miniList.Items.Add(s, s + ' ' + (char)ff.code, s);
|
|
||||||
}
|
|
||||||
nudX.ValueChanged -= nudX_ValueChanged;
|
|
||||||
nudY.ValueChanged -= nudY_ValueChanged;
|
|
||||||
nudX.Value = frames.First().width;
|
|
||||||
nudY.Value = frames.First().height;
|
|
||||||
dotResize((int)nudX.Value, (int)nudY.Value);
|
|
||||||
nudX.ValueChanged += nudX_ValueChanged;
|
|
||||||
nudY.ValueChanged += nudY_ValueChanged;
|
|
||||||
f = copyFrame(frames.First());
|
|
||||||
dotPanel.Refresh();
|
|
||||||
miniList.Refresh();
|
|
||||||
modified = false;
|
|
||||||
prjModified = false;
|
|
||||||
|
|
||||||
prjName = Path.GetFileNameWithoutExtension(dlgOpen.FileName);
|
|
||||||
this.Text = "McBitFont " + version + " - " + prjName;
|
|
||||||
checkForAdd();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -642,6 +764,134 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void copyToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
fbuffer = true;
|
||||||
|
fbuf = copyFrame(f);
|
||||||
|
pasteToolStripMenuItem.Enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pasteToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
if (fbuf.width == f.width && fbuf.height == f.height) {
|
||||||
|
Array.Copy(fbuf.data, f.data, fbuf.data.Length);
|
||||||
|
} else {
|
||||||
|
var wmax = (fbuf.width > f.width) ? f.width : fbuf.width;
|
||||||
|
var hmax = (fbuf.height > f.height) ? f.height : fbuf.height;
|
||||||
|
|
||||||
|
for (int i = 0; i < wmax; i++) {
|
||||||
|
for (int j = 0; j < hmax; j++) {
|
||||||
|
f.data[i,j] = fbuf.data[i,j];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dotPanel.Refresh();
|
||||||
|
modified = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
About form = new About();
|
||||||
|
form.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnBaseline_Click(object sender, EventArgs e) {
|
||||||
|
set_base = !set_base;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check modified / Save frame
|
||||||
|
private void checkModifiedFrame() {
|
||||||
|
if (modified) {
|
||||||
|
if (MessageBox.Show("Current symbol is modified.\nDo you want to save the changes?", "Symbol was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
||||||
|
saveFrame();
|
||||||
|
}
|
||||||
|
modified = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void saveToolStripMenuItem_Click_1(object sender, EventArgs e) {
|
||||||
|
if (prjFileName == "") {
|
||||||
|
saveAsToolStripMenuItem.PerformClick();
|
||||||
|
} else {
|
||||||
|
checkModifiedFrame();
|
||||||
|
saveProject(prjFileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnClear_Click(object sender, EventArgs e) {
|
||||||
|
Array.Clear(f.data, 0, f.data.Length);
|
||||||
|
modified = true;
|
||||||
|
dotPanel.Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void saveJSONToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
checkModifiedFrame();
|
||||||
|
if (dlgSave.ShowDialog() == DialogResult.OK) {
|
||||||
|
SaveBlock sav;
|
||||||
|
sav.monospaced = monospaced;
|
||||||
|
sav.frames = frames;
|
||||||
|
sav.codepage = codepage;
|
||||||
|
sav.baseline = baseline;
|
||||||
|
using (Stream ms = File.OpenWrite(dlgSave.FileName)) {
|
||||||
|
// TODO: Serializer here
|
||||||
|
MessagePackSerializer.Serialize(ms, sav);
|
||||||
|
ms.Close();
|
||||||
|
}
|
||||||
|
prjModified = false;
|
||||||
|
prjName = Path.GetFileNameWithoutExtension(dlgSave.FileName);
|
||||||
|
prjFileName = dlgSave.FileName;
|
||||||
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void openDEVToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
if (prjModified) {
|
||||||
|
if (MessageBox.Show("The project is modified.\nDo you want to save it first?", "Project was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
||||||
|
saveAsToolStripMenuItem.PerformClick();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dlgOpen.ShowDialog() == DialogResult.OK) {
|
||||||
|
SaveBlock sav;
|
||||||
|
|
||||||
|
var filename = dlgOpen.FileName;
|
||||||
|
using (FileStream fs = File.Open(filename, FileMode.Open)) {
|
||||||
|
sav = MessagePackSerializer.Deserialize<SaveBlock>(fs);
|
||||||
|
fs.Close();
|
||||||
|
}
|
||||||
|
monospaced = sav.monospaced;
|
||||||
|
codepage = sav.codepage;
|
||||||
|
baseline = sav.baseline;
|
||||||
|
lblType.Text = monospaced ? "Monospaced" : "Variable width / Single";
|
||||||
|
frames = sav.frames;
|
||||||
|
miniList.Items.Clear();
|
||||||
|
ilMiniatures.Images.Clear();
|
||||||
|
foreach (FrameMiniature ff in frames) {
|
||||||
|
var s = ff.code.ToString().PadLeft(3, '0');
|
||||||
|
var sss = decodeSymbol(ff.code);
|
||||||
|
ilMiniatures.Images.Add(s, (Image)getMiniPictue(ff));
|
||||||
|
miniList.Items.Add(s, s + ' ' + sss, s);
|
||||||
|
}
|
||||||
|
nudX.ValueChanged -= nudX_ValueChanged;
|
||||||
|
nudY.ValueChanged -= nudY_ValueChanged;
|
||||||
|
nudX.Value = frames.First().width;
|
||||||
|
nudY.Value = frames.First().height;
|
||||||
|
dotResize((int)nudX.Value, (int)nudY.Value);
|
||||||
|
nudX.ValueChanged += nudX_ValueChanged;
|
||||||
|
nudY.ValueChanged += nudY_ValueChanged;
|
||||||
|
f = copyFrame(frames.First());
|
||||||
|
dotPanel.Refresh();
|
||||||
|
miniList.Refresh();
|
||||||
|
modified = false;
|
||||||
|
prjModified = false;
|
||||||
|
|
||||||
|
prjFileName = filename;
|
||||||
|
prjName = Path.GetFileNameWithoutExtension(filename);
|
||||||
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
|
checkForAdd();
|
||||||
|
fbuffer = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
|
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
|
||||||
if (prjModified) {
|
if (prjModified) {
|
||||||
if (MessageBox.Show("The project is modified.\nAre you sure you want to quit?", "Are you sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) {
|
if (MessageBox.Show("The project is modified.\nAre you sure you want to quit?", "Are you sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) {
|
||||||
|
@@ -117,6 +117,9 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>436, 17</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="ilMiniatures.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="ilMiniatures.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
@@ -129,6 +132,9 @@
|
|||||||
<metadata name="dlgOpen.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="dlgOpen.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>336, 17</value>
|
<value>336, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>436, 17</value>
|
||||||
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
@@ -12,6 +12,23 @@
|
|||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
<NuGetPackageImportStamp>
|
||||||
|
</NuGetPackageImportStamp>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
@@ -32,9 +49,43 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ApplicationIcon>icon_64.ico</ApplicationIcon>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="MessagePack, Version=3.1.3.0, Culture=neutral, PublicKeyToken=b4a0369545f0a1be, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\MessagePack.3.1.3\lib\net472\MessagePack.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="MessagePack.Annotations, Version=3.1.3.0, Culture=neutral, PublicKeyToken=b4a0369545f0a1be, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\MessagePack.Annotations.3.1.3\lib\netstandard2.0\MessagePack.Annotations.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.NET.StringTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Microsoft.NET.StringTools.17.11.4\lib\net472\Microsoft.NET.StringTools.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Collections.Immutable.8.0.0\lib\net462\System.Collections.Immutable.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Numerics" />
|
||||||
|
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
@@ -46,6 +97,12 @@
|
|||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="About.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="About.Designer.cs">
|
||||||
|
<DependentUpon>About.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Export.cs">
|
<Compile Include="Export.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -66,6 +123,9 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<EmbeddedResource Include="About.resx">
|
||||||
|
<DependentUpon>About.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Export.resx">
|
<EmbeddedResource Include="Export.resx">
|
||||||
<DependentUpon>Export.cs</DependentUpon>
|
<DependentUpon>Export.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@@ -85,6 +145,7 @@
|
|||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<None Include="packages.config" />
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
@@ -125,5 +186,64 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Resources\save.png" />
|
<None Include="Resources\save.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\action_check.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Shape-flip-vertical.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Shape-flip-horizontal.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Page-paste.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Page-copy.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Door-out.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Disk.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Page-white.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Folder-page.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Famfamfam-Silk-Folder.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Ionic-Ionicons-Invert-mode-outline.16.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="icon.ico" />
|
||||||
|
<Content Include="icon_64.ico" />
|
||||||
|
<None Include="Resources\icon_64.png" />
|
||||||
|
<None Include="Resources\icon_32.png" />
|
||||||
|
<None Include="Resources\icon.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 и x64%29</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<Import Project="..\packages\MessagePackAnalyzer.3.1.3\build\MessagePackAnalyzer.targets" Condition="Exists('..\packages\MessagePackAnalyzer.3.1.3\build\MessagePackAnalyzer.targets')" />
|
||||||
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Error Condition="!Exists('..\packages\MessagePackAnalyzer.3.1.3\build\MessagePackAnalyzer.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MessagePackAnalyzer.3.1.3\build\MessagePackAnalyzer.targets'))" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
291
McBitFont/New.Designer.cs
generated
@@ -38,13 +38,38 @@
|
|||||||
this.cbSingle = new System.Windows.Forms.CheckBox();
|
this.cbSingle = new System.Windows.Forms.CheckBox();
|
||||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.cbEncoding = new System.Windows.Forms.ComboBox();
|
this.cbEncoding = new System.Windows.Forms.ComboBox();
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.pbChar2 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.pbChar1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.btnFont = new System.Windows.Forms.Button();
|
||||||
|
this.dlgFont = new System.Windows.Forms.FontDialog();
|
||||||
|
this.cbFontBased = new System.Windows.Forms.CheckBox();
|
||||||
|
this.lblFont = new System.Windows.Forms.Label();
|
||||||
|
this.nudShiftX = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.nudShiftY = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.lblShiftX = new System.Windows.Forms.Label();
|
||||||
|
this.lblShiftY = new System.Windows.Forms.Label();
|
||||||
|
this.pnlFont = new System.Windows.Forms.Panel();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.nudChar2 = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.nudChar1 = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.cbDigits = new System.Windows.Forms.CheckBox();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.nudNewX)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.nudNewX)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.nudNewY)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.nudNewY)).BeginInit();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pbChar2)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pbChar1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudShiftX)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudShiftY)).BeginInit();
|
||||||
|
this.pnlFont.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudChar2)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudChar1)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// nudNewX
|
// nudNewX
|
||||||
//
|
//
|
||||||
this.nudNewX.Location = new System.Drawing.Point(74, 19);
|
this.nudNewX.Location = new System.Drawing.Point(68, 32);
|
||||||
this.nudNewX.Maximum = new decimal(new int[] {
|
this.nudNewX.Maximum = new decimal(new int[] {
|
||||||
255,
|
255,
|
||||||
0,
|
0,
|
||||||
@@ -63,11 +88,12 @@
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
|
this.nudNewX.ValueChanged += new System.EventHandler(this.nudNewX_ValueChanged);
|
||||||
this.nudNewX.Enter += new System.EventHandler(this.nudFocus);
|
this.nudNewX.Enter += new System.EventHandler(this.nudFocus);
|
||||||
//
|
//
|
||||||
// nudNewY
|
// nudNewY
|
||||||
//
|
//
|
||||||
this.nudNewY.Location = new System.Drawing.Point(74, 45);
|
this.nudNewY.Location = new System.Drawing.Point(68, 58);
|
||||||
this.nudNewY.Maximum = new decimal(new int[] {
|
this.nudNewY.Maximum = new decimal(new int[] {
|
||||||
255,
|
255,
|
||||||
0,
|
0,
|
||||||
@@ -86,12 +112,13 @@
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
|
this.nudNewY.ValueChanged += new System.EventHandler(this.nudNewX_ValueChanged);
|
||||||
this.nudNewY.Enter += new System.EventHandler(this.nudFocus);
|
this.nudNewY.Enter += new System.EventHandler(this.nudFocus);
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
this.label1.AutoSize = true;
|
||||||
this.label1.Location = new System.Drawing.Point(30, 21);
|
this.label1.Location = new System.Drawing.Point(24, 34);
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(38, 13);
|
this.label1.Size = new System.Drawing.Size(38, 13);
|
||||||
this.label1.TabIndex = 2;
|
this.label1.TabIndex = 2;
|
||||||
@@ -101,7 +128,7 @@
|
|||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
this.label2.AutoSize = true;
|
this.label2.AutoSize = true;
|
||||||
this.label2.Location = new System.Drawing.Point(27, 47);
|
this.label2.Location = new System.Drawing.Point(21, 60);
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(41, 13);
|
this.label2.Size = new System.Drawing.Size(41, 13);
|
||||||
this.label2.TabIndex = 3;
|
this.label2.TabIndex = 3;
|
||||||
@@ -112,7 +139,7 @@
|
|||||||
//
|
//
|
||||||
this.rbMono.AutoSize = true;
|
this.rbMono.AutoSize = true;
|
||||||
this.rbMono.Checked = true;
|
this.rbMono.Checked = true;
|
||||||
this.rbMono.Location = new System.Drawing.Point(30, 71);
|
this.rbMono.Location = new System.Drawing.Point(24, 84);
|
||||||
this.rbMono.Name = "rbMono";
|
this.rbMono.Name = "rbMono";
|
||||||
this.rbMono.Size = new System.Drawing.Size(87, 17);
|
this.rbMono.Size = new System.Drawing.Size(87, 17);
|
||||||
this.rbMono.TabIndex = 4;
|
this.rbMono.TabIndex = 4;
|
||||||
@@ -123,7 +150,7 @@
|
|||||||
// rbVar
|
// rbVar
|
||||||
//
|
//
|
||||||
this.rbVar.AutoSize = true;
|
this.rbVar.AutoSize = true;
|
||||||
this.rbVar.Location = new System.Drawing.Point(30, 94);
|
this.rbVar.Location = new System.Drawing.Point(24, 107);
|
||||||
this.rbVar.Name = "rbVar";
|
this.rbVar.Name = "rbVar";
|
||||||
this.rbVar.Size = new System.Drawing.Size(91, 17);
|
this.rbVar.Size = new System.Drawing.Size(91, 17);
|
||||||
this.rbVar.TabIndex = 5;
|
this.rbVar.TabIndex = 5;
|
||||||
@@ -133,39 +160,42 @@
|
|||||||
// cbNotPrintable
|
// cbNotPrintable
|
||||||
//
|
//
|
||||||
this.cbNotPrintable.AutoSize = true;
|
this.cbNotPrintable.AutoSize = true;
|
||||||
this.cbNotPrintable.Location = new System.Drawing.Point(146, 35);
|
this.cbNotPrintable.Location = new System.Drawing.Point(140, 77);
|
||||||
this.cbNotPrintable.Name = "cbNotPrintable";
|
this.cbNotPrintable.Name = "cbNotPrintable";
|
||||||
this.cbNotPrintable.Size = new System.Drawing.Size(116, 17);
|
this.cbNotPrintable.Size = new System.Drawing.Size(116, 17);
|
||||||
this.cbNotPrintable.TabIndex = 7;
|
this.cbNotPrintable.TabIndex = 7;
|
||||||
this.cbNotPrintable.Text = "0-31 (Not printable)";
|
this.cbNotPrintable.Text = "0-31 (Not printable)";
|
||||||
this.cbNotPrintable.UseVisualStyleBackColor = true;
|
this.cbNotPrintable.UseVisualStyleBackColor = true;
|
||||||
|
this.cbNotPrintable.CheckedChanged += new System.EventHandler(this.checkboxChanged);
|
||||||
//
|
//
|
||||||
// cbLatin
|
// cbLatin
|
||||||
//
|
//
|
||||||
this.cbLatin.AutoSize = true;
|
this.cbLatin.AutoSize = true;
|
||||||
this.cbLatin.Checked = true;
|
this.cbLatin.Checked = true;
|
||||||
this.cbLatin.CheckState = System.Windows.Forms.CheckState.Checked;
|
this.cbLatin.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
this.cbLatin.Location = new System.Drawing.Point(146, 58);
|
this.cbLatin.Location = new System.Drawing.Point(140, 100);
|
||||||
this.cbLatin.Name = "cbLatin";
|
this.cbLatin.Name = "cbLatin";
|
||||||
this.cbLatin.Size = new System.Drawing.Size(91, 17);
|
this.cbLatin.Size = new System.Drawing.Size(91, 17);
|
||||||
this.cbLatin.TabIndex = 8;
|
this.cbLatin.TabIndex = 8;
|
||||||
this.cbLatin.Text = "32-127 (Latin)";
|
this.cbLatin.Text = "32-127 (Latin)";
|
||||||
this.cbLatin.UseVisualStyleBackColor = true;
|
this.cbLatin.UseVisualStyleBackColor = true;
|
||||||
|
this.cbLatin.CheckedChanged += new System.EventHandler(this.checkboxChanged);
|
||||||
//
|
//
|
||||||
// cbExtended
|
// cbExtended
|
||||||
//
|
//
|
||||||
this.cbExtended.AutoSize = true;
|
this.cbExtended.AutoSize = true;
|
||||||
this.cbExtended.Location = new System.Drawing.Point(146, 81);
|
this.cbExtended.Location = new System.Drawing.Point(140, 123);
|
||||||
this.cbExtended.Name = "cbExtended";
|
this.cbExtended.Name = "cbExtended";
|
||||||
this.cbExtended.Size = new System.Drawing.Size(119, 17);
|
this.cbExtended.Size = new System.Drawing.Size(119, 17);
|
||||||
this.cbExtended.TabIndex = 9;
|
this.cbExtended.TabIndex = 9;
|
||||||
this.cbExtended.Text = "128-255 (Extended)";
|
this.cbExtended.Text = "128-255 (Extended)";
|
||||||
this.cbExtended.UseVisualStyleBackColor = true;
|
this.cbExtended.UseVisualStyleBackColor = true;
|
||||||
this.cbExtended.CheckedChanged += new System.EventHandler(this.cbExtended_CheckedChanged);
|
this.cbExtended.CheckedChanged += new System.EventHandler(this.checkboxChanged);
|
||||||
//
|
//
|
||||||
// btnOK
|
// btnOK
|
||||||
//
|
//
|
||||||
this.btnOK.Location = new System.Drawing.Point(56, 143);
|
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.btnOK.Location = new System.Drawing.Point(47, 178);
|
||||||
this.btnOK.Name = "btnOK";
|
this.btnOK.Name = "btnOK";
|
||||||
this.btnOK.Size = new System.Drawing.Size(75, 23);
|
this.btnOK.Size = new System.Drawing.Size(75, 23);
|
||||||
this.btnOK.TabIndex = 10;
|
this.btnOK.TabIndex = 10;
|
||||||
@@ -175,8 +205,9 @@
|
|||||||
//
|
//
|
||||||
// btnCancel
|
// btnCancel
|
||||||
//
|
//
|
||||||
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
this.btnCancel.Location = new System.Drawing.Point(165, 143);
|
this.btnCancel.Location = new System.Drawing.Point(140, 178);
|
||||||
this.btnCancel.Name = "btnCancel";
|
this.btnCancel.Name = "btnCancel";
|
||||||
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||||
this.btnCancel.TabIndex = 11;
|
this.btnCancel.TabIndex = 11;
|
||||||
@@ -187,13 +218,13 @@
|
|||||||
// cbSingle
|
// cbSingle
|
||||||
//
|
//
|
||||||
this.cbSingle.AutoSize = true;
|
this.cbSingle.AutoSize = true;
|
||||||
this.cbSingle.Location = new System.Drawing.Point(146, 12);
|
this.cbSingle.Location = new System.Drawing.Point(140, 31);
|
||||||
this.cbSingle.Name = "cbSingle";
|
this.cbSingle.Name = "cbSingle";
|
||||||
this.cbSingle.Size = new System.Drawing.Size(84, 17);
|
this.cbSingle.Size = new System.Drawing.Size(84, 17);
|
||||||
this.cbSingle.TabIndex = 12;
|
this.cbSingle.TabIndex = 12;
|
||||||
this.cbSingle.Text = "Single frame";
|
this.cbSingle.Text = "Single frame";
|
||||||
this.cbSingle.UseVisualStyleBackColor = true;
|
this.cbSingle.UseVisualStyleBackColor = true;
|
||||||
this.cbSingle.CheckedChanged += new System.EventHandler(this.cbSingle_CheckedChanged);
|
this.cbSingle.CheckedChanged += new System.EventHandler(this.checkboxChanged);
|
||||||
//
|
//
|
||||||
// toolTip1
|
// toolTip1
|
||||||
//
|
//
|
||||||
@@ -207,17 +238,218 @@
|
|||||||
this.cbEncoding.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.cbEncoding.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.cbEncoding.Enabled = false;
|
this.cbEncoding.Enabled = false;
|
||||||
this.cbEncoding.FormattingEnabled = true;
|
this.cbEncoding.FormattingEnabled = true;
|
||||||
this.cbEncoding.Location = new System.Drawing.Point(146, 104);
|
this.cbEncoding.Location = new System.Drawing.Point(140, 146);
|
||||||
this.cbEncoding.Name = "cbEncoding";
|
this.cbEncoding.Name = "cbEncoding";
|
||||||
this.cbEncoding.Size = new System.Drawing.Size(121, 21);
|
this.cbEncoding.Size = new System.Drawing.Size(121, 21);
|
||||||
this.cbEncoding.TabIndex = 13;
|
this.cbEncoding.TabIndex = 13;
|
||||||
//
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.Controls.Add(this.pbChar2);
|
||||||
|
this.panel1.Controls.Add(this.pbChar1);
|
||||||
|
this.panel1.Location = new System.Drawing.Point(6, 24);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(200, 124);
|
||||||
|
this.panel1.TabIndex = 14;
|
||||||
|
//
|
||||||
|
// pbChar2
|
||||||
|
//
|
||||||
|
this.pbChar2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.pbChar2.Location = new System.Drawing.Point(100, 0);
|
||||||
|
this.pbChar2.Name = "pbChar2";
|
||||||
|
this.pbChar2.Size = new System.Drawing.Size(100, 124);
|
||||||
|
this.pbChar2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.pbChar2.TabIndex = 1;
|
||||||
|
this.pbChar2.TabStop = false;
|
||||||
|
//
|
||||||
|
// pbChar1
|
||||||
|
//
|
||||||
|
this.pbChar1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.pbChar1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.pbChar1.Name = "pbChar1";
|
||||||
|
this.pbChar1.Size = new System.Drawing.Size(100, 124);
|
||||||
|
this.pbChar1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.pbChar1.TabIndex = 0;
|
||||||
|
this.pbChar1.TabStop = false;
|
||||||
|
//
|
||||||
|
// btnFont
|
||||||
|
//
|
||||||
|
this.btnFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.btnFont.Location = new System.Drawing.Point(6, 178);
|
||||||
|
this.btnFont.Name = "btnFont";
|
||||||
|
this.btnFont.Size = new System.Drawing.Size(71, 23);
|
||||||
|
this.btnFont.TabIndex = 15;
|
||||||
|
this.btnFont.Text = "Font ...";
|
||||||
|
this.btnFont.UseVisualStyleBackColor = true;
|
||||||
|
this.btnFont.Click += new System.EventHandler(this.btnFont_Click);
|
||||||
|
//
|
||||||
|
// dlgFont
|
||||||
|
//
|
||||||
|
this.dlgFont.Font = new System.Drawing.Font("Courier New", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.dlgFont.ShowEffects = false;
|
||||||
|
//
|
||||||
|
// cbFontBased
|
||||||
|
//
|
||||||
|
this.cbFontBased.AutoSize = true;
|
||||||
|
this.cbFontBased.Location = new System.Drawing.Point(24, 130);
|
||||||
|
this.cbFontBased.Name = "cbFontBased";
|
||||||
|
this.cbFontBased.Size = new System.Drawing.Size(101, 17);
|
||||||
|
this.cbFontBased.TabIndex = 16;
|
||||||
|
this.cbFontBased.Text = "Based on a font";
|
||||||
|
this.cbFontBased.UseVisualStyleBackColor = true;
|
||||||
|
this.cbFontBased.CheckedChanged += new System.EventHandler(this.checkboxChanged);
|
||||||
|
//
|
||||||
|
// lblFont
|
||||||
|
//
|
||||||
|
this.lblFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.lblFont.Location = new System.Drawing.Point(83, 183);
|
||||||
|
this.lblFont.Name = "lblFont";
|
||||||
|
this.lblFont.Size = new System.Drawing.Size(123, 18);
|
||||||
|
this.lblFont.TabIndex = 17;
|
||||||
|
this.lblFont.Text = "font";
|
||||||
|
//
|
||||||
|
// nudShiftX
|
||||||
|
//
|
||||||
|
this.nudShiftX.Location = new System.Drawing.Point(61, 2);
|
||||||
|
this.nudShiftX.Minimum = new decimal(new int[] {
|
||||||
|
100,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
-2147483648});
|
||||||
|
this.nudShiftX.Name = "nudShiftX";
|
||||||
|
this.nudShiftX.Size = new System.Drawing.Size(45, 20);
|
||||||
|
this.nudShiftX.TabIndex = 18;
|
||||||
|
this.nudShiftX.ValueChanged += new System.EventHandler(this.nudNewX_ValueChanged);
|
||||||
|
//
|
||||||
|
// nudShiftY
|
||||||
|
//
|
||||||
|
this.nudShiftY.Location = new System.Drawing.Point(161, 2);
|
||||||
|
this.nudShiftY.Minimum = new decimal(new int[] {
|
||||||
|
100,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
-2147483648});
|
||||||
|
this.nudShiftY.Name = "nudShiftY";
|
||||||
|
this.nudShiftY.Size = new System.Drawing.Size(45, 20);
|
||||||
|
this.nudShiftY.TabIndex = 19;
|
||||||
|
this.nudShiftY.ValueChanged += new System.EventHandler(this.nudNewX_ValueChanged);
|
||||||
|
//
|
||||||
|
// lblShiftX
|
||||||
|
//
|
||||||
|
this.lblShiftX.AutoSize = true;
|
||||||
|
this.lblShiftX.Location = new System.Drawing.Point(14, 4);
|
||||||
|
this.lblShiftX.Name = "lblShiftX";
|
||||||
|
this.lblShiftX.Size = new System.Drawing.Size(41, 13);
|
||||||
|
this.lblShiftX.TabIndex = 20;
|
||||||
|
this.lblShiftX.Text = "Shift X:";
|
||||||
|
this.lblShiftX.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// lblShiftY
|
||||||
|
//
|
||||||
|
this.lblShiftY.AutoSize = true;
|
||||||
|
this.lblShiftY.Location = new System.Drawing.Point(114, 4);
|
||||||
|
this.lblShiftY.Name = "lblShiftY";
|
||||||
|
this.lblShiftY.Size = new System.Drawing.Size(41, 13);
|
||||||
|
this.lblShiftY.TabIndex = 21;
|
||||||
|
this.lblShiftY.Text = "Shift Y:";
|
||||||
|
this.lblShiftY.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// pnlFont
|
||||||
|
//
|
||||||
|
this.pnlFont.Controls.Add(this.label4);
|
||||||
|
this.pnlFont.Controls.Add(this.label3);
|
||||||
|
this.pnlFont.Controls.Add(this.nudChar2);
|
||||||
|
this.pnlFont.Controls.Add(this.nudChar1);
|
||||||
|
this.pnlFont.Controls.Add(this.lblShiftX);
|
||||||
|
this.pnlFont.Controls.Add(this.lblShiftY);
|
||||||
|
this.pnlFont.Controls.Add(this.panel1);
|
||||||
|
this.pnlFont.Controls.Add(this.btnFont);
|
||||||
|
this.pnlFont.Controls.Add(this.nudShiftY);
|
||||||
|
this.pnlFont.Controls.Add(this.lblFont);
|
||||||
|
this.pnlFont.Controls.Add(this.nudShiftX);
|
||||||
|
this.pnlFont.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
|
this.pnlFont.Location = new System.Drawing.Point(270, 0);
|
||||||
|
this.pnlFont.Name = "pnlFont";
|
||||||
|
this.pnlFont.Size = new System.Drawing.Size(214, 211);
|
||||||
|
this.pnlFont.TabIndex = 22;
|
||||||
|
this.pnlFont.Visible = false;
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Location = new System.Drawing.Point(112, 152);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(45, 13);
|
||||||
|
this.label4.TabIndex = 25;
|
||||||
|
this.label4.Text = "Sample:";
|
||||||
|
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(14, 152);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(45, 13);
|
||||||
|
this.label3.TabIndex = 24;
|
||||||
|
this.label3.Text = "Sample:";
|
||||||
|
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// nudChar2
|
||||||
|
//
|
||||||
|
this.nudChar2.Location = new System.Drawing.Point(161, 149);
|
||||||
|
this.nudChar2.Maximum = new decimal(new int[] {
|
||||||
|
255,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.nudChar2.Name = "nudChar2";
|
||||||
|
this.nudChar2.Size = new System.Drawing.Size(45, 20);
|
||||||
|
this.nudChar2.TabIndex = 23;
|
||||||
|
this.nudChar2.Value = new decimal(new int[] {
|
||||||
|
97,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.nudChar2.ValueChanged += new System.EventHandler(this.nudNewX_ValueChanged);
|
||||||
|
//
|
||||||
|
// nudChar1
|
||||||
|
//
|
||||||
|
this.nudChar1.Location = new System.Drawing.Point(61, 149);
|
||||||
|
this.nudChar1.Maximum = new decimal(new int[] {
|
||||||
|
255,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.nudChar1.Name = "nudChar1";
|
||||||
|
this.nudChar1.Size = new System.Drawing.Size(45, 20);
|
||||||
|
this.nudChar1.TabIndex = 22;
|
||||||
|
this.nudChar1.Value = new decimal(new int[] {
|
||||||
|
65,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.nudChar1.ValueChanged += new System.EventHandler(this.nudNewX_ValueChanged);
|
||||||
|
//
|
||||||
|
// cbDigits
|
||||||
|
//
|
||||||
|
this.cbDigits.AutoSize = true;
|
||||||
|
this.cbDigits.Location = new System.Drawing.Point(140, 54);
|
||||||
|
this.cbDigits.Name = "cbDigits";
|
||||||
|
this.cbDigits.Size = new System.Drawing.Size(74, 17);
|
||||||
|
this.cbDigits.TabIndex = 23;
|
||||||
|
this.cbDigits.Text = "Digits only";
|
||||||
|
this.cbDigits.UseVisualStyleBackColor = true;
|
||||||
|
this.cbDigits.CheckedChanged += new System.EventHandler(this.checkboxChanged);
|
||||||
|
//
|
||||||
// New
|
// New
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.btnOK;
|
this.AcceptButton = this.btnOK;
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
this.CancelButton = this.btnCancel;
|
this.CancelButton = this.btnCancel;
|
||||||
this.ClientSize = new System.Drawing.Size(284, 181);
|
this.ClientSize = new System.Drawing.Size(484, 211);
|
||||||
|
this.Controls.Add(this.cbDigits);
|
||||||
|
this.Controls.Add(this.pnlFont);
|
||||||
|
this.Controls.Add(this.cbFontBased);
|
||||||
this.Controls.Add(this.cbEncoding);
|
this.Controls.Add(this.cbEncoding);
|
||||||
this.Controls.Add(this.cbSingle);
|
this.Controls.Add(this.cbSingle);
|
||||||
this.Controls.Add(this.btnCancel);
|
this.Controls.Add(this.btnCancel);
|
||||||
@@ -233,7 +465,6 @@
|
|||||||
this.Controls.Add(this.nudNewX);
|
this.Controls.Add(this.nudNewX);
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MaximumSize = new System.Drawing.Size(300, 220);
|
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.MinimumSize = new System.Drawing.Size(300, 220);
|
this.MinimumSize = new System.Drawing.Size(300, 220);
|
||||||
this.Name = "New";
|
this.Name = "New";
|
||||||
@@ -244,6 +475,15 @@
|
|||||||
this.Load += new System.EventHandler(this.New_Load);
|
this.Load += new System.EventHandler(this.New_Load);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.nudNewX)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.nudNewX)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.nudNewY)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.nudNewY)).EndInit();
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pbChar2)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pbChar1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudShiftX)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudShiftY)).EndInit();
|
||||||
|
this.pnlFont.ResumeLayout(false);
|
||||||
|
this.pnlFont.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudChar2)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.nudChar1)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
@@ -265,5 +505,22 @@
|
|||||||
public System.Windows.Forms.CheckBox cbSingle;
|
public System.Windows.Forms.CheckBox cbSingle;
|
||||||
private System.Windows.Forms.ToolTip toolTip1;
|
private System.Windows.Forms.ToolTip toolTip1;
|
||||||
public System.Windows.Forms.ComboBox cbEncoding;
|
public System.Windows.Forms.ComboBox cbEncoding;
|
||||||
|
public System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.PictureBox pbChar2;
|
||||||
|
private System.Windows.Forms.PictureBox pbChar1;
|
||||||
|
private System.Windows.Forms.Button btnFont;
|
||||||
|
public System.Windows.Forms.FontDialog dlgFont;
|
||||||
|
public System.Windows.Forms.CheckBox cbFontBased;
|
||||||
|
private System.Windows.Forms.Label lblFont;
|
||||||
|
public System.Windows.Forms.NumericUpDown nudShiftX;
|
||||||
|
public System.Windows.Forms.NumericUpDown nudShiftY;
|
||||||
|
private System.Windows.Forms.Label lblShiftX;
|
||||||
|
private System.Windows.Forms.Label lblShiftY;
|
||||||
|
private System.Windows.Forms.Panel pnlFont;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
public System.Windows.Forms.NumericUpDown nudChar2;
|
||||||
|
public System.Windows.Forms.NumericUpDown nudChar1;
|
||||||
|
public System.Windows.Forms.CheckBox cbDigits;
|
||||||
}
|
}
|
||||||
}
|
}
|
124
McBitFont/New.cs
@@ -3,10 +3,12 @@ using System.Collections.Generic;
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Drawing.Drawing2D;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using static System.Net.Mime.MediaTypeNames;
|
||||||
|
|
||||||
namespace McBitFont {
|
namespace McBitFont {
|
||||||
public partial class New : Form {
|
public partial class New : Form {
|
||||||
@@ -25,18 +27,13 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private MainForm mainForm;
|
||||||
|
|
||||||
public New() {
|
|
||||||
|
public New(MainForm form) {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
mainForm = form;
|
||||||
|
this.Width = 300; this.Height = 250;
|
||||||
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) {
|
private void New_Load(object sender, EventArgs e) {
|
||||||
@@ -45,6 +42,7 @@ namespace McBitFont {
|
|||||||
toolTip1.SetToolTip(rbMono, "Monospaced font");
|
toolTip1.SetToolTip(rbMono, "Monospaced font");
|
||||||
toolTip1.SetToolTip(rbVar, "Variable width font");
|
toolTip1.SetToolTip(rbVar, "Variable width font");
|
||||||
toolTip1.SetToolTip(cbSingle, "Create one single frame");
|
toolTip1.SetToolTip(cbSingle, "Create one single frame");
|
||||||
|
toolTip1.SetToolTip(cbDigits, "Only digits characters with codes 48 - 57");
|
||||||
toolTip1.SetToolTip(cbNotPrintable, "Add not printable characters with codes 0 - 31");
|
toolTip1.SetToolTip(cbNotPrintable, "Add not printable characters with codes 0 - 31");
|
||||||
toolTip1.SetToolTip(cbLatin, "Add Latin characters with codes 32 - 127");
|
toolTip1.SetToolTip(cbLatin, "Add Latin characters with codes 32 - 127");
|
||||||
toolTip1.SetToolTip(cbExtended, "Add Extended characters with codes 128 - 255");
|
toolTip1.SetToolTip(cbExtended, "Add Extended characters with codes 128 - 255");
|
||||||
@@ -59,6 +57,78 @@ namespace McBitFont {
|
|||||||
cbEncoding.Items.Add(new EncodingItem(1256, "Arabic"));
|
cbEncoding.Items.Add(new EncodingItem(1256, "Arabic"));
|
||||||
cbEncoding.Items.Add(new EncodingItem(1257, "Baltic"));
|
cbEncoding.Items.Add(new EncodingItem(1257, "Baltic"));
|
||||||
cbEncoding.SelectedIndex = 1;
|
cbEncoding.SelectedIndex = 1;
|
||||||
|
|
||||||
|
lblFont.Text = dlgFont.Font.Name + " " + dlgFont.Font.Size.ToString();
|
||||||
|
updateChars();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateChars() {
|
||||||
|
int neww, newh;
|
||||||
|
const int pbw = 100;
|
||||||
|
const int pbh = 124;
|
||||||
|
int w = (int)nudNewX.Value;
|
||||||
|
int h = (int)nudNewY.Value;
|
||||||
|
int difw = pbw - w;
|
||||||
|
int difh = pbh - h;
|
||||||
|
string[] chars = { "A", "a" };
|
||||||
|
PictureBox[] pbs = { pbChar1, pbChar2 };
|
||||||
|
|
||||||
|
if (difw > 0) {
|
||||||
|
if (difh > 0) {
|
||||||
|
//not wider, not taller
|
||||||
|
if (difw < difh) {
|
||||||
|
neww = pbw;
|
||||||
|
newh = h * pbw / w;
|
||||||
|
} else {
|
||||||
|
newh = pbh;
|
||||||
|
neww = w * pbh / h;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// not wider, taller
|
||||||
|
newh = pbh;
|
||||||
|
neww = w * pbh / h;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (difh > 0) {
|
||||||
|
//wider, not taller
|
||||||
|
neww = pbw;
|
||||||
|
newh = h * pbw / w;
|
||||||
|
} else {
|
||||||
|
// wider, taller
|
||||||
|
if (difw > difh) {
|
||||||
|
neww = pbw;
|
||||||
|
newh = h * pbw / w;
|
||||||
|
} else {
|
||||||
|
newh = pbh;
|
||||||
|
neww = w * pbh / h;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Bitmap bmp, result;
|
||||||
|
Graphics g;
|
||||||
|
chars[0] = mainForm.decodeSymbol((int)nudChar1.Value);
|
||||||
|
chars[1] = mainForm.decodeSymbol((int)nudChar2.Value);
|
||||||
|
for (int i = 0; i < 2; i++) {
|
||||||
|
bmp = new Bitmap((int)nudNewX.Value, (int)nudNewY.Value);
|
||||||
|
g = Graphics.FromImage(bmp);
|
||||||
|
g.Clear(Color.White);
|
||||||
|
g.SmoothingMode = SmoothingMode.None;
|
||||||
|
g.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||||
|
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||||
|
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
|
||||||
|
g.DrawString(chars[i], dlgFont.Font, Brushes.Black, (int)nudShiftX.Value, (int)nudShiftY.Value);
|
||||||
|
g.Flush();
|
||||||
|
|
||||||
|
result = new Bitmap(neww, newh);
|
||||||
|
using (Graphics gr = Graphics.FromImage(result)) {
|
||||||
|
gr.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||||
|
gr.PixelOffsetMode = PixelOffsetMode.Half;
|
||||||
|
gr.DrawImage(bmp, 0, 0, neww, newh);
|
||||||
|
}
|
||||||
|
pbs[i].Image = result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnCancel_Click(object sender, EventArgs e) {
|
private void btnCancel_Click(object sender, EventArgs e) {
|
||||||
@@ -75,8 +145,38 @@ namespace McBitFont {
|
|||||||
nud.Select(0, nud.Text.Length);
|
nud.Select(0, nud.Text.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cbExtended_CheckedChanged(object sender, EventArgs e) {
|
private void btnFont_Click(object sender, EventArgs e) {
|
||||||
cbEncoding.Enabled = cbExtended.Checked;
|
if (dlgFont.ShowDialog() == DialogResult.OK) {
|
||||||
|
lblFont.Text = dlgFont.Font.Name + " " + dlgFont.Font.Size.ToString();
|
||||||
|
updateChars();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void nudNewX_ValueChanged(object sender, EventArgs e) {
|
||||||
|
updateChars();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkboxChanged(object sender, EventArgs e) {
|
||||||
|
if (!(sender as CheckBox).Focused) return;
|
||||||
|
|
||||||
|
bool c = !cbSingle.Checked;
|
||||||
|
bool d = !cbDigits.Checked;
|
||||||
|
bool p = cbNotPrintable.Checked;
|
||||||
|
bool x = cbExtended.Checked;
|
||||||
|
bool f = cbFontBased.Checked;
|
||||||
|
|
||||||
|
cbDigits.Enabled = c;
|
||||||
|
cbNotPrintable.Enabled = c && d;
|
||||||
|
cbLatin.Enabled = c && d;
|
||||||
|
cbExtended.Enabled = c && d;
|
||||||
|
cbFontBased.Enabled = c;
|
||||||
|
cbEncoding.Enabled = c && d && x;
|
||||||
|
rbMono.Enabled = c;
|
||||||
|
rbVar.Enabled = c;
|
||||||
|
pnlFont.Visible = c && f;
|
||||||
|
if (p && x) cbLatin.Checked = true;
|
||||||
|
this.Width = c && f ? 500 : 300;
|
||||||
|
btnOK.Enabled = !c || !d || x || p || cbLatin.Checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -120,4 +120,7 @@
|
|||||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="dlgFont.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>114, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
@@ -6,11 +6,11 @@ using System.Runtime.InteropServices;
|
|||||||
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
|
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
|
||||||
// связанных со сборкой.
|
// связанных со сборкой.
|
||||||
[assembly: AssemblyTitle("McBitFont")]
|
[assembly: AssemblyTitle("McBitFont")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("McFLY's Bit Font and Image Editor")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("McBitFont")]
|
[assembly: AssemblyProduct("McBitFont")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("© Anton Mukhin, 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Можно задать все значения или принять номера сборки и редакции по умолчанию
|
// Можно задать все значения или принять номера сборки и редакции по умолчанию
|
||||||
// используя "*", как показано ниже:
|
// используя "*", как показано ниже:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.7.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.7.0.0")]
|
||||||
|
140
McBitFont/Properties/Resources.Designer.cs
generated
@@ -70,6 +70,16 @@ namespace McBitFont.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap action_check {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("action_check", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -120,6 +130,96 @@ namespace McBitFont.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Disk_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Disk.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Door_out_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Door-out.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Folder_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Folder.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Folder_page_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Folder-page.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Page_copy_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Page-copy.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Page_paste_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Page-paste.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Page_white_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Page-white.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Shape_flip_horizontal_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Shape-flip-horizontal.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Famfamfam_Silk_Shape_flip_vertical_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Famfamfam-Silk-Shape-flip-vertical.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -140,6 +240,46 @@ namespace McBitFont.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap icon {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("icon", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap icon_32 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("icon_32", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap icon_64 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("icon_64", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap Ionic_Ionicons_Invert_mode_outline_16 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Ionic-Ionicons-Invert-mode-outline.16", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -118,31 +118,73 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
<data name="action_add" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Ionic-Ionicons-Invert-mode-outline.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\action_add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Ionic-Ionicons-Invert-mode-outline.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
|
||||||
<data name="action_remove" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\action_remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="arrow_back" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\arrow_back.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="arrow_down" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\arrow_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
</data>
|
||||||
<data name="arrow_next" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="arrow_next" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\arrow_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\arrow_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="arrow_top" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Famfamfam-Silk-Page-copy.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\arrow_top.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Famfamfam-Silk-Page-copy.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="file" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Famfamfam-Silk-Disk.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\file.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Famfamfam-Silk-Disk.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="folder_open" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="arrow_back" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\folder_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\arrow_back.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="action_check" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\action_check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Page-white.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Page-white.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Door-out.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Door-out.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Folder-page.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Folder-page.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Folder.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Folder.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="action_add" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\action_add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="folder_open" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\folder_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Page-paste.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Page-paste.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="action_remove" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\action_remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="file" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\file.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Shape-flip-vertical.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Shape-flip-vertical.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Shape-flip-horizontal.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Shape-flip-horizontal.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="arrow_top" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\arrow_top.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="arrow_down" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\arrow_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="icon_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\icon_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="icon_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\icon_64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
BIN
McBitFont/Resources/Famfamfam-Silk-Disk.16.png
Normal file
After Width: | Height: | Size: 899 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Door-out.16.png
Normal file
After Width: | Height: | Size: 932 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Folder-page.16.png
Normal file
After Width: | Height: | Size: 931 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Folder.16.png
Normal file
After Width: | Height: | Size: 732 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Page-copy.16.png
Normal file
After Width: | Height: | Size: 966 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Page-paste.16.png
Normal file
After Width: | Height: | Size: 914 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Page-white.16.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Shape-flip-horizontal.16.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
McBitFont/Resources/Famfamfam-Silk-Shape-flip-vertical.16.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
McBitFont/Resources/Ionic-Ionicons-Invert-mode-outline.16.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
McBitFont/Resources/action_check.png
Normal file
After Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
McBitFont/Resources/icon_32.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
McBitFont/Resources/icon_64.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
BIN
McBitFont/icon_64.ico
Normal file
After Width: | Height: | Size: 13 KiB |
14
McBitFont/packages.config
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="MessagePack" version="3.1.3" targetFramework="net472" />
|
||||||
|
<package id="MessagePack.Annotations" version="3.1.3" targetFramework="net472" />
|
||||||
|
<package id="MessagePackAnalyzer" version="3.1.3" targetFramework="net472" developmentDependency="true" />
|
||||||
|
<package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.NET.StringTools" version="17.11.4" targetFramework="net472" />
|
||||||
|
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||||
|
<package id="System.Collections.Immutable" version="8.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
||||||
|
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
||||||
|
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
|
||||||
|
</packages>
|
36
README.md
@@ -1,3 +1,37 @@
|
|||||||
# McBitFont
|
# McBitFont
|
||||||
|
|
||||||
pixel based Font to C arrays converter
|
McFLY's Bit Font and Image Editor
|
||||||
|
|
||||||
|
Features:
|
||||||
|
- Generate a project based on a font installed in the system
|
||||||
|
- Basic pixel manipulations: shift, flip, invert, etc...
|
||||||
|
- Save / Load your project for later edits
|
||||||
|
- Export as a C array in different formats
|
||||||
|
|
||||||
|
Requires .Net Framework 4.7+
|
||||||
|
|
||||||
|
Some basic hints on the interface:
|
||||||
|
- Mouse 1 to mark a puxel black
|
||||||
|
- Mouse 2 to mark a puxel white
|
||||||
|
- Drag the mouse holding a button to draw pixels
|
||||||
|
- Mouse Scroll to scroll up and down
|
||||||
|
- Crtl + scroll to scroll left and right
|
||||||
|
- Shift + scroll to zoom
|
||||||
|
|
||||||
|
|
||||||
|
Download in the Releases section!
|
||||||
|
|
||||||
|
|
||||||
|
### Screenshots:
|
||||||
|
|
||||||
|
Main window
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
New project dialog
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Export dialog
|
||||||
|
|
||||||
|

|
||||||
|
15
TODO.txt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Application:
|
||||||
|
|
||||||
|
Functionality:
|
||||||
|
- Context menu in symbol navigator
|
||||||
|
- Delete symbols before/after selected
|
||||||
|
- Shift all symbols on code line (change symbol codes)
|
||||||
|
- Specify starting code (extends the shift)
|
||||||
|
- Ability to make monospaced font a variable width one
|
||||||
|
- Undo/Redo
|
||||||
|
- Image import from a file
|
||||||
|
- Import from a text array
|
||||||
|
- Rectangle selection to mass-paint, shift and mirror pixels
|
||||||
|
- "Packed" fonts export
|
||||||
|
|
||||||
|
Bugs:
|
BIN
examples/CP437_Cyr_8x16.mbf
Normal file
BIN
examples/Font_5x7.mbf
Normal file
BIN
examples/Numbers_11x16.mbf
Normal file
BIN
examples/Numbers_13x20.mbf
Normal file
BIN
examples/gyver_icons_7x7.mbf
Normal file
BIN
examples/gyver_icons_8x8.mbf
Normal file
BIN
examples/haxrcorp_4089_cyrillic_altgr.mbf
Normal file
BIN
examples/helvB08_PREFAB.mbf
Normal file
BIN
examples/helvB08_t_cyrillic.mbf
Normal file
BIN
icons/Avosoft-Warm-Toolbar-Paste.16.png
Normal file
After Width: | Height: | Size: 661 B |
BIN
icons/Custom-Icon-Design-Flatastic-1-Copy.16.png
Normal file
After Width: | Height: | Size: 585 B |
BIN
icons/Custom-Icon-Design-Flatastic-8-Paste.16.png
Normal file
After Width: | Height: | Size: 584 B |
BIN
icons/Everaldo-Crystal-Clear-Mimetype-kmultiple-copy.16.png
Normal file
After Width: | Height: | Size: 632 B |
BIN
icons/Famfamfam-Silk-Disk.16.png
Normal file
After Width: | Height: | Size: 899 B |
BIN
icons/Famfamfam-Silk-Door-out.16.png
Normal file
After Width: | Height: | Size: 932 B |
BIN
icons/Famfamfam-Silk-Folder-page.16.png
Normal file
After Width: | Height: | Size: 931 B |
BIN
icons/Famfamfam-Silk-Folder.16.png
Normal file
After Width: | Height: | Size: 732 B |
BIN
icons/Famfamfam-Silk-Page-copy.16.png
Normal file
After Width: | Height: | Size: 966 B |
BIN
icons/Famfamfam-Silk-Page-paste.16.png
Normal file
After Width: | Height: | Size: 914 B |
BIN
icons/Famfamfam-Silk-Page-white-copy.16.png
Normal file
After Width: | Height: | Size: 387 B |
BIN
icons/Famfamfam-Silk-Page-white.16.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
icons/Famfamfam-Silk-Shape-flip-horizontal.16.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
icons/Famfamfam-Silk-Shape-flip-vertical.16.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
icons/Iconleak-Stainless-Copy.16.png
Normal file
After Width: | Height: | Size: 646 B |
BIN
icons/app/icon.ico
Normal file
After Width: | Height: | Size: 894 B |
BIN
icons/app/icon.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/app/icon_32.ico
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
icons/app/icon_32.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
icons/app/icon_64.ico
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
icons/app/icon_64.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
images/Screenshot_01.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
images/Screenshot_02.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
images/Screenshot_03.png
Normal file
After Width: | Height: | Size: 43 KiB |