Esempio n. 1
0
            private Control CreateCheckBox(object value, PropertyInfo property)
            {
                STCheckBox control = new STCheckBox();

                control.AutoSize = true;
                control.Size     = new System.Drawing.Size(65, 17);
                control.UseVisualStyleBackColor = true;
                control.Text = "";
                control.Bind(value, property.Name);
                return(control);
            }
Esempio n. 2
0
            private Control CreateCheckBox(Controls.Checkbox checkBox)
            {
                STCheckBox control = new STCheckBox();

                control.AutoSize = true;
                control.Size     = new System.Drawing.Size(65, 17);
                control.UseVisualStyleBackColor = true;
                control.Text    = checkBox.Text;
                control.Enabled = checkBox.Enabled;
                control.Visible = checkBox.Visible;
                control.Bind(checkBox, "Checked");
                return(control);
            }
Esempio n. 3
0
 /// <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(GTXTextureImporter));
     this.SwizzleNum      = new Toolbox.Library.Forms.STNumbericUpDown();
     this.label5          = new Toolbox.Library.Forms.STLabel();
     this.tileModeCB      = new Toolbox.Library.Forms.STComboBox();
     this.label4          = new Toolbox.Library.Forms.STLabel();
     this.ImgDimComb      = new Toolbox.Library.Forms.STComboBox();
     this.label3          = new Toolbox.Library.Forms.STLabel();
     this.label2          = new Toolbox.Library.Forms.STLabel();
     this.label1          = new Toolbox.Library.Forms.STLabel();
     this.MipmapNum       = new Toolbox.Library.Forms.STNumbericUpDown();
     this.WidthLabel      = new Toolbox.Library.Forms.STLabel();
     this.HeightLabel     = new Toolbox.Library.Forms.STLabel();
     this.formatComboBox  = new Toolbox.Library.Forms.STComboBox();
     this.listViewCustom1 = new Toolbox.Library.Forms.ListViewCustom();
     this.Name            = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.Format          = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.button2         = new Toolbox.Library.Forms.STButton();
     this.button1         = new Toolbox.Library.Forms.STButton();
     this.pictureBox1     = new Toolbox.Library.Forms.PictureBoxCustom();
     this.dataSizeLbl     = new Toolbox.Library.Forms.STLabel();
     this.chkBc4Alpha     = new Toolbox.Library.Forms.STCheckBox();
     this.contentContainer.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.SwizzleNum)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.MipmapNum)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // contentContainer
     //
     this.contentContainer.Controls.Add(this.chkBc4Alpha);
     this.contentContainer.Controls.Add(this.dataSizeLbl);
     this.contentContainer.Controls.Add(this.SwizzleNum);
     this.contentContainer.Controls.Add(this.label5);
     this.contentContainer.Controls.Add(this.tileModeCB);
     this.contentContainer.Controls.Add(this.label4);
     this.contentContainer.Controls.Add(this.ImgDimComb);
     this.contentContainer.Controls.Add(this.label3);
     this.contentContainer.Controls.Add(this.label2);
     this.contentContainer.Controls.Add(this.label1);
     this.contentContainer.Controls.Add(this.MipmapNum);
     this.contentContainer.Controls.Add(this.WidthLabel);
     this.contentContainer.Controls.Add(this.HeightLabel);
     this.contentContainer.Controls.Add(this.pictureBox1);
     this.contentContainer.Controls.Add(this.formatComboBox);
     this.contentContainer.Controls.Add(this.listViewCustom1);
     this.contentContainer.Controls.Add(this.button2);
     this.contentContainer.Controls.Add(this.button1);
     this.contentContainer.Size = new System.Drawing.Size(984, 511);
     this.contentContainer.Controls.SetChildIndex(this.button1, 0);
     this.contentContainer.Controls.SetChildIndex(this.button2, 0);
     this.contentContainer.Controls.SetChildIndex(this.listViewCustom1, 0);
     this.contentContainer.Controls.SetChildIndex(this.formatComboBox, 0);
     this.contentContainer.Controls.SetChildIndex(this.pictureBox1, 0);
     this.contentContainer.Controls.SetChildIndex(this.HeightLabel, 0);
     this.contentContainer.Controls.SetChildIndex(this.WidthLabel, 0);
     this.contentContainer.Controls.SetChildIndex(this.MipmapNum, 0);
     this.contentContainer.Controls.SetChildIndex(this.label1, 0);
     this.contentContainer.Controls.SetChildIndex(this.label2, 0);
     this.contentContainer.Controls.SetChildIndex(this.label3, 0);
     this.contentContainer.Controls.SetChildIndex(this.ImgDimComb, 0);
     this.contentContainer.Controls.SetChildIndex(this.label4, 0);
     this.contentContainer.Controls.SetChildIndex(this.tileModeCB, 0);
     this.contentContainer.Controls.SetChildIndex(this.label5, 0);
     this.contentContainer.Controls.SetChildIndex(this.SwizzleNum, 0);
     this.contentContainer.Controls.SetChildIndex(this.dataSizeLbl, 0);
     this.contentContainer.Controls.SetChildIndex(this.chkBc4Alpha, 0);
     //
     // SwizzleNum
     //
     this.SwizzleNum.Location = new System.Drawing.Point(772, 177);
     this.SwizzleNum.Maximum  = new decimal(new int[] {
         7,
         0,
         0,
         0
     });
     this.SwizzleNum.Name          = "SwizzleNum";
     this.SwizzleNum.Size          = new System.Drawing.Size(130, 20);
     this.SwizzleNum.TabIndex      = 44;
     this.SwizzleNum.ValueChanged += new System.EventHandler(this.SwizzleNum_ValueChanged);
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(664, 177);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(82, 13);
     this.label5.TabIndex = 43;
     this.label5.Text     = "Swizzle Pattern:";
     //
     // tileModeCB
     //
     this.tileModeCB.BorderColor       = System.Drawing.Color.Empty;
     this.tileModeCB.BorderStyle       = System.Windows.Forms.ButtonBorderStyle.Solid;
     this.tileModeCB.ButtonColor       = System.Drawing.Color.Empty;
     this.tileModeCB.FormattingEnabled = true;
     this.tileModeCB.IsReadOnly        = false;
     this.tileModeCB.Location          = new System.Drawing.Point(772, 114);
     this.tileModeCB.Name                  = "tileModeCB";
     this.tileModeCB.Size                  = new System.Drawing.Size(172, 21);
     this.tileModeCB.TabIndex              = 42;
     this.tileModeCB.SelectedIndexChanged += new System.EventHandler(this.tileModeCB_SelectedIndexChanged);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(664, 117);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(54, 13);
     this.label4.TabIndex = 41;
     this.label4.Text     = "Tile Mode";
     //
     // ImgDimComb
     //
     this.ImgDimComb.BorderColor       = System.Drawing.Color.Empty;
     this.ImgDimComb.BorderStyle       = System.Windows.Forms.ButtonBorderStyle.Solid;
     this.ImgDimComb.ButtonColor       = System.Drawing.Color.Empty;
     this.ImgDimComb.FormattingEnabled = true;
     this.ImgDimComb.IsReadOnly        = false;
     this.ImgDimComb.Location          = new System.Drawing.Point(772, 87);
     this.ImgDimComb.Name     = "ImgDimComb";
     this.ImgDimComb.Size     = new System.Drawing.Size(172, 21);
     this.ImgDimComb.TabIndex = 40;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(666, 90);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(88, 13);
     this.label3.TabIndex = 39;
     this.label3.Text     = "Image Dimension";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(666, 34);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(39, 13);
     this.label2.TabIndex = 38;
     this.label2.Text     = "Format";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(664, 153);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(58, 13);
     this.label1.TabIndex = 37;
     this.label1.Text     = "Mip Count:";
     //
     // MipmapNum
     //
     this.MipmapNum.Location = new System.Drawing.Point(772, 151);
     this.MipmapNum.Maximum  = new decimal(new int[] {
         13,
         0,
         0,
         0
     });
     this.MipmapNum.Name          = "MipmapNum";
     this.MipmapNum.Size          = new System.Drawing.Size(130, 20);
     this.MipmapNum.TabIndex      = 36;
     this.MipmapNum.ValueChanged += new System.EventHandler(this.MipmapNum_ValueChanged);
     //
     // WidthLabel
     //
     this.WidthLabel.AutoSize = true;
     this.WidthLabel.Location = new System.Drawing.Point(664, 254);
     this.WidthLabel.Name     = "WidthLabel";
     this.WidthLabel.Size     = new System.Drawing.Size(35, 13);
     this.WidthLabel.TabIndex = 35;
     this.WidthLabel.Text     = "Width";
     //
     // HeightLabel
     //
     this.HeightLabel.AutoSize = true;
     this.HeightLabel.Location = new System.Drawing.Point(664, 217);
     this.HeightLabel.Name     = "HeightLabel";
     this.HeightLabel.Size     = new System.Drawing.Size(38, 13);
     this.HeightLabel.TabIndex = 34;
     this.HeightLabel.Text     = "Height";
     //
     // formatComboBox
     //
     this.formatComboBox.BorderColor       = System.Drawing.Color.Empty;
     this.formatComboBox.BorderStyle       = System.Windows.Forms.ButtonBorderStyle.Solid;
     this.formatComboBox.ButtonColor       = System.Drawing.Color.Empty;
     this.formatComboBox.FormattingEnabled = true;
     this.formatComboBox.IsReadOnly        = false;
     this.formatComboBox.Location          = new System.Drawing.Point(772, 31);
     this.formatComboBox.Name                  = "formatComboBox";
     this.formatComboBox.Size                  = new System.Drawing.Size(172, 21);
     this.formatComboBox.TabIndex              = 32;
     this.formatComboBox.SelectedIndexChanged += new System.EventHandler(this.formatComboBox_SelectedIndexChanged);
     //
     // listViewCustom1
     //
     this.listViewCustom1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.listViewCustom1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.Name,
         this.Format
     });
     this.listViewCustom1.Dock          = System.Windows.Forms.DockStyle.Left;
     this.listViewCustom1.HideSelection = false;
     this.listViewCustom1.Location      = new System.Drawing.Point(0, 25);
     this.listViewCustom1.Name          = "listViewCustom1";
     this.listViewCustom1.OwnerDraw     = true;
     this.listViewCustom1.Size          = new System.Drawing.Size(200, 486);
     this.listViewCustom1.TabIndex      = 31;
     this.listViewCustom1.UseCompatibleStateImageBehavior = false;
     this.listViewCustom1.View = System.Windows.Forms.View.Details;
     this.listViewCustom1.SelectedIndexChanged += new System.EventHandler(this.listViewCustom1_SelectedIndexChanged);
     //
     // Name
     //
     this.Name.Text  = "Name";
     this.Name.Width = 104;
     //
     // Format
     //
     this.Format.Text  = "Format";
     this.Format.Width = 96;
     //
     // button2
     //
     this.button2.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.button2.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.button2.Location                = new System.Drawing.Point(895, 470);
     this.button2.Name                    = "button2";
     this.button2.Size                    = new System.Drawing.Size(79, 33);
     this.button2.TabIndex                = 30;
     this.button2.Text                    = "Cancel";
     this.button2.UseVisualStyleBackColor = true;
     //
     // button1
     //
     this.button1.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.button1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Location                = new System.Drawing.Point(797, 470);
     this.button1.Name                    = "button1";
     this.button1.Size                    = new System.Drawing.Size(79, 33);
     this.button1.TabIndex                = 29;
     this.button1.Text                    = "Ok";
     this.button1.UseVisualStyleBackColor = true;
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor       = System.Drawing.Color.Transparent;
     this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
     this.pictureBox1.Dock            = System.Windows.Forms.DockStyle.Left;
     this.pictureBox1.Location        = new System.Drawing.Point(200, 25);
     this.pictureBox1.Name            = "pictureBox1";
     this.pictureBox1.Size            = new System.Drawing.Size(459, 486);
     this.pictureBox1.SizeMode        = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.pictureBox1.TabIndex        = 33;
     this.pictureBox1.TabStop         = false;
     //
     // dataSizeLbl
     //
     this.dataSizeLbl.AutoSize = true;
     this.dataSizeLbl.Location = new System.Drawing.Point(664, 291);
     this.dataSizeLbl.Name     = "dataSizeLbl";
     this.dataSizeLbl.Size     = new System.Drawing.Size(56, 13);
     this.dataSizeLbl.TabIndex = 45;
     this.dataSizeLbl.Text     = "Data Size:";
     //
     // chkBc4Alpha
     //
     this.chkBc4Alpha.AutoSize = true;
     this.chkBc4Alpha.Location = new System.Drawing.Point(667, 59);
     this.chkBc4Alpha.Name     = "chkBc4Alpha";
     this.chkBc4Alpha.Size     = new System.Drawing.Size(76, 17);
     this.chkBc4Alpha.TabIndex = 46;
     this.chkBc4Alpha.Text     = "BC4 Alpha";
     this.chkBc4Alpha.UseVisualStyleBackColor = true;
     this.chkBc4Alpha.Visible         = false;
     this.chkBc4Alpha.CheckedChanged += new System.EventHandler(this.chkBc4Alpha_CheckedChanged);
     //
     // GTXTextureImporter
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(986, 516);
     this.Text = "GTXTextureImporter";
     this.contentContainer.ResumeLayout(false);
     this.contentContainer.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.SwizzleNum)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.MipmapNum)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }