private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.ListViewGroup listViewGroup2 = new System.Windows.Forms.ListViewGroup("Animations", System.Windows.Forms.HorizontalAlignment.Left); this.pnlObjects = new System.Windows.Forms.Panel(); this.overObjPnl = new System.Windows.Forms.TransparentPanel(); this.lstObjects = new System.Windows.Forms.CheckedListBox(); this.chkAllObj = new System.Windows.Forms.CheckBox(); this.chkSyncVis = new System.Windows.Forms.CheckBox(); this.btnObjects = new System.Windows.Forms.Button(); this.pnlAnims = new System.Windows.Forms.Panel(); this.listAnims = new System.Windows.Forms.ListView(); this.nameColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.panel1 = new System.Windows.Forms.Panel(); this.SaveAnims = new System.Windows.Forms.Button(); this.Load = new System.Windows.Forms.Button(); this.fileType = new System.Windows.Forms.ComboBox(); this.btnAnims = new System.Windows.Forms.Button(); this.ctxTextures = new System.Windows.Forms.ContextMenuStrip(this.components); this.sourceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exportTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.replaceTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.renameTextureTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pnlTextures = new System.Windows.Forms.Panel(); this.overTexPnl = new System.Windows.Forms.TransparentPanel(); this.lstTextures = new System.Windows.Forms.CheckedListBox(); this.chkAllTextures = new System.Windows.Forms.CheckBox(); this.btnTextures = new System.Windows.Forms.Button(); this.spltObjTex = new System.Windows.Forms.ProxySplitter(); this.spltAnimObj = new System.Windows.Forms.ProxySplitter(); this.ctxAnim = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.createNewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.chkLoop = new System.Windows.Forms.ToolStripMenuItem(); this.pnlObjects.SuspendLayout(); this.pnlAnims.SuspendLayout(); this.panel1.SuspendLayout(); this.ctxTextures.SuspendLayout(); this.pnlTextures.SuspendLayout(); this.ctxAnim.SuspendLayout(); this.SuspendLayout(); // // pnlObjects // this.pnlObjects.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlObjects.Controls.Add(this.overObjPnl); this.pnlObjects.Controls.Add(this.lstObjects); this.pnlObjects.Controls.Add(this.chkAllObj); this.pnlObjects.Controls.Add(this.chkSyncVis); this.pnlObjects.Controls.Add(this.btnObjects); this.pnlObjects.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlObjects.Location = new System.Drawing.Point(0, 182); this.pnlObjects.MinimumSize = new System.Drawing.Size(0, 21); this.pnlObjects.Name = "pnlObjects"; this.pnlObjects.Size = new System.Drawing.Size(137, 150); this.pnlObjects.TabIndex = 0; // // overObjPnl // this.overObjPnl.Dock = System.Windows.Forms.DockStyle.Fill; this.overObjPnl.Location = new System.Drawing.Point(0, 61); this.overObjPnl.Name = "overObjPnl"; this.overObjPnl.Size = new System.Drawing.Size(135, 87); this.overObjPnl.TabIndex = 8; this.overObjPnl.Paint += new System.Windows.Forms.PaintEventHandler(this.overObjPnl_Paint); // // lstObjects // this.lstObjects.BorderStyle = System.Windows.Forms.BorderStyle.None; this.lstObjects.CausesValidation = false; this.lstObjects.Dock = System.Windows.Forms.DockStyle.Fill; this.lstObjects.IntegralHeight = false; this.lstObjects.Location = new System.Drawing.Point(0, 61); this.lstObjects.Margin = new System.Windows.Forms.Padding(0); this.lstObjects.Name = "lstObjects"; this.lstObjects.Size = new System.Drawing.Size(135, 87); this.lstObjects.TabIndex = 4; this.lstObjects.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lstPolygons_ItemCheck); this.lstObjects.SelectedValueChanged += new System.EventHandler(this.lstPolygons_SelectedValueChanged); this.lstObjects.KeyDown += new System.Windows.Forms.KeyEventHandler(this.lstPolygons_KeyDown); this.lstObjects.Leave += new System.EventHandler(this.lstObjects_Leave); // // chkAllObj // this.chkAllObj.Checked = true; this.chkAllObj.CheckState = System.Windows.Forms.CheckState.Checked; this.chkAllObj.Dock = System.Windows.Forms.DockStyle.Top; this.chkAllObj.Location = new System.Drawing.Point(0, 41); this.chkAllObj.Margin = new System.Windows.Forms.Padding(0); this.chkAllObj.Name = "chkAllObj"; this.chkAllObj.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0); this.chkAllObj.Size = new System.Drawing.Size(135, 20); this.chkAllObj.TabIndex = 5; this.chkAllObj.Text = "All"; this.chkAllObj.UseVisualStyleBackColor = false; this.chkAllObj.CheckStateChanged += new System.EventHandler(this.chkAllPoly_CheckStateChanged); // // chkSyncVis // this.chkSyncVis.Dock = System.Windows.Forms.DockStyle.Top; this.chkSyncVis.Location = new System.Drawing.Point(0, 21); this.chkSyncVis.Margin = new System.Windows.Forms.Padding(0); this.chkSyncVis.Name = "chkSyncVis"; this.chkSyncVis.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0); this.chkSyncVis.Size = new System.Drawing.Size(135, 20); this.chkSyncVis.TabIndex = 7; this.chkSyncVis.Text = "Sync VIS0"; this.chkSyncVis.UseVisualStyleBackColor = false; this.chkSyncVis.CheckedChanged += new System.EventHandler(this.chkSyncVis_CheckedChanged); // // btnObjects // this.btnObjects.Dock = System.Windows.Forms.DockStyle.Top; this.btnObjects.Location = new System.Drawing.Point(0, 0); this.btnObjects.Name = "btnObjects"; this.btnObjects.Size = new System.Drawing.Size(135, 21); this.btnObjects.TabIndex = 6; this.btnObjects.Text = "Objects"; this.btnObjects.UseVisualStyleBackColor = true; this.btnObjects.Click += new System.EventHandler(this.btnObjects_Click); // // pnlAnims // this.pnlAnims.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlAnims.Controls.Add(this.listAnims); this.pnlAnims.Controls.Add(this.panel1); this.pnlAnims.Controls.Add(this.btnAnims); this.pnlAnims.Dock = System.Windows.Forms.DockStyle.Top; this.pnlAnims.Location = new System.Drawing.Point(0, 0); this.pnlAnims.MinimumSize = new System.Drawing.Size(0, 21); this.pnlAnims.Name = "pnlAnims"; this.pnlAnims.Size = new System.Drawing.Size(137, 178); this.pnlAnims.TabIndex = 2; // // listAnims // this.listAnims.AutoArrange = false; this.listAnims.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.nameColumn}); this.listAnims.Cursor = System.Windows.Forms.Cursors.Default; this.listAnims.Dock = System.Windows.Forms.DockStyle.Fill; listViewGroup2.Header = "Animations"; listViewGroup2.Name = "grpAnims"; this.listAnims.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] { listViewGroup2}); this.listAnims.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; this.listAnims.HideSelection = false; this.listAnims.Location = new System.Drawing.Point(0, 42); this.listAnims.MultiSelect = false; this.listAnims.Name = "listAnims"; this.listAnims.Size = new System.Drawing.Size(135, 134); this.listAnims.TabIndex = 25; this.listAnims.UseCompatibleStateImageBehavior = false; this.listAnims.View = System.Windows.Forms.View.Details; this.listAnims.SelectedIndexChanged += new System.EventHandler(this.listAnims_SelectedIndexChanged); this.listAnims.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listAnims_KeyDown); this.listAnims.MouseDown += new System.Windows.Forms.MouseEventHandler(this.listAnims_MouseDown); // // nameColumn // this.nameColumn.Text = "Name"; this.nameColumn.Width = 160; // // panel1 // this.panel1.Controls.Add(this.SaveAnims); this.panel1.Controls.Add(this.Load); this.panel1.Controls.Add(this.fileType); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 21); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(135, 21); this.panel1.TabIndex = 27; // // SaveAnims // this.SaveAnims.Location = new System.Drawing.Point(41, 0); this.SaveAnims.Name = "SaveAnims"; this.SaveAnims.Size = new System.Drawing.Size(41, 21); this.SaveAnims.TabIndex = 28; this.SaveAnims.Text = "Save"; this.SaveAnims.UseVisualStyleBackColor = true; this.SaveAnims.Click += new System.EventHandler(this.button2_Click); // // Load // this.Load.Location = new System.Drawing.Point(1, 0); this.Load.Name = "Load"; this.Load.Size = new System.Drawing.Size(41, 21); this.Load.TabIndex = 27; this.Load.Text = "Load"; this.Load.UseVisualStyleBackColor = true; this.Load.Click += new System.EventHandler(this.button1_Click); // // fileType // this.fileType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.fileType.FormattingEnabled = true; this.fileType.Location = new System.Drawing.Point(82, 0); this.fileType.Name = "fileType"; this.fileType.Size = new System.Drawing.Size(53, 21); this.fileType.TabIndex = 26; this.fileType.SelectedIndexChanged += new System.EventHandler(this.fileType_SelectedIndexChanged); // // btnAnims // this.btnAnims.Dock = System.Windows.Forms.DockStyle.Top; this.btnAnims.Location = new System.Drawing.Point(0, 0); this.btnAnims.Name = "btnAnims"; this.btnAnims.Size = new System.Drawing.Size(135, 21); this.btnAnims.TabIndex = 7; this.btnAnims.Text = "Animations"; this.btnAnims.UseVisualStyleBackColor = true; this.btnAnims.Click += new System.EventHandler(this.btnAnims_Click); // // ctxTextures // this.ctxTextures.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.sourceToolStripMenuItem, this.sizeToolStripMenuItem, this.toolStripMenuItem1, this.viewToolStripMenuItem, this.exportTextureToolStripMenuItem, this.replaceTextureToolStripMenuItem, this.renameTextureTextureToolStripMenuItem, this.resetToolStripMenuItem}); this.ctxTextures.Name = "ctxTextures"; this.ctxTextures.Size = new System.Drawing.Size(125, 164); this.ctxTextures.Opening += new System.ComponentModel.CancelEventHandler(this.ctxTextures_Opening); // // sourceToolStripMenuItem // this.sourceToolStripMenuItem.Enabled = false; this.sourceToolStripMenuItem.Name = "sourceToolStripMenuItem"; this.sourceToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.sourceToolStripMenuItem.Text = "Source"; // // sizeToolStripMenuItem // this.sizeToolStripMenuItem.Enabled = false; this.sizeToolStripMenuItem.Name = "sizeToolStripMenuItem"; this.sizeToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.sizeToolStripMenuItem.Text = "Size"; // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new System.Drawing.Size(121, 6); // // viewToolStripMenuItem // this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; this.viewToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.viewToolStripMenuItem.Text = "View..."; this.viewToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click); // // exportTextureToolStripMenuItem // this.exportTextureToolStripMenuItem.Name = "exportTextureToolStripMenuItem"; this.exportTextureToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.exportTextureToolStripMenuItem.Text = "Export..."; this.exportTextureToolStripMenuItem.Click += new System.EventHandler(this.exportTextureToolStripMenuItem_Click); // // replaceTextureToolStripMenuItem // this.replaceTextureToolStripMenuItem.Name = "replaceTextureToolStripMenuItem"; this.replaceTextureToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.replaceTextureToolStripMenuItem.Text = "Replace..."; this.replaceTextureToolStripMenuItem.Click += new System.EventHandler(this.replaceTextureToolStripMenuItem_Click); // // renameTextureTextureToolStripMenuItem // this.renameTextureTextureToolStripMenuItem.Name = "renameTextureTextureToolStripMenuItem"; this.renameTextureTextureToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.renameTextureTextureToolStripMenuItem.Text = "Rename"; this.renameTextureTextureToolStripMenuItem.Click += new System.EventHandler(this.renameTextureToolStripMenuItem_Click); // // resetToolStripMenuItem // this.resetToolStripMenuItem.Name = "resetToolStripMenuItem"; this.resetToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.resetToolStripMenuItem.Text = "Reload"; this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click); // // pnlTextures // this.pnlTextures.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlTextures.Controls.Add(this.overTexPnl); this.pnlTextures.Controls.Add(this.lstTextures); this.pnlTextures.Controls.Add(this.chkAllTextures); this.pnlTextures.Controls.Add(this.btnTextures); this.pnlTextures.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnlTextures.Location = new System.Drawing.Point(0, 336); this.pnlTextures.MinimumSize = new System.Drawing.Size(0, 21); this.pnlTextures.Name = "pnlTextures"; this.pnlTextures.Size = new System.Drawing.Size(137, 164); this.pnlTextures.TabIndex = 3; // // overTexPnl // this.overTexPnl.Dock = System.Windows.Forms.DockStyle.Fill; this.overTexPnl.Location = new System.Drawing.Point(0, 41); this.overTexPnl.Name = "overTexPnl"; this.overTexPnl.Size = new System.Drawing.Size(135, 121); this.overTexPnl.TabIndex = 9; this.overTexPnl.Paint += new System.Windows.Forms.PaintEventHandler(this.overTexPnl_Paint); // // lstTextures // this.lstTextures.BorderStyle = System.Windows.Forms.BorderStyle.None; this.lstTextures.CausesValidation = false; this.lstTextures.ContextMenuStrip = this.ctxTextures; this.lstTextures.Dock = System.Windows.Forms.DockStyle.Fill; this.lstTextures.IntegralHeight = false; this.lstTextures.Location = new System.Drawing.Point(0, 41); this.lstTextures.Margin = new System.Windows.Forms.Padding(0); this.lstTextures.Name = "lstTextures"; this.lstTextures.Size = new System.Drawing.Size(135, 121); this.lstTextures.TabIndex = 7; this.lstTextures.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lstTextures_ItemCheck); this.lstTextures.SelectedValueChanged += new System.EventHandler(this.lstTextures_SelectedValueChanged); this.lstTextures.KeyDown += new System.Windows.Forms.KeyEventHandler(this.lstTextures_KeyDown); this.lstTextures.Leave += new System.EventHandler(this.lstTextures_Leave); this.lstTextures.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstTextures_MouseDown); // // chkAllTextures // this.chkAllTextures.Checked = true; this.chkAllTextures.CheckState = System.Windows.Forms.CheckState.Checked; this.chkAllTextures.Dock = System.Windows.Forms.DockStyle.Top; this.chkAllTextures.Location = new System.Drawing.Point(0, 21); this.chkAllTextures.Margin = new System.Windows.Forms.Padding(0); this.chkAllTextures.Name = "chkAllTextures"; this.chkAllTextures.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0); this.chkAllTextures.Size = new System.Drawing.Size(135, 20); this.chkAllTextures.TabIndex = 8; this.chkAllTextures.Text = "All"; this.chkAllTextures.UseVisualStyleBackColor = false; this.chkAllTextures.CheckStateChanged += new System.EventHandler(this.chkAllTextures_CheckStateChanged); // // btnTextures // this.btnTextures.Dock = System.Windows.Forms.DockStyle.Top; this.btnTextures.Location = new System.Drawing.Point(0, 0); this.btnTextures.Name = "btnTextures"; this.btnTextures.Size = new System.Drawing.Size(135, 21); this.btnTextures.TabIndex = 9; this.btnTextures.Text = "Textures"; this.btnTextures.UseVisualStyleBackColor = true; this.btnTextures.Click += new System.EventHandler(this.btnTextures_Click); // // spltObjTex // this.spltObjTex.Cursor = System.Windows.Forms.Cursors.HSplit; this.spltObjTex.Dock = System.Windows.Forms.DockStyle.Bottom; this.spltObjTex.Location = new System.Drawing.Point(0, 332); this.spltObjTex.Name = "spltObjTex"; this.spltObjTex.Size = new System.Drawing.Size(137, 4); this.spltObjTex.TabIndex = 4; this.spltObjTex.Dragged += new System.Windows.Forms.SplitterEventHandler(this.spltObjTex_Dragged); // // spltAnimObj // this.spltAnimObj.Cursor = System.Windows.Forms.Cursors.HSplit; this.spltAnimObj.Dock = System.Windows.Forms.DockStyle.Top; this.spltAnimObj.Location = new System.Drawing.Point(0, 178); this.spltAnimObj.Name = "spltAnimObj"; this.spltAnimObj.Size = new System.Drawing.Size(137, 4); this.spltAnimObj.TabIndex = 1; this.spltAnimObj.Dragged += new System.Windows.Forms.SplitterEventHandler(this.spltAnimObj_Dragged); // // ctxAnim // this.ctxAnim.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem2, this.toolStripSeparator1, this.chkLoop, this.toolStripMenuItem3, this.toolStripMenuItem4, this.renameToolStripMenuItem, this.deleteToolStripMenuItem, this.createNewToolStripMenuItem}); this.ctxAnim.Name = "ctxAnim"; this.ctxAnim.Size = new System.Drawing.Size(195, 186); this.ctxAnim.Opening += new System.ComponentModel.CancelEventHandler(this.ctxAnim_Opening); // // toolStripMenuItem2 // this.toolStripMenuItem2.Enabled = false; this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new System.Drawing.Size(194, 22); this.toolStripMenuItem2.Text = "Source"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(191, 6); // // toolStripMenuItem3 // this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Size = new System.Drawing.Size(194, 22); this.toolStripMenuItem3.Text = "Export..."; this.toolStripMenuItem3.Click += new System.EventHandler(this.exportToolStripMenuItem_Click); // // toolStripMenuItem4 // this.toolStripMenuItem4.Name = "toolStripMenuItem4"; this.toolStripMenuItem4.Size = new System.Drawing.Size(194, 22); this.toolStripMenuItem4.Text = "Replace..."; this.toolStripMenuItem4.Click += new System.EventHandler(this.replaceToolStripMenuItem_Click); // // renameToolStripMenuItem // this.renameToolStripMenuItem.Name = "renameToolStripMenuItem"; this.renameToolStripMenuItem.Size = new System.Drawing.Size(194, 22); this.renameToolStripMenuItem.Text = "Rename"; this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click); // // deleteToolStripMenuItem // this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; this.deleteToolStripMenuItem.Size = new System.Drawing.Size(194, 22); this.deleteToolStripMenuItem.Text = "Delete"; this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click); // // createNewToolStripMenuItem // this.createNewToolStripMenuItem.Name = "createNewToolStripMenuItem"; this.createNewToolStripMenuItem.Size = new System.Drawing.Size(194, 22); this.createNewToolStripMenuItem.Text = "Create New Animation"; this.createNewToolStripMenuItem.Click += new System.EventHandler(this.createNewToolStripMenuItem_Click); // // chkLoop // this.chkLoop.CheckOnClick = true; this.chkLoop.Name = "chkLoop"; this.chkLoop.Size = new System.Drawing.Size(194, 22); this.chkLoop.Text = "Loop"; this.chkLoop.CheckedChanged += new System.EventHandler(this.chkLoop_CheckedChanged); // // LeftPanel // this.Controls.Add(this.pnlObjects); this.Controls.Add(this.spltObjTex); this.Controls.Add(this.spltAnimObj); this.Controls.Add(this.pnlAnims); this.Controls.Add(this.pnlTextures); this.Name = "LeftPanel"; this.Size = new System.Drawing.Size(137, 500); this.pnlObjects.ResumeLayout(false); this.pnlAnims.ResumeLayout(false); this.panel1.ResumeLayout(false); this.ctxTextures.ResumeLayout(false); this.pnlTextures.ResumeLayout(false); this.ctxAnim.ResumeLayout(false); this.ResumeLayout(false); }
private void OnDomainsReceived(DomainListModel model) { if (!domainsRequested) return; while (!this.IsHandleCreated); if (this.InvokeRequired) { this.Invoke((DomainsController.ExternalEventHandler) OnDomainsReceived, model); return; } domainsRequested = false; domainList.Location = new Point(429, 67); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DomainsView)); List<DomainData> domains = model.AllDomains; domainList.Size = new Size(136, 2 + (22 - 1) * domains.Count); for (int i = 0; i < domains.Count; ++i) { // main container for domain Panel container = new Panel(); container.Location = new Point(-1, -1 + 21 * i); container.Size = new Size(136, 22); container.BorderStyle = BorderStyle.FixedSingle; container.Visible = true; domainList.Controls.Add(container); // cover TransparentPanel cover = new TransparentPanel(); cover.Location = new Point(0, 0); cover.Size = container.Size; cover.MouseEnter += new EventHandler(cover_MouseEnter); cover.MouseLeave += new EventHandler(cover_MouseLeave); cover.Click += new EventHandler(cover_Click); container.Controls.Add(cover); // image box PictureBox img = new PictureBox(); img.Image = ((Image)(resources.GetObject("news.Image"))); img.Location = new Point(2, 1); img.Margin = new System.Windows.Forms.Padding(2); img.Size = new Size(18, 20); img.SizeMode = PictureBoxSizeMode.StretchImage; img.TabIndex = 7; img.TabStop = false; container.Controls.Add(img); // domain title Label title = new Label(); title.AutoSize = true; title.Font = new Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); title.Location = new Point(24, 2); title.Margin = new Padding(2, 0, 2, 0); title.Size = new Size(74, 17); title.TabIndex = 6; title.Text = domains[i].Name; container.Controls.Add(title); } changeState(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.pnlObjects = new System.Windows.Forms.Panel(); this.overObjPnl = new System.Windows.Forms.TransparentPanel(); this.lstObjects = new System.Windows.Forms.CheckedListBox(); this.chkAllObj = new System.Windows.Forms.CheckBox(); this.chkSyncVis = new System.Windows.Forms.CheckBox(); this.btnObjects = new System.Windows.Forms.Button(); this.ctxTextures = new System.Windows.Forms.ContextMenuStrip(this.components); this.sourceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exportTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.replaceTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.renameTextureTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pnlTextures = new System.Windows.Forms.Panel(); this.overTexPnl = new System.Windows.Forms.TransparentPanel(); this.lstTextures = new System.Windows.Forms.CheckedListBox(); this.chkAllTextures = new System.Windows.Forms.CheckBox(); this.btnTextures = new System.Windows.Forms.Button(); this.ctxAnim = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); this.portToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.createNewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.panel1 = new System.Windows.Forms.Panel(); this.lstBones = new System.Windows.Forms.CheckedListBox(); this.transparentPanel1 = new System.Windows.Forms.TransparentPanel(); this.chkAllBones = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.splitter1 = new System.Windows.Forms.Splitter(); this.splitter2 = new System.Windows.Forms.Splitter(); this.ctxBones = new System.Windows.Forms.ContextMenuStrip(this.components); this.boneIndex = new System.Windows.Forms.ToolStripMenuItem(); this.renameBoneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pnlObjects.SuspendLayout(); this.ctxTextures.SuspendLayout(); this.pnlTextures.SuspendLayout(); this.ctxAnim.SuspendLayout(); this.panel1.SuspendLayout(); this.ctxBones.SuspendLayout(); this.SuspendLayout(); // // pnlObjects // this.pnlObjects.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlObjects.Controls.Add(this.overObjPnl); this.pnlObjects.Controls.Add(this.lstObjects); this.pnlObjects.Controls.Add(this.chkAllObj); this.pnlObjects.Controls.Add(this.chkSyncVis); this.pnlObjects.Controls.Add(this.btnObjects); this.pnlObjects.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnlObjects.Location = new System.Drawing.Point(0, 149); this.pnlObjects.MinimumSize = new System.Drawing.Size(0, 21); this.pnlObjects.Name = "pnlObjects"; this.pnlObjects.Size = new System.Drawing.Size(156, 162); this.pnlObjects.TabIndex = 0; // // overObjPnl // this.overObjPnl.Dock = System.Windows.Forms.DockStyle.Fill; this.overObjPnl.Location = new System.Drawing.Point(0, 61); this.overObjPnl.Name = "overObjPnl"; this.overObjPnl.Size = new System.Drawing.Size(154, 99); this.overObjPnl.TabIndex = 8; this.overObjPnl.Paint += new System.Windows.Forms.PaintEventHandler(this.overObjPnl_Paint); // // lstObjects // this.lstObjects.BorderStyle = System.Windows.Forms.BorderStyle.None; this.lstObjects.CausesValidation = false; this.lstObjects.Dock = System.Windows.Forms.DockStyle.Fill; this.lstObjects.IntegralHeight = false; this.lstObjects.Location = new System.Drawing.Point(0, 61); this.lstObjects.Margin = new System.Windows.Forms.Padding(0); this.lstObjects.Name = "lstObjects"; this.lstObjects.Size = new System.Drawing.Size(154, 99); this.lstObjects.TabIndex = 4; this.lstObjects.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lstPolygons_ItemCheck); this.lstObjects.SelectedValueChanged += new System.EventHandler(this.lstPolygons_SelectedValueChanged); this.lstObjects.KeyDown += new System.Windows.Forms.KeyEventHandler(this.lstPolygons_KeyDown); this.lstObjects.Leave += new System.EventHandler(this.lstObjects_Leave); // // chkAllObj // this.chkAllObj.Checked = true; this.chkAllObj.CheckState = System.Windows.Forms.CheckState.Checked; this.chkAllObj.Dock = System.Windows.Forms.DockStyle.Top; this.chkAllObj.Location = new System.Drawing.Point(0, 41); this.chkAllObj.Margin = new System.Windows.Forms.Padding(0); this.chkAllObj.Name = "chkAllObj"; this.chkAllObj.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0); this.chkAllObj.Size = new System.Drawing.Size(154, 20); this.chkAllObj.TabIndex = 5; this.chkAllObj.Text = "All"; this.chkAllObj.UseVisualStyleBackColor = false; this.chkAllObj.CheckStateChanged += new System.EventHandler(this.chkAllPoly_CheckStateChanged); // // chkSyncVis // this.chkSyncVis.Dock = System.Windows.Forms.DockStyle.Top; this.chkSyncVis.Location = new System.Drawing.Point(0, 21); this.chkSyncVis.Margin = new System.Windows.Forms.Padding(0); this.chkSyncVis.Name = "chkSyncVis"; this.chkSyncVis.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0); this.chkSyncVis.Size = new System.Drawing.Size(154, 20); this.chkSyncVis.TabIndex = 7; this.chkSyncVis.Text = "Sync VIS0"; this.chkSyncVis.UseVisualStyleBackColor = false; this.chkSyncVis.CheckedChanged += new System.EventHandler(this.chkSyncVis_CheckedChanged); // // btnObjects // this.btnObjects.Dock = System.Windows.Forms.DockStyle.Top; this.btnObjects.Location = new System.Drawing.Point(0, 0); this.btnObjects.Name = "btnObjects"; this.btnObjects.Size = new System.Drawing.Size(154, 21); this.btnObjects.TabIndex = 6; this.btnObjects.Text = "Objects"; this.btnObjects.UseVisualStyleBackColor = true; this.btnObjects.Click += new System.EventHandler(this.btnObjects_Click); // // ctxTextures // this.ctxTextures.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.sourceToolStripMenuItem, this.sizeToolStripMenuItem, this.toolStripMenuItem1, this.viewToolStripMenuItem, this.exportTextureToolStripMenuItem, this.replaceTextureToolStripMenuItem, this.renameTextureTextureToolStripMenuItem, this.resetToolStripMenuItem}); this.ctxTextures.Name = "ctxTextures"; this.ctxTextures.Size = new System.Drawing.Size(125, 164); this.ctxTextures.Opening += new System.ComponentModel.CancelEventHandler(this.ctxTextures_Opening); // // sourceToolStripMenuItem // this.sourceToolStripMenuItem.Enabled = false; this.sourceToolStripMenuItem.Name = "sourceToolStripMenuItem"; this.sourceToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.sourceToolStripMenuItem.Text = "Source"; // // sizeToolStripMenuItem // this.sizeToolStripMenuItem.Enabled = false; this.sizeToolStripMenuItem.Name = "sizeToolStripMenuItem"; this.sizeToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.sizeToolStripMenuItem.Text = "Size"; // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new System.Drawing.Size(121, 6); // // viewToolStripMenuItem // this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; this.viewToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.viewToolStripMenuItem.Text = "View..."; this.viewToolStripMenuItem.Click += new System.EventHandler(this.viewToolStripMenuItem_Click); // // exportTextureToolStripMenuItem // this.exportTextureToolStripMenuItem.Name = "exportTextureToolStripMenuItem"; this.exportTextureToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.exportTextureToolStripMenuItem.Text = "Export..."; this.exportTextureToolStripMenuItem.Click += new System.EventHandler(this.exportTextureToolStripMenuItem_Click); // // replaceTextureToolStripMenuItem // this.replaceTextureToolStripMenuItem.Name = "replaceTextureToolStripMenuItem"; this.replaceTextureToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.replaceTextureToolStripMenuItem.Text = "Replace..."; this.replaceTextureToolStripMenuItem.Click += new System.EventHandler(this.replaceTextureToolStripMenuItem_Click); // // renameTextureTextureToolStripMenuItem // this.renameTextureTextureToolStripMenuItem.Name = "renameTextureTextureToolStripMenuItem"; this.renameTextureTextureToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.renameTextureTextureToolStripMenuItem.Text = "Rename"; this.renameTextureTextureToolStripMenuItem.Click += new System.EventHandler(this.renameTextureToolStripMenuItem_Click); // // resetToolStripMenuItem // this.resetToolStripMenuItem.Name = "resetToolStripMenuItem"; this.resetToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.resetToolStripMenuItem.Text = "Reload"; this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click); // // pnlTextures // this.pnlTextures.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlTextures.Controls.Add(this.overTexPnl); this.pnlTextures.Controls.Add(this.lstTextures); this.pnlTextures.Controls.Add(this.chkAllTextures); this.pnlTextures.Controls.Add(this.btnTextures); this.pnlTextures.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnlTextures.Location = new System.Drawing.Point(0, 314); this.pnlTextures.MinimumSize = new System.Drawing.Size(0, 21); this.pnlTextures.Name = "pnlTextures"; this.pnlTextures.Size = new System.Drawing.Size(156, 164); this.pnlTextures.TabIndex = 3; // // overTexPnl // this.overTexPnl.Dock = System.Windows.Forms.DockStyle.Fill; this.overTexPnl.Location = new System.Drawing.Point(0, 41); this.overTexPnl.Name = "overTexPnl"; this.overTexPnl.Size = new System.Drawing.Size(154, 121); this.overTexPnl.TabIndex = 9; this.overTexPnl.Paint += new System.Windows.Forms.PaintEventHandler(this.overTexPnl_Paint); // // lstTextures // this.lstTextures.BorderStyle = System.Windows.Forms.BorderStyle.None; this.lstTextures.CausesValidation = false; this.lstTextures.ContextMenuStrip = this.ctxTextures; this.lstTextures.Dock = System.Windows.Forms.DockStyle.Fill; this.lstTextures.IntegralHeight = false; this.lstTextures.Location = new System.Drawing.Point(0, 41); this.lstTextures.Margin = new System.Windows.Forms.Padding(0); this.lstTextures.Name = "lstTextures"; this.lstTextures.Size = new System.Drawing.Size(154, 121); this.lstTextures.TabIndex = 7; this.lstTextures.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lstTextures_ItemCheck); this.lstTextures.SelectedValueChanged += new System.EventHandler(this.lstTextures_SelectedValueChanged); this.lstTextures.KeyDown += new System.Windows.Forms.KeyEventHandler(this.lstTextures_KeyDown); this.lstTextures.Leave += new System.EventHandler(this.lstTextures_Leave); this.lstTextures.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstTextures_MouseDown); // // chkAllTextures // this.chkAllTextures.Checked = true; this.chkAllTextures.CheckState = System.Windows.Forms.CheckState.Checked; this.chkAllTextures.Dock = System.Windows.Forms.DockStyle.Top; this.chkAllTextures.Location = new System.Drawing.Point(0, 21); this.chkAllTextures.Margin = new System.Windows.Forms.Padding(0); this.chkAllTextures.Name = "chkAllTextures"; this.chkAllTextures.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0); this.chkAllTextures.Size = new System.Drawing.Size(154, 20); this.chkAllTextures.TabIndex = 8; this.chkAllTextures.Text = "All"; this.chkAllTextures.UseVisualStyleBackColor = false; this.chkAllTextures.CheckStateChanged += new System.EventHandler(this.chkAllTextures_CheckStateChanged); // // btnTextures // this.btnTextures.Dock = System.Windows.Forms.DockStyle.Top; this.btnTextures.Location = new System.Drawing.Point(0, 0); this.btnTextures.Name = "btnTextures"; this.btnTextures.Size = new System.Drawing.Size(154, 21); this.btnTextures.TabIndex = 9; this.btnTextures.Text = "Textures"; this.btnTextures.UseVisualStyleBackColor = true; this.btnTextures.Click += new System.EventHandler(this.btnTextures_Click); // // ctxAnim // this.ctxAnim.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem2, this.toolStripSeparator1, this.toolStripMenuItem3, this.toolStripMenuItem4, this.portToolStripMenuItem, this.renameToolStripMenuItem, this.deleteToolStripMenuItem, this.createNewToolStripMenuItem}); this.ctxAnim.Name = "ctxAnim"; this.ctxAnim.Size = new System.Drawing.Size(125, 164); // // toolStripMenuItem2 // this.toolStripMenuItem2.Enabled = false; this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem2.Text = "Source"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(121, 6); // // toolStripMenuItem3 // this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem3.Text = "Export..."; this.toolStripMenuItem3.Click += new System.EventHandler(this.exportToolStripMenuItem_Click); // // toolStripMenuItem4 // this.toolStripMenuItem4.Name = "toolStripMenuItem4"; this.toolStripMenuItem4.Size = new System.Drawing.Size(124, 22); this.toolStripMenuItem4.Text = "Replace..."; this.toolStripMenuItem4.Click += new System.EventHandler(this.replaceToolStripMenuItem_Click); // // portToolStripMenuItem // this.portToolStripMenuItem.Name = "portToolStripMenuItem"; this.portToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.portToolStripMenuItem.Text = "Port..."; this.portToolStripMenuItem.Click += new System.EventHandler(this.portToolStripMenuItem_Click); // // renameToolStripMenuItem // this.renameToolStripMenuItem.Name = "renameToolStripMenuItem"; this.renameToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.renameToolStripMenuItem.Text = "Rename"; this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click); // // deleteToolStripMenuItem // this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; this.deleteToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.deleteToolStripMenuItem.Text = "Delete"; // // createNewToolStripMenuItem // this.createNewToolStripMenuItem.Name = "createNewToolStripMenuItem"; this.createNewToolStripMenuItem.Size = new System.Drawing.Size(124, 22); // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.lstBones); this.panel1.Controls.Add(this.transparentPanel1); this.panel1.Controls.Add(this.chkAllBones); this.panel1.Controls.Add(this.button1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.MinimumSize = new System.Drawing.Size(0, 21); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(156, 146); this.panel1.TabIndex = 4; // // lstBones // this.lstBones.BorderStyle = System.Windows.Forms.BorderStyle.None; this.lstBones.CausesValidation = false; this.lstBones.Cursor = System.Windows.Forms.Cursors.Default; this.lstBones.Dock = System.Windows.Forms.DockStyle.Fill; this.lstBones.IntegralHeight = false; this.lstBones.Location = new System.Drawing.Point(0, 41); this.lstBones.Margin = new System.Windows.Forms.Padding(0); this.lstBones.Name = "lstBones"; this.lstBones.Size = new System.Drawing.Size(154, 103); this.lstBones.TabIndex = 9; this.lstBones.SelectedValueChanged += new System.EventHandler(this.lstBones_SelectedValueChanged); this.lstBones.KeyDown += new System.Windows.Forms.KeyEventHandler(this.List_KeyDown); // // transparentPanel1 // this.transparentPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.transparentPanel1.Location = new System.Drawing.Point(0, 41); this.transparentPanel1.Name = "transparentPanel1"; this.transparentPanel1.Size = new System.Drawing.Size(154, 103); this.transparentPanel1.TabIndex = 8; // // chkAllBones // this.chkAllBones.Checked = true; this.chkAllBones.CheckState = System.Windows.Forms.CheckState.Checked; this.chkAllBones.Dock = System.Windows.Forms.DockStyle.Top; this.chkAllBones.Location = new System.Drawing.Point(0, 21); this.chkAllBones.Margin = new System.Windows.Forms.Padding(0); this.chkAllBones.Name = "chkAllBones"; this.chkAllBones.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0); this.chkAllBones.Size = new System.Drawing.Size(154, 20); this.chkAllBones.TabIndex = 5; this.chkAllBones.Text = "All"; this.chkAllBones.UseVisualStyleBackColor = false; this.chkAllBones.CheckedChanged += new System.EventHandler(this.chkAllBones_CheckStateChanged); // // button1 // this.button1.Dock = System.Windows.Forms.DockStyle.Top; this.button1.Location = new System.Drawing.Point(0, 0); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(154, 21); this.button1.TabIndex = 6; this.button1.Text = "Bones"; this.button1.UseVisualStyleBackColor = true; // // splitter1 // this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom; this.splitter1.Location = new System.Drawing.Point(0, 146); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(156, 3); this.splitter1.TabIndex = 0; this.splitter1.TabStop = false; // // splitter2 // this.splitter2.Dock = System.Windows.Forms.DockStyle.Bottom; this.splitter2.Location = new System.Drawing.Point(0, 311); this.splitter2.Name = "splitter2"; this.splitter2.Size = new System.Drawing.Size(156, 3); this.splitter2.TabIndex = 0; this.splitter2.TabStop = false; // // ctxBones // this.ctxBones.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.boneIndex, this.renameBoneToolStripMenuItem}); this.ctxBones.Name = "ctxBones"; this.ctxBones.Size = new System.Drawing.Size(133, 48); // // boneIndex // this.boneIndex.Enabled = false; this.boneIndex.Name = "boneIndex"; this.boneIndex.Size = new System.Drawing.Size(132, 22); this.boneIndex.Text = "Bone Index"; // // renameBoneToolStripMenuItem // this.renameBoneToolStripMenuItem.Name = "renameBoneToolStripMenuItem"; this.renameBoneToolStripMenuItem.Size = new System.Drawing.Size(132, 22); this.renameBoneToolStripMenuItem.Text = "Rename"; // // ModelListsPanel // this.Controls.Add(this.panel1); this.Controls.Add(this.splitter1); this.Controls.Add(this.pnlObjects); this.Controls.Add(this.splitter2); this.Controls.Add(this.pnlTextures); this.Name = "ModelListsPanel"; this.Size = new System.Drawing.Size(156, 478); this.pnlObjects.ResumeLayout(false); this.ctxTextures.ResumeLayout(false); this.pnlTextures.ResumeLayout(false); this.ctxAnim.ResumeLayout(false); this.panel1.ResumeLayout(false); this.ctxBones.ResumeLayout(false); this.ResumeLayout(false); }