From 2e9a25c04c0ff6c80e57a12eb77290853e5ff031 Mon Sep 17 00:00:00 2001 From: Tim Long Date: Mon, 19 Oct 2015 02:19:46 +0100 Subject: [PATCH 1/2] Added the ability to generate C# output in the format required by TA.NetMF.SSD1306 display driver for Netduino. --- .gitignore | 6 + TheDotFactory.sln | 6 +- TheDotFactory.sln.GhostDoc.xml | 41 + TheDotFactory/MainForm.cs | 416 ++-- .../OutputConfigurationForm.Designer.cs | 1875 +++++++++-------- TheDotFactory/OutputConfigurationForm.cs | 18 +- TheDotFactory/OutputConfigurationForm.resx | 107 +- TheDotFactory/OutputConfigurationManager.cs | 9 + .../Properties/Resources.Designer.cs | 4 +- TheDotFactory/Properties/Settings.Designer.cs | 4 +- TheDotFactory/TheDotFactory.csproj | 19 +- TheDotFactory/app.config | 8 +- 12 files changed, 1321 insertions(+), 1192 deletions(-) create mode 100644 .gitignore create mode 100644 TheDotFactory.sln.GhostDoc.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..071ac83 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/TheDotFactory/bin/Debug +/TheDotFactory/obj/Debug diff --git a/TheDotFactory.sln b/TheDotFactory.sln index f61d963..5e8cca9 100755 --- a/TheDotFactory.sln +++ b/TheDotFactory.sln @@ -1,6 +1,8 @@  -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual Studio 2008 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.23107.0 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TheDotFactory", "TheDotFactory\TheDotFactory.csproj", "{03FBC09E-C0BB-4D1D-BFDE-79454C60D78C}" EndProject Global diff --git a/TheDotFactory.sln.GhostDoc.xml b/TheDotFactory.sln.GhostDoc.xml new file mode 100644 index 0000000..b10c926 --- /dev/null +++ b/TheDotFactory.sln.GhostDoc.xml @@ -0,0 +1,41 @@ + + + *.min.js + jquery*.js + + + + + + + + + + + + .\Help + TA.NetMF.SSD1306 + + + true + false + false + false + + + true + false + false + false + true + true + false + + + true + + + + + + diff --git a/TheDotFactory/MainForm.cs b/TheDotFactory/MainForm.cs index 07b72f6..8f9326e 100755 --- a/TheDotFactory/MainForm.cs +++ b/TheDotFactory/MainForm.cs @@ -1515,21 +1515,75 @@ private void generateCharacterDescriptorArray(FontInfo fontInfo, ref string resu } } + private void generateCSharpFromFontInfo(FontInfo fontInfo, ref string resultTextSource, ref string resultTextHeader) + { + resultTextHeader = string.Empty; + var builder = new StringBuilder(); + builder.AppendLine("public class MyFont : BitMappedFont"); + builder.AppendLine(" {"); + builder.AppendLine(" public MyFont()"); + builder.AppendLine(" {"); + builder.AppendFormat($" CellPageHeight = {PixelsToStripes(fontInfo.charHeight)};\n"); + builder.AppendLine(" Characters = new Hashtable {"); + foreach (var characterGenerationInfo in fontInfo.characters) + { + GenerateCSharpCharacter(builder, characterGenerationInfo); + } + builder.AppendLine(" };"); // End of Hashtable + builder.AppendLine(" }"); // End of ctor + builder.AppendLine(" }"); // End of class + resultTextSource = builder.ToString(); + } + + void GenerateCSharpCharacter(StringBuilder builder, CharacterGenerationInfo charInfo) + { + if (charInfo.bitmapToGenerate == null) return; // Skip missing characters + builder.AppendLine($" {{'{charInfo.character}', new BitMappedCharacter"); + builder.AppendLine(" {"); + builder.AppendLine($" Width = {charInfo.width},"); + builder.AppendLine(" Stripes = new byte[]"); + builder.AppendLine(" {"); + var bitmap = charInfo.bitmapToGenerate; + var charData = generateStringFromPageArray(bitmap.Width, bitmap.Height, charInfo.pages); + builder.Append(charData); + builder.AppendLine(" }"); // End of byte[] Stripes + builder.AppendLine(" }},"); // End of character + } + + int PixelsToStripes(int pixels) + { + double stripes = (double) pixels / 8.0; + return (int) Math.Ceiling(stripes); + } + // generate the strings private void generateStringsFromFontInfo(FontInfo fontInfo, ref string resultTextSource, ref string resultTextHeader) - { + { + switch (m_outputConfig.codeGeneration) + { + case OutputConfiguration.CodeGeneration.C: + generateCFromFontInfo(fontInfo, ref resultTextSource, ref resultTextHeader); + break; + case OutputConfiguration.CodeGeneration.CSharp: + generateCSharpFromFontInfo(fontInfo,ref resultTextSource, ref resultTextHeader); + break; + default: + throw new ArgumentOutOfRangeException(); + } + } + + void generateCFromFontInfo(FontInfo fontInfo, ref string resultTextSource, ref string resultTextHeader) + { // // Character bitmaps // // according to config if (m_outputConfig.commentVariableName) - { + { // add source header - resultTextSource += String.Format("{0}Character bitmaps for {1} {2}pt{3}" + nl, - m_commentStartString, fontInfo.font.Name, - Math.Round(fontInfo.font.Size), m_commentEndString); - } + resultTextSource += String.Format("{0}Character bitmaps for {1} {2}pt{3}" + nl, m_commentStartString, fontInfo.font.Name, Math.Round(fontInfo.font.Size), m_commentEndString); + } // get bitmap name string charBitmapVarName = String.Format(m_outputConfig.varNfBitmaps, getFontName(ref fontInfo.font)) + "[]"; @@ -1538,25 +1592,20 @@ private void generateStringsFromFontInfo(FontInfo fontInfo, ref string resultTex resultTextHeader += String.Format("extern {0};" + nl, charBitmapVarName); // source var - resultTextSource += String.Format("{0} = " + nl+"{{" + nl, charBitmapVarName); + resultTextSource += String.Format("{0} = " + nl + "{{" + nl, charBitmapVarName); // iterate through letters for (int charIdx = 0; charIdx < fontInfo.characters.Length; ++charIdx) - { + { // skip empty bitmaps if (fontInfo.characters[charIdx].bitmapToGenerate == null) continue; // according to config if (m_outputConfig.commentCharDescriptor) - { + { // output character header - resultTextSource += String.Format("\t{0}@{1} '{2}' ({3} pixels wide){4}" + nl, - m_commentStartString, - fontInfo.characters[charIdx].offsetInBytes, - fontInfo.characters[charIdx].character, - fontInfo.characters[charIdx].width, - m_commentEndString); - } + resultTextSource += String.Format("\t{0}@{1} '{2}' ({3} pixels wide){4}" + nl, m_commentStartString, fontInfo.characters[charIdx].offsetInBytes, fontInfo.characters[charIdx].character, fontInfo.characters[charIdx].width, m_commentEndString); + } // now add letter array var charInfo = fontInfo.characters[charIdx]; @@ -1565,11 +1614,11 @@ private void generateStringsFromFontInfo(FontInfo fontInfo, ref string resultTex // space out if (charIdx != fontInfo.characters.Length - 1 && m_outputConfig.commentCharDescriptor) - { + { // space between chars resultTextSource += nl; + } } - } // space out resultTextSource += "};" + nl + nl; @@ -1587,16 +1636,13 @@ private void generateStringsFromFontInfo(FontInfo fontInfo, ref string resultTex // // Font descriptor // - + // according to config if (m_outputConfig.commentVariableName) - { + { // result string - resultTextSource += String.Format("{0}Font information for {1} {2}pt{3}" + nl, - m_commentStartString, - fontInfo.font.Name, Math.Round(fontInfo.font.Size), - m_commentEndString); - } + resultTextSource += String.Format("{0}Font information for {1} {2}pt{3}" + nl, m_commentStartString, fontInfo.font.Name, Math.Round(fontInfo.font.Size), m_commentEndString); + } // character name string fontInfoVarName = String.Format(m_outputConfig.varNfFontInfo, getFontName(ref fontInfo.font)); @@ -1606,127 +1652,95 @@ private void generateStringsFromFontInfo(FontInfo fontInfo, ref string resultTex // the font character height string fontCharHeightString = "", spaceCharacterPixelWidthString = ""; - + // get character height sstring - displayed according to output configuration if (m_outputConfig.descFontHeight != OutputConfiguration.DescriptorFormat.DontDisplay) - { + { // convert the value - fontCharHeightString = String.Format("\t{0}, {1} Character height{2}" + nl, - convertValueByDescriptorFormat(m_outputConfig.descFontHeight, fontInfo.charHeight), - m_commentStartString, - m_commentEndString); - } + fontCharHeightString = String.Format("\t{0}, {1} Character height{2}" + nl, convertValueByDescriptorFormat(m_outputConfig.descFontHeight, fontInfo.charHeight), m_commentStartString, m_commentEndString); + } // get space char width, if it is up to driver to generate if (!m_outputConfig.generateSpaceCharacterBitmap) - { + { // convert the value - spaceCharacterPixelWidthString = String.Format("\t{0}, {1} Width, in pixels, of space character{2}" + nl, - m_outputConfig.spaceGenerationPixels, - m_commentStartString, - m_commentEndString); - } + spaceCharacterPixelWidthString = String.Format("\t{0}, {1} Width, in pixels, of space character{2}" + nl, m_outputConfig.spaceGenerationPixels, m_commentStartString, m_commentEndString); + } // font info - resultTextSource += String.Format("{2} =" + nl+"{{" + nl + - "{3}" + - "\t{4}, {0} Start character{1}" + nl + - "\t{5}, {0} End character{1}" + nl + - "{6}" + - "{7}" + - "\t{8}, {0} Character bitmap array{1}" + nl + - "}};" + nl, - m_commentStartString, - m_commentEndString, - fontInfoVarName, - fontCharHeightString, - getCharacterDisplayString(fontInfo.startChar), - getCharacterDisplayString(fontInfo.endChar), - spaceCharacterPixelWidthString, - getFontInfoDescriptorsString(fontInfo, blockLookupGenerated), - getVariableNameFromExpression(String.Format(m_outputConfig.varNfBitmaps, getFontName(ref fontInfo.font)))); + resultTextSource += String.Format("{2} =" + nl + "{{" + nl + "{3}" + "\t{4}, {0} Start character{1}" + nl + "\t{5}, {0} End character{1}" + nl + "{6}" + "{7}" + "\t{8}, {0} Character bitmap array{1}" + nl + "}};" + nl, m_commentStartString, m_commentEndString, fontInfoVarName, fontCharHeightString, getCharacterDisplayString(fontInfo.startChar), getCharacterDisplayString(fontInfo.endChar), spaceCharacterPixelWidthString, getFontInfoDescriptorsString(fontInfo, blockLookupGenerated), getVariableNameFromExpression(String.Format(m_outputConfig.varNfBitmaps, getFontName(ref fontInfo.font)))); // add the appropriate entity to the header if (blockLookupGenerated) - { + { // add block lookup to header resultTextHeader += String.Format("extern const FONT_CHAR_INFO_LOOKUP {0}[];" + nl, getCharacterDescriptorArrayLookupDisplayString(fontInfo)); - } + } else - { + { // add block lookup to header resultTextHeader += String.Format("extern {0}[];" + nl, String.Format(m_outputConfig.varNfCharInfo, getFontName(ref fontInfo.font))); + } } - } - + // get the descriptors - private string getFontInfoDescriptorsString(FontInfo fontInfo, bool blockLookupGenerated) - { + string getFontInfoDescriptorsString(FontInfo fontInfo, bool blockLookupGenerated) + { string descriptorString = ""; // if a lookup arrays are required, point to it if (m_outputConfig.generateLookupBlocks) - { + { // add to string - descriptorString += String.Format("\t{0}, {1} Character block lookup{2}" + nl, - blockLookupGenerated ? getCharacterDescriptorArrayLookupDisplayString(fontInfo) : "NULL", - m_commentStartString, m_commentEndString); + descriptorString += String.Format("\t{0}, {1} Character block lookup{2}" + nl, blockLookupGenerated ? getCharacterDescriptorArrayLookupDisplayString(fontInfo) : "NULL", m_commentStartString, m_commentEndString); // add to string - descriptorString += String.Format("\t{0}, {1} Character descriptor array{2}" + nl, - blockLookupGenerated ? "NULL" : getVariableNameFromExpression(String.Format(m_outputConfig.varNfCharInfo, getFontName(ref fontInfo.font))), - m_commentStartString, m_commentEndString); - } + descriptorString += String.Format("\t{0}, {1} Character descriptor array{2}" + nl, blockLookupGenerated ? "NULL" : getVariableNameFromExpression(String.Format(m_outputConfig.varNfCharInfo, getFontName(ref fontInfo.font))), m_commentStartString, m_commentEndString); + } else - { + { // add descriptor array - descriptorString += String.Format("\t{0}, {1} Character descriptor array{2}" + nl, - getVariableNameFromExpression(String.Format(m_outputConfig.varNfCharInfo, getFontName(ref fontInfo.font))), - m_commentStartString, m_commentEndString); - } + descriptorString += String.Format("\t{0}, {1} Character descriptor array{2}" + nl, getVariableNameFromExpression(String.Format(m_outputConfig.varNfCharInfo, getFontName(ref fontInfo.font))), m_commentStartString, m_commentEndString); + } // return the string return descriptorString; - } - + } + // generate the required output for text - private void generateOutputForFont(Font font, ref string resultTextSource, ref string resultTextHeader) - { + void generateOutputForFont(Font font, ref string resultTextSource, ref string resultTextHeader) + { // do nothing if no chars defined if (txtInputText.Text.Length == 0) return; - + // according to config if (m_outputConfig.commentVariableName) - { + { // add source file header - resultTextSource += String.Format("{0}" + nl+"{1} Font data for {2} {3}pt" + nl+"{4}" + nl + nl, - m_commentStartString, m_commentBlockMiddleString, font.Name, Math.Round(font.Size), - m_commentBlockEndString); + resultTextSource += String.Format("{0}" + nl + "{1} Font data for {2} {3}pt" + nl + "{4}" + nl + nl, m_commentStartString, m_commentBlockMiddleString, font.Name, Math.Round(font.Size), m_commentBlockEndString); // add header file header - resultTextHeader += String.Format("{0}Font data for {1} {2}pt{3}" + nl, - m_commentStartString, font.Name, Math.Round(font.Size), - m_commentEndString); - } + resultTextHeader += String.Format("{0}Font data for {1} {2}pt{3}" + nl, m_commentStartString, font.Name, Math.Round(font.Size), m_commentEndString); + } // populate the font info FontInfo fontInfo = populateFontInfo(font); - + // We now have all information required per font and per character. // time to generate the string generateStringsFromFontInfo(fontInfo, ref resultTextSource, ref resultTextHeader); - } + } // generate the required output for image - private void generateOutputForImage(ref Bitmap bitmapOriginal, ref string resultTextSource, ref string resultTextHeader) - { + void generateOutputForImage(ref Bitmap bitmapOriginal, ref string resultTextSource, ref string resultTextHeader) + { // the name of the bitmap string imageName = scrubVariableName(txtImageName.Text); // check if bitmap is assigned if (m_currentLoadedBitmap != null) - { + { // // Bitmap manipulation // @@ -1740,33 +1754,26 @@ private void generateOutputForImage(ref Bitmap bitmapOriginal, ref string result // try to manipulate teh bitmap if (!manipulateBitmap(bitmapOriginal, bitmapBorder, out bitmapManipulated, 0, 0)) - { + { // show error - MessageBox.Show("No black pixels found in bitmap (currently only monochrome bitmaps supported)", - "Can't convert bitmap", - MessageBoxButtons.OK, - MessageBoxIcon.Error); + MessageBox.Show("No black pixels found in bitmap (currently only monochrome bitmaps supported)", "Can't convert bitmap", MessageBoxButtons.OK, MessageBoxIcon.Error); // stop here, failed to manipulate the bitmap for whatever reason return; - } + } // for debugging // bitmapManipulated.Save(String.Format("C:/bms/manip.bmp")); // according to config if (m_outputConfig.commentVariableName) - { + { // add source file header - resultTextSource += String.Format("{0}" + nl+"{1} Image data for {2}" + nl+"{3}" + nl + nl, - m_commentStartString, m_commentBlockMiddleString, imageName, - m_commentBlockEndString); + resultTextSource += String.Format("{0}" + nl + "{1} Image data for {2}" + nl + "{3}" + nl + nl, m_commentStartString, m_commentBlockMiddleString, imageName, m_commentBlockEndString); // add header file header - resultTextHeader += String.Format("{0}Bitmap info for {1}{2}" + nl, - m_commentStartString, imageName, - m_commentEndString); - } + resultTextHeader += String.Format("{0}Bitmap info for {1}{2}" + nl, m_commentStartString, imageName, m_commentEndString); + } // bitmap varname string dataVarName = String.Format(m_outputConfig.varNfBitmaps, imageName); @@ -1775,7 +1782,7 @@ private void generateOutputForImage(ref Bitmap bitmapOriginal, ref string result resultTextHeader += String.Format("extern {0};" + nl, dataVarName); // add header - resultTextSource += String.Format("{0} =" + nl+"{{" + nl, dataVarName); + resultTextSource += String.Format("{0} =" + nl + "{{" + nl, dataVarName); // // Bitmap to string @@ -1798,11 +1805,10 @@ private void generateOutputForImage(ref Bitmap bitmapOriginal, ref string result // according to config if (m_outputConfig.commentVariableName) - { + { // set sizes comment - resultTextSource += String.Format("{0}Bitmap sizes for {1}{2}" + nl, - m_commentStartString, imageName, m_commentEndString); - } + resultTextSource += String.Format("{0}Bitmap sizes for {1}{2}" + nl, m_commentStartString, imageName, m_commentEndString); + } // get var name string heightVarName = String.Format(m_outputConfig.varNfHeight, imageName); @@ -1810,39 +1816,39 @@ private void generateOutputForImage(ref Bitmap bitmapOriginal, ref string result // display width in bytes? if (m_outputConfig.descImgWidth == OutputConfiguration.DescriptorFormat.DisplayInBytes) - { + { // in pages resultTextSource += String.Format("{0}Pages = {1};" + nl, widthVarName, pagesPerRow); resultTextHeader += String.Format("extern {0}Pages;" + nl, widthVarName); - } + } else - { + { // in pixels resultTextSource += String.Format("{0}Pixels = {1};" + nl, widthVarName, bitmapManipulated.Width); resultTextHeader += String.Format("extern {0}Pixels;" + nl, widthVarName); - } + } // display height in bytes? if (m_outputConfig.descImgHeight == OutputConfiguration.DescriptorFormat.DisplayInBytes) - { + { // in pages resultTextSource += String.Format("{0}Pages = {1};" + nl, heightVarName, convertValueByDescriptorFormat(OutputConfiguration.DescriptorFormat.DisplayInBytes, bitmapManipulated.Height)); resultTextHeader += String.Format("extern {0}Pages;" + nl, heightVarName); - } + } else - { + { // in pixels - resultTextSource += String.Format("{0}Pixels = {1};"+nl, heightVarName, bitmapManipulated.Height); - resultTextHeader += String.Format("extern {0}Pixels;"+nl, heightVarName); + resultTextSource += String.Format("{0}Pixels = {1};" + nl, heightVarName, bitmapManipulated.Height); + resultTextHeader += String.Format("extern {0}Pixels;" + nl, heightVarName); + } } } - } - private void btnGenerate_Click(object sender, EventArgs e) - { + void btnGenerate_Click(object sender, EventArgs e) + { // set focus somewhere else label1.Focus(); - + // save default input text Properties.Settings.Default.InputText = txtInputText.Text; Properties.Settings.Default.Save(); @@ -1853,29 +1859,29 @@ private void btnGenerate_Click(object sender, EventArgs e) // check which tab is active if (tcInput.SelectedTab.Text == "Text") - { + { // generate output text generateOutputForFont(fontDlgInputFont.Font, ref resultStringSource, ref resultStringHeader); - } + } else - { + { // generate output bitmap generateOutputForImage(ref m_currentLoadedBitmap, ref resultStringSource, ref resultStringHeader); - } + } // color code the strings and output outputSyntaxColoredString(resultStringSource, ref txtOutputTextSource); outputSyntaxColoredString(resultStringHeader, ref txtOutputTextHeader); - } + } - private void btnBitmapLoad_Click(object sender, EventArgs e) - { + void btnBitmapLoad_Click(object sender, EventArgs e) + { // set filter dlgOpenFile.Filter = "Image Files (*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp"; // open the dialog if (dlgOpenFile.ShowDialog() != DialogResult.Cancel) - { + { // load the bitmap m_currentLoadedBitmap = new Bitmap(dlgOpenFile.FileName); @@ -1887,45 +1893,45 @@ private void btnBitmapLoad_Click(object sender, EventArgs e) // guess a name txtImageName.Text = Path.GetFileNameWithoutExtension(dlgOpenFile.FileName); + } } - } // parse the output text line void outputSyntaxColoredString(string outputString, ref RichTextBox outputTextBox) - { + { // clear the current text outputTextBox.Text = ""; - - String [] lines = outputString.Split(new string[] {nl}, StringSplitOptions.None); + + String[] lines = outputString.Split(new string[] {nl}, StringSplitOptions.None); // for now don't syntax color for more than 2000 lines if (lines.Length > 1500) - { + { // just set text outputTextBox.Text = outputString; return; - } + } Font fRegular = new Font("Courier New", 10, FontStyle.Regular); Font fBold = new Font("Courier New", 10, FontStyle.Bold); - String[] keywords = { "uint_8", "const", "extern", "char", "unsigned", "int", "short", "long" }; + String[] keywords = {"uint_8", "const", "extern", "char", "unsigned", "int", "short", "long"}; Regex re = new Regex(@"([ \t{}();])"); // iterate over the richtext box and color it foreach (string line in lines) - { + { String[] tokens = re.Split(line); // for each found token foreach (string token in tokens) - { + { // Set the token's default color and font. outputTextBox.SelectionColor = Color.Black; outputTextBox.SelectionFont = fRegular; // Check for a comment. if (token == "//" || token.StartsWith("//")) - { + { // Find the start of the comment and then extract the whole comment. int index = line.IndexOf("//"); string comment = line.Substring(index, line.Length - index); @@ -1933,11 +1939,11 @@ void outputSyntaxColoredString(string outputString, ref RichTextBox outputTextBo outputTextBox.SelectionFont = fRegular; outputTextBox.SelectedText = comment; break; - } + } // Check for a comment. TODO: terminate coloring if (token == "/*" || token.StartsWith("/*")) - { + { // Find the start of the comment and then extract the whole comment. int index = line.IndexOf("/*"); string comment = line.Substring(index, line.Length - index); @@ -1945,11 +1951,11 @@ void outputSyntaxColoredString(string outputString, ref RichTextBox outputTextBo outputTextBox.SelectionFont = fRegular; outputTextBox.SelectedText = comment; break; - } + } // Check for a comment. TODO: terminate coloring if (token == "**" || token.StartsWith("**")) - { + { // Find the start of the comment and then extract the whole comment. int index = line.IndexOf("**"); string comment = line.Substring(index, line.Length - index); @@ -1957,11 +1963,11 @@ void outputSyntaxColoredString(string outputString, ref RichTextBox outputTextBo outputTextBox.SelectionFont = fRegular; outputTextBox.SelectedText = comment; break; - } + } // Check for a comment. TODO: terminate coloring if (token == "*/" || token.StartsWith("*/")) - { + { // Find the start of the comment and then extract the whole comment. int index = line.IndexOf("*/"); string comment = line.Substring(index, line.Length - index); @@ -1969,87 +1975,87 @@ void outputSyntaxColoredString(string outputString, ref RichTextBox outputTextBo outputTextBox.SelectionFont = fRegular; outputTextBox.SelectedText = comment; break; - } + } // Check whether the token is a keyword. - + for (int i = 0; i < keywords.Length; i++) - { - if (keywords[i] == token) { + if (keywords[i] == token) + { // Apply alternative color and font to highlight keyword. outputTextBox.SelectionColor = Color.Blue; outputTextBox.SelectionFont = fBold; break; + } } - } // set the token text outputTextBox.SelectedText = token; - } + } outputTextBox.SelectedText = nl; + } } - } - private void exitToolStripMenuItem_Click(object sender, EventArgs e) - { + void exitToolStripMenuItem_Click(object sender, EventArgs e) + { // close self Close(); - } + } - private void splitContainer1_MouseUp(object sender, MouseEventArgs e) - { + void splitContainer1_MouseUp(object sender, MouseEventArgs e) + { // no focus label1.Focus(); - } + } - private void btnInsertText_Click(object sender, EventArgs e) - { + void btnInsertText_Click(object sender, EventArgs e) + { // no focus label1.Focus(); // insert text - txtInputText.Text += ((ComboBoxItem)cbxTextInsert.SelectedItem).value; - } + txtInputText.Text += ((ComboBoxItem) cbxTextInsert.SelectedItem).value; + } - private void aboutToolStripMenuItem1_Click(object sender, EventArgs e) - { + void aboutToolStripMenuItem1_Click(object sender, EventArgs e) + { // about AboutForm about = new AboutForm(); about.FormBorderStyle = FormBorderStyle.FixedToolWindow; // show teh about form about.Show(); - } - + } + // set comment strings according to config - private void updateCommentStrings() - { - if (m_outputConfig.commentStyle == OutputConfiguration.CommentStyle.Cpp) + void updateCommentStrings() { + if (m_outputConfig.commentStyle == OutputConfiguration.CommentStyle.Cpp) + { // strings for comments m_commentStartString = "// "; m_commentBlockEndString = m_commentBlockMiddleString = m_commentStartString; m_commentEndString = ""; - } + } else - { + { // strings for comments m_commentStartString = "/* "; m_commentBlockMiddleString = "** "; m_commentEndString = " */"; m_commentBlockEndString = "*/"; + } } - } - - private void btnOutputConfig_Click(object sender, EventArgs e) - { + + void btnOutputConfig_Click(object sender, EventArgs e) + { // no focus label1.Focus(); // get it OutputConfigurationForm outputConfigForm = new OutputConfigurationForm(ref m_outputConfigurationManager); - + // get the oc int selectedConfigurationIndex = outputConfigForm.getOutputConfiguration(cbxOutputConfiguration.SelectedIndex); @@ -2064,73 +2070,65 @@ private void btnOutputConfig_Click(object sender, EventArgs e) // update comment strings according to conifg updateCommentStrings(); - } + } - private void button4_Click(object sender, EventArgs e) - { - } + void button4_Click(object sender, EventArgs e) {} - private void cbxOutputConfiguration_SelectedIndexChanged(object sender, EventArgs e) - { + void cbxOutputConfiguration_SelectedIndexChanged(object sender, EventArgs e) + { // check if any configuration selected if (cbxOutputConfiguration.SelectedIndex != -1) - { + { // get the configuration m_outputConfig = m_outputConfigurationManager.configurationGetAtIndex(cbxOutputConfiguration.SelectedIndex); - } + } // save selected index for next time Properties.Settings.Default.OutputConfigIndex = cbxOutputConfiguration.SelectedIndex; // save Properties.Settings.Default.Save(); - } + } - private void button4_Click_1(object sender, EventArgs e) - { - - } + void button4_Click_1(object sender, EventArgs e) {} - private void tsmCopySource_Click(object sender, EventArgs e) - { + void tsmCopySource_Click(object sender, EventArgs e) + { // copy if any text if (txtOutputTextSource.Text != "") - { + { // copy Clipboard.SetText(txtOutputTextSource.Text); + } } - } - private void tsmCopyHeader_Click(object sender, EventArgs e) - { + void tsmCopyHeader_Click(object sender, EventArgs e) + { // copy if any text if (txtOutputTextHeader.Text != "") - { + { // copy Clipboard.SetText(txtOutputTextHeader.Text); + } } - } - private void ctxMenuHeader_Opening(object sender, CancelEventArgs e) - { + void ctxMenuHeader_Opening(object sender, CancelEventArgs e) {} - } - - private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) - { + void saveAsToolStripMenuItem_Click(object sender, EventArgs e) + { // zero out file name dlgSaveAs.FileName = ""; // try to prompt if (dlgSaveAs.ShowDialog() != DialogResult.Cancel) - { + { // get the file name string moduleName = dlgSaveAs.FileName; // save the text txtOutputTextSource.SaveFile(String.Format("{0}.c", moduleName), RichTextBoxStreamType.PlainText); txtOutputTextHeader.SaveFile(String.Format("{0}.h", moduleName), RichTextBoxStreamType.PlainText); + } } - } } } diff --git a/TheDotFactory/OutputConfigurationForm.Designer.cs b/TheDotFactory/OutputConfigurationForm.Designer.cs index eefebd6..0eb751e 100755 --- a/TheDotFactory/OutputConfigurationForm.Designer.cs +++ b/TheDotFactory/OutputConfigurationForm.Designer.cs @@ -28,919 +28,961 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OutputConfigurationForm)); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.cbxByteLeadingChar = new System.Windows.Forms.ComboBox(); - this.label20 = new System.Windows.Forms.Label(); - this.cbxByteFormat = new System.Windows.Forms.ComboBox(); - this.label18 = new System.Windows.Forms.Label(); - this.cbxByteOrder = new System.Windows.Forms.ComboBox(); - this.label19 = new System.Windows.Forms.Label(); - this.gbxPadding = new System.Windows.Forms.GroupBox(); - this.cbxPaddingVert = new System.Windows.Forms.ComboBox(); - this.label17 = new System.Windows.Forms.Label(); - this.cbxPaddingHoriz = new System.Windows.Forms.ComboBox(); - this.label16 = new System.Windows.Forms.Label(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.cbxFlipVert = new System.Windows.Forms.CheckBox(); - this.cbxFlipHoriz = new System.Windows.Forms.CheckBox(); - this.cbxRotation = new System.Windows.Forms.ComboBox(); - this.cbxOutputConfigurations = new System.Windows.Forms.ComboBox(); - this.label15 = new System.Windows.Forms.Label(); - this.btnSaveNewConfig = new System.Windows.Forms.Button(); - this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.txtBmpVisualizerChar = new System.Windows.Forms.TextBox(); - this.cbxCommentStyle = new System.Windows.Forms.ComboBox(); - this.label1 = new System.Windows.Forms.Label(); - this.cbxCommentCharDesc = new System.Windows.Forms.CheckBox(); - this.cbxCommentCharVisual = new System.Windows.Forms.CheckBox(); - this.cbxCommentVarName = new System.Windows.Forms.CheckBox(); - this.btnApply = new System.Windows.Forms.Button(); - this.groupBox5 = new System.Windows.Forms.GroupBox(); - this.rbnLineWrapAtBitmap = new System.Windows.Forms.RadioButton(); - this.rbnLineWrapAtColumn = new System.Windows.Forms.RadioButton(); - this.label4 = new System.Windows.Forms.Label(); - this.groupBox6 = new System.Windows.Forms.GroupBox(); - this.cbxImgHeightFormat = new System.Windows.Forms.ComboBox(); - this.label22 = new System.Windows.Forms.Label(); - this.cbxImgWidthFormat = new System.Windows.Forms.ComboBox(); - this.label23 = new System.Windows.Forms.Label(); - this.txtLookupBlocksNewAfterCharCount = new System.Windows.Forms.TextBox(); - this.label21 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.cbxGenerateLookupBlocks = new System.Windows.Forms.CheckBox(); - this.label14 = new System.Windows.Forms.Label(); - this.cbxGenerateLookupArray = new System.Windows.Forms.CheckBox(); - this.cbxFontHeightFormat = new System.Windows.Forms.ComboBox(); - this.label2 = new System.Windows.Forms.Label(); - this.cbxCharHeightFormat = new System.Windows.Forms.ComboBox(); - this.label3 = new System.Windows.Forms.Label(); - this.cbxCharWidthFormat = new System.Windows.Forms.ComboBox(); - this.label5 = new System.Windows.Forms.Label(); - this.groupBox7 = new System.Windows.Forms.GroupBox(); - this.cbxGenerateSpaceBitmap = new System.Windows.Forms.CheckBox(); - this.label6 = new System.Windows.Forms.Label(); - this.txtSpacePixels = new System.Windows.Forms.TextBox(); - this.btnDeleteConfig = new System.Windows.Forms.Button(); - this.btnUpdateConfig = new System.Windows.Forms.Button(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.txtVarNfHeight = new System.Windows.Forms.TextBox(); - this.label12 = new System.Windows.Forms.Label(); - this.txtVarNfWidth = new System.Windows.Forms.TextBox(); - this.label11 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.txtVarNfFontInfo = new System.Windows.Forms.TextBox(); - this.txtVarNfCharInfo = new System.Windows.Forms.TextBox(); - this.txtVarNfBitmaps = new System.Windows.Forms.TextBox(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.cbxBitLayout = new System.Windows.Forms.ComboBox(); - this.label24 = new System.Windows.Forms.Label(); - this.groupBox3.SuspendLayout(); - this.gbxPadding.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.groupBox4.SuspendLayout(); - this.groupBox5.SuspendLayout(); - this.groupBox6.SuspendLayout(); - this.groupBox7.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.SuspendLayout(); - // - // groupBox3 - // - this.groupBox3.Controls.Add(this.label24); - this.groupBox3.Controls.Add(this.cbxBitLayout); - this.groupBox3.Controls.Add(this.cbxByteLeadingChar); - this.groupBox3.Controls.Add(this.label20); - this.groupBox3.Controls.Add(this.cbxByteFormat); - this.groupBox3.Controls.Add(this.label18); - this.groupBox3.Controls.Add(this.cbxByteOrder); - this.groupBox3.Controls.Add(this.label19); - this.groupBox3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox3.Location = new System.Drawing.Point(209, 156); - this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(228, 113); - this.groupBox3.TabIndex = 22; - this.groupBox3.TabStop = false; - this.groupBox3.Text = "Byte"; - // - // cbxByteLeadingChar - // - this.cbxByteLeadingChar.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxByteLeadingChar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxByteLeadingChar.FormattingEnabled = true; - this.cbxByteLeadingChar.Location = new System.Drawing.Point(69, 86); - this.cbxByteLeadingChar.Name = "cbxByteLeadingChar"; - this.cbxByteLeadingChar.Size = new System.Drawing.Size(75, 21); - this.cbxByteLeadingChar.TabIndex = 42; - this.cbxByteLeadingChar.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label20 - // - this.label20.AutoSize = true; - this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label20.Location = new System.Drawing.Point(15, 90); - this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(48, 13); - this.label20.TabIndex = 26; - this.label20.Text = "Leading:"; - // - // cbxByteFormat - // - this.cbxByteFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxByteFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxByteFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxByteFormat.FormattingEnabled = true; - this.cbxByteFormat.Location = new System.Drawing.Point(69, 62); - this.cbxByteFormat.Name = "cbxByteFormat"; - this.cbxByteFormat.Size = new System.Drawing.Size(112, 21); - this.cbxByteFormat.TabIndex = 24; - this.cbxByteFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - this.cbxByteFormat.TextChanged += new System.EventHandler(this.cbxByteFormat_TextChanged); - // - // label18 - // - this.label18.AutoSize = true; - this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label18.Location = new System.Drawing.Point(21, 66); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(42, 13); - this.label18.TabIndex = 23; - this.label18.Text = "Format:"; - // - // cbxByteOrder - // - this.cbxByteOrder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxByteOrder.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxByteOrder.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxByteOrder.FormattingEnabled = true; - this.cbxByteOrder.Location = new System.Drawing.Point(69, 38); - this.cbxByteOrder.Name = "cbxByteOrder"; - this.cbxByteOrder.Size = new System.Drawing.Size(112, 21); - this.cbxByteOrder.TabIndex = 22; - this.cbxByteOrder.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label19 - // - this.label19.AutoSize = true; - this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label19.Location = new System.Drawing.Point(27, 42); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(36, 13); - this.label19.TabIndex = 21; - this.label19.Text = "Order:"; - // - // gbxPadding - // - this.gbxPadding.Controls.Add(this.cbxPaddingVert); - this.gbxPadding.Controls.Add(this.label17); - this.gbxPadding.Controls.Add(this.cbxPaddingHoriz); - this.gbxPadding.Controls.Add(this.label16); - this.gbxPadding.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.gbxPadding.Location = new System.Drawing.Point(125, 58); - this.gbxPadding.Name = "gbxPadding"; - this.gbxPadding.Size = new System.Drawing.Size(194, 92); - this.gbxPadding.TabIndex = 21; - this.gbxPadding.TabStop = false; - this.gbxPadding.Text = "Padding Removal"; - // - // cbxPaddingVert - // - this.cbxPaddingVert.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxPaddingVert.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxPaddingVert.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxPaddingVert.FormattingEnabled = true; - this.cbxPaddingVert.Location = new System.Drawing.Point(73, 54); - this.cbxPaddingVert.Name = "cbxPaddingVert"; - this.cbxPaddingVert.Size = new System.Drawing.Size(103, 21); - this.cbxPaddingVert.TabIndex = 24; - this.cbxPaddingVert.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label17 - // - this.label17.AutoSize = true; - this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label17.Location = new System.Drawing.Point(16, 57); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(54, 13); - this.label17.TabIndex = 23; - this.label17.Text = "Width (X):"; - // - // cbxPaddingHoriz - // - this.cbxPaddingHoriz.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxPaddingHoriz.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxPaddingHoriz.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxPaddingHoriz.FormattingEnabled = true; - this.cbxPaddingHoriz.Location = new System.Drawing.Point(73, 28); - this.cbxPaddingHoriz.Name = "cbxPaddingHoriz"; - this.cbxPaddingHoriz.Size = new System.Drawing.Size(103, 21); - this.cbxPaddingHoriz.TabIndex = 22; - this.cbxPaddingHoriz.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label16 - // - this.label16.AutoSize = true; - this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label16.Location = new System.Drawing.Point(13, 31); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(57, 13); - this.label16.TabIndex = 21; - this.label16.Text = "Height (Y):"; - // - // groupBox1 - // - this.groupBox1.Controls.Add(this.cbxFlipVert); - this.groupBox1.Controls.Add(this.cbxFlipHoriz); - this.groupBox1.Controls.Add(this.cbxRotation); - this.groupBox1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox1.Location = new System.Drawing.Point(17, 58); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(101, 92); - this.groupBox1.TabIndex = 20; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "Flip/ Rotate"; - // - // cbxFlipVert - // - this.cbxFlipVert.AutoSize = true; - this.cbxFlipVert.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxFlipVert.Location = new System.Drawing.Point(15, 41); - this.cbxFlipVert.Name = "cbxFlipVert"; - this.cbxFlipVert.Size = new System.Drawing.Size(52, 17); - this.cbxFlipVert.TabIndex = 28; - this.cbxFlipVert.Text = "Flip Y"; - this.cbxFlipVert.UseVisualStyleBackColor = true; - this.cbxFlipVert.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // cbxFlipHoriz - // - this.cbxFlipHoriz.AutoSize = true; - this.cbxFlipHoriz.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxFlipHoriz.Location = new System.Drawing.Point(15, 23); - this.cbxFlipHoriz.Name = "cbxFlipHoriz"; - this.cbxFlipHoriz.Size = new System.Drawing.Size(52, 17); - this.cbxFlipHoriz.TabIndex = 27; - this.cbxFlipHoriz.Text = "Flip X"; - this.cbxFlipHoriz.UseVisualStyleBackColor = true; - this.cbxFlipHoriz.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // cbxRotation - // - this.cbxRotation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxRotation.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxRotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxRotation.FormattingEnabled = true; - this.cbxRotation.Location = new System.Drawing.Point(15, 62); - this.cbxRotation.Name = "cbxRotation"; - this.cbxRotation.Size = new System.Drawing.Size(59, 21); - this.cbxRotation.TabIndex = 23; - this.cbxRotation.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // cbxOutputConfigurations - // - this.cbxOutputConfigurations.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxOutputConfigurations.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxOutputConfigurations.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxOutputConfigurations.FormattingEnabled = true; - this.cbxOutputConfigurations.Location = new System.Drawing.Point(82, 12); - this.cbxOutputConfigurations.Name = "cbxOutputConfigurations"; - this.cbxOutputConfigurations.Size = new System.Drawing.Size(493, 21); - this.cbxOutputConfigurations.TabIndex = 36; - this.cbxOutputConfigurations.SelectedIndexChanged += new System.EventHandler(this.cbxOutputConfigurations_SelectedIndexChanged); - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(40, 15); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(40, 13); - this.label15.TabIndex = 35; - this.label15.Text = "Preset:"; - // - // btnSaveNewConfig - // - this.btnSaveNewConfig.FlatAppearance.BorderSize = 0; - this.btnSaveNewConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSaveNewConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnSaveNewConfig.Image"))); - this.btnSaveNewConfig.Location = new System.Drawing.Point(610, 10); - this.btnSaveNewConfig.Name = "btnSaveNewConfig"; - this.btnSaveNewConfig.Size = new System.Drawing.Size(26, 23); - this.btnSaveNewConfig.TabIndex = 37; - this.btnSaveNewConfig.UseVisualStyleBackColor = true; - this.btnSaveNewConfig.Click += new System.EventHandler(this.btnSaveNewConfig_Click); - // - // groupBox4 - // - this.groupBox4.Controls.Add(this.txtBmpVisualizerChar); - this.groupBox4.Controls.Add(this.cbxCommentStyle); - this.groupBox4.Controls.Add(this.label1); - this.groupBox4.Controls.Add(this.cbxCommentCharDesc); - this.groupBox4.Controls.Add(this.cbxCommentCharVisual); - this.groupBox4.Controls.Add(this.cbxCommentVarName); - this.groupBox4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox4.Location = new System.Drawing.Point(17, 156); - this.groupBox4.Name = "groupBox4"; - this.groupBox4.Size = new System.Drawing.Size(186, 113); - this.groupBox4.TabIndex = 39; - this.groupBox4.TabStop = false; - this.groupBox4.Text = "Comments"; - // - // txtBmpVisualizerChar - // - this.txtBmpVisualizerChar.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtBmpVisualizerChar.Location = new System.Drawing.Point(119, 37); - this.txtBmpVisualizerChar.MaxLength = 1; - this.txtBmpVisualizerChar.Name = "txtBmpVisualizerChar"; - this.txtBmpVisualizerChar.Size = new System.Drawing.Size(21, 20); - this.txtBmpVisualizerChar.TabIndex = 49; - this.txtBmpVisualizerChar.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.txtBmpVisualizerChar.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // cbxCommentStyle - // - this.cbxCommentStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxCommentStyle.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxCommentStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxCommentStyle.FormattingEnabled = true; - this.cbxCommentStyle.Location = new System.Drawing.Point(49, 80); - this.cbxCommentStyle.Name = "cbxCommentStyle"; - this.cbxCommentStyle.Size = new System.Drawing.Size(89, 21); - this.cbxCommentStyle.TabIndex = 43; - this.cbxCommentStyle.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label1.Location = new System.Drawing.Point(9, 83); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(33, 13); - this.label1.TabIndex = 42; - this.label1.Text = "Style:"; - // - // cbxCommentCharDesc - // - this.cbxCommentCharDesc.AutoSize = true; - this.cbxCommentCharDesc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxCommentCharDesc.Location = new System.Drawing.Point(14, 56); - this.cbxCommentCharDesc.Name = "cbxCommentCharDesc"; - this.cbxCommentCharDesc.Size = new System.Drawing.Size(97, 17); - this.cbxCommentCharDesc.TabIndex = 40; - this.cbxCommentCharDesc.Text = "Char descriptor"; - this.cbxCommentCharDesc.UseVisualStyleBackColor = true; - this.cbxCommentCharDesc.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // cbxCommentCharVisual - // - this.cbxCommentCharVisual.AutoSize = true; - this.cbxCommentCharVisual.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxCommentCharVisual.Location = new System.Drawing.Point(14, 38); - this.cbxCommentCharVisual.Name = "cbxCommentCharVisual"; - this.cbxCommentCharVisual.Size = new System.Drawing.Size(107, 17); - this.cbxCommentCharVisual.TabIndex = 26; - this.cbxCommentCharVisual.Text = "Bitmap visualizer:"; - this.cbxCommentCharVisual.UseVisualStyleBackColor = true; - this.cbxCommentCharVisual.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // cbxCommentVarName - // - this.cbxCommentVarName.AutoSize = true; - this.cbxCommentVarName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxCommentVarName.Location = new System.Drawing.Point(14, 20); - this.cbxCommentVarName.Name = "cbxCommentVarName"; - this.cbxCommentVarName.Size = new System.Drawing.Size(93, 17); - this.cbxCommentVarName.TabIndex = 25; - this.cbxCommentVarName.Text = "Variable name"; - this.cbxCommentVarName.UseVisualStyleBackColor = true; - this.cbxCommentVarName.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // btnApply - // - this.btnApply.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.btnApply.Image = ((System.Drawing.Image)(resources.GetObject("btnApply.Image"))); - this.btnApply.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnApply.Location = new System.Drawing.Point(598, 414); - this.btnApply.Name = "btnApply"; - this.btnApply.Size = new System.Drawing.Size(64, 23); - this.btnApply.TabIndex = 40; - this.btnApply.Text = "Apply "; - this.btnApply.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.btnApply.UseVisualStyleBackColor = true; - this.btnApply.Click += new System.EventHandler(this.button1_Click); - // - // groupBox5 - // - this.groupBox5.Controls.Add(this.rbnLineWrapAtBitmap); - this.groupBox5.Controls.Add(this.rbnLineWrapAtColumn); - this.groupBox5.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox5.Location = new System.Drawing.Point(325, 58); - this.groupBox5.Name = "groupBox5"; - this.groupBox5.Size = new System.Drawing.Size(112, 92); - this.groupBox5.TabIndex = 41; - this.groupBox5.TabStop = false; - this.groupBox5.Text = "Line wrap"; - // - // rbnLineWrapAtBitmap - // - this.rbnLineWrapAtBitmap.AutoSize = true; - this.rbnLineWrapAtBitmap.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.rbnLineWrapAtBitmap.Location = new System.Drawing.Point(14, 53); - this.rbnLineWrapAtBitmap.Name = "rbnLineWrapAtBitmap"; - this.rbnLineWrapAtBitmap.Size = new System.Drawing.Size(69, 17); - this.rbnLineWrapAtBitmap.TabIndex = 1; - this.rbnLineWrapAtBitmap.Text = "At bitmap"; - this.rbnLineWrapAtBitmap.UseVisualStyleBackColor = true; - this.rbnLineWrapAtBitmap.CheckedChanged += new System.EventHandler(this.rbnLineWrapAtBitmap_Click); - // - // rbnLineWrapAtColumn - // - this.rbnLineWrapAtColumn.AutoSize = true; - this.rbnLineWrapAtColumn.Checked = true; - this.rbnLineWrapAtColumn.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.rbnLineWrapAtColumn.Location = new System.Drawing.Point(14, 35); - this.rbnLineWrapAtColumn.Name = "rbnLineWrapAtColumn"; - this.rbnLineWrapAtColumn.Size = new System.Drawing.Size(72, 17); - this.rbnLineWrapAtColumn.TabIndex = 0; - this.rbnLineWrapAtColumn.TabStop = true; - this.rbnLineWrapAtColumn.Text = "At column"; - this.rbnLineWrapAtColumn.UseVisualStyleBackColor = true; - this.rbnLineWrapAtColumn.CheckedChanged += new System.EventHandler(this.rbnLineWrapAtBitmap_Click); - // - // label4 - // - this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.label4.Location = new System.Drawing.Point(18, 44); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(644, 2); - this.label4.TabIndex = 42; - // - // groupBox6 - // - this.groupBox6.Controls.Add(this.cbxImgHeightFormat); - this.groupBox6.Controls.Add(this.label22); - this.groupBox6.Controls.Add(this.cbxImgWidthFormat); - this.groupBox6.Controls.Add(this.label23); - this.groupBox6.Controls.Add(this.txtLookupBlocksNewAfterCharCount); - this.groupBox6.Controls.Add(this.label21); - this.groupBox6.Controls.Add(this.label13); - this.groupBox6.Controls.Add(this.cbxGenerateLookupBlocks); - this.groupBox6.Controls.Add(this.label14); - this.groupBox6.Controls.Add(this.cbxGenerateLookupArray); - this.groupBox6.Controls.Add(this.cbxFontHeightFormat); - this.groupBox6.Controls.Add(this.label2); - this.groupBox6.Controls.Add(this.cbxCharHeightFormat); - this.groupBox6.Controls.Add(this.label3); - this.groupBox6.Controls.Add(this.cbxCharWidthFormat); - this.groupBox6.Controls.Add(this.label5); - this.groupBox6.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox6.Location = new System.Drawing.Point(443, 58); - this.groupBox6.Name = "groupBox6"; - this.groupBox6.Size = new System.Drawing.Size(222, 269); - this.groupBox6.TabIndex = 43; - this.groupBox6.TabStop = false; - this.groupBox6.Text = "Descriptors"; - // - // cbxImgHeightFormat - // - this.cbxImgHeightFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxImgHeightFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxImgHeightFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxImgHeightFormat.FormattingEnabled = true; - this.cbxImgHeightFormat.Location = new System.Drawing.Point(87, 238); - this.cbxImgHeightFormat.Name = "cbxImgHeightFormat"; - this.cbxImgHeightFormat.Size = new System.Drawing.Size(112, 21); - this.cbxImgHeightFormat.TabIndex = 64; - this.cbxImgHeightFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label22 - // - this.label22.AutoSize = true; - this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label22.Location = new System.Drawing.Point(10, 241); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(71, 13); - this.label22.TabIndex = 63; - this.label22.Text = "Image height:"; - // - // cbxImgWidthFormat - // - this.cbxImgWidthFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxImgWidthFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxImgWidthFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxImgWidthFormat.FormattingEnabled = true; - this.cbxImgWidthFormat.Location = new System.Drawing.Point(87, 212); - this.cbxImgWidthFormat.Name = "cbxImgWidthFormat"; - this.cbxImgWidthFormat.Size = new System.Drawing.Size(112, 21); - this.cbxImgWidthFormat.TabIndex = 62; - this.cbxImgWidthFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label23 - // - this.label23.AutoSize = true; - this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label23.Location = new System.Drawing.Point(14, 215); - this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(67, 13); - this.label23.TabIndex = 61; - this.label23.Text = "Image width:"; - // - // txtLookupBlocksNewAfterCharCount - // - this.txtLookupBlocksNewAfterCharCount.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtLookupBlocksNewAfterCharCount.Location = new System.Drawing.Point(163, 177); - this.txtLookupBlocksNewAfterCharCount.Name = "txtLookupBlocksNewAfterCharCount"; - this.txtLookupBlocksNewAfterCharCount.Size = new System.Drawing.Size(36, 21); - this.txtLookupBlocksNewAfterCharCount.TabIndex = 58; - this.txtLookupBlocksNewAfterCharCount.Text = "80"; - this.txtLookupBlocksNewAfterCharCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.txtLookupBlocksNewAfterCharCount.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label21 - // - this.label21.AutoSize = true; - this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label21.Location = new System.Drawing.Point(13, 180); - this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(144, 13); - this.label21.TabIndex = 60; - this.label21.Text = "between characters exceeds"; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label13.Location = new System.Drawing.Point(13, 161); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(197, 13); - this.label13.TabIndex = 59; - this.label13.Text = "Create new descriptor array when space"; - // - // cbxGenerateLookupBlocks - // - this.cbxGenerateLookupBlocks.AutoSize = true; - this.cbxGenerateLookupBlocks.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxGenerateLookupBlocks.Location = new System.Drawing.Point(20, 125); - this.cbxGenerateLookupBlocks.Name = "cbxGenerateLookupBlocks"; - this.cbxGenerateLookupBlocks.Size = new System.Drawing.Size(142, 17); - this.cbxGenerateLookupBlocks.TabIndex = 53; - this.cbxGenerateLookupBlocks.Text = "Multiple descriptor arrays"; - this.cbxGenerateLookupBlocks.UseVisualStyleBackColor = true; - this.cbxGenerateLookupBlocks.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label14 - // - this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.label14.Location = new System.Drawing.Point(6, 155); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(210, 48); - this.label14.TabIndex = 57; - // - // cbxGenerateLookupArray - // - this.cbxGenerateLookupArray.AutoSize = true; - this.cbxGenerateLookupArray.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxGenerateLookupArray.Location = new System.Drawing.Point(20, 19); - this.cbxGenerateLookupArray.Name = "cbxGenerateLookupArray"; - this.cbxGenerateLookupArray.Size = new System.Drawing.Size(180, 17); - this.cbxGenerateLookupArray.TabIndex = 52; - this.cbxGenerateLookupArray.Text = "Generate descriptor lookup array"; - this.cbxGenerateLookupArray.UseVisualStyleBackColor = true; - this.cbxGenerateLookupArray.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // cbxFontHeightFormat - // - this.cbxFontHeightFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxFontHeightFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxFontHeightFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxFontHeightFormat.FormattingEnabled = true; - this.cbxFontHeightFormat.Location = new System.Drawing.Point(89, 94); - this.cbxFontHeightFormat.Name = "cbxFontHeightFormat"; - this.cbxFontHeightFormat.Size = new System.Drawing.Size(112, 21); - this.cbxFontHeightFormat.TabIndex = 48; - this.cbxFontHeightFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label2.Location = new System.Drawing.Point(20, 97); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(63, 13); - this.label2.TabIndex = 47; - this.label2.Text = "Font height:"; - // - // cbxCharHeightFormat - // - this.cbxCharHeightFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxCharHeightFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxCharHeightFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxCharHeightFormat.FormattingEnabled = true; - this.cbxCharHeightFormat.Location = new System.Drawing.Point(89, 68); - this.cbxCharHeightFormat.Name = "cbxCharHeightFormat"; - this.cbxCharHeightFormat.Size = new System.Drawing.Size(112, 21); - this.cbxCharHeightFormat.TabIndex = 46; - this.cbxCharHeightFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label3.Location = new System.Drawing.Point(17, 71); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(64, 13); - this.label3.TabIndex = 45; - this.label3.Text = "Char height:"; - // - // cbxCharWidthFormat - // - this.cbxCharWidthFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxCharWidthFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxCharWidthFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxCharWidthFormat.FormattingEnabled = true; - this.cbxCharWidthFormat.Location = new System.Drawing.Point(89, 42); - this.cbxCharWidthFormat.Name = "cbxCharWidthFormat"; - this.cbxCharWidthFormat.Size = new System.Drawing.Size(112, 21); - this.cbxCharWidthFormat.TabIndex = 44; - this.cbxCharWidthFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label5.Location = new System.Drawing.Point(23, 45); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(60, 13); - this.label5.TabIndex = 43; - this.label5.Text = "Char width:"; - // - // groupBox7 - // - this.groupBox7.Controls.Add(this.cbxGenerateSpaceBitmap); - this.groupBox7.Controls.Add(this.label6); - this.groupBox7.Controls.Add(this.txtSpacePixels); - this.groupBox7.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox7.Location = new System.Drawing.Point(443, 332); - this.groupBox7.Name = "groupBox7"; - this.groupBox7.Size = new System.Drawing.Size(222, 75); - this.groupBox7.TabIndex = 44; - this.groupBox7.TabStop = false; - this.groupBox7.Text = "Space char generation"; - // - // cbxGenerateSpaceBitmap - // - this.cbxGenerateSpaceBitmap.AutoSize = true; - this.cbxGenerateSpaceBitmap.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxGenerateSpaceBitmap.Location = new System.Drawing.Point(12, 20); - this.cbxGenerateSpaceBitmap.Name = "cbxGenerateSpaceBitmap"; - this.cbxGenerateSpaceBitmap.Size = new System.Drawing.Size(136, 17); - this.cbxGenerateSpaceBitmap.TabIndex = 50; - this.cbxGenerateSpaceBitmap.Text = "Generate space bitmap"; - this.cbxGenerateSpaceBitmap.UseVisualStyleBackColor = true; - this.cbxGenerateSpaceBitmap.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label6.Location = new System.Drawing.Point(52, 45); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(104, 13); - this.label6.TabIndex = 49; - this.label6.Text = "pixels for space char"; - // - // txtSpacePixels - // - this.txtSpacePixels.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtSpacePixels.Location = new System.Drawing.Point(12, 42); - this.txtSpacePixels.Name = "txtSpacePixels"; - this.txtSpacePixels.Size = new System.Drawing.Size(36, 21); - this.txtSpacePixels.TabIndex = 48; - this.txtSpacePixels.Text = "2"; - this.txtSpacePixels.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.txtSpacePixels.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // btnDeleteConfig - // - this.btnDeleteConfig.FlatAppearance.BorderSize = 0; - this.btnDeleteConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnDeleteConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnDeleteConfig.Image"))); - this.btnDeleteConfig.Location = new System.Drawing.Point(639, 10); - this.btnDeleteConfig.Name = "btnDeleteConfig"; - this.btnDeleteConfig.Size = new System.Drawing.Size(26, 23); - this.btnDeleteConfig.TabIndex = 45; - this.btnDeleteConfig.UseVisualStyleBackColor = true; - this.btnDeleteConfig.Click += new System.EventHandler(this.btnDeleteConfig_Click); - // - // btnUpdateConfig - // - this.btnUpdateConfig.Enabled = false; - this.btnUpdateConfig.FlatAppearance.BorderSize = 0; - this.btnUpdateConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnUpdateConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnUpdateConfig.Image"))); - this.btnUpdateConfig.Location = new System.Drawing.Point(581, 10); - this.btnUpdateConfig.Name = "btnUpdateConfig"; - this.btnUpdateConfig.Size = new System.Drawing.Size(26, 23); - this.btnUpdateConfig.TabIndex = 46; - this.btnUpdateConfig.UseVisualStyleBackColor = true; - this.btnUpdateConfig.Click += new System.EventHandler(this.btnUpdateConfig_Click); - // - // groupBox2 - // - this.groupBox2.Controls.Add(this.txtVarNfHeight); - this.groupBox2.Controls.Add(this.label12); - this.groupBox2.Controls.Add(this.txtVarNfWidth); - this.groupBox2.Controls.Add(this.label11); - this.groupBox2.Controls.Add(this.label10); - this.groupBox2.Controls.Add(this.txtVarNfFontInfo); - this.groupBox2.Controls.Add(this.txtVarNfCharInfo); - this.groupBox2.Controls.Add(this.txtVarNfBitmaps); - this.groupBox2.Controls.Add(this.label7); - this.groupBox2.Controls.Add(this.label8); - this.groupBox2.Controls.Add(this.label9); - this.groupBox2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox2.Location = new System.Drawing.Point(18, 275); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(419, 162); - this.groupBox2.TabIndex = 47; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "Variable name format where {0} is the font/image name"; - // - // txtVarNfHeight - // - this.txtVarNfHeight.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.txtVarNfHeight.Location = new System.Drawing.Point(93, 129); - this.txtVarNfHeight.Name = "txtVarNfHeight"; - this.txtVarNfHeight.Size = new System.Drawing.Size(310, 20); - this.txtVarNfHeight.TabIndex = 55; - this.txtVarNfHeight.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label12.Location = new System.Drawing.Point(45, 132); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(41, 13); - this.label12.TabIndex = 54; - this.label12.Text = "Height:"; - // - // txtVarNfWidth - // - this.txtVarNfWidth.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.txtVarNfWidth.Location = new System.Drawing.Point(93, 103); - this.txtVarNfWidth.Name = "txtVarNfWidth"; - this.txtVarNfWidth.Size = new System.Drawing.Size(310, 20); - this.txtVarNfWidth.TabIndex = 53; - this.txtVarNfWidth.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label11.Location = new System.Drawing.Point(48, 106); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(38, 13); - this.label11.TabIndex = 52; - this.label11.Text = "Width:"; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label10.Location = new System.Drawing.Point(92, 158); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(0, 13); - this.label10.TabIndex = 51; - // - // txtVarNfFontInfo - // - this.txtVarNfFontInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.txtVarNfFontInfo.Location = new System.Drawing.Point(93, 77); - this.txtVarNfFontInfo.Name = "txtVarNfFontInfo"; - this.txtVarNfFontInfo.Size = new System.Drawing.Size(310, 20); - this.txtVarNfFontInfo.TabIndex = 50; - this.txtVarNfFontInfo.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // txtVarNfCharInfo - // - this.txtVarNfCharInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.txtVarNfCharInfo.Location = new System.Drawing.Point(93, 52); - this.txtVarNfCharInfo.Name = "txtVarNfCharInfo"; - this.txtVarNfCharInfo.Size = new System.Drawing.Size(310, 20); - this.txtVarNfCharInfo.TabIndex = 49; - this.txtVarNfCharInfo.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // txtVarNfBitmaps - // - this.txtVarNfBitmaps.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtVarNfBitmaps.Location = new System.Drawing.Point(93, 28); - this.txtVarNfBitmaps.Name = "txtVarNfBitmaps"; - this.txtVarNfBitmaps.Size = new System.Drawing.Size(310, 20); - this.txtVarNfBitmaps.TabIndex = 48; - this.txtVarNfBitmaps.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label7.Location = new System.Drawing.Point(35, 80); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(51, 13); - this.label7.TabIndex = 47; - this.label7.Text = "Font info:"; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label8.Location = new System.Drawing.Point(10, 55); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(76, 13); - this.label8.TabIndex = 45; - this.label8.Text = "Character info:"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label9.Location = new System.Drawing.Point(39, 30); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(47, 13); - this.label9.TabIndex = 43; - this.label9.Text = "Bitmaps:"; - // - // cbxBitLayout - // - this.cbxBitLayout.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxBitLayout.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.cbxBitLayout.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.cbxBitLayout.FormattingEnabled = true; - this.cbxBitLayout.Location = new System.Drawing.Point(69, 14); - this.cbxBitLayout.Name = "cbxBitLayout"; - this.cbxBitLayout.Size = new System.Drawing.Size(112, 21); - this.cbxBitLayout.TabIndex = 43; - // - // label24 - // - this.label24.AutoSize = true; - this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.label24.Location = new System.Drawing.Point(6, 20); - this.label24.Name = "label24"; - this.label24.Size = new System.Drawing.Size(57, 13); - this.label24.TabIndex = 44; - this.label24.Text = "Bit Layout:"; - // - // OutputConfigurationForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(680, 450); - this.Controls.Add(this.groupBox2); - this.Controls.Add(this.btnUpdateConfig); - this.Controls.Add(this.btnDeleteConfig); - this.Controls.Add(this.groupBox7); - this.Controls.Add(this.groupBox6); - this.Controls.Add(this.label4); - this.Controls.Add(this.groupBox5); - this.Controls.Add(this.btnApply); - this.Controls.Add(this.groupBox4); - this.Controls.Add(this.btnSaveNewConfig); - this.Controls.Add(this.cbxOutputConfigurations); - this.Controls.Add(this.groupBox3); - this.Controls.Add(this.label15); - this.Controls.Add(this.gbxPadding); - this.Controls.Add(this.groupBox1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; - this.Name = "OutputConfigurationForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Modify Output Configuration"; - this.Load += new System.EventHandler(this.OutputConfigurationForm_Load); - this.groupBox3.ResumeLayout(false); - this.groupBox3.PerformLayout(); - this.gbxPadding.ResumeLayout(false); - this.gbxPadding.PerformLayout(); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.groupBox4.ResumeLayout(false); - this.groupBox4.PerformLayout(); - this.groupBox5.ResumeLayout(false); - this.groupBox5.PerformLayout(); - this.groupBox6.ResumeLayout(false); - this.groupBox6.PerformLayout(); - this.groupBox7.ResumeLayout(false); - this.groupBox7.PerformLayout(); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OutputConfigurationForm)); + this.gbxByteOrderOptions = new System.Windows.Forms.GroupBox(); + this.label24 = new System.Windows.Forms.Label(); + this.cbxBitLayout = new System.Windows.Forms.ComboBox(); + this.cbxByteLeadingChar = new System.Windows.Forms.ComboBox(); + this.label20 = new System.Windows.Forms.Label(); + this.cbxByteFormat = new System.Windows.Forms.ComboBox(); + this.label18 = new System.Windows.Forms.Label(); + this.cbxByteOrder = new System.Windows.Forms.ComboBox(); + this.label19 = new System.Windows.Forms.Label(); + this.gbxPadding = new System.Windows.Forms.GroupBox(); + this.cbxPaddingVert = new System.Windows.Forms.ComboBox(); + this.label17 = new System.Windows.Forms.Label(); + this.cbxPaddingHoriz = new System.Windows.Forms.ComboBox(); + this.label16 = new System.Windows.Forms.Label(); + this.gbxFlipRotate = new System.Windows.Forms.GroupBox(); + this.cbxFlipVert = new System.Windows.Forms.CheckBox(); + this.cbxFlipHoriz = new System.Windows.Forms.CheckBox(); + this.cbxRotation = new System.Windows.Forms.ComboBox(); + this.cbxOutputConfigurations = new System.Windows.Forms.ComboBox(); + this.label15 = new System.Windows.Forms.Label(); + this.btnSaveNewConfig = new System.Windows.Forms.Button(); + this.gbxCommentOptions = new System.Windows.Forms.GroupBox(); + this.txtBmpVisualizerChar = new System.Windows.Forms.TextBox(); + this.cbxCommentStyle = new System.Windows.Forms.ComboBox(); + this.label1 = new System.Windows.Forms.Label(); + this.cbxCommentCharDesc = new System.Windows.Forms.CheckBox(); + this.cbxCommentCharVisual = new System.Windows.Forms.CheckBox(); + this.cbxCommentVarName = new System.Windows.Forms.CheckBox(); + this.btnApply = new System.Windows.Forms.Button(); + this.gbxLineWrap = new System.Windows.Forms.GroupBox(); + this.rbnLineWrapAtBitmap = new System.Windows.Forms.RadioButton(); + this.rbnLineWrapAtColumn = new System.Windows.Forms.RadioButton(); + this.label4 = new System.Windows.Forms.Label(); + this.gbxDescriptorOptions = new System.Windows.Forms.GroupBox(); + this.cbxImgHeightFormat = new System.Windows.Forms.ComboBox(); + this.label22 = new System.Windows.Forms.Label(); + this.cbxImgWidthFormat = new System.Windows.Forms.ComboBox(); + this.label23 = new System.Windows.Forms.Label(); + this.txtLookupBlocksNewAfterCharCount = new System.Windows.Forms.TextBox(); + this.label21 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.cbxGenerateLookupBlocks = new System.Windows.Forms.CheckBox(); + this.label14 = new System.Windows.Forms.Label(); + this.cbxGenerateLookupArray = new System.Windows.Forms.CheckBox(); + this.cbxFontHeightFormat = new System.Windows.Forms.ComboBox(); + this.label2 = new System.Windows.Forms.Label(); + this.cbxCharHeightFormat = new System.Windows.Forms.ComboBox(); + this.label3 = new System.Windows.Forms.Label(); + this.cbxCharWidthFormat = new System.Windows.Forms.ComboBox(); + this.label5 = new System.Windows.Forms.Label(); + this.gbxSpaceGenerationOptions = new System.Windows.Forms.GroupBox(); + this.cbxGenerateSpaceBitmap = new System.Windows.Forms.CheckBox(); + this.label6 = new System.Windows.Forms.Label(); + this.txtSpacePixels = new System.Windows.Forms.TextBox(); + this.btnDeleteConfig = new System.Windows.Forms.Button(); + this.btnUpdateConfig = new System.Windows.Forms.Button(); + this.gbxIdentifierNamingOptions = new System.Windows.Forms.GroupBox(); + this.txtVarNfHeight = new System.Windows.Forms.TextBox(); + this.label12 = new System.Windows.Forms.Label(); + this.txtVarNfWidth = new System.Windows.Forms.TextBox(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.txtVarNfFontInfo = new System.Windows.Forms.TextBox(); + this.txtVarNfCharInfo = new System.Windows.Forms.TextBox(); + this.txtVarNfBitmaps = new System.Windows.Forms.TextBox(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.CodeGenerationOptions = new System.Windows.Forms.GroupBox(); + this.OutputCSharp = new System.Windows.Forms.RadioButton(); + this.OutputC = new System.Windows.Forms.RadioButton(); + this.gbxByteOrderOptions.SuspendLayout(); + this.gbxPadding.SuspendLayout(); + this.gbxFlipRotate.SuspendLayout(); + this.gbxCommentOptions.SuspendLayout(); + this.gbxLineWrap.SuspendLayout(); + this.gbxDescriptorOptions.SuspendLayout(); + this.gbxSpaceGenerationOptions.SuspendLayout(); + this.gbxIdentifierNamingOptions.SuspendLayout(); + this.CodeGenerationOptions.SuspendLayout(); + this.SuspendLayout(); + // + // gbxByteOrderOptions + // + this.gbxByteOrderOptions.Controls.Add(this.label24); + this.gbxByteOrderOptions.Controls.Add(this.cbxBitLayout); + this.gbxByteOrderOptions.Controls.Add(this.cbxByteLeadingChar); + this.gbxByteOrderOptions.Controls.Add(this.label20); + this.gbxByteOrderOptions.Controls.Add(this.cbxByteFormat); + this.gbxByteOrderOptions.Controls.Add(this.label18); + this.gbxByteOrderOptions.Controls.Add(this.cbxByteOrder); + this.gbxByteOrderOptions.Controls.Add(this.label19); + this.gbxByteOrderOptions.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxByteOrderOptions.Location = new System.Drawing.Point(210, 216); + this.gbxByteOrderOptions.Name = "gbxByteOrderOptions"; + this.gbxByteOrderOptions.Size = new System.Drawing.Size(228, 113); + this.gbxByteOrderOptions.TabIndex = 22; + this.gbxByteOrderOptions.TabStop = false; + this.gbxByteOrderOptions.Text = "Byte"; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label24.Location = new System.Drawing.Point(6, 20); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(57, 13); + this.label24.TabIndex = 44; + this.label24.Text = "Bit Layout:"; + // + // cbxBitLayout + // + this.cbxBitLayout.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxBitLayout.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxBitLayout.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxBitLayout.FormattingEnabled = true; + this.cbxBitLayout.Location = new System.Drawing.Point(69, 14); + this.cbxBitLayout.Name = "cbxBitLayout"; + this.cbxBitLayout.Size = new System.Drawing.Size(112, 21); + this.cbxBitLayout.TabIndex = 43; + // + // cbxByteLeadingChar + // + this.cbxByteLeadingChar.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxByteLeadingChar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxByteLeadingChar.FormattingEnabled = true; + this.cbxByteLeadingChar.Location = new System.Drawing.Point(69, 86); + this.cbxByteLeadingChar.Name = "cbxByteLeadingChar"; + this.cbxByteLeadingChar.Size = new System.Drawing.Size(75, 21); + this.cbxByteLeadingChar.TabIndex = 42; + this.cbxByteLeadingChar.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label20 + // + this.label20.AutoSize = true; + this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label20.Location = new System.Drawing.Point(15, 90); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(48, 13); + this.label20.TabIndex = 26; + this.label20.Text = "Leading:"; + // + // cbxByteFormat + // + this.cbxByteFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxByteFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxByteFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxByteFormat.FormattingEnabled = true; + this.cbxByteFormat.Location = new System.Drawing.Point(69, 62); + this.cbxByteFormat.Name = "cbxByteFormat"; + this.cbxByteFormat.Size = new System.Drawing.Size(112, 21); + this.cbxByteFormat.TabIndex = 24; + this.cbxByteFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + this.cbxByteFormat.TextChanged += new System.EventHandler(this.cbxByteFormat_TextChanged); + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label18.Location = new System.Drawing.Point(21, 66); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(42, 13); + this.label18.TabIndex = 23; + this.label18.Text = "Format:"; + // + // cbxByteOrder + // + this.cbxByteOrder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxByteOrder.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxByteOrder.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxByteOrder.FormattingEnabled = true; + this.cbxByteOrder.Location = new System.Drawing.Point(69, 38); + this.cbxByteOrder.Name = "cbxByteOrder"; + this.cbxByteOrder.Size = new System.Drawing.Size(112, 21); + this.cbxByteOrder.TabIndex = 22; + this.cbxByteOrder.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label19.Location = new System.Drawing.Point(27, 42); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(36, 13); + this.label19.TabIndex = 21; + this.label19.Text = "Order:"; + // + // gbxPadding + // + this.gbxPadding.Controls.Add(this.cbxPaddingVert); + this.gbxPadding.Controls.Add(this.label17); + this.gbxPadding.Controls.Add(this.cbxPaddingHoriz); + this.gbxPadding.Controls.Add(this.label16); + this.gbxPadding.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxPadding.Location = new System.Drawing.Point(126, 118); + this.gbxPadding.Name = "gbxPadding"; + this.gbxPadding.Size = new System.Drawing.Size(194, 92); + this.gbxPadding.TabIndex = 21; + this.gbxPadding.TabStop = false; + this.gbxPadding.Text = "Padding Removal"; + // + // cbxPaddingVert + // + this.cbxPaddingVert.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxPaddingVert.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxPaddingVert.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxPaddingVert.FormattingEnabled = true; + this.cbxPaddingVert.Location = new System.Drawing.Point(73, 54); + this.cbxPaddingVert.Name = "cbxPaddingVert"; + this.cbxPaddingVert.Size = new System.Drawing.Size(103, 21); + this.cbxPaddingVert.TabIndex = 24; + this.cbxPaddingVert.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label17.Location = new System.Drawing.Point(16, 57); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(54, 13); + this.label17.TabIndex = 23; + this.label17.Text = "Width (X):"; + // + // cbxPaddingHoriz + // + this.cbxPaddingHoriz.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxPaddingHoriz.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxPaddingHoriz.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxPaddingHoriz.FormattingEnabled = true; + this.cbxPaddingHoriz.Location = new System.Drawing.Point(73, 28); + this.cbxPaddingHoriz.Name = "cbxPaddingHoriz"; + this.cbxPaddingHoriz.Size = new System.Drawing.Size(103, 21); + this.cbxPaddingHoriz.TabIndex = 22; + this.cbxPaddingHoriz.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label16.Location = new System.Drawing.Point(13, 31); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(57, 13); + this.label16.TabIndex = 21; + this.label16.Text = "Height (Y):"; + // + // gbxFlipRotate + // + this.gbxFlipRotate.Controls.Add(this.cbxFlipVert); + this.gbxFlipRotate.Controls.Add(this.cbxFlipHoriz); + this.gbxFlipRotate.Controls.Add(this.cbxRotation); + this.gbxFlipRotate.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxFlipRotate.Location = new System.Drawing.Point(18, 118); + this.gbxFlipRotate.Name = "gbxFlipRotate"; + this.gbxFlipRotate.Size = new System.Drawing.Size(101, 92); + this.gbxFlipRotate.TabIndex = 20; + this.gbxFlipRotate.TabStop = false; + this.gbxFlipRotate.Text = "Flip/ Rotate"; + // + // cbxFlipVert + // + this.cbxFlipVert.AutoSize = true; + this.cbxFlipVert.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxFlipVert.Location = new System.Drawing.Point(15, 41); + this.cbxFlipVert.Name = "cbxFlipVert"; + this.cbxFlipVert.Size = new System.Drawing.Size(52, 17); + this.cbxFlipVert.TabIndex = 28; + this.cbxFlipVert.Text = "Flip Y"; + this.cbxFlipVert.UseVisualStyleBackColor = true; + this.cbxFlipVert.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // cbxFlipHoriz + // + this.cbxFlipHoriz.AutoSize = true; + this.cbxFlipHoriz.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxFlipHoriz.Location = new System.Drawing.Point(15, 23); + this.cbxFlipHoriz.Name = "cbxFlipHoriz"; + this.cbxFlipHoriz.Size = new System.Drawing.Size(52, 17); + this.cbxFlipHoriz.TabIndex = 27; + this.cbxFlipHoriz.Text = "Flip X"; + this.cbxFlipHoriz.UseVisualStyleBackColor = true; + this.cbxFlipHoriz.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // cbxRotation + // + this.cbxRotation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxRotation.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxRotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxRotation.FormattingEnabled = true; + this.cbxRotation.Location = new System.Drawing.Point(15, 62); + this.cbxRotation.Name = "cbxRotation"; + this.cbxRotation.Size = new System.Drawing.Size(59, 21); + this.cbxRotation.TabIndex = 23; + this.cbxRotation.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // cbxOutputConfigurations + // + this.cbxOutputConfigurations.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxOutputConfigurations.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxOutputConfigurations.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxOutputConfigurations.FormattingEnabled = true; + this.cbxOutputConfigurations.Location = new System.Drawing.Point(82, 12); + this.cbxOutputConfigurations.Name = "cbxOutputConfigurations"; + this.cbxOutputConfigurations.Size = new System.Drawing.Size(493, 21); + this.cbxOutputConfigurations.TabIndex = 36; + this.cbxOutputConfigurations.SelectedIndexChanged += new System.EventHandler(this.cbxOutputConfigurations_SelectedIndexChanged); + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(40, 15); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(40, 13); + this.label15.TabIndex = 35; + this.label15.Text = "Preset:"; + // + // btnSaveNewConfig + // + this.btnSaveNewConfig.FlatAppearance.BorderSize = 0; + this.btnSaveNewConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnSaveNewConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnSaveNewConfig.Image"))); + this.btnSaveNewConfig.Location = new System.Drawing.Point(610, 10); + this.btnSaveNewConfig.Name = "btnSaveNewConfig"; + this.btnSaveNewConfig.Size = new System.Drawing.Size(26, 23); + this.btnSaveNewConfig.TabIndex = 37; + this.btnSaveNewConfig.UseVisualStyleBackColor = true; + this.btnSaveNewConfig.Click += new System.EventHandler(this.btnSaveNewConfig_Click); + // + // gbxCommentOptions + // + this.gbxCommentOptions.Controls.Add(this.txtBmpVisualizerChar); + this.gbxCommentOptions.Controls.Add(this.cbxCommentStyle); + this.gbxCommentOptions.Controls.Add(this.label1); + this.gbxCommentOptions.Controls.Add(this.cbxCommentCharDesc); + this.gbxCommentOptions.Controls.Add(this.cbxCommentCharVisual); + this.gbxCommentOptions.Controls.Add(this.cbxCommentVarName); + this.gbxCommentOptions.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxCommentOptions.Location = new System.Drawing.Point(18, 216); + this.gbxCommentOptions.Name = "gbxCommentOptions"; + this.gbxCommentOptions.Size = new System.Drawing.Size(186, 113); + this.gbxCommentOptions.TabIndex = 39; + this.gbxCommentOptions.TabStop = false; + this.gbxCommentOptions.Text = "Comments"; + // + // txtBmpVisualizerChar + // + this.txtBmpVisualizerChar.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtBmpVisualizerChar.Location = new System.Drawing.Point(119, 37); + this.txtBmpVisualizerChar.MaxLength = 1; + this.txtBmpVisualizerChar.Name = "txtBmpVisualizerChar"; + this.txtBmpVisualizerChar.Size = new System.Drawing.Size(21, 20); + this.txtBmpVisualizerChar.TabIndex = 49; + this.txtBmpVisualizerChar.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.txtBmpVisualizerChar.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // cbxCommentStyle + // + this.cbxCommentStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxCommentStyle.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxCommentStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxCommentStyle.FormattingEnabled = true; + this.cbxCommentStyle.Location = new System.Drawing.Point(49, 80); + this.cbxCommentStyle.Name = "cbxCommentStyle"; + this.cbxCommentStyle.Size = new System.Drawing.Size(89, 21); + this.cbxCommentStyle.TabIndex = 43; + this.cbxCommentStyle.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label1.Location = new System.Drawing.Point(9, 83); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(33, 13); + this.label1.TabIndex = 42; + this.label1.Text = "Style:"; + // + // cbxCommentCharDesc + // + this.cbxCommentCharDesc.AutoSize = true; + this.cbxCommentCharDesc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxCommentCharDesc.Location = new System.Drawing.Point(14, 56); + this.cbxCommentCharDesc.Name = "cbxCommentCharDesc"; + this.cbxCommentCharDesc.Size = new System.Drawing.Size(97, 17); + this.cbxCommentCharDesc.TabIndex = 40; + this.cbxCommentCharDesc.Text = "Char descriptor"; + this.cbxCommentCharDesc.UseVisualStyleBackColor = true; + this.cbxCommentCharDesc.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // cbxCommentCharVisual + // + this.cbxCommentCharVisual.AutoSize = true; + this.cbxCommentCharVisual.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxCommentCharVisual.Location = new System.Drawing.Point(14, 38); + this.cbxCommentCharVisual.Name = "cbxCommentCharVisual"; + this.cbxCommentCharVisual.Size = new System.Drawing.Size(107, 17); + this.cbxCommentCharVisual.TabIndex = 26; + this.cbxCommentCharVisual.Text = "Bitmap visualizer:"; + this.cbxCommentCharVisual.UseVisualStyleBackColor = true; + this.cbxCommentCharVisual.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // cbxCommentVarName + // + this.cbxCommentVarName.AutoSize = true; + this.cbxCommentVarName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxCommentVarName.Location = new System.Drawing.Point(14, 20); + this.cbxCommentVarName.Name = "cbxCommentVarName"; + this.cbxCommentVarName.Size = new System.Drawing.Size(93, 17); + this.cbxCommentVarName.TabIndex = 25; + this.cbxCommentVarName.Text = "Variable name"; + this.cbxCommentVarName.UseVisualStyleBackColor = true; + this.cbxCommentVarName.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // btnApply + // + this.btnApply.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.btnApply.Image = ((System.Drawing.Image)(resources.GetObject("btnApply.Image"))); + this.btnApply.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnApply.Location = new System.Drawing.Point(599, 474); + this.btnApply.Name = "btnApply"; + this.btnApply.Size = new System.Drawing.Size(64, 23); + this.btnApply.TabIndex = 40; + this.btnApply.Text = "Apply "; + this.btnApply.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.btnApply.UseVisualStyleBackColor = true; + this.btnApply.Click += new System.EventHandler(this.ApplyButtonClicked); + // + // gbxLineWrap + // + this.gbxLineWrap.Controls.Add(this.rbnLineWrapAtBitmap); + this.gbxLineWrap.Controls.Add(this.rbnLineWrapAtColumn); + this.gbxLineWrap.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxLineWrap.Location = new System.Drawing.Point(326, 118); + this.gbxLineWrap.Name = "gbxLineWrap"; + this.gbxLineWrap.Size = new System.Drawing.Size(112, 92); + this.gbxLineWrap.TabIndex = 41; + this.gbxLineWrap.TabStop = false; + this.gbxLineWrap.Text = "Line wrap"; + // + // rbnLineWrapAtBitmap + // + this.rbnLineWrapAtBitmap.AutoSize = true; + this.rbnLineWrapAtBitmap.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.rbnLineWrapAtBitmap.Location = new System.Drawing.Point(14, 53); + this.rbnLineWrapAtBitmap.Name = "rbnLineWrapAtBitmap"; + this.rbnLineWrapAtBitmap.Size = new System.Drawing.Size(69, 17); + this.rbnLineWrapAtBitmap.TabIndex = 1; + this.rbnLineWrapAtBitmap.Text = "At bitmap"; + this.rbnLineWrapAtBitmap.UseVisualStyleBackColor = true; + this.rbnLineWrapAtBitmap.CheckedChanged += new System.EventHandler(this.rbnLineWrapAtBitmap_Click); + // + // rbnLineWrapAtColumn + // + this.rbnLineWrapAtColumn.AutoSize = true; + this.rbnLineWrapAtColumn.Checked = true; + this.rbnLineWrapAtColumn.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.rbnLineWrapAtColumn.Location = new System.Drawing.Point(14, 35); + this.rbnLineWrapAtColumn.Name = "rbnLineWrapAtColumn"; + this.rbnLineWrapAtColumn.Size = new System.Drawing.Size(72, 17); + this.rbnLineWrapAtColumn.TabIndex = 0; + this.rbnLineWrapAtColumn.TabStop = true; + this.rbnLineWrapAtColumn.Text = "At column"; + this.rbnLineWrapAtColumn.UseVisualStyleBackColor = true; + this.rbnLineWrapAtColumn.CheckedChanged += new System.EventHandler(this.rbnLineWrapAtBitmap_Click); + // + // label4 + // + this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label4.Location = new System.Drawing.Point(18, 44); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(644, 2); + this.label4.TabIndex = 42; + // + // gbxDescriptorOptions + // + this.gbxDescriptorOptions.Controls.Add(this.cbxImgHeightFormat); + this.gbxDescriptorOptions.Controls.Add(this.label22); + this.gbxDescriptorOptions.Controls.Add(this.cbxImgWidthFormat); + this.gbxDescriptorOptions.Controls.Add(this.label23); + this.gbxDescriptorOptions.Controls.Add(this.txtLookupBlocksNewAfterCharCount); + this.gbxDescriptorOptions.Controls.Add(this.label21); + this.gbxDescriptorOptions.Controls.Add(this.label13); + this.gbxDescriptorOptions.Controls.Add(this.cbxGenerateLookupBlocks); + this.gbxDescriptorOptions.Controls.Add(this.label14); + this.gbxDescriptorOptions.Controls.Add(this.cbxGenerateLookupArray); + this.gbxDescriptorOptions.Controls.Add(this.cbxFontHeightFormat); + this.gbxDescriptorOptions.Controls.Add(this.label2); + this.gbxDescriptorOptions.Controls.Add(this.cbxCharHeightFormat); + this.gbxDescriptorOptions.Controls.Add(this.label3); + this.gbxDescriptorOptions.Controls.Add(this.cbxCharWidthFormat); + this.gbxDescriptorOptions.Controls.Add(this.label5); + this.gbxDescriptorOptions.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxDescriptorOptions.Location = new System.Drawing.Point(444, 118); + this.gbxDescriptorOptions.Name = "gbxDescriptorOptions"; + this.gbxDescriptorOptions.Size = new System.Drawing.Size(222, 269); + this.gbxDescriptorOptions.TabIndex = 43; + this.gbxDescriptorOptions.TabStop = false; + this.gbxDescriptorOptions.Text = "Descriptors"; + // + // cbxImgHeightFormat + // + this.cbxImgHeightFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxImgHeightFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxImgHeightFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxImgHeightFormat.FormattingEnabled = true; + this.cbxImgHeightFormat.Location = new System.Drawing.Point(87, 238); + this.cbxImgHeightFormat.Name = "cbxImgHeightFormat"; + this.cbxImgHeightFormat.Size = new System.Drawing.Size(112, 21); + this.cbxImgHeightFormat.TabIndex = 64; + this.cbxImgHeightFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label22 + // + this.label22.AutoSize = true; + this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label22.Location = new System.Drawing.Point(10, 241); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(71, 13); + this.label22.TabIndex = 63; + this.label22.Text = "Image height:"; + // + // cbxImgWidthFormat + // + this.cbxImgWidthFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxImgWidthFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxImgWidthFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxImgWidthFormat.FormattingEnabled = true; + this.cbxImgWidthFormat.Location = new System.Drawing.Point(87, 212); + this.cbxImgWidthFormat.Name = "cbxImgWidthFormat"; + this.cbxImgWidthFormat.Size = new System.Drawing.Size(112, 21); + this.cbxImgWidthFormat.TabIndex = 62; + this.cbxImgWidthFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label23 + // + this.label23.AutoSize = true; + this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label23.Location = new System.Drawing.Point(14, 215); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(67, 13); + this.label23.TabIndex = 61; + this.label23.Text = "Image width:"; + // + // txtLookupBlocksNewAfterCharCount + // + this.txtLookupBlocksNewAfterCharCount.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtLookupBlocksNewAfterCharCount.Location = new System.Drawing.Point(163, 177); + this.txtLookupBlocksNewAfterCharCount.Name = "txtLookupBlocksNewAfterCharCount"; + this.txtLookupBlocksNewAfterCharCount.Size = new System.Drawing.Size(36, 21); + this.txtLookupBlocksNewAfterCharCount.TabIndex = 58; + this.txtLookupBlocksNewAfterCharCount.Text = "80"; + this.txtLookupBlocksNewAfterCharCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.txtLookupBlocksNewAfterCharCount.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label21 + // + this.label21.AutoSize = true; + this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label21.Location = new System.Drawing.Point(13, 180); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(144, 13); + this.label21.TabIndex = 60; + this.label21.Text = "between characters exceeds"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label13.Location = new System.Drawing.Point(13, 161); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(197, 13); + this.label13.TabIndex = 59; + this.label13.Text = "Create new descriptor array when space"; + // + // cbxGenerateLookupBlocks + // + this.cbxGenerateLookupBlocks.AutoSize = true; + this.cbxGenerateLookupBlocks.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxGenerateLookupBlocks.Location = new System.Drawing.Point(20, 125); + this.cbxGenerateLookupBlocks.Name = "cbxGenerateLookupBlocks"; + this.cbxGenerateLookupBlocks.Size = new System.Drawing.Size(142, 17); + this.cbxGenerateLookupBlocks.TabIndex = 53; + this.cbxGenerateLookupBlocks.Text = "Multiple descriptor arrays"; + this.cbxGenerateLookupBlocks.UseVisualStyleBackColor = true; + this.cbxGenerateLookupBlocks.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label14 + // + this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label14.Location = new System.Drawing.Point(6, 155); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(210, 48); + this.label14.TabIndex = 57; + // + // cbxGenerateLookupArray + // + this.cbxGenerateLookupArray.AutoSize = true; + this.cbxGenerateLookupArray.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxGenerateLookupArray.Location = new System.Drawing.Point(20, 19); + this.cbxGenerateLookupArray.Name = "cbxGenerateLookupArray"; + this.cbxGenerateLookupArray.Size = new System.Drawing.Size(180, 17); + this.cbxGenerateLookupArray.TabIndex = 52; + this.cbxGenerateLookupArray.Text = "Generate descriptor lookup array"; + this.cbxGenerateLookupArray.UseVisualStyleBackColor = true; + this.cbxGenerateLookupArray.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // cbxFontHeightFormat + // + this.cbxFontHeightFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxFontHeightFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxFontHeightFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxFontHeightFormat.FormattingEnabled = true; + this.cbxFontHeightFormat.Location = new System.Drawing.Point(89, 94); + this.cbxFontHeightFormat.Name = "cbxFontHeightFormat"; + this.cbxFontHeightFormat.Size = new System.Drawing.Size(112, 21); + this.cbxFontHeightFormat.TabIndex = 48; + this.cbxFontHeightFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label2.Location = new System.Drawing.Point(20, 97); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(63, 13); + this.label2.TabIndex = 47; + this.label2.Text = "Font height:"; + // + // cbxCharHeightFormat + // + this.cbxCharHeightFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxCharHeightFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxCharHeightFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxCharHeightFormat.FormattingEnabled = true; + this.cbxCharHeightFormat.Location = new System.Drawing.Point(89, 68); + this.cbxCharHeightFormat.Name = "cbxCharHeightFormat"; + this.cbxCharHeightFormat.Size = new System.Drawing.Size(112, 21); + this.cbxCharHeightFormat.TabIndex = 46; + this.cbxCharHeightFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label3.Location = new System.Drawing.Point(17, 71); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(64, 13); + this.label3.TabIndex = 45; + this.label3.Text = "Char height:"; + // + // cbxCharWidthFormat + // + this.cbxCharWidthFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxCharWidthFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbxCharWidthFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.cbxCharWidthFormat.FormattingEnabled = true; + this.cbxCharWidthFormat.Location = new System.Drawing.Point(89, 42); + this.cbxCharWidthFormat.Name = "cbxCharWidthFormat"; + this.cbxCharWidthFormat.Size = new System.Drawing.Size(112, 21); + this.cbxCharWidthFormat.TabIndex = 44; + this.cbxCharWidthFormat.SelectedIndexChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label5.Location = new System.Drawing.Point(23, 45); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(60, 13); + this.label5.TabIndex = 43; + this.label5.Text = "Char width:"; + // + // gbxSpaceGenerationOptions + // + this.gbxSpaceGenerationOptions.Controls.Add(this.cbxGenerateSpaceBitmap); + this.gbxSpaceGenerationOptions.Controls.Add(this.label6); + this.gbxSpaceGenerationOptions.Controls.Add(this.txtSpacePixels); + this.gbxSpaceGenerationOptions.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxSpaceGenerationOptions.Location = new System.Drawing.Point(444, 392); + this.gbxSpaceGenerationOptions.Name = "gbxSpaceGenerationOptions"; + this.gbxSpaceGenerationOptions.Size = new System.Drawing.Size(222, 75); + this.gbxSpaceGenerationOptions.TabIndex = 44; + this.gbxSpaceGenerationOptions.TabStop = false; + this.gbxSpaceGenerationOptions.Text = "Space char generation"; + // + // cbxGenerateSpaceBitmap + // + this.cbxGenerateSpaceBitmap.AutoSize = true; + this.cbxGenerateSpaceBitmap.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxGenerateSpaceBitmap.Location = new System.Drawing.Point(12, 20); + this.cbxGenerateSpaceBitmap.Name = "cbxGenerateSpaceBitmap"; + this.cbxGenerateSpaceBitmap.Size = new System.Drawing.Size(136, 17); + this.cbxGenerateSpaceBitmap.TabIndex = 50; + this.cbxGenerateSpaceBitmap.Text = "Generate space bitmap"; + this.cbxGenerateSpaceBitmap.UseVisualStyleBackColor = true; + this.cbxGenerateSpaceBitmap.CheckedChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label6.Location = new System.Drawing.Point(52, 45); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(104, 13); + this.label6.TabIndex = 49; + this.label6.Text = "pixels for space char"; + // + // txtSpacePixels + // + this.txtSpacePixels.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtSpacePixels.Location = new System.Drawing.Point(12, 42); + this.txtSpacePixels.Name = "txtSpacePixels"; + this.txtSpacePixels.Size = new System.Drawing.Size(36, 21); + this.txtSpacePixels.TabIndex = 48; + this.txtSpacePixels.Text = "2"; + this.txtSpacePixels.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.txtSpacePixels.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // btnDeleteConfig + // + this.btnDeleteConfig.FlatAppearance.BorderSize = 0; + this.btnDeleteConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnDeleteConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnDeleteConfig.Image"))); + this.btnDeleteConfig.Location = new System.Drawing.Point(639, 10); + this.btnDeleteConfig.Name = "btnDeleteConfig"; + this.btnDeleteConfig.Size = new System.Drawing.Size(26, 23); + this.btnDeleteConfig.TabIndex = 45; + this.btnDeleteConfig.UseVisualStyleBackColor = true; + this.btnDeleteConfig.Click += new System.EventHandler(this.btnDeleteConfig_Click); + // + // btnUpdateConfig + // + this.btnUpdateConfig.Enabled = false; + this.btnUpdateConfig.FlatAppearance.BorderSize = 0; + this.btnUpdateConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnUpdateConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnUpdateConfig.Image"))); + this.btnUpdateConfig.Location = new System.Drawing.Point(581, 10); + this.btnUpdateConfig.Name = "btnUpdateConfig"; + this.btnUpdateConfig.Size = new System.Drawing.Size(26, 23); + this.btnUpdateConfig.TabIndex = 46; + this.btnUpdateConfig.UseVisualStyleBackColor = true; + this.btnUpdateConfig.Click += new System.EventHandler(this.btnUpdateConfig_Click); + // + // gbxIdentifierNamingOptions + // + this.gbxIdentifierNamingOptions.Controls.Add(this.txtVarNfHeight); + this.gbxIdentifierNamingOptions.Controls.Add(this.label12); + this.gbxIdentifierNamingOptions.Controls.Add(this.txtVarNfWidth); + this.gbxIdentifierNamingOptions.Controls.Add(this.label11); + this.gbxIdentifierNamingOptions.Controls.Add(this.label10); + this.gbxIdentifierNamingOptions.Controls.Add(this.txtVarNfFontInfo); + this.gbxIdentifierNamingOptions.Controls.Add(this.txtVarNfCharInfo); + this.gbxIdentifierNamingOptions.Controls.Add(this.txtVarNfBitmaps); + this.gbxIdentifierNamingOptions.Controls.Add(this.label7); + this.gbxIdentifierNamingOptions.Controls.Add(this.label8); + this.gbxIdentifierNamingOptions.Controls.Add(this.label9); + this.gbxIdentifierNamingOptions.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.gbxIdentifierNamingOptions.Location = new System.Drawing.Point(19, 335); + this.gbxIdentifierNamingOptions.Name = "gbxIdentifierNamingOptions"; + this.gbxIdentifierNamingOptions.Size = new System.Drawing.Size(419, 162); + this.gbxIdentifierNamingOptions.TabIndex = 47; + this.gbxIdentifierNamingOptions.TabStop = false; + this.gbxIdentifierNamingOptions.Text = "Variable name format where {0} is the font/image name"; + // + // txtVarNfHeight + // + this.txtVarNfHeight.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.txtVarNfHeight.Location = new System.Drawing.Point(93, 129); + this.txtVarNfHeight.Name = "txtVarNfHeight"; + this.txtVarNfHeight.Size = new System.Drawing.Size(310, 20); + this.txtVarNfHeight.TabIndex = 55; + this.txtVarNfHeight.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label12.Location = new System.Drawing.Point(45, 132); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(41, 13); + this.label12.TabIndex = 54; + this.label12.Text = "Height:"; + // + // txtVarNfWidth + // + this.txtVarNfWidth.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.txtVarNfWidth.Location = new System.Drawing.Point(93, 103); + this.txtVarNfWidth.Name = "txtVarNfWidth"; + this.txtVarNfWidth.Size = new System.Drawing.Size(310, 20); + this.txtVarNfWidth.TabIndex = 53; + this.txtVarNfWidth.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label11.Location = new System.Drawing.Point(48, 106); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(38, 13); + this.label11.TabIndex = 52; + this.label11.Text = "Width:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label10.Location = new System.Drawing.Point(92, 158); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(0, 13); + this.label10.TabIndex = 51; + // + // txtVarNfFontInfo + // + this.txtVarNfFontInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.txtVarNfFontInfo.Location = new System.Drawing.Point(93, 77); + this.txtVarNfFontInfo.Name = "txtVarNfFontInfo"; + this.txtVarNfFontInfo.Size = new System.Drawing.Size(310, 20); + this.txtVarNfFontInfo.TabIndex = 50; + this.txtVarNfFontInfo.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // txtVarNfCharInfo + // + this.txtVarNfCharInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.txtVarNfCharInfo.Location = new System.Drawing.Point(93, 52); + this.txtVarNfCharInfo.Name = "txtVarNfCharInfo"; + this.txtVarNfCharInfo.Size = new System.Drawing.Size(310, 20); + this.txtVarNfCharInfo.TabIndex = 49; + this.txtVarNfCharInfo.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // txtVarNfBitmaps + // + this.txtVarNfBitmaps.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtVarNfBitmaps.Location = new System.Drawing.Point(93, 28); + this.txtVarNfBitmaps.Name = "txtVarNfBitmaps"; + this.txtVarNfBitmaps.Size = new System.Drawing.Size(310, 20); + this.txtVarNfBitmaps.TabIndex = 48; + this.txtVarNfBitmaps.TextChanged += new System.EventHandler(this.onOutputConfigurationFormChange); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label7.Location = new System.Drawing.Point(35, 80); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(51, 13); + this.label7.TabIndex = 47; + this.label7.Text = "Font info:"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label8.Location = new System.Drawing.Point(10, 55); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(76, 13); + this.label8.TabIndex = 45; + this.label8.Text = "Character info:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.label9.Location = new System.Drawing.Point(39, 30); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(47, 13); + this.label9.TabIndex = 43; + this.label9.Text = "Bitmaps:"; + // + // CodeGenerationOptions + // + this.CodeGenerationOptions.Controls.Add(this.OutputCSharp); + this.CodeGenerationOptions.Controls.Add(this.OutputC); + this.CodeGenerationOptions.Location = new System.Drawing.Point(19, 50); + this.CodeGenerationOptions.Name = "CodeGenerationOptions"; + this.CodeGenerationOptions.Size = new System.Drawing.Size(644, 62); + this.CodeGenerationOptions.TabIndex = 48; + this.CodeGenerationOptions.TabStop = false; + this.CodeGenerationOptions.Text = "Code Generation"; + // + // OutputCSharp + // + this.OutputCSharp.AutoSize = true; + this.OutputCSharp.Location = new System.Drawing.Point(100, 20); + this.OutputCSharp.Name = "OutputCSharp"; + this.OutputCSharp.Size = new System.Drawing.Size(106, 17); + this.OutputCSharp.TabIndex = 1; + this.OutputCSharp.TabStop = true; + this.OutputCSharp.Text = "C# (for Netduino)"; + this.OutputCSharp.UseVisualStyleBackColor = true; + this.OutputCSharp.CheckedChanged += new System.EventHandler(this.CodeGenerationRadioButtonCheckedChanged); + // + // OutputC + // + this.OutputC.AutoSize = true; + this.OutputC.Location = new System.Drawing.Point(7, 20); + this.OutputC.Name = "OutputC"; + this.OutputC.Size = new System.Drawing.Size(56, 17); + this.OutputC.TabIndex = 0; + this.OutputC.TabStop = true; + this.OutputC.Text = "C/C++"; + this.OutputC.UseVisualStyleBackColor = true; + this.OutputC.CheckedChanged += new System.EventHandler(this.CodeGenerationRadioButtonCheckedChanged); + // + // OutputConfigurationForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(687, 546); + this.Controls.Add(this.CodeGenerationOptions); + this.Controls.Add(this.gbxIdentifierNamingOptions); + this.Controls.Add(this.btnUpdateConfig); + this.Controls.Add(this.btnDeleteConfig); + this.Controls.Add(this.gbxSpaceGenerationOptions); + this.Controls.Add(this.gbxDescriptorOptions); + this.Controls.Add(this.label4); + this.Controls.Add(this.gbxLineWrap); + this.Controls.Add(this.btnApply); + this.Controls.Add(this.gbxCommentOptions); + this.Controls.Add(this.btnSaveNewConfig); + this.Controls.Add(this.cbxOutputConfigurations); + this.Controls.Add(this.gbxByteOrderOptions); + this.Controls.Add(this.label15); + this.Controls.Add(this.gbxPadding); + this.Controls.Add(this.gbxFlipRotate); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Name = "OutputConfigurationForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Modify Output Configuration"; + this.Load += new System.EventHandler(this.OutputConfigurationForm_Load); + this.gbxByteOrderOptions.ResumeLayout(false); + this.gbxByteOrderOptions.PerformLayout(); + this.gbxPadding.ResumeLayout(false); + this.gbxPadding.PerformLayout(); + this.gbxFlipRotate.ResumeLayout(false); + this.gbxFlipRotate.PerformLayout(); + this.gbxCommentOptions.ResumeLayout(false); + this.gbxCommentOptions.PerformLayout(); + this.gbxLineWrap.ResumeLayout(false); + this.gbxLineWrap.PerformLayout(); + this.gbxDescriptorOptions.ResumeLayout(false); + this.gbxDescriptorOptions.PerformLayout(); + this.gbxSpaceGenerationOptions.ResumeLayout(false); + this.gbxSpaceGenerationOptions.PerformLayout(); + this.gbxIdentifierNamingOptions.ResumeLayout(false); + this.gbxIdentifierNamingOptions.PerformLayout(); + this.CodeGenerationOptions.ResumeLayout(false); + this.CodeGenerationOptions.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); } #endregion - private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.GroupBox gbxByteOrderOptions; private System.Windows.Forms.Label label20; private System.Windows.Forms.ComboBox cbxByteFormat; private System.Windows.Forms.Label label18; @@ -951,33 +993,33 @@ private void InitializeComponent() private System.Windows.Forms.Label label17; private System.Windows.Forms.ComboBox cbxPaddingHoriz; private System.Windows.Forms.Label label16; - private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.GroupBox gbxFlipRotate; private System.Windows.Forms.ComboBox cbxOutputConfigurations; private System.Windows.Forms.Label label15; private System.Windows.Forms.Button btnSaveNewConfig; private System.Windows.Forms.ComboBox cbxByteLeadingChar; - private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.GroupBox gbxCommentOptions; private System.Windows.Forms.ComboBox cbxCommentStyle; private System.Windows.Forms.Label label1; private System.Windows.Forms.CheckBox cbxCommentCharDesc; private System.Windows.Forms.CheckBox cbxCommentCharVisual; private System.Windows.Forms.CheckBox cbxCommentVarName; private System.Windows.Forms.Button btnApply; - private System.Windows.Forms.GroupBox groupBox5; + private System.Windows.Forms.GroupBox gbxLineWrap; private System.Windows.Forms.RadioButton rbnLineWrapAtBitmap; private System.Windows.Forms.RadioButton rbnLineWrapAtColumn; private System.Windows.Forms.Label label4; private System.Windows.Forms.ComboBox cbxRotation; private System.Windows.Forms.CheckBox cbxFlipVert; private System.Windows.Forms.CheckBox cbxFlipHoriz; - private System.Windows.Forms.GroupBox groupBox6; + private System.Windows.Forms.GroupBox gbxDescriptorOptions; private System.Windows.Forms.ComboBox cbxFontHeightFormat; private System.Windows.Forms.Label label2; private System.Windows.Forms.ComboBox cbxCharHeightFormat; private System.Windows.Forms.Label label3; private System.Windows.Forms.ComboBox cbxCharWidthFormat; private System.Windows.Forms.Label label5; - private System.Windows.Forms.GroupBox groupBox7; + private System.Windows.Forms.GroupBox gbxSpaceGenerationOptions; private System.Windows.Forms.Label label6; private System.Windows.Forms.TextBox txtSpacePixels; private System.Windows.Forms.CheckBox cbxGenerateSpaceBitmap; @@ -985,7 +1027,7 @@ private void InitializeComponent() private System.Windows.Forms.Button btnUpdateConfig; private System.Windows.Forms.CheckBox cbxGenerateLookupArray; private System.Windows.Forms.TextBox txtBmpVisualizerChar; - private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.GroupBox gbxIdentifierNamingOptions; private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label9; @@ -1008,5 +1050,8 @@ private void InitializeComponent() private System.Windows.Forms.Label label23; private System.Windows.Forms.Label label24; private System.Windows.Forms.ComboBox cbxBitLayout; - } + private System.Windows.Forms.GroupBox CodeGenerationOptions; + private System.Windows.Forms.RadioButton OutputCSharp; + private System.Windows.Forms.RadioButton OutputC; + } } \ No newline at end of file diff --git a/TheDotFactory/OutputConfigurationForm.cs b/TheDotFactory/OutputConfigurationForm.cs index adede55..0b2bfc2 100755 --- a/TheDotFactory/OutputConfigurationForm.cs +++ b/TheDotFactory/OutputConfigurationForm.cs @@ -95,6 +95,8 @@ void loadOutputConfigurationToForm(OutputConfiguration outputConfig) // -- wrap rbnLineWrapAtColumn.Checked = (outputConfig.lineWrap == OutputConfiguration.LineWrap.AtColumn); rbnLineWrapAtBitmap.Checked = !rbnLineWrapAtColumn.Checked; + OutputC.Checked = outputConfig.codeGeneration == OutputConfiguration.CodeGeneration.C; + OutputCSharp.Checked = outputConfig.codeGeneration == OutputConfiguration.CodeGeneration.CSharp; // clear flag m_loadingOutputConfigurationToForm = false; @@ -142,6 +144,7 @@ void loadFormToOutputConfiguration(ref OutputConfiguration outputConfig) // -- wrap if (rbnLineWrapAtColumn.Checked) outputConfig.lineWrap = OutputConfiguration.LineWrap.AtColumn; else outputConfig.lineWrap = OutputConfiguration.LineWrap.AtBitmap; + outputConfig.codeGeneration = OutputCSharp.Checked ? OutputConfiguration.CodeGeneration.CSharp : OutputConfiguration.CodeGeneration.C; } private void setControlTooltip(Control control, string tooltipString) @@ -220,7 +223,7 @@ public int getDisplayStringIndex(ref string[] displayStrings, string selectedTex return 0; } - private void button1_Click(object sender, EventArgs e) + private void ApplyButtonClicked(object sender, EventArgs e) { // close self Close(); @@ -416,5 +419,18 @@ private void txtLookupBlocksNewAfterCharCount_TextChanged(object sender, EventAr { } + + private void CodeGenerationRadioButtonCheckedChanged(object sender, EventArgs e) + { + onOutputConfigurationFormChange(sender, e); + gbxFlipRotate.Enabled = OutputC.Checked || OutputCSharp.Checked; + gbxPadding.Enabled = OutputC.Checked || OutputCSharp.Checked; + gbxLineWrap.Enabled = OutputC.Checked || OutputCSharp.Checked; + gbxLineWrap.Enabled = OutputC.Checked || OutputCSharp.Checked; + gbxCommentOptions.Enabled = OutputC.Checked || OutputCSharp.Checked; + gbxByteOrderOptions.Enabled = OutputC.Checked || OutputCSharp.Checked; + gbxDescriptorOptions.Enabled = OutputC.Checked; + gbxIdentifierNamingOptions.Enabled = OutputC.Checked; + } } } diff --git a/TheDotFactory/OutputConfigurationForm.resx b/TheDotFactory/OutputConfigurationForm.resx index 4167a14..a85bb8c 100755 --- a/TheDotFactory/OutputConfigurationForm.resx +++ b/TheDotFactory/OutputConfigurationForm.resx @@ -120,72 +120,71 @@ - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAl1JREFUOE+lk8tr - U0EUxgsuuvIPEFe6EkGlK5duRFQEF1LcKESpCroRV4KCuJBWjdaKEQKaB6WGkFeTpnncJKQ02XSR5mEa - UtqEpiFJmdA0pHnUvD7nDDa2XsGFF4ZzL3e+35nznTNDAIb+Zx0S+/3+YZ/PNypJktXj8aTcbnfH5XL9 - cDqdkbm5OaPdbr9ks9mOHEw4AHDxaS6Ox2IxbG1tYXd3F71eD91uF9vb29jY2MDi4iIsFkvIbDYf34cM - ADxrMJfLod/v839/fzqdDqLRKIxGo14G8Hq9bG9v758AxhgMBgOTAXi9rNVqoVQqYWdnB81mE5Sx3W6j - Wq0im80iFAqhWCxiZmZGDpifn2ckKpfLYnMqlcLKygri8bgQco+wsLCAQqGA6elpOYA7zRqNBiqVisiy - ubkpIvkSiUSEgbTy+Tx0Op0c4HA4WL1eB9VIokwmIzbTaZaWlhAIBBAMBgVYo9HIAbOzs4xaRx6QeHV1 - VbRubW0N4XAYqm9v8OTzbdx/fx23Xl3sX3l69jkZOWij1WpltVpNZEin06L+9fV18f7JMIGXpjtwJlWI - FSVM+h7i5uQZnH90TDkA8OFg+24nk0kkEgmRncxUvL4M+/cPsKc+igFR+u9h0v+AAK0BgA8Ho3qpDBIe - BFx7NgJX8suh6XIkVAT4fZH4cFzl/a0vLy+L0SVDqSsULzw+ibfSXYxLCgEZ9yrkJyBDeH9P6PX6r1qt - tsojTCYTTR3GXozihvIU3kljoMwU6fuQB39eabVafVSlUo1MTU2dUyqVw3zzBF81OvavOEGan8rcHObW - bjwRAAAAAElFTkSuQmCC + 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 + rOXKVkqKAAAAAElFTkSuQmCC - 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 + u14AAAAASUVORK5CYII= - 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 \ No newline at end of file diff --git a/TheDotFactory/OutputConfigurationManager.cs b/TheDotFactory/OutputConfigurationManager.cs index 4f85d8f..835987b 100755 --- a/TheDotFactory/OutputConfigurationManager.cs +++ b/TheDotFactory/OutputConfigurationManager.cs @@ -26,6 +26,12 @@ public enum LineWrap AtBitmap // After each bitmap } + public enum CodeGeneration + { + C, + CSharp + } + // space generated public enum SpaceGeneration { @@ -152,6 +158,9 @@ public enum DescriptorFormat // display name public string displayName = ""; + + // code generation options + public CodeGeneration codeGeneration; } // the output configuration manager diff --git a/TheDotFactory/Properties/Resources.Designer.cs b/TheDotFactory/Properties/Resources.Designer.cs index 308cb1c..c82a969 100755 --- a/TheDotFactory/Properties/Resources.Designer.cs +++ b/TheDotFactory/Properties/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.3082 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,7 +19,7 @@ namespace TheDotFactory.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/TheDotFactory/Properties/Settings.Designer.cs b/TheDotFactory/Properties/Settings.Designer.cs index 1816dfb..dee3b30 100755 --- a/TheDotFactory/Properties/Settings.Designer.cs +++ b/TheDotFactory/Properties/Settings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.3603 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -12,7 +12,7 @@ namespace TheDotFactory.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); diff --git a/TheDotFactory/TheDotFactory.csproj b/TheDotFactory/TheDotFactory.csproj index 8c0030b..17892a0 100755 --- a/TheDotFactory/TheDotFactory.csproj +++ b/TheDotFactory/TheDotFactory.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,8 +10,14 @@ Properties TheDotFactory TheDotFactory - v3.5 + v4.6 512 + false + + + + + 3.5 publish\ true Disk @@ -24,9 +30,9 @@ true 0 1.0.0.%2a - false false true + true @@ -36,6 +42,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -44,6 +51,7 @@ TRACE prompt 4 + false @@ -142,6 +150,11 @@ .NET Framework 3.5 true + + False + .NET Framework 3.5 SP1 + false + False Windows Installer 3.1 diff --git a/TheDotFactory/app.config b/TheDotFactory/app.config index 1d11c39..c6cb13e 100755 --- a/TheDotFactory/app.config +++ b/TheDotFactory/app.config @@ -1,8 +1,8 @@ - + - -
+ +
@@ -18,4 +18,4 @@ - \ No newline at end of file + From 6711ec449e6fe9ff63c7f3bac15fdded45099581 Mon Sep 17 00:00:00 2001 From: Tim Long Date: Mon, 19 Oct 2015 03:32:24 +0100 Subject: [PATCH 2/2] Added escaping to characters that need it. Tidied up the configuration UI to force some controls to fixed values when C# code generation is selected. --- TheDotFactory/MainForm.cs | 6 +++++- TheDotFactory/OutputConfigurationForm.Designer.cs | 4 ++-- TheDotFactory/OutputConfigurationForm.cs | 10 ++++++++++ TheDotFactory/OutputConfigurationForm.resx | 6 +++--- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/TheDotFactory/MainForm.cs b/TheDotFactory/MainForm.cs index 8f9326e..9d5f10f 100755 --- a/TheDotFactory/MainForm.cs +++ b/TheDotFactory/MainForm.cs @@ -1537,8 +1537,12 @@ private void generateCSharpFromFontInfo(FontInfo fontInfo, ref string resultText void GenerateCSharpCharacter(StringBuilder builder, CharacterGenerationInfo charInfo) { + const string CharsThatMustBeEscaped = @"'\"; if (charInfo.bitmapToGenerate == null) return; // Skip missing characters - builder.AppendLine($" {{'{charInfo.character}', new BitMappedCharacter"); + var c = charInfo.character; + var escapeRequired = CharsThatMustBeEscaped.Contains(c); + var charName = escapeRequired ? @"\" + c : c.ToString(); + builder.AppendLine($" {{'{charName}', new BitMappedCharacter"); builder.AppendLine(" {"); builder.AppendLine($" Width = {charInfo.width},"); builder.AppendLine(" Stripes = new byte[]"); diff --git a/TheDotFactory/OutputConfigurationForm.Designer.cs b/TheDotFactory/OutputConfigurationForm.Designer.cs index 0eb751e..1c69cbc 100755 --- a/TheDotFactory/OutputConfigurationForm.Designer.cs +++ b/TheDotFactory/OutputConfigurationForm.Designer.cs @@ -902,7 +902,7 @@ private void InitializeComponent() this.CodeGenerationOptions.Controls.Add(this.OutputC); this.CodeGenerationOptions.Location = new System.Drawing.Point(19, 50); this.CodeGenerationOptions.Name = "CodeGenerationOptions"; - this.CodeGenerationOptions.Size = new System.Drawing.Size(644, 62); + this.CodeGenerationOptions.Size = new System.Drawing.Size(644, 47); this.CodeGenerationOptions.TabIndex = 48; this.CodeGenerationOptions.TabStop = false; this.CodeGenerationOptions.Text = "Code Generation"; @@ -935,7 +935,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(687, 546); + this.ClientSize = new System.Drawing.Size(687, 513); this.Controls.Add(this.CodeGenerationOptions); this.Controls.Add(this.gbxIdentifierNamingOptions); this.Controls.Add(this.btnUpdateConfig); diff --git a/TheDotFactory/OutputConfigurationForm.cs b/TheDotFactory/OutputConfigurationForm.cs index 0b2bfc2..4cd0c67 100755 --- a/TheDotFactory/OutputConfigurationForm.cs +++ b/TheDotFactory/OutputConfigurationForm.cs @@ -431,6 +431,16 @@ private void CodeGenerationRadioButtonCheckedChanged(object sender, EventArgs e) gbxByteOrderOptions.Enabled = OutputC.Checked || OutputCSharp.Checked; gbxDescriptorOptions.Enabled = OutputC.Checked; gbxIdentifierNamingOptions.Enabled = OutputC.Checked; + cbxCommentVarName.Enabled = OutputC.Checked; + cbxCommentCharDesc.Enabled = OutputC.Checked; + cbxCommentCharVisual.Enabled = OutputC.Checked || OutputCSharp.Checked; + cbxByteLeadingChar.Enabled = OutputC.Checked; + cbxByteFormat.Enabled = OutputC.Checked; + if (OutputCSharp.Checked) + { + cbxByteLeadingChar.SelectedIndex = 1; + cbxByteFormat.SelectedIndex = 1; + } } } } diff --git a/TheDotFactory/OutputConfigurationForm.resx b/TheDotFactory/OutputConfigurationForm.resx index a85bb8c..0ee1caa 100755 --- a/TheDotFactory/OutputConfigurationForm.resx +++ b/TheDotFactory/OutputConfigurationForm.resx @@ -112,12 +112,12 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6