public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex) { //graphics.FillRectangle( new SolidBrush( Color.Beige ), _recHex ); if (Box.BytesPerLine == 8) { int spriteSize = (int)(Box.CharSize.Height * 8) - 2; ByteBuffer spriteData = new ByteBuffer(64); int firstSprite = (int)(_startByte / 64); int firstTrueByte = firstSprite * 64; int firstLineOffset = (int)(_startByte - firstTrueByte) / 8; int lastTrueByte = (int)(intern_endByte - _startByte) + firstTrueByte; int lastSprite = (int)lastTrueByte / 64; if (lastSprite * 64 > intern_endByte) { ++lastSprite; } var oldClip = graphics.Clip; graphics.SetClip(_recHex); for (int j = firstSprite; j <= lastSprite; ++j) { for (int i = 0; i < 64; ++i) { spriteData.SetU8At(i, Box.ByteProvider.ReadByte(firstTrueByte + (j - firstSprite) * 64 + i)); } GR.Image.FastImage spriteImage = new GR.Image.FastImage(24, 21, System.Drawing.Imaging.PixelFormat.Format8bppIndexed); spriteImage.Box(0, 0, 24, 21, 1); C64Studio.CustomRenderer.PaletteManager.ApplyPalette(spriteImage); if (MultiColor) { SpriteDisplayer.DisplayMultiColorSprite(spriteData, BackgroundColor, MultiColor1, MultiColor2, CustomColor, spriteImage, 0, 0); } else { SpriteDisplayer.DisplayHiResSprite(spriteData, BackgroundColor, CustomColor, spriteImage, 0, 0); } int offsetY = (int)(Box.CharSize.Height * (j - firstSprite) * 8 + (Box.CharSize.Height * 8 - spriteSize) / 2) - (int)(Box.CharSize.Height * firstLineOffset); System.Drawing.Image img = spriteImage.GetAsBitmap(); graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor; graphics.DrawImage(img, new Rectangle(_recHex.Left, _recHex.Top + offsetY, spriteSize, spriteSize)); img.Dispose(); } graphics.Clip = oldClip; } }
public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex) { //if ( Box.BytesPerLine == 8 ) { var oldClip = graphics.Clip; graphics.SetClip(_recHex); GR.Image.FastImage charImage = new GR.Image.FastImage(8, 8, System.Drawing.Imaging.PixelFormat.Format8bppIndexed); PaletteManager.ApplyPalette(charImage); for (int i = 0; i < intern_endByte - _startByte; ++i) { byte character = Box.ByteProvider.ReadByte(_startByte + i); int displayColor = 0; int bgColor = 1; if ((_startByte + i >= Box.SelectionStart) && (_startByte + i < Box.SelectionStart + Box.SelectionLength)) { displayColor = 1; bgColor = 14; } switch (Mode) { case PETSCIIDisplay.UPPER_CASE: CharacterDisplayer.DisplayHiResChar(ConstantData.UpperCaseCharsetC64.SubBuffer(character * 8, 8), ConstantData.Palette, bgColor, displayColor, charImage, 0, 0); break; case PETSCIIDisplay.LOWER_CASE: CharacterDisplayer.DisplayHiResChar(ConstantData.LowerCaseCharsetC64.SubBuffer(character * 8, 8), ConstantData.Palette, bgColor, displayColor, charImage, 0, 0); break; } charImage.DrawToHDC(graphics.GetHdc(), new Rectangle(_recHex.Left + (int)Box.CharSize.Width * (i % 8), (int)(_recHex.Top + (i / 8) * (int)Box.CharSize.Height + (Box.CharSize.Height - Box.CharSize.Width) / 2), (int)Box.CharSize.Width, (int)Box.CharSize.Width)); graphics.ReleaseHdc(); } charImage.Dispose(); graphics.Clip = oldClip; } }
private void btnImportCharsetFromFile_Click(object sender, EventArgs e) { string filename; if (!OpenFile("Import Charset from Image", C64Studio.Types.Constants.FILEFILTER_IMAGE_FILES, out filename)) { return; } GR.Image.FastImage imgClip = Core.Imaging.LoadImageFromFile(filename); characterEditor.PasteImage(filename, imgClip, false); }
private void OpenImage(GR.Image.FastImage newImage) { if (newImage == null) { return; } m_OriginalImage = new GR.Image.MemoryImage(newImage.Width, newImage.Height, newImage.PixelFormat); m_ImportImage = new GR.Image.MemoryImage(newImage.Width, newImage.Height, System.Drawing.Imaging.PixelFormat.Format8bppIndexed); for (int j = 0; j < 17; ++j) { m_ImportImage.SetPaletteColor(j, (byte)((Types.ConstantData.Palette.ColorValues[j] & 0x00ff0000) >> 16), (byte)((Types.ConstantData.Palette.ColorValues[j] & 0x0000ff00) >> 8), (byte)(Types.ConstantData.Palette.ColorValues[j] & 0xff)); } for (int i = 0; i < newImage.PaletteEntryCount; ++i) { m_OriginalImage.SetPaletteColor(i, newImage.PaletteRed(i), newImage.PaletteGreen(i), newImage.PaletteBlue(i)); } newImage.DrawTo(m_OriginalImage, 0, 0); newImage.Dispose(); if (m_OriginalImage.PixelFormat != picOriginal.DisplayPage.PixelFormat) { picOriginal.DisplayPage.Create(picOriginal.ClientSize.Width, picOriginal.ClientSize.Height, m_OriginalImage.PixelFormat); for (int i = 0; i < newImage.PaletteEntryCount; ++i) { picOriginal.DisplayPage.SetPaletteColor(i, newImage.PaletteRed(i), newImage.PaletteGreen(i), newImage.PaletteBlue(i)); } } picOriginal.DisplayPage.Box(0, 0, picOriginal.DisplayPage.Width, picOriginal.DisplayPage.Height, 0); // determine optimal zoom size m_Zoom = 1024; while ((m_OriginalImage.Width * 1024 / m_Zoom < 64) && (m_OriginalImage.Height * 1024 / m_Zoom < 64)) { m_Zoom /= 2; } picOriginal.SetImageSize(picOriginal.ClientSize.Width * m_Zoom / 1024, picOriginal.ClientSize.Height * m_Zoom / 1024); picPreview.SetImageSize(picPreview.ClientSize.Width * m_Zoom / 1024, picPreview.ClientSize.Height * m_Zoom / 1024); picOriginal.DisplayPage.DrawFromMemoryImage(m_OriginalImage, 0, 0); m_OrigSize.Width = m_OriginalImage.Width; m_OrigSize.Height = m_OriginalImage.Height; RecalcImport(); }
public override bool HandleImport(CharsetProject Charset, CharsetEditor Editor) { string filename; if (!Editor.OpenFile("Import Charset from Image", RetroDevStudio.Types.Constants.FILEFILTER_IMAGE_FILES, out filename)) { return(false); } GR.Image.FastImage imgClip = Core.Imaging.LoadImageFromFile(filename); Editor.characterEditor.PasteImage(filename, imgClip, false); return(true); }
public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex) { if (Box.BytesPerLine == 8) { var oldClip = graphics.Clip; graphics.SetClip(_recHex); int boxSize = (int)Box.CharSize.Height - 2; ByteBuffer charData = new ByteBuffer(8); for (int j = 0; j < (intern_endByte - _startByte) / 8; ++j) { for (int i = 0; i < 8; ++i) { charData.SetU8At(i, Box.ByteProvider.ReadByte(_startByte + j * 8 + i)); } using (GR.Image.FastImage charImage = new GR.Image.FastImage(8, 8, System.Drawing.Imaging.PixelFormat.Format8bppIndexed)) { PaletteManager.ApplyPalette(charImage); switch (Mode) { case TextMode.COMMODORE_40_X_25_HIRES: CharacterDisplayer.DisplayHiResChar(charData, ConstantData.Palette, BackgroundColor, CustomColor, charImage, 0, 0); break; case TextMode.COMMODORE_40_X_25_MULTICOLOR: CharacterDisplayer.DisplayMultiColorChar(charData, ConstantData.Palette, BackgroundColor, CustomColor, MultiColor1, MultiColor2, charImage, 0, 0); break; case TextMode.COMMODORE_40_X_25_ECM: // TODO - not correct CharacterDisplayer.DisplayHiResChar(charData, ConstantData.Palette, BackgroundColor, CustomColor, charImage, 0, 0); break; default: Debug.Log("PaintHexData: Missing mode displayer"); break; } charImage.DrawToHDC(graphics.GetHdc(), new Rectangle(_recHex.Left, (int)(_recHex.Top + Box.CharSize.Height * j + (Box.CharSize.Height - boxSize) / 2), boxSize, boxSize)); graphics.ReleaseHdc(); } } graphics.Clip = oldClip; } }
public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex) { if (Box.BytesPerLine == 8) { var oldClip = graphics.Clip; graphics.SetClip(_recHex); int boxSize = (int)Box.CharSize.Height - 2; ByteBuffer charData = new ByteBuffer(8); for (int j = 0; j < (intern_endByte - _startByte) / 8; ++j) { for (int i = 0; i < 8; ++i) { charData.SetU8At(i, Box.ByteProvider.ReadByte(_startByte + j * 8 + i)); } GR.Image.FastImage charImage = new GR.Image.FastImage(8, 8, System.Drawing.Imaging.PixelFormat.Format8bppIndexed); C64Studio.CustomRenderer.PaletteManager.ApplyPalette(charImage); switch (Mode) { case C64Studio.Types.CharsetMode.HIRES: CharacterDisplayer.DisplayHiResChar(charData, BackgroundColor, CustomColor, charImage, 0, 0); break; case C64Studio.Types.CharsetMode.MULTICOLOR: CharacterDisplayer.DisplayMultiColorChar(charData, BackgroundColor, CustomColor, MultiColor1, MultiColor2, charImage, 0, 0); break; case C64Studio.Types.CharsetMode.ECM: // TODO! CharacterDisplayer.DisplayHiResChar(charData, BackgroundColor, CustomColor, charImage, 0, 0); break; } charImage.DrawToHDC(graphics.GetHdc(), new Rectangle(_recHex.Left, (int)(_recHex.Top + Box.CharSize.Height * j + (Box.CharSize.Height - boxSize) / 2), boxSize, boxSize)); graphics.ReleaseHdc(); charImage.Dispose(); } graphics.Clip = oldClip; } }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog openDlg = new OpenFileDialog(); openDlg.Title = "Import image"; openDlg.Filter = m_MainForm.FilterString(C64Studio.Types.Constants.FILEFILTER_IMAGE_FILES); if (m_MainForm.CurrentProject != null) { openDlg.InitialDirectory = m_MainForm.CurrentProject.Settings.BasePath; } if (openDlg.ShowDialog() != DialogResult.OK) { return; } System.Drawing.Bitmap bmpImage = (System.Drawing.Bitmap)System.Drawing.Bitmap.FromFile(openDlg.FileName); GR.Image.FastImage newImage = GR.Image.FastImage.FromImage(bmpImage); bmpImage.Dispose(); OpenImage(newImage); }
private bool ImportChar(GR.Image.FastImage Image, int CharIndex, bool ForceMulticolor) { if (Image.PixelFormat != System.Drawing.Imaging.PixelFormat.Format8bppIndexed) { // invalid format return(false); } // Match image data GR.Memory.ByteBuffer Buffer = new GR.Memory.ByteBuffer(m_Charset.Characters[CharIndex].Data); int chosenCharColor = -1; bool isMultiColor = false; unsafe { // determine single/multi color bool[] usedColor = new bool[16]; int numColors = 0; bool hasSinglePixel = false; bool usedBackgroundColor = false; for (int y = 0; y < Image.Height; ++y) { for (int x = 0; x < Image.Width; ++x) { int colorIndex = (int)Image.GetPixelData(x, y) % 16; if (colorIndex >= 16) { return(false); } if ((x % 2) == 0) { if (colorIndex != (int)Image.GetPixelData(x + 1, y) % 16) { // not a double pixel, must be single color then hasSinglePixel = true; } } if (!usedColor[colorIndex]) { if (colorIndex == m_Charset.BackgroundColor) { usedBackgroundColor = true; } usedColor[colorIndex] = true; numColors++; } } } //Debug.Log( "For Char " + CharIndex + ", hasSinglePixel = " + hasSinglePixel + ", numColors = " + numColors + ", usedBackgroundColor = " + usedBackgroundColor ); if ((hasSinglePixel) && (numColors > 2)) { return(false); } if ((hasSinglePixel) && (numColors == 2) && (!usedBackgroundColor)) { return(false); } if ((!hasSinglePixel) && (numColors > 4)) { return(false); } if ((!hasSinglePixel) && (numColors == 4) && (!usedBackgroundColor)) { return(false); } int otherColorIndex = 16; if ((!hasSinglePixel) && (numColors == 2) && (usedBackgroundColor)) { for (int i = 0; i < 16; ++i) { if ((usedColor[i]) && (i != m_Charset.BackgroundColor)) { otherColorIndex = i; break; } } } if ((!ForceMulticolor) && ((hasSinglePixel) || ((numColors == 2) && (usedBackgroundColor) && (otherColorIndex < 8)))) //|| ( numColors == 2 ) ) { // eligible for single color int usedFreeColor = -1; for (int i = 0; i < 16; ++i) { if (usedColor[i]) { if (i != m_Charset.BackgroundColor) { if (usedFreeColor != -1) { return(false); } usedFreeColor = i; } } } for (int y = 0; y < Image.Height; ++y) { for (int x = 0; x < Image.Width; ++x) { int ColorIndex = (int)Image.GetPixelData(x, y) % 16; int BitPattern = 0; if (ColorIndex != m_Charset.BackgroundColor) { BitPattern = 1; } // noch nicht verwendete Farbe if (BitPattern == 1) { chosenCharColor = ColorIndex; } byte byteMask = (byte)(255 - (1 << ((7 - (x % 8))))); Buffer.SetU8At(y + x / 8, (byte)((Buffer.ByteAt(y + x / 8) & byteMask) | (BitPattern << ((7 - (x % 8)))))); } } } else { // multi color isMultiColor = true; int usedMultiColors = 0; int usedFreeColor = -1; for (int i = 0; i < 16; ++i) { if (usedColor[i]) { if ((i == m_Charset.MultiColor1) || (i == m_Charset.MultiColor2) || (i == m_Charset.BackgroundColor)) { ++usedMultiColors; } else { usedFreeColor = i; } } } if (numColors - usedMultiColors > 1) { // only one free color allowed return(false); } for (int y = 0; y < Image.Height; ++y) { for (int x = 0; x < Image.Width / 2; ++x) { int ColorIndex = (int)Image.GetPixelData(2 * x, y) % 16; byte BitPattern = 0; if (ColorIndex == m_Charset.BackgroundColor) { BitPattern = 0x00; } else if (ColorIndex == m_Charset.MultiColor1) { BitPattern = 0x01; } else if (ColorIndex == m_Charset.MultiColor2) { BitPattern = 0x02; } else { // noch nicht verwendete Farbe chosenCharColor = usedFreeColor; BitPattern = 0x03; } byte byteMask = (byte)(255 - (3 << ((3 - (x % 4)) * 2))); Buffer.SetU8At(y + x / 4, (byte)((Buffer.ByteAt(y + x / 4) & byteMask) | (BitPattern << ((3 - (x % 4)) * 2)))); } } } } for (int i = 0; i < 8; ++i) { m_Charset.Characters[CharIndex].Data.SetU8At(i, Buffer.ByteAt(i)); } if (chosenCharColor == -1) { chosenCharColor = 0; } m_Charset.Characters[CharIndex].Color = chosenCharColor; if ((isMultiColor) && (chosenCharColor < 8)) { m_Charset.Characters[CharIndex].Color = chosenCharColor + 8; } m_Charset.Characters[CharIndex].Mode = isMultiColor ? Types.CharsetMode.MULTICOLOR : C64Studio.Types.CharsetMode.HIRES; return(true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DlgGraphicImport)); GR.Image.FastImage fastImage3 = new GR.Image.FastImage(); GR.Image.FastImage fastImage4 = new GR.Image.FastImage(); this.tabImportSettings = new System.Windows.Forms.TabControl(); this.tabSettings = new System.Windows.Forms.TabPage(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.label3 = new System.Windows.Forms.Label(); this.listDirectReplaceColors = new System.Windows.Forms.ListView(); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.comboColorMatching = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.comboImportType = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.comboBackground = new System.Windows.Forms.ComboBox(); this.radioMulticolor2 = new System.Windows.Forms.Label(); this.comboMulticolor1 = new System.Windows.Forms.ComboBox(); this.radioMultiColor1 = new System.Windows.Forms.Label(); this.comboMulticolor2 = new System.Windows.Forms.ComboBox(); this.radioBackground = new System.Windows.Forms.Label(); this.tabPalette = new System.Windows.Forms.TabPage(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); this.listProblems = new System.Windows.Forms.ListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.menuImport = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.btnZoomIn = new System.Windows.Forms.Button(); this.btnZoomOut = new System.Windows.Forms.Button(); this.btnReload = new System.Windows.Forms.Button(); this.contextMenuOrigPic = new System.Windows.Forms.ContextMenuStrip(this.components); this.forceTargetColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.blackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.whiteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.redToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.cyanToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.purpleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.greenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.blueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.yellowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.orangeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.brownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.lightRedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.darkGreyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mediumGreyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.lightGreenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.lightBlueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.lightGreyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.picPreview = new GR.Forms.FastPictureBox(); this.picOriginal = new GR.Forms.FastPictureBox(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.checkPasteAsBlock = new System.Windows.Forms.CheckBox(); this.tabImportSettings.SuspendLayout(); this.tabSettings.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.menuImport.SuspendLayout(); this.contextMenuOrigPic.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picPreview)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picOriginal)).BeginInit(); this.groupBox5.SuspendLayout(); this.SuspendLayout(); // // tabImportSettings // this.tabImportSettings.Controls.Add(this.tabSettings); this.tabImportSettings.Controls.Add(this.tabPalette); this.tabImportSettings.Location = new System.Drawing.Point(650, 29); this.tabImportSettings.Name = "tabImportSettings"; this.tabImportSettings.SelectedIndex = 0; this.tabImportSettings.Size = new System.Drawing.Size(291, 476); this.tabImportSettings.TabIndex = 2; // // tabSettings // this.tabSettings.Controls.Add(this.groupBox5); this.tabSettings.Controls.Add(this.groupBox4); this.tabSettings.Controls.Add(this.groupBox3); this.tabSettings.Controls.Add(this.groupBox2); this.tabSettings.Controls.Add(this.groupBox1); this.tabSettings.Location = new System.Drawing.Point(4, 22); this.tabSettings.Name = "tabSettings"; this.tabSettings.Padding = new System.Windows.Forms.Padding(3); this.tabSettings.Size = new System.Drawing.Size(283, 450); this.tabSettings.TabIndex = 0; this.tabSettings.Text = "Settings"; this.tabSettings.UseVisualStyleBackColor = true; // // groupBox4 // this.groupBox4.Controls.Add(this.label3); this.groupBox4.Controls.Add(this.listDirectReplaceColors); this.groupBox4.Location = new System.Drawing.Point(6, 228); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(271, 154); this.groupBox4.TabIndex = 11; this.groupBox4.TabStop = false; this.groupBox4.Text = "Directly replace colors"; // // label3 // this.label3.Location = new System.Drawing.Point(6, 119); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(259, 32); this.label3.TabIndex = 1; this.label3.Text = "Right click on a source pixel to force a replacement color"; // // listDirectReplaceColors // this.listDirectReplaceColors.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader3, this.columnHeader4 }); this.listDirectReplaceColors.Location = new System.Drawing.Point(6, 19); this.listDirectReplaceColors.Name = "listDirectReplaceColors"; this.listDirectReplaceColors.Size = new System.Drawing.Size(259, 97); this.listDirectReplaceColors.TabIndex = 0; this.listDirectReplaceColors.UseCompatibleStateImageBehavior = false; this.listDirectReplaceColors.View = System.Windows.Forms.View.Details; // // columnHeader3 // this.columnHeader3.Text = "Original Color"; this.columnHeader3.Width = 111; // // columnHeader4 // this.columnHeader4.Text = "Replace With"; this.columnHeader4.Width = 141; // // groupBox3 // this.groupBox3.Controls.Add(this.comboColorMatching); this.groupBox3.Controls.Add(this.label2); this.groupBox3.Location = new System.Drawing.Point(6, 168); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(271, 51); this.groupBox3.TabIndex = 10; this.groupBox3.TabStop = false; this.groupBox3.Text = "Color Matching"; // // comboColorMatching // this.comboColorMatching.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboColorMatching.FormattingEnabled = true; this.comboColorMatching.Location = new System.Drawing.Point(65, 16); this.comboColorMatching.Name = "comboColorMatching"; this.comboColorMatching.Size = new System.Drawing.Size(200, 21); this.comboColorMatching.TabIndex = 1; this.comboColorMatching.SelectedIndexChanged += new System.EventHandler(this.comboColorMatching_SelectedIndexChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(6, 19); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(54, 13); this.label2.TabIndex = 0; this.label2.Text = "Match by:"; // // groupBox2 // this.groupBox2.Controls.Add(this.comboImportType); this.groupBox2.Controls.Add(this.label1); this.groupBox2.Location = new System.Drawing.Point(6, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(271, 51); this.groupBox2.TabIndex = 10; this.groupBox2.TabStop = false; this.groupBox2.Text = "Import Settings"; // // comboImportType // this.comboImportType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboImportType.FormattingEnabled = true; this.comboImportType.Location = new System.Drawing.Point(65, 16); this.comboImportType.Name = "comboImportType"; this.comboImportType.Size = new System.Drawing.Size(200, 21); this.comboImportType.TabIndex = 1; this.comboImportType.SelectedIndexChanged += new System.EventHandler(this.comboImportType_SelectedIndexChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(6, 19); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(53, 13); this.label1.TabIndex = 0; this.label1.Text = "Import as:"; // // groupBox1 // this.groupBox1.Controls.Add(this.comboBackground); this.groupBox1.Controls.Add(this.radioMulticolor2); this.groupBox1.Controls.Add(this.comboMulticolor1); this.groupBox1.Controls.Add(this.radioMultiColor1); this.groupBox1.Controls.Add(this.comboMulticolor2); this.groupBox1.Controls.Add(this.radioBackground); this.groupBox1.Location = new System.Drawing.Point(6, 63); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(271, 99); this.groupBox1.TabIndex = 9; this.groupBox1.TabStop = false; this.groupBox1.Text = "Predefined Colors"; // // comboBackground // this.comboBackground.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboBackground.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBackground.FormattingEnabled = true; this.comboBackground.Location = new System.Drawing.Point(113, 19); this.comboBackground.Name = "comboBackground"; this.comboBackground.Size = new System.Drawing.Size(121, 21); this.comboBackground.TabIndex = 5; this.comboBackground.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.combo_DrawItem); this.comboBackground.SelectedIndexChanged += new System.EventHandler(this.comboBackground_SelectedIndexChanged); // // radioMulticolor2 // this.radioMulticolor2.AutoSize = true; this.radioMulticolor2.Location = new System.Drawing.Point(6, 73); this.radioMulticolor2.Name = "radioMulticolor2"; this.radioMulticolor2.Size = new System.Drawing.Size(61, 13); this.radioMulticolor2.TabIndex = 6; this.radioMulticolor2.TabStop = true; this.radioMulticolor2.Text = "Multicolor 2"; // // comboMulticolor1 // this.comboMulticolor1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboMulticolor1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMulticolor1.FormattingEnabled = true; this.comboMulticolor1.Location = new System.Drawing.Point(113, 46); this.comboMulticolor1.Name = "comboMulticolor1"; this.comboMulticolor1.Size = new System.Drawing.Size(121, 21); this.comboMulticolor1.TabIndex = 3; this.comboMulticolor1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.combo_DrawItem); this.comboMulticolor1.SelectedIndexChanged += new System.EventHandler(this.comboMulticolor1_SelectedIndexChanged); // // radioMultiColor1 // this.radioMultiColor1.AutoSize = true; this.radioMultiColor1.Location = new System.Drawing.Point(6, 46); this.radioMultiColor1.Name = "radioMultiColor1"; this.radioMultiColor1.Size = new System.Drawing.Size(61, 13); this.radioMultiColor1.TabIndex = 7; this.radioMultiColor1.TabStop = true; this.radioMultiColor1.Text = "Multicolor 1"; // // comboMulticolor2 // this.comboMulticolor2.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboMulticolor2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMulticolor2.FormattingEnabled = true; this.comboMulticolor2.Location = new System.Drawing.Point(113, 73); this.comboMulticolor2.Name = "comboMulticolor2"; this.comboMulticolor2.Size = new System.Drawing.Size(121, 21); this.comboMulticolor2.TabIndex = 4; this.comboMulticolor2.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.combo_DrawItem); this.comboMulticolor2.SelectedIndexChanged += new System.EventHandler(this.comboMulticolor2_SelectedIndexChanged); // // radioBackground // this.radioBackground.AutoSize = true; this.radioBackground.Location = new System.Drawing.Point(6, 19); this.radioBackground.Name = "radioBackground"; this.radioBackground.Size = new System.Drawing.Size(65, 13); this.radioBackground.TabIndex = 8; this.radioBackground.TabStop = true; this.radioBackground.Text = "Background"; // // tabPalette // this.tabPalette.Location = new System.Drawing.Point(4, 22); this.tabPalette.Name = "tabPalette"; this.tabPalette.Padding = new System.Windows.Forms.Padding(3); this.tabPalette.Size = new System.Drawing.Size(283, 416); this.tabPalette.TabIndex = 1; this.tabPalette.Text = "Palette"; this.tabPalette.UseVisualStyleBackColor = true; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(862, 820); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; // // btnOK // this.btnOK.Location = new System.Drawing.Point(781, 820); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(75, 23); this.btnOK.TabIndex = 3; this.btnOK.Text = "OK"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // listProblems // this.listProblems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2 }); this.listProblems.FullRowSelect = true; this.listProblems.Location = new System.Drawing.Point(650, 511); this.listProblems.Name = "listProblems"; this.listProblems.Size = new System.Drawing.Size(287, 303); this.listProblems.TabIndex = 4; this.listProblems.UseCompatibleStateImageBehavior = false; this.listProblems.View = System.Windows.Forms.View.Details; // // columnHeader1 // this.columnHeader1.Text = "Pos"; this.columnHeader1.Width = 70; // // columnHeader2 // this.columnHeader2.Text = "Problem"; this.columnHeader2.Width = 190; // // menuImport // this.menuImport.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem }); this.menuImport.Location = new System.Drawing.Point(0, 0); this.menuImport.Name = "menuImport"; this.menuImport.Size = new System.Drawing.Size(939, 24); this.menuImport.TabIndex = 5; this.menuImport.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.openToolStripMenuItem, this.exitToolStripMenuItem }); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.fileToolStripMenuItem.Text = "&File"; // // openToolStripMenuItem // this.openToolStripMenuItem.Name = "openToolStripMenuItem"; this.openToolStripMenuItem.Size = new System.Drawing.Size(112, 22); this.openToolStripMenuItem.Text = "&Open..."; this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); // // exitToolStripMenuItem // this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new System.Drawing.Size(112, 22); this.exitToolStripMenuItem.Text = "E&xit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); // // btnZoomIn // this.btnZoomIn.Image = ((System.Drawing.Image)(resources.GetObject("btnZoomIn.Image"))); this.btnZoomIn.Location = new System.Drawing.Point(650, 819); this.btnZoomIn.Name = "btnZoomIn"; this.btnZoomIn.Size = new System.Drawing.Size(24, 24); this.btnZoomIn.TabIndex = 6; this.btnZoomIn.UseVisualStyleBackColor = true; this.btnZoomIn.Click += new System.EventHandler(this.btnZoomIn_Click); // // btnZoomOut // this.btnZoomOut.Image = ((System.Drawing.Image)(resources.GetObject("btnZoomOut.Image"))); this.btnZoomOut.Location = new System.Drawing.Point(680, 819); this.btnZoomOut.Name = "btnZoomOut"; this.btnZoomOut.Size = new System.Drawing.Size(24, 24); this.btnZoomOut.TabIndex = 6; this.btnZoomOut.UseVisualStyleBackColor = true; this.btnZoomOut.Click += new System.EventHandler(this.btnZoomOut_Click); // // btnReload // this.btnReload.Image = ((System.Drawing.Image)(resources.GetObject("btnReload.Image"))); this.btnReload.Location = new System.Drawing.Point(710, 819); this.btnReload.Name = "btnReload"; this.btnReload.Size = new System.Drawing.Size(24, 24); this.btnReload.TabIndex = 6; this.btnReload.UseVisualStyleBackColor = true; this.btnReload.Click += new System.EventHandler(this.btnReload_Click); // // contextMenuOrigPic // this.contextMenuOrigPic.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.forceTargetColorToolStripMenuItem }); this.contextMenuOrigPic.Name = "contextMenuStrip1"; this.contextMenuOrigPic.Size = new System.Drawing.Size(168, 26); this.contextMenuOrigPic.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuOrigPic_Opening); // // forceTargetColorToolStripMenuItem // this.forceTargetColorToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.blackToolStripMenuItem, this.whiteToolStripMenuItem, this.redToolStripMenuItem, this.cyanToolStripMenuItem, this.purpleToolStripMenuItem, this.greenToolStripMenuItem, this.blueToolStripMenuItem, this.yellowToolStripMenuItem, this.orangeToolStripMenuItem, this.brownToolStripMenuItem, this.lightRedToolStripMenuItem, this.darkGreyToolStripMenuItem, this.mediumGreyToolStripMenuItem, this.lightGreenToolStripMenuItem, this.lightBlueToolStripMenuItem, this.lightGreyToolStripMenuItem }); this.forceTargetColorToolStripMenuItem.Name = "forceTargetColorToolStripMenuItem"; this.forceTargetColorToolStripMenuItem.Size = new System.Drawing.Size(167, 22); this.forceTargetColorToolStripMenuItem.Text = "Force target color"; // // blackToolStripMenuItem // this.blackToolStripMenuItem.Name = "blackToolStripMenuItem"; this.blackToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.blackToolStripMenuItem.Tag = "0"; this.blackToolStripMenuItem.Text = "0 - Black"; this.blackToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // whiteToolStripMenuItem // this.whiteToolStripMenuItem.Name = "whiteToolStripMenuItem"; this.whiteToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.whiteToolStripMenuItem.Tag = "1"; this.whiteToolStripMenuItem.Text = "1 - White"; this.whiteToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // redToolStripMenuItem // this.redToolStripMenuItem.Name = "redToolStripMenuItem"; this.redToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.redToolStripMenuItem.Tag = "2"; this.redToolStripMenuItem.Text = "2 - Red"; this.redToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // cyanToolStripMenuItem // this.cyanToolStripMenuItem.Name = "cyanToolStripMenuItem"; this.cyanToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.cyanToolStripMenuItem.Tag = "3"; this.cyanToolStripMenuItem.Text = "3 - Cyan"; this.cyanToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // purpleToolStripMenuItem // this.purpleToolStripMenuItem.Name = "purpleToolStripMenuItem"; this.purpleToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.purpleToolStripMenuItem.Tag = "4"; this.purpleToolStripMenuItem.Text = "4 - Purple"; this.purpleToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // greenToolStripMenuItem // this.greenToolStripMenuItem.Name = "greenToolStripMenuItem"; this.greenToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.greenToolStripMenuItem.Tag = "5"; this.greenToolStripMenuItem.Text = "5 - Green"; this.greenToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // blueToolStripMenuItem // this.blueToolStripMenuItem.Name = "blueToolStripMenuItem"; this.blueToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.blueToolStripMenuItem.Tag = "6"; this.blueToolStripMenuItem.Text = "6 - Blue"; this.blueToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // yellowToolStripMenuItem // this.yellowToolStripMenuItem.Name = "yellowToolStripMenuItem"; this.yellowToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.yellowToolStripMenuItem.Tag = "7"; this.yellowToolStripMenuItem.Text = "7 - Yellow"; this.yellowToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // orangeToolStripMenuItem // this.orangeToolStripMenuItem.Name = "orangeToolStripMenuItem"; this.orangeToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.orangeToolStripMenuItem.Tag = "8"; this.orangeToolStripMenuItem.Text = "8 - Orange"; this.orangeToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // brownToolStripMenuItem // this.brownToolStripMenuItem.Name = "brownToolStripMenuItem"; this.brownToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.brownToolStripMenuItem.Tag = "9"; this.brownToolStripMenuItem.Text = "9 - Brown"; this.brownToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // lightRedToolStripMenuItem // this.lightRedToolStripMenuItem.Name = "lightRedToolStripMenuItem"; this.lightRedToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.lightRedToolStripMenuItem.Tag = "10"; this.lightRedToolStripMenuItem.Text = "10 - Light Red"; this.lightRedToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // darkGreyToolStripMenuItem // this.darkGreyToolStripMenuItem.Name = "darkGreyToolStripMenuItem"; this.darkGreyToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.darkGreyToolStripMenuItem.Tag = "11"; this.darkGreyToolStripMenuItem.Text = "11 - Dark Grey"; this.darkGreyToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // mediumGreyToolStripMenuItem // this.mediumGreyToolStripMenuItem.Name = "mediumGreyToolStripMenuItem"; this.mediumGreyToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.mediumGreyToolStripMenuItem.Tag = "12"; this.mediumGreyToolStripMenuItem.Text = "12 - Medium Grey"; this.mediumGreyToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // lightGreenToolStripMenuItem // this.lightGreenToolStripMenuItem.Name = "lightGreenToolStripMenuItem"; this.lightGreenToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.lightGreenToolStripMenuItem.Tag = "13"; this.lightGreenToolStripMenuItem.Text = "13 - Light Green"; this.lightGreenToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // lightBlueToolStripMenuItem // this.lightBlueToolStripMenuItem.Name = "lightBlueToolStripMenuItem"; this.lightBlueToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.lightBlueToolStripMenuItem.Tag = "14"; this.lightBlueToolStripMenuItem.Text = "14 - Light Blue"; this.lightBlueToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // lightGreyToolStripMenuItem // this.lightGreyToolStripMenuItem.Name = "lightGreyToolStripMenuItem"; this.lightGreyToolStripMenuItem.Size = new System.Drawing.Size(169, 22); this.lightGreyToolStripMenuItem.Tag = "15"; this.lightGreyToolStripMenuItem.Text = "15 - Light Grey"; this.lightGreyToolStripMenuItem.Click += new System.EventHandler(this.replaceColorMenuItem_Click); // // picPreview // this.picPreview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.picPreview.DisplayPage = fastImage3; this.picPreview.Image = null; this.picPreview.Location = new System.Drawing.Point(0, 439); this.picPreview.Name = "picPreview"; this.picPreview.Size = new System.Drawing.Size(644, 404); this.picPreview.TabIndex = 1; this.picPreview.TabStop = false; this.picPreview.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picPreview_MouseDown); this.picPreview.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picPreview_MouseMove); this.picPreview.MouseUp += new System.Windows.Forms.MouseEventHandler(this.picPreview_MouseUp); // // picOriginal // this.picOriginal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.picOriginal.ContextMenuStrip = this.contextMenuOrigPic; this.picOriginal.DisplayPage = fastImage4; this.picOriginal.Image = null; this.picOriginal.Location = new System.Drawing.Point(0, 29); this.picOriginal.Name = "picOriginal"; this.picOriginal.Size = new System.Drawing.Size(644, 404); this.picOriginal.TabIndex = 1; this.picOriginal.TabStop = false; this.picOriginal.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picOriginal_MouseDown); this.picOriginal.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picOriginal_MouseMove); this.picOriginal.MouseUp += new System.Windows.Forms.MouseEventHandler(this.picOriginal_MouseUp); // // groupBox5 // this.groupBox5.Controls.Add(this.checkPasteAsBlock); this.groupBox5.Location = new System.Drawing.Point(6, 388); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(265, 56); this.groupBox5.TabIndex = 12; this.groupBox5.TabStop = false; this.groupBox5.Text = "Paste Options"; // // checkPasteAsBlock // this.checkPasteAsBlock.AutoSize = true; this.checkPasteAsBlock.Location = new System.Drawing.Point(9, 19); this.checkPasteAsBlock.Name = "checkPasteAsBlock"; this.checkPasteAsBlock.Size = new System.Drawing.Size(97, 17); this.checkPasteAsBlock.TabIndex = 0; this.checkPasteAsBlock.Text = "Paste as Block"; this.checkPasteAsBlock.UseVisualStyleBackColor = true; this.checkPasteAsBlock.CheckedChanged += new System.EventHandler(this.checkPasteAsBlock_CheckedChanged); // // DlgGraphicImport // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(939, 846); this.Controls.Add(this.btnReload); this.Controls.Add(this.btnZoomOut); this.Controls.Add(this.btnZoomIn); this.Controls.Add(this.listProblems); this.Controls.Add(this.btnOK); this.Controls.Add(this.btnCancel); this.Controls.Add(this.tabImportSettings); this.Controls.Add(this.picPreview); this.Controls.Add(this.picOriginal); this.Controls.Add(this.menuImport); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MainMenuStrip = this.menuImport; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "DlgGraphicImport"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Import Graphic"; this.tabImportSettings.ResumeLayout(false); this.tabSettings.ResumeLayout(false); this.groupBox4.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.menuImport.ResumeLayout(false); this.menuImport.PerformLayout(); this.contextMenuOrigPic.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picPreview)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.picOriginal)).EndInit(); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public FormGraphicImport(MainForm Main, Types.GraphicType ImportType, GR.Image.FastImage IncomingImage) { m_MainForm = Main; InitializeComponent(); m_CurPalette = Main.ActivePalette; m_ColorValues[0] = 0xff000000; m_ColorValues[1] = 0xffffffff; m_ColorValues[2] = 0xff8B4131; m_ColorValues[3] = 0xff7BBDC5; m_ColorValues[4] = 0xff8B41AC; m_ColorValues[5] = 0xff6AAC41; m_ColorValues[6] = 0xff3931A4; m_ColorValues[7] = 0xffD5DE73; m_ColorValues[8] = 0xff945A20; m_ColorValues[9] = 0xff5A4100; m_ColorValues[10] = 0xffBD736A; m_ColorValues[11] = 0xff525252; m_ColorValues[12] = 0xff838383; m_ColorValues[13] = 0xffACEE8B; m_ColorValues[14] = 0xff7B73DE; m_ColorValues[15] = 0xffACACAC; m_ColorValues[16] = 0xff80ff80; comboBackground.Items.Add("[Any]"); comboMulticolor1.Items.Add("[Any]"); comboMulticolor2.Items.Add("[Any]"); for (int i = 0; i < 16; ++i) { m_Colors[i] = GR.Color.Helper.FromARGB(m_ColorValues[i]); m_ColorBrushes[i] = new System.Drawing.SolidBrush(m_Colors[i]); comboBackground.Items.Add(i.ToString("d2")); comboMulticolor1.Items.Add(i.ToString("d2")); comboMulticolor2.Items.Add(i.ToString("d2")); } comboBackground.SelectedIndex = 0; comboMulticolor1.SelectedIndex = 0; comboMulticolor2.SelectedIndex = 0; picOriginal.DisplayPage.Create(picOriginal.ClientSize.Width, picOriginal.ClientSize.Height, System.Drawing.Imaging.PixelFormat.Format32bppRgb); picPreview.DisplayPage.Create(picPreview.ClientSize.Width, picPreview.ClientSize.Height, System.Drawing.Imaging.PixelFormat.Format8bppIndexed); //picPreview.SetImageSize( 320, 200 ); for (int j = 0; j < 17; ++j) { picPreview.DisplayPage.SetPaletteColor(j, (byte)((Types.ConstantData.Palette.ColorValues[j] & 0x00ff0000) >> 16), (byte)((Types.ConstantData.Palette.ColorValues[j] & 0x0000ff00) >> 8), (byte)(Types.ConstantData.Palette.ColorValues[j] & 0xff)); m_ImportImage.SetPaletteColor(j, (byte)((Types.ConstantData.Palette.ColorValues[j] & 0x00ff0000) >> 16), (byte)((Types.ConstantData.Palette.ColorValues[j] & 0x0000ff00) >> 8), (byte)(Types.ConstantData.Palette.ColorValues[j] & 0xff)); } foreach (Types.GraphicType importType in System.Enum.GetValues(typeof(Types.GraphicType))) { comboImportType.Items.Add(GR.EnumHelper.GetDescription(importType)); } comboImportType.SelectedIndex = (int)ImportType; foreach (ColorMatchType matchType in System.Enum.GetValues(typeof(ColorMatchType))) { comboColorMatching.Items.Add(GR.EnumHelper.GetDescription(matchType)); } comboColorMatching.SelectedIndex = (int)ColorMatchType.CIE76_DISTANCE; OpenImage(IncomingImage); }
/// <summary> /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); GR.Image.FastImage fastImage1 = new GR.Image.FastImage(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ValueTableEditor)); this.tabValueTableEditor = new System.Windows.Forms.TabControl(); this.tabEditor = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.listValues = new C64Studio.ArrangedItemList(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.editValueEntry = new System.Windows.Forms.TextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.labelGenerationResult = new System.Windows.Forms.Label(); this.pictureGraphPreview = new GR.Forms.FastPictureBox(); this.checkAutomatedGeneration = new System.Windows.Forms.CheckBox(); this.checkClearPreviousValues = new System.Windows.Forms.CheckBox(); this.btnGenerateValues = new System.Windows.Forms.Button(); this.editStepValue = new System.Windows.Forms.TextBox(); this.editEndValue = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.editStartValue = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.editValueFunction = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.tabProject = new System.Windows.Forms.TabPage(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnImportFromFile = new System.Windows.Forms.Button(); this.btnImportFromASM = new System.Windows.Forms.Button(); this.btnImportFromHex = new System.Windows.Forms.Button(); this.groupExport = new System.Windows.Forms.GroupBox(); this.editExportBASICLineOffset = new System.Windows.Forms.TextBox(); this.editExportBASICLineNo = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.btnExportToBASICData = new System.Windows.Forms.Button(); this.editPrefix = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.editWrapByteCount = new System.Windows.Forms.TextBox(); this.checkExportToDataWrap = new System.Windows.Forms.CheckBox(); this.checkExportToDataIncludeRes = new System.Windows.Forms.CheckBox(); this.btnExportToData = new System.Windows.Forms.Button(); this.btnExportToFile = new System.Windows.Forms.Button(); this.editDataExport = new System.Windows.Forms.TextBox(); this.contextMenuExchangeColors = new System.Windows.Forms.ContextMenuStrip(this.components); this.forAllSpritesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.forSelectedSpritesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.openValueTableProjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveValueTableProjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.closeValueTableProjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ((System.ComponentModel.ISupportInitialize)(this.m_FileWatcher)).BeginInit(); this.tabValueTableEditor.SuspendLayout(); this.tabEditor.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureGraphPreview)).BeginInit(); this.tabProject.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupExport.SuspendLayout(); this.contextMenuExchangeColors.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // // tabValueTableEditor // this.tabValueTableEditor.Controls.Add(this.tabEditor); this.tabValueTableEditor.Controls.Add(this.tabProject); this.tabValueTableEditor.Dock = System.Windows.Forms.DockStyle.Fill; this.tabValueTableEditor.Location = new System.Drawing.Point(0, 24); this.tabValueTableEditor.Name = "tabValueTableEditor"; this.tabValueTableEditor.SelectedIndex = 0; this.tabValueTableEditor.Size = new System.Drawing.Size(994, 503); this.tabValueTableEditor.TabIndex = 0; // // tabEditor // this.tabEditor.Controls.Add(this.groupBox3); this.tabEditor.Controls.Add(this.groupBox2); this.tabEditor.Location = new System.Drawing.Point(4, 22); this.tabEditor.Name = "tabEditor"; this.tabEditor.Padding = new System.Windows.Forms.Padding(3); this.tabEditor.Size = new System.Drawing.Size(986, 477); this.tabEditor.TabIndex = 0; this.tabEditor.Text = "Value Table"; this.tabEditor.UseVisualStyleBackColor = true; // // groupBox3 // this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupBox3.Controls.Add(this.listValues); this.groupBox3.Controls.Add(this.groupBox4); this.groupBox3.Location = new System.Drawing.Point(8, 6); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(329, 463); this.groupBox3.TabIndex = 0; this.groupBox3.TabStop = false; this.groupBox3.Text = "Value Table"; // // listValues // this.listValues.AddButtonEnabled = true; this.listValues.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.listValues.DeleteButtonEnabled = false; this.listValues.Location = new System.Drawing.Point(6, 19); this.listValues.MoveDownButtonEnabled = false; this.listValues.MoveUpButtonEnabled = false; this.listValues.MustHaveOneElement = false; this.listValues.Name = "listValues"; this.listValues.Size = new System.Drawing.Size(317, 379); this.listValues.TabIndex = 0; this.listValues.AddingItem += new C64Studio.ArrangedItemList.AddingItemEventHandler(this.listValues_AddingItem); this.listValues.ItemAdded += new C64Studio.ArrangedItemList.ItemModifiedEventHandler(this.listValues_ItemAdded); this.listValues.ItemRemoved += new C64Studio.ArrangedItemList.ItemModifiedEventHandler(this.listValues_ItemRemoved); this.listValues.ItemMoved += new C64Studio.ArrangedItemList.ItemExchangedEventHandler(this.listValues_ItemMoved); this.listValues.SelectedIndexChanged += new C64Studio.ArrangedItemList.ItemModifiedEventHandler(this.listValues_SelectedIndexChanged); // // groupBox4 // this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBox4.Controls.Add(this.editValueEntry); this.groupBox4.Location = new System.Drawing.Point(6, 404); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(317, 53); this.groupBox4.TabIndex = 0; this.groupBox4.TabStop = false; this.groupBox4.Text = "Value Entry"; // // editValueEntry // this.editValueEntry.Location = new System.Drawing.Point(6, 19); this.editValueEntry.Name = "editValueEntry"; this.editValueEntry.Size = new System.Drawing.Size(305, 20); this.editValueEntry.TabIndex = 0; this.editValueEntry.TextChanged += new System.EventHandler(this.editValueEntry_TextChanged); // // groupBox2 // this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox2.Controls.Add(this.labelGenerationResult); this.groupBox2.Controls.Add(this.pictureGraphPreview); this.groupBox2.Controls.Add(this.checkAutomatedGeneration); this.groupBox2.Controls.Add(this.checkClearPreviousValues); this.groupBox2.Controls.Add(this.btnGenerateValues); this.groupBox2.Controls.Add(this.editStepValue); this.groupBox2.Controls.Add(this.editEndValue); this.groupBox2.Controls.Add(this.label6); this.groupBox2.Controls.Add(this.editStartValue); this.groupBox2.Controls.Add(this.label5); this.groupBox2.Controls.Add(this.editValueFunction); this.groupBox2.Controls.Add(this.label4); this.groupBox2.Controls.Add(this.label3); this.groupBox2.Location = new System.Drawing.Point(343, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(635, 463); this.groupBox2.TabIndex = 0; this.groupBox2.TabStop = false; this.groupBox2.Text = "Value Generation"; // // labelGenerationResult // this.labelGenerationResult.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.labelGenerationResult.Location = new System.Drawing.Point(217, 45); this.labelGenerationResult.Name = "labelGenerationResult"; this.labelGenerationResult.Size = new System.Drawing.Size(412, 23); this.labelGenerationResult.TabIndex = 5; this.labelGenerationResult.Text = "No values generated currently"; // // pictureGraphPreview // this.pictureGraphPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pictureGraphPreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureGraphPreview.DisplayPage = fastImage1; this.pictureGraphPreview.Image = null; this.pictureGraphPreview.Location = new System.Drawing.Point(9, 134); this.pictureGraphPreview.Name = "pictureGraphPreview"; this.pictureGraphPreview.Size = new System.Drawing.Size(620, 323); this.pictureGraphPreview.TabIndex = 4; this.pictureGraphPreview.TabStop = false; this.pictureGraphPreview.SizeChanged += new System.EventHandler(this.pictureGraphPreview_SizeChanged); // // checkAutomatedGeneration // this.checkAutomatedGeneration.AutoSize = true; this.checkAutomatedGeneration.Checked = true; this.checkAutomatedGeneration.CheckState = System.Windows.Forms.CheckState.Checked; this.checkAutomatedGeneration.Location = new System.Drawing.Point(220, 70); this.checkAutomatedGeneration.Name = "checkAutomatedGeneration"; this.checkAutomatedGeneration.Size = new System.Drawing.Size(128, 17); this.checkAutomatedGeneration.TabIndex = 4; this.checkAutomatedGeneration.Text = "Automatic Generation"; this.checkAutomatedGeneration.UseVisualStyleBackColor = true; // // checkClearPreviousValues // this.checkClearPreviousValues.AutoSize = true; this.checkClearPreviousValues.Checked = true; this.checkClearPreviousValues.CheckState = System.Windows.Forms.CheckState.Checked; this.checkClearPreviousValues.Location = new System.Drawing.Point(220, 96); this.checkClearPreviousValues.Name = "checkClearPreviousValues"; this.checkClearPreviousValues.Size = new System.Drawing.Size(129, 17); this.checkClearPreviousValues.TabIndex = 5; this.checkClearPreviousValues.Text = "Clear Previous Values"; this.checkClearPreviousValues.UseVisualStyleBackColor = true; // // btnGenerateValues // this.btnGenerateValues.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnGenerateValues.Location = new System.Drawing.Point(534, 92); this.btnGenerateValues.Name = "btnGenerateValues"; this.btnGenerateValues.Size = new System.Drawing.Size(95, 23); this.btnGenerateValues.TabIndex = 6; this.btnGenerateValues.Text = "Generate Values"; this.btnGenerateValues.UseVisualStyleBackColor = true; this.btnGenerateValues.Click += new System.EventHandler(this.btnGenerateValues_Click); // // editStepValue // this.editStepValue.Location = new System.Drawing.Point(82, 94); this.editStepValue.Name = "editStepValue"; this.editStepValue.Size = new System.Drawing.Size(129, 20); this.editStepValue.TabIndex = 3; this.editStepValue.Text = "1"; this.editStepValue.TextChanged += new System.EventHandler(this.editStepValue_TextChanged); // // editEndValue // this.editEndValue.Location = new System.Drawing.Point(82, 68); this.editEndValue.Name = "editEndValue"; this.editEndValue.Size = new System.Drawing.Size(129, 20); this.editEndValue.TabIndex = 2; this.editEndValue.Text = "10"; this.editEndValue.TextChanged += new System.EventHandler(this.editEndValue_TextChanged); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(6, 97); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(62, 13); this.label6.TabIndex = 0; this.label6.Text = "Step Value:"; // // editStartValue // this.editStartValue.Location = new System.Drawing.Point(82, 42); this.editStartValue.Name = "editStartValue"; this.editStartValue.Size = new System.Drawing.Size(129, 20); this.editStartValue.TabIndex = 1; this.editStartValue.Text = "0"; this.editStartValue.TextChanged += new System.EventHandler(this.editStartValue_TextChanged); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(6, 71); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(59, 13); this.label5.TabIndex = 0; this.label5.Text = "End Value:"; // // editValueFunction // this.editValueFunction.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.editValueFunction.Location = new System.Drawing.Point(82, 16); this.editValueFunction.Name = "editValueFunction"; this.editValueFunction.Size = new System.Drawing.Size(547, 20); this.editValueFunction.TabIndex = 0; this.editValueFunction.Text = "x*2"; this.editValueFunction.TextChanged += new System.EventHandler(this.editValueFunction_TextChanged); // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(6, 45); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(62, 13); this.label4.TabIndex = 0; this.label4.Text = "Start Value:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(6, 19); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(51, 13); this.label3.TabIndex = 0; this.label3.Text = "Function:"; // // tabProject // this.tabProject.Controls.Add(this.groupBox1); this.tabProject.Controls.Add(this.groupExport); this.tabProject.Controls.Add(this.editDataExport); this.tabProject.Location = new System.Drawing.Point(4, 22); this.tabProject.Name = "tabProject"; this.tabProject.Padding = new System.Windows.Forms.Padding(3); this.tabProject.Size = new System.Drawing.Size(986, 477); this.tabProject.TabIndex = 1; this.tabProject.Text = "Project"; this.tabProject.UseVisualStyleBackColor = true; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.btnImportFromFile); this.groupBox1.Controls.Add(this.btnImportFromASM); this.groupBox1.Controls.Add(this.btnImportFromHex); this.groupBox1.Location = new System.Drawing.Point(455, 6); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(523, 149); this.groupBox1.TabIndex = 4; this.groupBox1.TabStop = false; this.groupBox1.Text = "Import"; // // btnImportFromFile // this.btnImportFromFile.Location = new System.Drawing.Point(9, 19); this.btnImportFromFile.Name = "btnImportFromFile"; this.btnImportFromFile.Size = new System.Drawing.Size(117, 23); this.btnImportFromFile.TabIndex = 2; this.btnImportFromFile.Text = "From File..."; this.btnImportFromFile.UseVisualStyleBackColor = true; this.btnImportFromFile.Click += new System.EventHandler(this.btnImportFromFile_Click); // // btnImportFromASM // this.btnImportFromASM.Location = new System.Drawing.Point(9, 48); this.btnImportFromASM.Name = "btnImportFromASM"; this.btnImportFromASM.Size = new System.Drawing.Size(117, 23); this.btnImportFromASM.TabIndex = 2; this.btnImportFromASM.Text = "From ASM"; this.btnImportFromASM.UseVisualStyleBackColor = true; this.btnImportFromASM.Click += new System.EventHandler(this.btnImportFromASM_Click); // // btnImportFromHex // this.btnImportFromHex.Location = new System.Drawing.Point(9, 77); this.btnImportFromHex.Name = "btnImportFromHex"; this.btnImportFromHex.Size = new System.Drawing.Size(117, 23); this.btnImportFromHex.TabIndex = 2; this.btnImportFromHex.Text = "From Hex"; this.btnImportFromHex.UseVisualStyleBackColor = true; this.btnImportFromHex.Click += new System.EventHandler(this.btnImportFromHex_Click); // // groupExport // this.groupExport.Controls.Add(this.editExportBASICLineOffset); this.groupExport.Controls.Add(this.editExportBASICLineNo); this.groupExport.Controls.Add(this.label1); this.groupExport.Controls.Add(this.label8); this.groupExport.Controls.Add(this.btnExportToBASICData); this.groupExport.Controls.Add(this.editPrefix); this.groupExport.Controls.Add(this.label2); this.groupExport.Controls.Add(this.editWrapByteCount); this.groupExport.Controls.Add(this.checkExportToDataWrap); this.groupExport.Controls.Add(this.checkExportToDataIncludeRes); this.groupExport.Controls.Add(this.btnExportToData); this.groupExport.Controls.Add(this.btnExportToFile); this.groupExport.Location = new System.Drawing.Point(8, 6); this.groupExport.Name = "groupExport"; this.groupExport.Size = new System.Drawing.Size(441, 149); this.groupExport.TabIndex = 3; this.groupExport.TabStop = false; this.groupExport.Text = "Export"; // // editExportBASICLineOffset // this.editExportBASICLineOffset.Location = new System.Drawing.Point(352, 108); this.editExportBASICLineOffset.Name = "editExportBASICLineOffset"; this.editExportBASICLineOffset.Size = new System.Drawing.Size(73, 20); this.editExportBASICLineOffset.TabIndex = 28; this.editExportBASICLineOffset.Text = "10"; // // editExportBASICLineNo // this.editExportBASICLineNo.Location = new System.Drawing.Point(181, 108); this.editExportBASICLineNo.Name = "editExportBASICLineNo"; this.editExportBASICLineNo.Size = new System.Drawing.Size(98, 20); this.editExportBASICLineNo.TabIndex = 29; this.editExportBASICLineNo.Text = "10"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(285, 111); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(61, 13); this.label1.TabIndex = 26; this.label1.Text = "Line Offset:"; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(128, 111); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(47, 13); this.label8.TabIndex = 27; this.label8.Text = "Line No:"; // // btnExportToBASICData // this.btnExportToBASICData.Location = new System.Drawing.Point(6, 106); this.btnExportToBASICData.Name = "btnExportToBASICData"; this.btnExportToBASICData.Size = new System.Drawing.Size(117, 23); this.btnExportToBASICData.TabIndex = 25; this.btnExportToBASICData.Text = "To BASIC data"; this.btnExportToBASICData.UseVisualStyleBackColor = true; this.btnExportToBASICData.Click += new System.EventHandler(this.btnExportToBASICData_Click); // // editPrefix // this.editPrefix.Location = new System.Drawing.Point(225, 48); this.editPrefix.Name = "editPrefix"; this.editPrefix.Size = new System.Drawing.Size(54, 20); this.editPrefix.TabIndex = 7; this.editPrefix.Text = "!byte "; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(285, 80); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(32, 13); this.label2.TabIndex = 6; this.label2.Text = "bytes"; // // editWrapByteCount // this.editWrapByteCount.Enabled = false; this.editWrapByteCount.Location = new System.Drawing.Point(225, 77); this.editWrapByteCount.Name = "editWrapByteCount"; this.editWrapByteCount.Size = new System.Drawing.Size(54, 20); this.editWrapByteCount.TabIndex = 5; this.editWrapByteCount.Text = "8"; // // checkExportToDataWrap // this.checkExportToDataWrap.AutoSize = true; this.checkExportToDataWrap.Location = new System.Drawing.Point(129, 79); this.checkExportToDataWrap.Name = "checkExportToDataWrap"; this.checkExportToDataWrap.Size = new System.Drawing.Size(64, 17); this.checkExportToDataWrap.TabIndex = 4; this.checkExportToDataWrap.Text = "Wrap at"; this.checkExportToDataWrap.UseVisualStyleBackColor = true; this.checkExportToDataWrap.CheckedChanged += new System.EventHandler(this.checkExportToDataWrap_CheckedChanged); // // checkExportToDataIncludeRes // this.checkExportToDataIncludeRes.AutoSize = true; this.checkExportToDataIncludeRes.Location = new System.Drawing.Point(129, 50); this.checkExportToDataIncludeRes.Name = "checkExportToDataIncludeRes"; this.checkExportToDataIncludeRes.Size = new System.Drawing.Size(74, 17); this.checkExportToDataIncludeRes.TabIndex = 4; this.checkExportToDataIncludeRes.Text = "Prefix with"; this.checkExportToDataIncludeRes.UseVisualStyleBackColor = true; this.checkExportToDataIncludeRes.CheckedChanged += new System.EventHandler(this.checkExportToDataIncludeRes_CheckedChanged); // // btnExportToData // this.btnExportToData.Location = new System.Drawing.Point(6, 48); this.btnExportToData.Name = "btnExportToData"; this.btnExportToData.Size = new System.Drawing.Size(117, 23); this.btnExportToData.TabIndex = 2; this.btnExportToData.Text = "To Data"; this.btnExportToData.UseVisualStyleBackColor = true; this.btnExportToData.Click += new System.EventHandler(this.btnExportToData_Click); // // btnExportToFile // this.btnExportToFile.Location = new System.Drawing.Point(6, 19); this.btnExportToFile.Name = "btnExportToFile"; this.btnExportToFile.Size = new System.Drawing.Size(117, 23); this.btnExportToFile.TabIndex = 2; this.btnExportToFile.Text = "To File..."; this.btnExportToFile.UseVisualStyleBackColor = true; this.btnExportToFile.Click += new System.EventHandler(this.btnExportToFile_Click); // // editDataExport // this.editDataExport.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.editDataExport.Location = new System.Drawing.Point(8, 168); this.editDataExport.Multiline = true; this.editDataExport.Name = "editDataExport"; this.editDataExport.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.editDataExport.Size = new System.Drawing.Size(970, 301); this.editDataExport.TabIndex = 3; this.editDataExport.WordWrap = false; this.editDataExport.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.editDataExport_KeyPress); // // contextMenuExchangeColors // this.contextMenuExchangeColors.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.forAllSpritesToolStripMenuItem, this.forSelectedSpritesToolStripMenuItem }); this.contextMenuExchangeColors.Name = "contextMenuExchangeColors"; this.contextMenuExchangeColors.Size = new System.Drawing.Size(145, 48); // // forAllSpritesToolStripMenuItem // this.forAllSpritesToolStripMenuItem.Name = "forAllSpritesToolStripMenuItem"; this.forAllSpritesToolStripMenuItem.Size = new System.Drawing.Size(144, 22); this.forAllSpritesToolStripMenuItem.Text = "For all Sprites"; // // forSelectedSpritesToolStripMenuItem // this.forSelectedSpritesToolStripMenuItem.Name = "forSelectedSpritesToolStripMenuItem"; this.forSelectedSpritesToolStripMenuItem.Size = new System.Drawing.Size(144, 22); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(994, 24); this.menuStrip1.TabIndex = 1; this.menuStrip1.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.openValueTableProjectToolStripMenuItem, this.saveValueTableProjectToolStripMenuItem, this.closeValueTableProjectToolStripMenuItem }); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(78, 20); this.fileToolStripMenuItem.Text = "&Value Table"; // // openValueTableProjectToolStripMenuItem // this.openValueTableProjectToolStripMenuItem.Name = "openValueTableProjectToolStripMenuItem"; this.openValueTableProjectToolStripMenuItem.Size = new System.Drawing.Size(214, 22); this.openValueTableProjectToolStripMenuItem.Text = "&Open Value Table Project..."; this.openValueTableProjectToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); // // saveValueTableProjectToolStripMenuItem // this.saveValueTableProjectToolStripMenuItem.Name = "saveValueTableProjectToolStripMenuItem"; this.saveValueTableProjectToolStripMenuItem.Size = new System.Drawing.Size(214, 22); this.saveValueTableProjectToolStripMenuItem.Text = "&Save Project"; this.saveValueTableProjectToolStripMenuItem.Click += new System.EventHandler(this.saveCharsetProjectToolStripMenuItem_Click); // // closeValueTableProjectToolStripMenuItem // this.closeValueTableProjectToolStripMenuItem.Enabled = false; this.closeValueTableProjectToolStripMenuItem.Name = "closeValueTableProjectToolStripMenuItem"; this.closeValueTableProjectToolStripMenuItem.Size = new System.Drawing.Size(214, 22); this.closeValueTableProjectToolStripMenuItem.Text = "&Close Value Table Project"; this.closeValueTableProjectToolStripMenuItem.Click += new System.EventHandler(this.closeCharsetProjectToolStripMenuItem_Click); // // columnHeader4 // this.columnHeader4.Text = "Nr."; // // columnHeader5 // this.columnHeader5.Text = "X"; this.columnHeader5.Width = 30; // // columnHeader6 // this.columnHeader6.Text = "Y"; this.columnHeader6.Width = 30; // // ValueTableEditor // this.ClientSize = new System.Drawing.Size(994, 527); this.Controls.Add(this.tabValueTableEditor); this.Controls.Add(this.menuStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "ValueTableEditor"; this.Text = "Value Table Editor"; ((System.ComponentModel.ISupportInitialize)(this.m_FileWatcher)).EndInit(); this.tabValueTableEditor.ResumeLayout(false); this.tabEditor.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureGraphPreview)).EndInit(); this.tabProject.ResumeLayout(false); this.tabProject.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupExport.ResumeLayout(false); this.groupExport.PerformLayout(); this.contextMenuExchangeColors.ResumeLayout(false); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormGraphicImport)); GR.Image.FastImage fastImage1 = new GR.Image.FastImage(); GR.Image.FastImage fastImage2 = new GR.Image.FastImage(); this.tabImportSettings = new System.Windows.Forms.TabControl(); this.tabSettings = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.comboColorMatching = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.comboImportType = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.checkMulticolor = new System.Windows.Forms.CheckBox(); this.comboBackground = new System.Windows.Forms.ComboBox(); this.radioMulticolor2 = new System.Windows.Forms.RadioButton(); this.comboMulticolor1 = new System.Windows.Forms.ComboBox(); this.radioMultiColor1 = new System.Windows.Forms.RadioButton(); this.comboMulticolor2 = new System.Windows.Forms.ComboBox(); this.radioBackground = new System.Windows.Forms.RadioButton(); this.tabPalette = new System.Windows.Forms.TabPage(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); this.listProblems = new System.Windows.Forms.ListView(); this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); this.menuImport = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.btnZoomIn = new System.Windows.Forms.Button(); this.btnZoomOut = new System.Windows.Forms.Button(); this.picPreview = new GR.Forms.FastPictureBox(); this.picOriginal = new GR.Forms.FastPictureBox(); this.tabImportSettings.SuspendLayout(); this.tabSettings.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.menuImport.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picPreview)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picOriginal)).BeginInit(); this.SuspendLayout(); // // tabImportSettings // this.tabImportSettings.Controls.Add(this.tabSettings); this.tabImportSettings.Controls.Add(this.tabPalette); this.tabImportSettings.Location = new System.Drawing.Point(650, 29); this.tabImportSettings.Name = "tabImportSettings"; this.tabImportSettings.SelectedIndex = 0; this.tabImportSettings.Size = new System.Drawing.Size(291, 442); this.tabImportSettings.TabIndex = 2; // // tabSettings // this.tabSettings.Controls.Add(this.groupBox3); this.tabSettings.Controls.Add(this.groupBox2); this.tabSettings.Controls.Add(this.groupBox1); this.tabSettings.Location = new System.Drawing.Point(4, 22); this.tabSettings.Name = "tabSettings"; this.tabSettings.Padding = new System.Windows.Forms.Padding(3); this.tabSettings.Size = new System.Drawing.Size(283, 416); this.tabSettings.TabIndex = 0; this.tabSettings.Text = "Settings"; this.tabSettings.UseVisualStyleBackColor = true; // // groupBox3 // this.groupBox3.Controls.Add(this.comboColorMatching); this.groupBox3.Controls.Add(this.label2); this.groupBox3.Location = new System.Drawing.Point(6, 199); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(271, 51); this.groupBox3.TabIndex = 10; this.groupBox3.TabStop = false; this.groupBox3.Text = "Color Matching"; // // comboColorMatching // this.comboColorMatching.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboColorMatching.FormattingEnabled = true; this.comboColorMatching.Location = new System.Drawing.Point(65, 16); this.comboColorMatching.Name = "comboColorMatching"; this.comboColorMatching.Size = new System.Drawing.Size(200, 21); this.comboColorMatching.TabIndex = 1; this.comboColorMatching.SelectedIndexChanged += new System.EventHandler(this.comboColorMatching_SelectedIndexChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(6, 19); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(54, 13); this.label2.TabIndex = 0; this.label2.Text = "Match by:"; // // groupBox2 // this.groupBox2.Controls.Add(this.comboImportType); this.groupBox2.Controls.Add(this.label1); this.groupBox2.Location = new System.Drawing.Point(6, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(271, 51); this.groupBox2.TabIndex = 10; this.groupBox2.TabStop = false; this.groupBox2.Text = "Import Settings"; // // comboImportType // this.comboImportType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboImportType.FormattingEnabled = true; this.comboImportType.Location = new System.Drawing.Point(65, 16); this.comboImportType.Name = "comboImportType"; this.comboImportType.Size = new System.Drawing.Size(200, 21); this.comboImportType.TabIndex = 1; this.comboImportType.SelectedIndexChanged += new System.EventHandler(this.comboImportType_SelectedIndexChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(6, 19); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(53, 13); this.label1.TabIndex = 0; this.label1.Text = "Import as:"; // // groupBox1 // this.groupBox1.Controls.Add(this.checkMulticolor); this.groupBox1.Controls.Add(this.comboBackground); this.groupBox1.Controls.Add(this.radioMulticolor2); this.groupBox1.Controls.Add(this.comboMulticolor1); this.groupBox1.Controls.Add(this.radioMultiColor1); this.groupBox1.Controls.Add(this.comboMulticolor2); this.groupBox1.Controls.Add(this.radioBackground); this.groupBox1.Location = new System.Drawing.Point(6, 63); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(271, 130); this.groupBox1.TabIndex = 9; this.groupBox1.TabStop = false; this.groupBox1.Text = "Predefined Colors"; // // checkMulticolor // this.checkMulticolor.AutoSize = true; this.checkMulticolor.Location = new System.Drawing.Point(7, 101); this.checkMulticolor.Name = "checkMulticolor"; this.checkMulticolor.Size = new System.Drawing.Size(71, 17); this.checkMulticolor.TabIndex = 9; this.checkMulticolor.Text = "Multicolor"; this.checkMulticolor.UseVisualStyleBackColor = true; // // comboBackground // this.comboBackground.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboBackground.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBackground.FormattingEnabled = true; this.comboBackground.Location = new System.Drawing.Point(113, 19); this.comboBackground.Name = "comboBackground"; this.comboBackground.Size = new System.Drawing.Size(121, 21); this.comboBackground.TabIndex = 5; this.comboBackground.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.combo_DrawItem); // // radioMulticolor2 // this.radioMulticolor2.AutoSize = true; this.radioMulticolor2.Location = new System.Drawing.Point(6, 73); this.radioMulticolor2.Name = "radioMulticolor2"; this.radioMulticolor2.Size = new System.Drawing.Size(79, 17); this.radioMulticolor2.TabIndex = 6; this.radioMulticolor2.TabStop = true; this.radioMulticolor2.Text = "Multicolor 2"; this.radioMulticolor2.UseVisualStyleBackColor = true; // // comboMulticolor1 // this.comboMulticolor1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboMulticolor1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMulticolor1.FormattingEnabled = true; this.comboMulticolor1.Location = new System.Drawing.Point(113, 46); this.comboMulticolor1.Name = "comboMulticolor1"; this.comboMulticolor1.Size = new System.Drawing.Size(121, 21); this.comboMulticolor1.TabIndex = 3; this.comboMulticolor1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.combo_DrawItem); // // radioMultiColor1 // this.radioMultiColor1.AutoSize = true; this.radioMultiColor1.Location = new System.Drawing.Point(6, 46); this.radioMultiColor1.Name = "radioMultiColor1"; this.radioMultiColor1.Size = new System.Drawing.Size(79, 17); this.radioMultiColor1.TabIndex = 7; this.radioMultiColor1.TabStop = true; this.radioMultiColor1.Text = "Multicolor 1"; this.radioMultiColor1.UseVisualStyleBackColor = true; // // comboMulticolor2 // this.comboMulticolor2.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboMulticolor2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMulticolor2.FormattingEnabled = true; this.comboMulticolor2.Location = new System.Drawing.Point(113, 73); this.comboMulticolor2.Name = "comboMulticolor2"; this.comboMulticolor2.Size = new System.Drawing.Size(121, 21); this.comboMulticolor2.TabIndex = 4; this.comboMulticolor2.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.combo_DrawItem); // // radioBackground // this.radioBackground.AutoSize = true; this.radioBackground.Location = new System.Drawing.Point(6, 19); this.radioBackground.Name = "radioBackground"; this.radioBackground.Size = new System.Drawing.Size(83, 17); this.radioBackground.TabIndex = 8; this.radioBackground.TabStop = true; this.radioBackground.Text = "Background"; this.radioBackground.UseVisualStyleBackColor = true; // // tabPalette // this.tabPalette.Location = new System.Drawing.Point(4, 22); this.tabPalette.Name = "tabPalette"; this.tabPalette.Padding = new System.Windows.Forms.Padding(3); this.tabPalette.Size = new System.Drawing.Size(283, 416); this.tabPalette.TabIndex = 1; this.tabPalette.Text = "Palette"; this.tabPalette.UseVisualStyleBackColor = true; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(862, 820); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; // // btnOK // this.btnOK.Location = new System.Drawing.Point(781, 820); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(75, 23); this.btnOK.TabIndex = 3; this.btnOK.Text = "OK"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // listProblems // this.listProblems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2 }); this.listProblems.FullRowSelect = true; this.listProblems.Location = new System.Drawing.Point(650, 477); this.listProblems.Name = "listProblems"; this.listProblems.Size = new System.Drawing.Size(287, 337); this.listProblems.TabIndex = 4; this.listProblems.UseCompatibleStateImageBehavior = false; this.listProblems.View = System.Windows.Forms.View.Details; // // columnHeader1 // this.columnHeader1.Text = "Pos"; this.columnHeader1.Width = 70; // // columnHeader2 // this.columnHeader2.Text = "Problem"; this.columnHeader2.Width = 190; // // menuImport // this.menuImport.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem }); this.menuImport.Location = new System.Drawing.Point(0, 0); this.menuImport.Name = "menuImport"; this.menuImport.Size = new System.Drawing.Size(939, 24); this.menuImport.TabIndex = 5; this.menuImport.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.openToolStripMenuItem, this.exitToolStripMenuItem }); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.fileToolStripMenuItem.Text = "&File"; // // openToolStripMenuItem // this.openToolStripMenuItem.Name = "openToolStripMenuItem"; this.openToolStripMenuItem.Size = new System.Drawing.Size(112, 22); this.openToolStripMenuItem.Text = "&Open..."; this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); // // exitToolStripMenuItem // this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new System.Drawing.Size(112, 22); this.exitToolStripMenuItem.Text = "E&xit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); // // btnZoomIn // this.btnZoomIn.Image = ((System.Drawing.Image)(resources.GetObject("btnZoomIn.Image"))); this.btnZoomIn.Location = new System.Drawing.Point(650, 819); this.btnZoomIn.Name = "btnZoomIn"; this.btnZoomIn.Size = new System.Drawing.Size(24, 24); this.btnZoomIn.TabIndex = 6; this.btnZoomIn.UseVisualStyleBackColor = true; this.btnZoomIn.Click += new System.EventHandler(this.btnZoomIn_Click); // // btnZoomOut // this.btnZoomOut.Image = ((System.Drawing.Image)(resources.GetObject("btnZoomOut.Image"))); this.btnZoomOut.Location = new System.Drawing.Point(680, 819); this.btnZoomOut.Name = "btnZoomOut"; this.btnZoomOut.Size = new System.Drawing.Size(24, 24); this.btnZoomOut.TabIndex = 6; this.btnZoomOut.UseVisualStyleBackColor = true; this.btnZoomOut.Click += new System.EventHandler(this.btnZoomOut_Click); // // picPreview // this.picPreview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.picPreview.DisplayPage = fastImage1; this.picPreview.Image = null; this.picPreview.Location = new System.Drawing.Point(0, 439); this.picPreview.Name = "picPreview"; this.picPreview.Size = new System.Drawing.Size(644, 404); this.picPreview.TabIndex = 1; this.picPreview.TabStop = false; this.picPreview.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picPreview_MouseMove); this.picPreview.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picPreview_MouseDown); this.picPreview.MouseUp += new System.Windows.Forms.MouseEventHandler(this.picPreview_MouseUp); // // picOriginal // this.picOriginal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.picOriginal.DisplayPage = fastImage2; this.picOriginal.Image = null; this.picOriginal.Location = new System.Drawing.Point(0, 29); this.picOriginal.Name = "picOriginal"; this.picOriginal.Size = new System.Drawing.Size(644, 404); this.picOriginal.TabIndex = 1; this.picOriginal.TabStop = false; this.picOriginal.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picOriginal_MouseMove); this.picOriginal.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picOriginal_MouseDown); this.picOriginal.MouseUp += new System.Windows.Forms.MouseEventHandler(this.picOriginal_MouseUp); // // FormGraphicImport // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(939, 846); this.Controls.Add(this.btnZoomOut); this.Controls.Add(this.btnZoomIn); this.Controls.Add(this.listProblems); this.Controls.Add(this.btnOK); this.Controls.Add(this.btnCancel); this.Controls.Add(this.tabImportSettings); this.Controls.Add(this.picPreview); this.Controls.Add(this.picOriginal); this.Controls.Add(this.menuImport); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MainMenuStrip = this.menuImport; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormGraphicImport"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Import Graphic"; this.tabImportSettings.ResumeLayout(false); this.tabSettings.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.menuImport.ResumeLayout(false); this.menuImport.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.picPreview)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.picOriginal)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CharacterEditor)); GR.Image.FastImage fastImage1 = new GR.Image.FastImage(); GR.Image.FastImage fastImage2 = new GR.Image.FastImage(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.btnClearChars = new System.Windows.Forms.Button(); this.comboCategories = new System.Windows.Forms.ComboBox(); this.btnPasteFromClipboard = new System.Windows.Forms.Button(); this.label4 = new System.Windows.Forms.Label(); this.labelCharNo = new System.Windows.Forms.Label(); this.checkShowGrid = new System.Windows.Forms.CheckBox(); this.checkPasteMultiColor = new System.Windows.Forms.CheckBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnMoveSelectionToTarget = new System.Windows.Forms.Button(); this.editMoveTargetIndex = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.btnPaste = new System.Windows.Forms.Button(); this.btnCopy = new System.Windows.Forms.Button(); this.btnInvert = new System.Windows.Forms.Button(); this.btnMirrorY = new System.Windows.Forms.Button(); this.btnMirrorX = new System.Windows.Forms.Button(); this.btnShiftDown = new System.Windows.Forms.Button(); this.btnShiftUp = new System.Windows.Forms.Button(); this.btnShiftRight = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.btnRotateLeft = new System.Windows.Forms.Button(); this.btnShiftLeft = new System.Windows.Forms.Button(); this.tabCharacterEditor = new System.Windows.Forms.TabControl(); this.tabEditor = new System.Windows.Forms.TabPage(); this.panelColorSettings = new System.Windows.Forms.Panel(); this.canvasEditor = new RetroDevStudio.Controls.CustomDrawControl(); this.comboCharsetMode = new System.Windows.Forms.ComboBox(); this.labelCharsetMode = new System.Windows.Forms.Label(); this.panelCharColors = new GR.Forms.FastPictureBox(); this.picturePlayground = new GR.Forms.FastPictureBox(); this.panelCharacters = new GR.Forms.ImageListbox(); this.tabCategories = new System.Windows.Forms.TabPage(); this.btnMoveCategoryDown = new System.Windows.Forms.Button(); this.btnMoveCategoryUp = new System.Windows.Forms.Button(); this.groupAllCategories = new System.Windows.Forms.GroupBox(); this.btnSortCategories = new System.Windows.Forms.Button(); this.groupCategorySpecific = new System.Windows.Forms.GroupBox(); this.label5 = new System.Windows.Forms.Label(); this.editCollapseIndex = new System.Windows.Forms.TextBox(); this.btnCollapseCategory = new System.Windows.Forms.Button(); this.btnReseatCategory = new System.Windows.Forms.Button(); this.btnDelete = new System.Windows.Forms.Button(); this.btnAddCategory = new System.Windows.Forms.Button(); this.listCategories = new System.Windows.Forms.ListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.editCategoryName = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.tabCharacterEditor.SuspendLayout(); this.tabEditor.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.canvasEditor)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelCharColors)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picturePlayground)).BeginInit(); this.tabCategories.SuspendLayout(); this.groupAllCategories.SuspendLayout(); this.groupCategorySpecific.SuspendLayout(); this.SuspendLayout(); // // groupBox2 // this.groupBox2.Controls.Add(this.btnClearChars); this.groupBox2.Location = new System.Drawing.Point(497, 301); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(150, 56); this.groupBox2.TabIndex = 50; this.groupBox2.TabStop = false; this.groupBox2.Text = "With selected characters"; // // btnClearChars // this.btnClearChars.Location = new System.Drawing.Point(6, 21); this.btnClearChars.Name = "btnClearChars"; this.btnClearChars.Size = new System.Drawing.Size(48, 22); this.btnClearChars.TabIndex = 6; this.btnClearChars.Text = "Clear"; this.btnClearChars.UseVisualStyleBackColor = true; this.btnClearChars.Click += new System.EventHandler(this.btnClear_Click); // // comboCategories // this.comboCategories.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboCategories.FormattingEnabled = true; this.comboCategories.Location = new System.Drawing.Point(387, 218); this.comboCategories.Name = "comboCategories"; this.comboCategories.Size = new System.Drawing.Size(121, 21); this.comboCategories.TabIndex = 37; this.comboCategories.SelectedIndexChanged += new System.EventHandler(this.comboCategories_SelectedIndexChanged); // // btnPasteFromClipboard // this.btnPasteFromClipboard.Location = new System.Drawing.Point(578, 269); this.btnPasteFromClipboard.Name = "btnPasteFromClipboard"; this.btnPasteFromClipboard.Size = new System.Drawing.Size(97, 26); this.btnPasteFromClipboard.TabIndex = 36; this.btnPasteFromClipboard.Text = "Paste Image"; this.toolTip1.SetToolTip(this.btnPasteFromClipboard, "Paste Image"); this.btnPasteFromClipboard.UseVisualStyleBackColor = true; this.btnPasteFromClipboard.Click += new System.EventHandler(this.btnPasteFromClipboard_Click); // // label4 // this.label4.Location = new System.Drawing.Point(277, 221); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(86, 23); this.label4.TabIndex = 35; this.label4.Text = "Category:"; // // labelCharNo // this.labelCharNo.Location = new System.Drawing.Point(277, 192); this.labelCharNo.Name = "labelCharNo"; this.labelCharNo.Size = new System.Drawing.Size(231, 23); this.labelCharNo.TabIndex = 34; this.labelCharNo.Text = "label1"; this.labelCharNo.Paint += new System.Windows.Forms.PaintEventHandler(this.labelCharNo_Paint); // // checkShowGrid // this.checkShowGrid.AutoSize = true; this.checkShowGrid.Location = new System.Drawing.Point(280, 246); this.checkShowGrid.Name = "checkShowGrid"; this.checkShowGrid.Size = new System.Drawing.Size(75, 17); this.checkShowGrid.TabIndex = 32; this.checkShowGrid.Text = "Show Grid"; this.checkShowGrid.UseVisualStyleBackColor = true; this.checkShowGrid.CheckedChanged += new System.EventHandler(this.checkShowGrid_CheckedChanged); // // checkPasteMultiColor // this.checkPasteMultiColor.AutoSize = true; this.checkPasteMultiColor.Location = new System.Drawing.Point(280, 275); this.checkPasteMultiColor.Name = "checkPasteMultiColor"; this.checkPasteMultiColor.Size = new System.Drawing.Size(145, 17); this.checkPasteMultiColor.TabIndex = 31; this.checkPasteMultiColor.Text = "Force Multicolor on paste"; this.checkPasteMultiColor.UseVisualStyleBackColor = true; // // groupBox1 // this.groupBox1.Controls.Add(this.btnMoveSelectionToTarget); this.groupBox1.Controls.Add(this.editMoveTargetIndex); this.groupBox1.Controls.Add(this.label10); this.groupBox1.Location = new System.Drawing.Point(653, 301); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(249, 56); this.groupBox1.TabIndex = 53; this.groupBox1.TabStop = false; this.groupBox1.Text = "Move Selection To"; // // btnMoveSelectionToTarget // this.btnMoveSelectionToTarget.Location = new System.Drawing.Point(161, 20); this.btnMoveSelectionToTarget.Name = "btnMoveSelectionToTarget"; this.btnMoveSelectionToTarget.Size = new System.Drawing.Size(75, 21); this.btnMoveSelectionToTarget.TabIndex = 2; this.btnMoveSelectionToTarget.Text = "Move"; this.btnMoveSelectionToTarget.UseVisualStyleBackColor = true; this.btnMoveSelectionToTarget.Click += new System.EventHandler(this.btnMoveSelectionToTarget_Click); // // editMoveTargetIndex // this.editMoveTargetIndex.Location = new System.Drawing.Point(82, 21); this.editMoveTargetIndex.Name = "editMoveTargetIndex"; this.editMoveTargetIndex.Size = new System.Drawing.Size(73, 20); this.editMoveTargetIndex.TabIndex = 1; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(6, 24); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(70, 13); this.label10.TabIndex = 0; this.label10.Text = "Target Index:"; // // btnPaste // this.btnPaste.Image = ((System.Drawing.Image)(resources.GetObject("btnPaste.Image"))); this.btnPaste.Location = new System.Drawing.Point(546, 269); this.btnPaste.Name = "btnPaste"; this.btnPaste.Size = new System.Drawing.Size(26, 26); this.btnPaste.TabIndex = 46; this.toolTip1.SetToolTip(this.btnPaste, "Paste Characters"); this.btnPaste.UseVisualStyleBackColor = true; this.btnPaste.Click += new System.EventHandler(this.btnPaste_Click); // // btnCopy // this.btnCopy.Image = ((System.Drawing.Image)(resources.GetObject("btnCopy.Image"))); this.btnCopy.Location = new System.Drawing.Point(514, 269); this.btnCopy.Name = "btnCopy"; this.btnCopy.Size = new System.Drawing.Size(26, 26); this.btnCopy.TabIndex = 45; this.toolTip1.SetToolTip(this.btnCopy, "Copy Characters to Clipboard"); this.btnCopy.UseVisualStyleBackColor = true; this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click); // // btnInvert // this.btnInvert.Image = ((System.Drawing.Image)(resources.GetObject("btnInvert.Image"))); this.btnInvert.Location = new System.Drawing.Point(198, 269); this.btnInvert.Name = "btnInvert"; this.btnInvert.Size = new System.Drawing.Size(26, 26); this.btnInvert.TabIndex = 44; this.toolTip1.SetToolTip(this.btnInvert, "Invert"); this.btnInvert.UseVisualStyleBackColor = true; this.btnInvert.Click += new System.EventHandler(this.btnInvert_Click); // // btnMirrorY // this.btnMirrorY.Image = ((System.Drawing.Image)(resources.GetObject("btnMirrorY.Image"))); this.btnMirrorY.Location = new System.Drawing.Point(166, 269); this.btnMirrorY.Name = "btnMirrorY"; this.btnMirrorY.Size = new System.Drawing.Size(26, 26); this.btnMirrorY.TabIndex = 43; this.toolTip1.SetToolTip(this.btnMirrorY, "Mirror Y"); this.btnMirrorY.UseVisualStyleBackColor = true; this.btnMirrorY.Click += new System.EventHandler(this.btnMirrorY_Click); // // btnMirrorX // this.btnMirrorX.Image = ((System.Drawing.Image)(resources.GetObject("btnMirrorX.Image"))); this.btnMirrorX.Location = new System.Drawing.Point(134, 269); this.btnMirrorX.Name = "btnMirrorX"; this.btnMirrorX.Size = new System.Drawing.Size(26, 26); this.btnMirrorX.TabIndex = 47; this.toolTip1.SetToolTip(this.btnMirrorX, "Mirror X"); this.btnMirrorX.UseVisualStyleBackColor = true; this.btnMirrorX.Click += new System.EventHandler(this.btnMirrorX_Click); // // btnShiftDown // this.btnShiftDown.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftDown.Image"))); this.btnShiftDown.Location = new System.Drawing.Point(102, 269); this.btnShiftDown.Name = "btnShiftDown"; this.btnShiftDown.Size = new System.Drawing.Size(26, 26); this.btnShiftDown.TabIndex = 48; this.toolTip1.SetToolTip(this.btnShiftDown, "Shift Down"); this.btnShiftDown.UseVisualStyleBackColor = true; this.btnShiftDown.Click += new System.EventHandler(this.btnShiftDown_Click); // // btnShiftUp // this.btnShiftUp.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftUp.Image"))); this.btnShiftUp.Location = new System.Drawing.Point(70, 269); this.btnShiftUp.Name = "btnShiftUp"; this.btnShiftUp.Size = new System.Drawing.Size(26, 26); this.btnShiftUp.TabIndex = 38; this.toolTip1.SetToolTip(this.btnShiftUp, "Shift Up"); this.btnShiftUp.UseVisualStyleBackColor = true; this.btnShiftUp.Click += new System.EventHandler(this.btnShiftUp_Click); // // btnShiftRight // this.btnShiftRight.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftRight.Image"))); this.btnShiftRight.Location = new System.Drawing.Point(38, 269); this.btnShiftRight.Name = "btnShiftRight"; this.btnShiftRight.Size = new System.Drawing.Size(26, 26); this.btnShiftRight.TabIndex = 39; this.toolTip1.SetToolTip(this.btnShiftRight, "Shift Right"); this.btnShiftRight.UseVisualStyleBackColor = true; this.btnShiftRight.Click += new System.EventHandler(this.btnShiftRight_Click); // // button3 // this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image"))); this.button3.Location = new System.Drawing.Point(38, 301); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(26, 26); this.button3.TabIndex = 42; this.toolTip1.SetToolTip(this.button3, "Rotate Right"); this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.btnRotateRight_Click); // // btnRotateLeft // this.btnRotateLeft.Image = ((System.Drawing.Image)(resources.GetObject("btnRotateLeft.Image"))); this.btnRotateLeft.Location = new System.Drawing.Point(6, 301); this.btnRotateLeft.Name = "btnRotateLeft"; this.btnRotateLeft.Size = new System.Drawing.Size(26, 26); this.btnRotateLeft.TabIndex = 41; this.toolTip1.SetToolTip(this.btnRotateLeft, "Rotate Left"); this.btnRotateLeft.UseVisualStyleBackColor = true; this.btnRotateLeft.Click += new System.EventHandler(this.btnRotateLeft_Click); // // btnShiftLeft // this.btnShiftLeft.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftLeft.Image"))); this.btnShiftLeft.Location = new System.Drawing.Point(6, 269); this.btnShiftLeft.Name = "btnShiftLeft"; this.btnShiftLeft.Size = new System.Drawing.Size(26, 26); this.btnShiftLeft.TabIndex = 40; this.toolTip1.SetToolTip(this.btnShiftLeft, "Shift Left"); this.btnShiftLeft.UseVisualStyleBackColor = true; this.btnShiftLeft.Click += new System.EventHandler(this.btnShiftLeft_Click); // // tabCharacterEditor // this.tabCharacterEditor.Controls.Add(this.tabEditor); this.tabCharacterEditor.Controls.Add(this.tabCategories); this.tabCharacterEditor.Dock = System.Windows.Forms.DockStyle.Fill; this.tabCharacterEditor.Location = new System.Drawing.Point(0, 0); this.tabCharacterEditor.Name = "tabCharacterEditor"; this.tabCharacterEditor.SelectedIndex = 0; this.tabCharacterEditor.Size = new System.Drawing.Size(1057, 490); this.tabCharacterEditor.TabIndex = 55; // // tabEditor // this.tabEditor.Controls.Add(this.panelColorSettings); this.tabEditor.Controls.Add(this.canvasEditor); this.tabEditor.Controls.Add(this.comboCharsetMode); this.tabEditor.Controls.Add(this.labelCharsetMode); this.tabEditor.Controls.Add(this.groupBox1); this.tabEditor.Controls.Add(this.panelCharColors); this.tabEditor.Controls.Add(this.picturePlayground); this.tabEditor.Controls.Add(this.groupBox2); this.tabEditor.Controls.Add(this.btnPaste); this.tabEditor.Controls.Add(this.btnCopy); this.tabEditor.Controls.Add(this.btnInvert); this.tabEditor.Controls.Add(this.btnMirrorY); this.tabEditor.Controls.Add(this.checkPasteMultiColor); this.tabEditor.Controls.Add(this.btnMirrorX); this.tabEditor.Controls.Add(this.checkShowGrid); this.tabEditor.Controls.Add(this.btnShiftDown); this.tabEditor.Controls.Add(this.panelCharacters); this.tabEditor.Controls.Add(this.btnShiftUp); this.tabEditor.Controls.Add(this.labelCharNo); this.tabEditor.Controls.Add(this.btnShiftRight); this.tabEditor.Controls.Add(this.label4); this.tabEditor.Controls.Add(this.button3); this.tabEditor.Controls.Add(this.btnPasteFromClipboard); this.tabEditor.Controls.Add(this.btnRotateLeft); this.tabEditor.Controls.Add(this.comboCategories); this.tabEditor.Controls.Add(this.btnShiftLeft); this.tabEditor.Location = new System.Drawing.Point(4, 22); this.tabEditor.Name = "tabEditor"; this.tabEditor.Padding = new System.Windows.Forms.Padding(3); this.tabEditor.Size = new System.Drawing.Size(1049, 464); this.tabEditor.TabIndex = 0; this.tabEditor.Text = "Editor"; this.tabEditor.UseVisualStyleBackColor = true; // // panelColorSettings // this.panelColorSettings.Location = new System.Drawing.Point(277, 3); this.panelColorSettings.Name = "panelColorSettings"; this.panelColorSettings.Size = new System.Drawing.Size(231, 186); this.panelColorSettings.TabIndex = 55; // // canvasEditor // this.canvasEditor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.canvasEditor.Location = new System.Drawing.Point(6, 3); this.canvasEditor.Name = "canvasEditor"; this.canvasEditor.Size = new System.Drawing.Size(265, 260); this.canvasEditor.TabIndex = 54; this.canvasEditor.TabStop = false; this.canvasEditor.Paint += new System.Windows.Forms.PaintEventHandler(this.canvasEditor_Paint); this.canvasEditor.MouseDown += new System.Windows.Forms.MouseEventHandler(this.canvasEditor_MouseDown); this.canvasEditor.MouseMove += new System.Windows.Forms.MouseEventHandler(this.canvasEditor_MouseMove); // // comboCharsetMode // this.comboCharsetMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboCharsetMode.FormattingEnabled = true; this.comboCharsetMode.Location = new System.Drawing.Point(322, 322); this.comboCharsetMode.Name = "comboCharsetMode"; this.comboCharsetMode.Size = new System.Drawing.Size(169, 21); this.comboCharsetMode.TabIndex = 16; this.comboCharsetMode.SelectedIndexChanged += new System.EventHandler(this.comboCharsetMode_SelectedIndexChanged); // // labelCharsetMode // this.labelCharsetMode.AutoSize = true; this.labelCharsetMode.Location = new System.Drawing.Point(279, 325); this.labelCharsetMode.Name = "labelCharsetMode"; this.labelCharsetMode.Size = new System.Drawing.Size(37, 13); this.labelCharsetMode.TabIndex = 17; this.labelCharsetMode.Text = "Mode:"; // // panelCharColors // this.panelCharColors.AutoResize = false; this.panelCharColors.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panelCharColors.DisplayPage = fastImage1; this.panelCharColors.Image = null; this.panelCharColors.Location = new System.Drawing.Point(780, 271); this.panelCharColors.Name = "panelCharColors"; this.panelCharColors.Size = new System.Drawing.Size(260, 20); this.panelCharColors.TabIndex = 52; this.panelCharColors.TabStop = false; this.panelCharColors.PostPaint += new GR.Forms.FastPictureBox.PostPaintCallback(this.panelCharColors_PostPaint); this.panelCharColors.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panelCharColors_MouseDown); this.panelCharColors.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panelCharColors_MouseMove); // // picturePlayground // this.picturePlayground.AutoResize = false; this.picturePlayground.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.picturePlayground.DisplayPage = fastImage2; this.picturePlayground.Image = null; this.picturePlayground.Location = new System.Drawing.Point(780, 3); this.picturePlayground.Name = "picturePlayground"; this.picturePlayground.Size = new System.Drawing.Size(260, 260); this.picturePlayground.TabIndex = 51; this.picturePlayground.TabStop = false; this.picturePlayground.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picturePlayground_MouseDown); this.picturePlayground.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picturePlayground_MouseMove); // // panelCharacters // this.panelCharacters.AutoScroll = true; this.panelCharacters.AutoScrollHorizontalMaximum = 100; this.panelCharacters.AutoScrollHorizontalMinimum = 0; this.panelCharacters.AutoScrollHPos = 0; this.panelCharacters.AutoScrollVerticalMaximum = -23; this.panelCharacters.AutoScrollVerticalMinimum = 0; this.panelCharacters.AutoScrollVPos = 0; this.panelCharacters.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panelCharacters.EnableAutoScrollHorizontal = true; this.panelCharacters.EnableAutoScrollVertical = true; this.panelCharacters.HottrackColor = ((uint)(2151694591u)); this.panelCharacters.ItemHeight = 8; this.panelCharacters.ItemWidth = 8; this.panelCharacters.Location = new System.Drawing.Point(514, 3); this.panelCharacters.Name = "panelCharacters"; this.panelCharacters.PixelFormat = GR.Drawing.PixelFormat.DontCare; this.panelCharacters.SelectedIndex = -1; this.panelCharacters.Size = new System.Drawing.Size(260, 260); this.panelCharacters.TabIndex = 33; this.panelCharacters.TabStop = true; this.panelCharacters.VisibleAutoScrollHorizontal = false; this.panelCharacters.VisibleAutoScrollVertical = false; this.panelCharacters.SelectionChanged += new System.EventHandler(this.panelCharacters_SelectionChanged); // // tabCategories // this.tabCategories.Controls.Add(this.btnMoveCategoryDown); this.tabCategories.Controls.Add(this.btnMoveCategoryUp); this.tabCategories.Controls.Add(this.groupAllCategories); this.tabCategories.Controls.Add(this.groupCategorySpecific); this.tabCategories.Controls.Add(this.btnDelete); this.tabCategories.Controls.Add(this.btnAddCategory); this.tabCategories.Controls.Add(this.listCategories); this.tabCategories.Controls.Add(this.editCategoryName); this.tabCategories.Controls.Add(this.label3); this.tabCategories.Location = new System.Drawing.Point(4, 22); this.tabCategories.Name = "tabCategories"; this.tabCategories.Padding = new System.Windows.Forms.Padding(3); this.tabCategories.Size = new System.Drawing.Size(1049, 464); this.tabCategories.TabIndex = 1; this.tabCategories.Text = "Categories"; this.tabCategories.UseVisualStyleBackColor = true; // // btnMoveCategoryDown // this.btnMoveCategoryDown.Enabled = false; this.btnMoveCategoryDown.Location = new System.Drawing.Point(90, 201); this.btnMoveCategoryDown.Name = "btnMoveCategoryDown"; this.btnMoveCategoryDown.Size = new System.Drawing.Size(75, 23); this.btnMoveCategoryDown.TabIndex = 12; this.btnMoveCategoryDown.Text = "Move Down"; this.btnMoveCategoryDown.UseVisualStyleBackColor = true; this.btnMoveCategoryDown.Click += new System.EventHandler(this.btnMoveCategoryDown_Click); // // btnMoveCategoryUp // this.btnMoveCategoryUp.Enabled = false; this.btnMoveCategoryUp.Location = new System.Drawing.Point(9, 201); this.btnMoveCategoryUp.Name = "btnMoveCategoryUp"; this.btnMoveCategoryUp.Size = new System.Drawing.Size(75, 23); this.btnMoveCategoryUp.TabIndex = 12; this.btnMoveCategoryUp.Text = "Move Up"; this.btnMoveCategoryUp.UseVisualStyleBackColor = true; this.btnMoveCategoryUp.Click += new System.EventHandler(this.btnMoveCategoryUp_Click); // // groupAllCategories // this.groupAllCategories.Controls.Add(this.btnSortCategories); this.groupAllCategories.Location = new System.Drawing.Point(261, 119); this.groupAllCategories.Name = "groupAllCategories"; this.groupAllCategories.Size = new System.Drawing.Size(255, 76); this.groupAllCategories.TabIndex = 10; this.groupAllCategories.TabStop = false; this.groupAllCategories.Text = "All Categories"; // // btnSortCategories // this.btnSortCategories.Location = new System.Drawing.Point(6, 19); this.btnSortCategories.Name = "btnSortCategories"; this.btnSortCategories.Size = new System.Drawing.Size(105, 23); this.btnSortCategories.TabIndex = 3; this.btnSortCategories.Text = "Sort by Categories"; this.btnSortCategories.UseVisualStyleBackColor = true; this.btnSortCategories.Click += new System.EventHandler(this.btnSortCategories_Click); // // groupCategorySpecific // this.groupCategorySpecific.Controls.Add(this.label5); this.groupCategorySpecific.Controls.Add(this.editCollapseIndex); this.groupCategorySpecific.Controls.Add(this.btnCollapseCategory); this.groupCategorySpecific.Controls.Add(this.btnReseatCategory); this.groupCategorySpecific.Location = new System.Drawing.Point(261, 37); this.groupCategorySpecific.Name = "groupCategorySpecific"; this.groupCategorySpecific.Size = new System.Drawing.Size(255, 76); this.groupCategorySpecific.TabIndex = 11; this.groupCategorySpecific.TabStop = false; this.groupCategorySpecific.Text = "Selected Category"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(117, 52); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(47, 13); this.label5.TabIndex = 6; this.label5.Text = "at index:"; // // editCollapseIndex // this.editCollapseIndex.Location = new System.Drawing.Point(180, 49); this.editCollapseIndex.Name = "editCollapseIndex"; this.editCollapseIndex.Size = new System.Drawing.Size(69, 20); this.editCollapseIndex.TabIndex = 5; // // btnCollapseCategory // this.btnCollapseCategory.Enabled = false; this.btnCollapseCategory.Location = new System.Drawing.Point(6, 19); this.btnCollapseCategory.Name = "btnCollapseCategory"; this.btnCollapseCategory.Size = new System.Drawing.Size(140, 23); this.btnCollapseCategory.TabIndex = 3; this.btnCollapseCategory.Text = "Collapse Unique Chars"; this.btnCollapseCategory.UseVisualStyleBackColor = true; this.btnCollapseCategory.Click += new System.EventHandler(this.btnCollapseCategory_Click); // // btnReseatCategory // this.btnReseatCategory.Enabled = false; this.btnReseatCategory.Location = new System.Drawing.Point(6, 47); this.btnReseatCategory.Name = "btnReseatCategory"; this.btnReseatCategory.Size = new System.Drawing.Size(105, 23); this.btnReseatCategory.TabIndex = 3; this.btnReseatCategory.Text = "Reseat Category"; this.btnReseatCategory.UseVisualStyleBackColor = true; this.btnReseatCategory.Click += new System.EventHandler(this.btnReseatCategory_Click); // // btnDelete // this.btnDelete.Enabled = false; this.btnDelete.Location = new System.Drawing.Point(342, 8); this.btnDelete.Name = "btnDelete"; this.btnDelete.Size = new System.Drawing.Size(96, 23); this.btnDelete.TabIndex = 8; this.btnDelete.Text = "Delete Category"; this.btnDelete.UseVisualStyleBackColor = true; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // btnAddCategory // this.btnAddCategory.Enabled = false; this.btnAddCategory.Location = new System.Drawing.Point(261, 8); this.btnAddCategory.Name = "btnAddCategory"; this.btnAddCategory.Size = new System.Drawing.Size(75, 23); this.btnAddCategory.TabIndex = 9; this.btnAddCategory.Text = "Add"; this.btnAddCategory.UseVisualStyleBackColor = true; this.btnAddCategory.Click += new System.EventHandler(this.btnAddCategory_Click); // // listCategories // this.listCategories.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2 }); this.listCategories.FullRowSelect = true; this.listCategories.HideSelection = false; this.listCategories.Location = new System.Drawing.Point(9, 36); this.listCategories.Name = "listCategories"; this.listCategories.ShowGroups = false; this.listCategories.Size = new System.Drawing.Size(246, 159); this.listCategories.TabIndex = 7; this.listCategories.UseCompatibleStateImageBehavior = false; this.listCategories.View = System.Windows.Forms.View.Details; this.listCategories.SelectedIndexChanged += new System.EventHandler(this.listCategories_SelectedIndexChanged); // // columnHeader1 // this.columnHeader1.Text = "Name"; this.columnHeader1.Width = 150; // // columnHeader2 // this.columnHeader2.Text = "No. Chars"; this.columnHeader2.Width = 67; // // editCategoryName // this.editCategoryName.Location = new System.Drawing.Point(81, 10); this.editCategoryName.Name = "editCategoryName"; this.editCategoryName.Size = new System.Drawing.Size(174, 20); this.editCategoryName.TabIndex = 6; this.editCategoryName.TextChanged += new System.EventHandler(this.editCategoryName_TextChanged); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(6, 13); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(52, 13); this.label3.TabIndex = 5; this.label3.Text = "Category:"; // // CharacterEditor // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.Controls.Add(this.tabCharacterEditor); this.Name = "CharacterEditor"; this.Size = new System.Drawing.Size(1057, 490); this.groupBox2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.tabCharacterEditor.ResumeLayout(false); this.tabEditor.ResumeLayout(false); this.tabEditor.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.canvasEditor)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelCharColors)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.picturePlayground)).EndInit(); this.tabCategories.ResumeLayout(false); this.tabCategories.PerformLayout(); this.groupAllCategories.ResumeLayout(false); this.groupCategorySpecific.ResumeLayout(false); this.groupCategorySpecific.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CharacterEditor)); GR.Image.FastImage fastImage1 = new GR.Image.FastImage(); GR.Image.FastImage fastImage2 = new GR.Image.FastImage(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.btnClearChars = new System.Windows.Forms.Button(); this.comboCharsetMode = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.comboCategories = new System.Windows.Forms.ComboBox(); this.btnPasteFromClipboard = new System.Windows.Forms.Button(); this.label4 = new System.Windows.Forms.Label(); this.labelCharNo = new System.Windows.Forms.Label(); this.checkShowGrid = new System.Windows.Forms.CheckBox(); this.checkPasteMultiColor = new System.Windows.Forms.CheckBox(); this.radioCharColor = new System.Windows.Forms.RadioButton(); this.radioBGColor4 = new System.Windows.Forms.RadioButton(); this.radioMulticolor2 = new System.Windows.Forms.RadioButton(); this.radioMultiColor1 = new System.Windows.Forms.RadioButton(); this.radioBackground = new System.Windows.Forms.RadioButton(); this.comboCharColor = new System.Windows.Forms.ComboBox(); this.comboBGColor4 = new System.Windows.Forms.ComboBox(); this.comboMulticolor2 = new System.Windows.Forms.ComboBox(); this.comboMulticolor1 = new System.Windows.Forms.ComboBox(); this.comboBackground = new System.Windows.Forms.ComboBox(); this.btnPaste = new System.Windows.Forms.Button(); this.btnCopy = new System.Windows.Forms.Button(); this.btnInvert = new System.Windows.Forms.Button(); this.btnMirrorY = new System.Windows.Forms.Button(); this.btnMirrorX = new System.Windows.Forms.Button(); this.btnShiftDown = new System.Windows.Forms.Button(); this.btnShiftUp = new System.Windows.Forms.Button(); this.btnShiftRight = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.btnRotateLeft = new System.Windows.Forms.Button(); this.btnShiftLeft = new System.Windows.Forms.Button(); this.contextMenuExchangeColors = new System.Windows.Forms.ContextMenuStrip(this.components); this.exchangeMultiColor1WithMultiColor2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exchangeMultiColor1WithBGColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exchangeMultiColor2WithBGColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnMoveSelectionToTarget = new System.Windows.Forms.Button(); this.editMoveTargetIndex = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.canvasEditor = new C64Studio.Controls.CustomDrawControl(); this.panelCharColors = new GR.Forms.FastPictureBox(); this.picturePlayground = new GR.Forms.FastPictureBox(); this.btnExchangeColors = new C64Studio.Controls.MenuButton(); this.panelCharacters = new GR.Forms.ImageListbox(); this.groupBox2.SuspendLayout(); this.contextMenuExchangeColors.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.canvasEditor)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelCharColors)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picturePlayground)).BeginInit(); this.SuspendLayout(); // // groupBox2 // this.groupBox2.Controls.Add(this.btnClearChars); this.groupBox2.Controls.Add(this.comboCharsetMode); this.groupBox2.Controls.Add(this.label1); this.groupBox2.Location = new System.Drawing.Point(282, 301); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(292, 56); this.groupBox2.TabIndex = 50; this.groupBox2.TabStop = false; this.groupBox2.Text = "with selected characters"; // // btnClearChars // this.btnClearChars.Location = new System.Drawing.Point(177, 23); this.btnClearChars.Name = "btnClearChars"; this.btnClearChars.Size = new System.Drawing.Size(98, 22); this.btnClearChars.TabIndex = 6; this.btnClearChars.Text = "Clear"; this.btnClearChars.UseVisualStyleBackColor = true; this.btnClearChars.Click += new System.EventHandler(this.btnClear_Click); // // comboCharsetMode // this.comboCharsetMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboCharsetMode.FormattingEnabled = true; this.comboCharsetMode.Location = new System.Drawing.Point(52, 23); this.comboCharsetMode.Name = "comboCharsetMode"; this.comboCharsetMode.Size = new System.Drawing.Size(109, 21); this.comboCharsetMode.TabIndex = 16; this.comboCharsetMode.SelectedIndexChanged += new System.EventHandler(this.comboCharsetMode_SelectedIndexChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(9, 26); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(37, 13); this.label1.TabIndex = 17; this.label1.Text = "Mode:"; // // comboCategories // this.comboCategories.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboCategories.FormattingEnabled = true; this.comboCategories.Location = new System.Drawing.Point(389, 204); this.comboCategories.Name = "comboCategories"; this.comboCategories.Size = new System.Drawing.Size(121, 21); this.comboCategories.TabIndex = 37; this.comboCategories.SelectedIndexChanged += new System.EventHandler(this.comboCategories_SelectedIndexChanged); // // btnPasteFromClipboard // this.btnPasteFromClipboard.Location = new System.Drawing.Point(580, 271); this.btnPasteFromClipboard.Name = "btnPasteFromClipboard"; this.btnPasteFromClipboard.Size = new System.Drawing.Size(117, 23); this.btnPasteFromClipboard.TabIndex = 36; this.btnPasteFromClipboard.Text = "Big Paste"; this.btnPasteFromClipboard.UseVisualStyleBackColor = true; this.btnPasteFromClipboard.Click += new System.EventHandler(this.btnPasteFromClipboard_Click); // // label4 // this.label4.Location = new System.Drawing.Point(279, 207); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(231, 23); this.label4.TabIndex = 35; this.label4.Text = "Category:"; // // labelCharNo // this.labelCharNo.Location = new System.Drawing.Point(279, 178); this.labelCharNo.Name = "labelCharNo"; this.labelCharNo.Size = new System.Drawing.Size(231, 23); this.labelCharNo.TabIndex = 34; this.labelCharNo.Text = "label1"; this.labelCharNo.Paint += new System.Windows.Forms.PaintEventHandler(this.labelCharNo_Paint); // // checkShowGrid // this.checkShowGrid.AutoSize = true; this.checkShowGrid.Location = new System.Drawing.Point(282, 246); this.checkShowGrid.Name = "checkShowGrid"; this.checkShowGrid.Size = new System.Drawing.Size(75, 17); this.checkShowGrid.TabIndex = 32; this.checkShowGrid.Text = "Show Grid"; this.checkShowGrid.UseVisualStyleBackColor = true; this.checkShowGrid.CheckedChanged += new System.EventHandler(this.checkShowGrid_CheckedChanged); // // checkPasteMultiColor // this.checkPasteMultiColor.AutoSize = true; this.checkPasteMultiColor.Location = new System.Drawing.Point(282, 275); this.checkPasteMultiColor.Name = "checkPasteMultiColor"; this.checkPasteMultiColor.Size = new System.Drawing.Size(145, 17); this.checkPasteMultiColor.TabIndex = 31; this.checkPasteMultiColor.Text = "Force Multicolor on paste"; this.checkPasteMultiColor.UseVisualStyleBackColor = true; // // radioCharColor // this.radioCharColor.AutoSize = true; this.radioCharColor.Location = new System.Drawing.Point(282, 111); this.radioCharColor.Name = "radioCharColor"; this.radioCharColor.Size = new System.Drawing.Size(74, 17); this.radioCharColor.TabIndex = 30; this.radioCharColor.TabStop = true; this.radioCharColor.Text = "Char Color"; this.radioCharColor.UseVisualStyleBackColor = true; this.radioCharColor.CheckedChanged += new System.EventHandler(this.radioCharColor_CheckedChanged); // // radioBGColor4 // this.radioBGColor4.AutoSize = true; this.radioBGColor4.Enabled = false; this.radioBGColor4.Location = new System.Drawing.Point(282, 84); this.radioBGColor4.Name = "radioBGColor4"; this.radioBGColor4.Size = new System.Drawing.Size(76, 17); this.radioBGColor4.TabIndex = 29; this.radioBGColor4.TabStop = true; this.radioBGColor4.Text = "BG Color 4"; this.radioBGColor4.UseVisualStyleBackColor = true; // // radioMulticolor2 // this.radioMulticolor2.AutoSize = true; this.radioMulticolor2.Location = new System.Drawing.Point(282, 57); this.radioMulticolor2.Name = "radioMulticolor2"; this.radioMulticolor2.Size = new System.Drawing.Size(79, 17); this.radioMulticolor2.TabIndex = 28; this.radioMulticolor2.TabStop = true; this.radioMulticolor2.Text = "Multicolor 2"; this.radioMulticolor2.UseVisualStyleBackColor = true; this.radioMulticolor2.CheckedChanged += new System.EventHandler(this.radioMulticolor2_CheckedChanged); // // radioMultiColor1 // this.radioMultiColor1.AutoSize = true; this.radioMultiColor1.Location = new System.Drawing.Point(282, 30); this.radioMultiColor1.Name = "radioMultiColor1"; this.radioMultiColor1.Size = new System.Drawing.Size(79, 17); this.radioMultiColor1.TabIndex = 27; this.radioMultiColor1.TabStop = true; this.radioMultiColor1.Text = "Multicolor 1"; this.radioMultiColor1.UseVisualStyleBackColor = true; this.radioMultiColor1.CheckedChanged += new System.EventHandler(this.radioMultiColor1_CheckedChanged); // // radioBackground // this.radioBackground.AutoSize = true; this.radioBackground.Location = new System.Drawing.Point(282, 3); this.radioBackground.Name = "radioBackground"; this.radioBackground.Size = new System.Drawing.Size(83, 17); this.radioBackground.TabIndex = 26; this.radioBackground.TabStop = true; this.radioBackground.Text = "Background"; this.radioBackground.UseVisualStyleBackColor = true; this.radioBackground.CheckedChanged += new System.EventHandler(this.radioBackground_CheckedChanged); // // comboCharColor // this.comboCharColor.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboCharColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboCharColor.FormattingEnabled = true; this.comboCharColor.Location = new System.Drawing.Point(389, 111); this.comboCharColor.Name = "comboCharColor"; this.comboCharColor.Size = new System.Drawing.Size(71, 21); this.comboCharColor.TabIndex = 24; this.comboCharColor.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.comboMulticolor_DrawItem); this.comboCharColor.SelectedIndexChanged += new System.EventHandler(this.comboCharColor_SelectedIndexChanged); // // comboBGColor4 // this.comboBGColor4.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboBGColor4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBGColor4.FormattingEnabled = true; this.comboBGColor4.Location = new System.Drawing.Point(389, 84); this.comboBGColor4.Name = "comboBGColor4"; this.comboBGColor4.Size = new System.Drawing.Size(71, 21); this.comboBGColor4.TabIndex = 23; this.comboBGColor4.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.comboColor_DrawItem); this.comboBGColor4.SelectedIndexChanged += new System.EventHandler(this.comboBGColor4_SelectedIndexChanged); // // comboMulticolor2 // this.comboMulticolor2.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboMulticolor2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMulticolor2.FormattingEnabled = true; this.comboMulticolor2.Location = new System.Drawing.Point(389, 57); this.comboMulticolor2.Name = "comboMulticolor2"; this.comboMulticolor2.Size = new System.Drawing.Size(71, 21); this.comboMulticolor2.TabIndex = 22; this.comboMulticolor2.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.comboColor_DrawItem); this.comboMulticolor2.SelectedIndexChanged += new System.EventHandler(this.comboMulticolor2_SelectedIndexChanged); // // comboMulticolor1 // this.comboMulticolor1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboMulticolor1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMulticolor1.FormattingEnabled = true; this.comboMulticolor1.Location = new System.Drawing.Point(389, 30); this.comboMulticolor1.Name = "comboMulticolor1"; this.comboMulticolor1.Size = new System.Drawing.Size(71, 21); this.comboMulticolor1.TabIndex = 21; this.comboMulticolor1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.comboColor_DrawItem); this.comboMulticolor1.SelectedIndexChanged += new System.EventHandler(this.comboMulticolor1_SelectedIndexChanged); // // comboBackground // this.comboBackground.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.comboBackground.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBackground.FormattingEnabled = true; this.comboBackground.Location = new System.Drawing.Point(389, 3); this.comboBackground.Name = "comboBackground"; this.comboBackground.Size = new System.Drawing.Size(71, 21); this.comboBackground.TabIndex = 25; this.comboBackground.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.comboColor_DrawItem); this.comboBackground.SelectedIndexChanged += new System.EventHandler(this.comboBackground_SelectedIndexChanged); // // btnPaste // this.btnPaste.Image = ((System.Drawing.Image)(resources.GetObject("btnPaste.Image"))); this.btnPaste.Location = new System.Drawing.Point(548, 269); this.btnPaste.Name = "btnPaste"; this.btnPaste.Size = new System.Drawing.Size(26, 26); this.btnPaste.TabIndex = 46; this.btnPaste.UseVisualStyleBackColor = true; this.btnPaste.Click += new System.EventHandler(this.btnPaste_Click); // // btnCopy // this.btnCopy.Image = ((System.Drawing.Image)(resources.GetObject("btnCopy.Image"))); this.btnCopy.Location = new System.Drawing.Point(516, 269); this.btnCopy.Name = "btnCopy"; this.btnCopy.Size = new System.Drawing.Size(26, 26); this.btnCopy.TabIndex = 45; this.btnCopy.UseVisualStyleBackColor = true; this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click); // // btnInvert // this.btnInvert.Image = ((System.Drawing.Image)(resources.GetObject("btnInvert.Image"))); this.btnInvert.Location = new System.Drawing.Point(200, 269); this.btnInvert.Name = "btnInvert"; this.btnInvert.Size = new System.Drawing.Size(26, 26); this.btnInvert.TabIndex = 44; this.btnInvert.UseVisualStyleBackColor = true; this.btnInvert.Click += new System.EventHandler(this.btnInvert_Click); // // btnMirrorY // this.btnMirrorY.Image = ((System.Drawing.Image)(resources.GetObject("btnMirrorY.Image"))); this.btnMirrorY.Location = new System.Drawing.Point(168, 269); this.btnMirrorY.Name = "btnMirrorY"; this.btnMirrorY.Size = new System.Drawing.Size(26, 26); this.btnMirrorY.TabIndex = 43; this.btnMirrorY.UseVisualStyleBackColor = true; this.btnMirrorY.Click += new System.EventHandler(this.btnMirrorY_Click); // // btnMirrorX // this.btnMirrorX.Image = ((System.Drawing.Image)(resources.GetObject("btnMirrorX.Image"))); this.btnMirrorX.Location = new System.Drawing.Point(136, 269); this.btnMirrorX.Name = "btnMirrorX"; this.btnMirrorX.Size = new System.Drawing.Size(26, 26); this.btnMirrorX.TabIndex = 47; this.btnMirrorX.UseVisualStyleBackColor = true; this.btnMirrorX.Click += new System.EventHandler(this.btnMirrorX_Click); // // btnShiftDown // this.btnShiftDown.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftDown.Image"))); this.btnShiftDown.Location = new System.Drawing.Point(104, 269); this.btnShiftDown.Name = "btnShiftDown"; this.btnShiftDown.Size = new System.Drawing.Size(26, 26); this.btnShiftDown.TabIndex = 48; this.btnShiftDown.UseVisualStyleBackColor = true; this.btnShiftDown.Click += new System.EventHandler(this.btnShiftDown_Click); // // btnShiftUp // this.btnShiftUp.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftUp.Image"))); this.btnShiftUp.Location = new System.Drawing.Point(72, 269); this.btnShiftUp.Name = "btnShiftUp"; this.btnShiftUp.Size = new System.Drawing.Size(26, 26); this.btnShiftUp.TabIndex = 38; this.btnShiftUp.UseVisualStyleBackColor = true; this.btnShiftUp.Click += new System.EventHandler(this.btnShiftUp_Click); // // btnShiftRight // this.btnShiftRight.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftRight.Image"))); this.btnShiftRight.Location = new System.Drawing.Point(40, 269); this.btnShiftRight.Name = "btnShiftRight"; this.btnShiftRight.Size = new System.Drawing.Size(26, 26); this.btnShiftRight.TabIndex = 39; this.btnShiftRight.UseVisualStyleBackColor = true; this.btnShiftRight.Click += new System.EventHandler(this.btnShiftRight_Click); // // button3 // this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image"))); this.button3.Location = new System.Drawing.Point(40, 301); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(26, 26); this.button3.TabIndex = 42; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.btnRotateRight_Click); // // btnRotateLeft // this.btnRotateLeft.Image = ((System.Drawing.Image)(resources.GetObject("btnRotateLeft.Image"))); this.btnRotateLeft.Location = new System.Drawing.Point(8, 301); this.btnRotateLeft.Name = "btnRotateLeft"; this.btnRotateLeft.Size = new System.Drawing.Size(26, 26); this.btnRotateLeft.TabIndex = 41; this.btnRotateLeft.UseVisualStyleBackColor = true; this.btnRotateLeft.Click += new System.EventHandler(this.btnRotateLeft_Click); // // btnShiftLeft // this.btnShiftLeft.Image = ((System.Drawing.Image)(resources.GetObject("btnShiftLeft.Image"))); this.btnShiftLeft.Location = new System.Drawing.Point(8, 269); this.btnShiftLeft.Name = "btnShiftLeft"; this.btnShiftLeft.Size = new System.Drawing.Size(26, 26); this.btnShiftLeft.TabIndex = 40; this.btnShiftLeft.UseVisualStyleBackColor = true; this.btnShiftLeft.Click += new System.EventHandler(this.btnShiftLeft_Click); // // contextMenuExchangeColors // this.contextMenuExchangeColors.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.exchangeMultiColor1WithMultiColor2ToolStripMenuItem, this.exchangeMultiColor1WithBGColorToolStripMenuItem, this.exchangeMultiColor2WithBGColorToolStripMenuItem }); this.contextMenuExchangeColors.Name = "contextMenuExchangeColors"; this.contextMenuExchangeColors.Size = new System.Drawing.Size(296, 70); // // exchangeMultiColor1WithMultiColor2ToolStripMenuItem // this.exchangeMultiColor1WithMultiColor2ToolStripMenuItem.Name = "exchangeMultiColor1WithMultiColor2ToolStripMenuItem"; this.exchangeMultiColor1WithMultiColor2ToolStripMenuItem.Size = new System.Drawing.Size(295, 22); this.exchangeMultiColor1WithMultiColor2ToolStripMenuItem.Text = "Exchange Multi Color 1 with Multi Color 2"; this.exchangeMultiColor1WithMultiColor2ToolStripMenuItem.Click += new System.EventHandler(this.exchangeMultiColors1And2ToolStripMenuItem_Click); // // exchangeMultiColor1WithBGColorToolStripMenuItem // this.exchangeMultiColor1WithBGColorToolStripMenuItem.Name = "exchangeMultiColor1WithBGColorToolStripMenuItem"; this.exchangeMultiColor1WithBGColorToolStripMenuItem.Size = new System.Drawing.Size(295, 22); this.exchangeMultiColor1WithBGColorToolStripMenuItem.Text = "Exchange Multi Color 1 with BG Color"; this.exchangeMultiColor1WithBGColorToolStripMenuItem.Click += new System.EventHandler(this.exchangeMultiColor1AndBGColorToolStripMenuItem_Click); // // exchangeMultiColor2WithBGColorToolStripMenuItem // this.exchangeMultiColor2WithBGColorToolStripMenuItem.Name = "exchangeMultiColor2WithBGColorToolStripMenuItem"; this.exchangeMultiColor2WithBGColorToolStripMenuItem.Size = new System.Drawing.Size(295, 22); this.exchangeMultiColor2WithBGColorToolStripMenuItem.Text = "Exchange Multi Color 2 with BG Color"; this.exchangeMultiColor2WithBGColorToolStripMenuItem.Click += new System.EventHandler(this.exchangeMultiColor2AndBGColorToolStripMenuItem_Click); // // groupBox1 // this.groupBox1.Controls.Add(this.btnMoveSelectionToTarget); this.groupBox1.Controls.Add(this.editMoveTargetIndex); this.groupBox1.Controls.Add(this.label10); this.groupBox1.Location = new System.Drawing.Point(580, 301); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(249, 56); this.groupBox1.TabIndex = 53; this.groupBox1.TabStop = false; this.groupBox1.Text = "Move Selection To"; // // btnMoveSelectionToTarget // this.btnMoveSelectionToTarget.Location = new System.Drawing.Point(161, 23); this.btnMoveSelectionToTarget.Name = "btnMoveSelectionToTarget"; this.btnMoveSelectionToTarget.Size = new System.Drawing.Size(75, 21); this.btnMoveSelectionToTarget.TabIndex = 2; this.btnMoveSelectionToTarget.Text = "Move"; this.btnMoveSelectionToTarget.UseVisualStyleBackColor = true; this.btnMoveSelectionToTarget.Click += new System.EventHandler(this.btnMoveSelectionToTarget_Click); // // editMoveTargetIndex // this.editMoveTargetIndex.Location = new System.Drawing.Point(82, 23); this.editMoveTargetIndex.Name = "editMoveTargetIndex"; this.editMoveTargetIndex.Size = new System.Drawing.Size(73, 20); this.editMoveTargetIndex.TabIndex = 1; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(6, 26); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(70, 13); this.label10.TabIndex = 0; this.label10.Text = "Target Index:"; // // canvasEditor // this.canvasEditor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.canvasEditor.Location = new System.Drawing.Point(8, 3); this.canvasEditor.Name = "canvasEditor"; this.canvasEditor.Size = new System.Drawing.Size(265, 260); this.canvasEditor.TabIndex = 54; this.canvasEditor.TabStop = false; this.canvasEditor.Paint += new System.Windows.Forms.PaintEventHandler(this.canvasEditor_Paint); this.canvasEditor.MouseDown += new System.Windows.Forms.MouseEventHandler(this.canvasEditor_MouseDown); this.canvasEditor.MouseMove += new System.Windows.Forms.MouseEventHandler(this.canvasEditor_MouseMove); // // panelCharColors // this.panelCharColors.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panelCharColors.DisplayPage = fastImage1; this.panelCharColors.Image = null; this.panelCharColors.Location = new System.Drawing.Point(782, 271); this.panelCharColors.Name = "panelCharColors"; this.panelCharColors.Size = new System.Drawing.Size(260, 20); this.panelCharColors.TabIndex = 52; this.panelCharColors.TabStop = false; this.panelCharColors.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panelCharColors_MouseDown); this.panelCharColors.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panelCharColors_MouseMove); // // picturePlayground // this.picturePlayground.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.picturePlayground.DisplayPage = fastImage2; this.picturePlayground.Image = null; this.picturePlayground.Location = new System.Drawing.Point(782, 3); this.picturePlayground.Name = "picturePlayground"; this.picturePlayground.Size = new System.Drawing.Size(260, 260); this.picturePlayground.TabIndex = 51; this.picturePlayground.TabStop = false; this.picturePlayground.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picturePlayground_MouseDown); this.picturePlayground.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picturePlayground_MouseMove); // // btnExchangeColors // this.btnExchangeColors.Location = new System.Drawing.Point(389, 143); this.btnExchangeColors.Name = "btnExchangeColors"; this.btnExchangeColors.Size = new System.Drawing.Size(121, 26); this.btnExchangeColors.TabIndex = 49; this.btnExchangeColors.Text = "Exchange Colors"; this.btnExchangeColors.UseVisualStyleBackColor = true; this.btnExchangeColors.Click += new System.EventHandler(this.btnExchangeColors_Click); // // panelCharacters // this.panelCharacters.AutoScroll = true; this.panelCharacters.AutoScrollHorizontalMaximum = 100; this.panelCharacters.AutoScrollHorizontalMinimum = 0; this.panelCharacters.AutoScrollHPos = 0; this.panelCharacters.AutoScrollVerticalMaximum = -23; this.panelCharacters.AutoScrollVerticalMinimum = 0; this.panelCharacters.AutoScrollVPos = 0; this.panelCharacters.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panelCharacters.EnableAutoScrollHorizontal = true; this.panelCharacters.EnableAutoScrollVertical = true; this.panelCharacters.HottrackColor = ((uint)(2151694591u)); this.panelCharacters.ItemHeight = 8; this.panelCharacters.ItemWidth = 8; this.panelCharacters.Location = new System.Drawing.Point(516, 3); this.panelCharacters.Name = "panelCharacters"; this.panelCharacters.PixelFormat = System.Drawing.Imaging.PixelFormat.DontCare; this.panelCharacters.SelectedIndex = -1; this.panelCharacters.Size = new System.Drawing.Size(260, 260); this.panelCharacters.TabIndex = 33; this.panelCharacters.TabStop = true; this.panelCharacters.VisibleAutoScrollHorizontal = false; this.panelCharacters.VisibleAutoScrollVertical = false; this.panelCharacters.SelectionChanged += new System.EventHandler(this.panelCharacters_SelectionChanged); // // CharacterEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.canvasEditor); this.Controls.Add(this.groupBox1); this.Controls.Add(this.panelCharColors); this.Controls.Add(this.picturePlayground); this.Controls.Add(this.groupBox2); this.Controls.Add(this.btnExchangeColors); this.Controls.Add(this.btnPaste); this.Controls.Add(this.btnCopy); this.Controls.Add(this.btnInvert); this.Controls.Add(this.btnMirrorY); this.Controls.Add(this.btnMirrorX); this.Controls.Add(this.btnShiftDown); this.Controls.Add(this.btnShiftUp); this.Controls.Add(this.btnShiftRight); this.Controls.Add(this.button3); this.Controls.Add(this.btnRotateLeft); this.Controls.Add(this.btnShiftLeft); this.Controls.Add(this.comboCategories); this.Controls.Add(this.btnPasteFromClipboard); this.Controls.Add(this.label4); this.Controls.Add(this.labelCharNo); this.Controls.Add(this.panelCharacters); this.Controls.Add(this.checkShowGrid); this.Controls.Add(this.checkPasteMultiColor); this.Controls.Add(this.radioCharColor); this.Controls.Add(this.radioBGColor4); this.Controls.Add(this.radioMulticolor2); this.Controls.Add(this.radioMultiColor1); this.Controls.Add(this.radioBackground); this.Controls.Add(this.comboCharColor); this.Controls.Add(this.comboBGColor4); this.Controls.Add(this.comboMulticolor2); this.Controls.Add(this.comboMulticolor1); this.Controls.Add(this.comboBackground); this.Name = "CharacterEditor"; this.Size = new System.Drawing.Size(1057, 490); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.contextMenuExchangeColors.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.canvasEditor)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelCharColors)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.picturePlayground)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }