@ work in progress on dockers

This commit is contained in:
codeimp 2009-07-21 05:51:13 +00:00
parent bec1acf6c9
commit 1a17a2be2b
8 changed files with 355 additions and 136 deletions

View file

@ -670,6 +670,9 @@
<Compile Include="Controls\DockersControl.Designer.cs"> <Compile Include="Controls\DockersControl.Designer.cs">
<DependentUpon>DockersControl.cs</DependentUpon> <DependentUpon>DockersControl.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Controls\DockersTabsControl.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\PasteOptionsControl.cs"> <Compile Include="Controls\PasteOptionsControl.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>

View file

@ -28,54 +28,14 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.tabs = new System.Windows.Forms.TabControl(); this.splitter = new CodeImp.DoomBuilder.Controls.TransparentPanel();
this.tabs = new CodeImp.DoomBuilder.Controls.DockersTabsControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage(); this.tabPage3 = new System.Windows.Forms.TabPage();
this.splitter = new CodeImp.DoomBuilder.Controls.TransparentPanel();
this.tabs.SuspendLayout(); this.tabs.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// tabs
//
this.tabs.Alignment = System.Windows.Forms.TabAlignment.Left;
this.tabs.Controls.Add(this.tabPage1);
this.tabs.Controls.Add(this.tabPage2);
this.tabs.Controls.Add(this.tabPage3);
this.tabs.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tabs.Location = new System.Drawing.Point(0, 0);
this.tabs.Multiline = true;
this.tabs.Name = "tabs";
this.tabs.Padding = new System.Drawing.Point(12, 5);
this.tabs.SelectedIndex = 0;
this.tabs.Size = new System.Drawing.Size(308, 541);
this.tabs.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Location = new System.Drawing.Point(27, 4);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(277, 533);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Undo / Redo";
//
// tabPage2
//
this.tabPage2.Location = new System.Drawing.Point(27, 4);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(277, 533);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Clipboard";
//
// tabPage3
//
this.tabPage3.Location = new System.Drawing.Point(27, 4);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(277, 533);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Prefabs";
//
// splitter // splitter
// //
this.splitter.Cursor = System.Windows.Forms.Cursors.SizeWE; this.splitter.Cursor = System.Windows.Forms.Cursors.SizeWE;
@ -85,6 +45,48 @@
this.splitter.Size = new System.Drawing.Size(4, 541); this.splitter.Size = new System.Drawing.Size(4, 541);
this.splitter.TabIndex = 1; this.splitter.TabIndex = 1;
// //
// tabs
//
this.tabs.Alignment = System.Windows.Forms.TabAlignment.Left;
this.tabs.Controls.Add(this.tabPage1);
this.tabs.Controls.Add(this.tabPage2);
this.tabs.Controls.Add(this.tabPage3);
this.tabs.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tabs.ItemSize = new System.Drawing.Size(96, 28);
this.tabs.Location = new System.Drawing.Point(0, 0);
this.tabs.Multiline = true;
this.tabs.Name = "tabs";
this.tabs.Padding = new System.Drawing.Point(12, 5);
this.tabs.SelectedIndex = 0;
this.tabs.Size = new System.Drawing.Size(308, 541);
this.tabs.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.tabs.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Location = new System.Drawing.Point(32, 4);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(272, 533);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Undo / Redo";
//
// tabPage2
//
this.tabPage2.Location = new System.Drawing.Point(31, 4);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(273, 533);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Clipboard";
//
// tabPage3
//
this.tabPage3.Location = new System.Drawing.Point(31, 4);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(273, 533);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Prefabs";
//
// DockersControl // DockersControl
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -101,7 +103,7 @@
#endregion #endregion
private System.Windows.Forms.TabControl tabs; private DockersTabsControl tabs;
private TransparentPanel splitter; private TransparentPanel splitter;
private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage2;

View file

@ -48,7 +48,6 @@ namespace CodeImp.DoomBuilder.Controls
private bool rightalign; private bool rightalign;
private bool collapsed; private bool collapsed;
private bool autocollapse;
private int expandedwidth; // width when expanded private int expandedwidth; // width when expanded
private int expandedtab; // selected tab index when expanded private int expandedtab; // selected tab index when expanded
@ -58,7 +57,6 @@ namespace CodeImp.DoomBuilder.Controls
#region ================== Properties #region ================== Properties
public bool IsCollpased { get { return collapsed; } } public bool IsCollpased { get { return collapsed; } }
public bool AutoCollpase { get { return autocollapse; } set { autocollapse = value; } }
#endregion #endregion
@ -186,7 +184,6 @@ namespace CodeImp.DoomBuilder.Controls
#region ================== Events #region ================== Events
#endregion #endregion
} }
} }

View file

@ -117,10 +117,10 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="tabs.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="splitter.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="splitter.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="tabs.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View file

@ -0,0 +1,175 @@

#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
using Microsoft.Win32;
using System.Diagnostics;
using CodeImp.DoomBuilder.Actions;
using CodeImp.DoomBuilder.Data;
using CodeImp.DoomBuilder.Config;
using CodeImp.DoomBuilder.Rendering;
using SlimDX.Direct3D9;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Types;
#endregion
namespace CodeImp.DoomBuilder.Controls
{
internal class DockersTabsControl : TabControl
{
#region ================== Constants
#endregion
#region ================== Variables
private Bitmap tabsimage;
#endregion
#region ================== Properties
#endregion
#region ================== Constructor
// Constructor
public DockersTabsControl()
{
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{
this.SetStyle(ControlStyles.SupportsTransparentBackColor, false);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.Opaque, true);
this.UpdateStyles();
}
}
// Disposer
protected override void Dispose(bool disposing)
{
if(tabsimage != null)
{
tabsimage.Dispose();
tabsimage = null;
}
base.Dispose(disposing);
}
#endregion
#region ================== Methods
// This redraws the tabs
protected unsafe void RedrawTabs()
{
// Determine length and width in pixels
int tabslength = this.ItemSize.Width * this.TabPages.Count;
int tabswidth = this.ItemSize.Height;
// Dispose old image
if(tabsimage != null)
{
tabsimage.Dispose();
tabsimage = null;
}
// Create images
tabsimage = new Bitmap(tabswidth, tabslength, PixelFormat.Format32bppArgb);
Bitmap drawimage = new Bitmap(tabslength, tabswidth, PixelFormat.Format32bppArgb);
Graphics g = Graphics.FromImage(drawimage);
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{
// Render the tabs
for(int i = 0; i < this.TabPages.Count; i++)
{
VisualStyleRenderer renderer = new VisualStyleRenderer(VisualStyleElement.Tab.TabItem.Normal);
Rectangle tabrect = this.GetTabRect(i);
renderer.DrawBackground(g, new Rectangle(i * this.ItemSize.Width, 0, this.ItemSize.Width, this.ItemSize.Height));
}
// Rotate the image and copy to tabsimage
BitmapData drawndata = drawimage.LockBits(new Rectangle(0, 0, drawimage.Size.Width, drawimage.Size.Height), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
BitmapData targetdata = tabsimage.LockBits(new Rectangle(0, 0, tabsimage.Size.Width, tabsimage.Size.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
int* dd = (int*)drawndata.Scan0.ToPointer();
int* td = (int*)targetdata.Scan0.ToPointer();
for(int y = 0; y < drawndata.Height; y++)
{
for(int x = 0; x < drawndata.Width; x++)
{
td[x * targetdata.Width + y] = *dd;
dd++;
}
}
drawimage.UnlockBits(drawndata);
tabsimage.UnlockBits(targetdata);
}
// Clean up
g.Dispose();
drawimage.Dispose();
}
#endregion
#region ================== Events
protected override void OnPaint(PaintEventArgs e)
{
Point p;
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{
e.Graphics.Clear(SystemColors.Control);
RedrawTabs();
if(this.Alignment == TabAlignment.Left)
{
p = new Point(0, 0);
}
else
{
int left = this.ClientSize.Width - tabsimage.Size.Width;
if(left < 0) left = 0;
p = new Point(left, 0);
}
e.Graphics.DrawImage(tabsimage, p);
}
else
{
base.OnPaint(e);
}
}
#endregion
}
}

View file

@ -177,6 +177,7 @@ namespace CodeImp.DoomBuilder.Windows
this.statusresetter = new System.Windows.Forms.Timer(this.components); this.statusresetter = new System.Windows.Forms.Timer(this.components);
this.dockersspace = new System.Windows.Forms.Panel(); this.dockersspace = new System.Windows.Forms.Panel();
this.dockerspanel = new CodeImp.DoomBuilder.Controls.DockersControl(); this.dockerspanel = new CodeImp.DoomBuilder.Controls.DockersControl();
this.dockerscollapser = new System.Windows.Forms.Timer(this.components);
toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
@ -201,13 +202,13 @@ namespace CodeImp.DoomBuilder.Windows
// //
toolStripMenuItem1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); toolStripMenuItem1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
toolStripMenuItem1.Name = "toolStripMenuItem1"; toolStripMenuItem1.Name = "toolStripMenuItem1";
toolStripMenuItem1.Size = new System.Drawing.Size(199, 6); toolStripMenuItem1.Size = new System.Drawing.Size(198, 6);
// //
// toolStripMenuItem3 // toolStripMenuItem3
// //
toolStripMenuItem3.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); toolStripMenuItem3.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
toolStripMenuItem3.Name = "toolStripMenuItem3"; toolStripMenuItem3.Name = "toolStripMenuItem3";
toolStripMenuItem3.Size = new System.Drawing.Size(199, 6); toolStripMenuItem3.Size = new System.Drawing.Size(198, 6);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
@ -237,7 +238,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
toolStripSeparator11.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); toolStripSeparator11.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
toolStripSeparator11.Name = "toolStripSeparator11"; toolStripSeparator11.Name = "toolStripSeparator11";
toolStripSeparator11.Size = new System.Drawing.Size(160, 6); toolStripSeparator11.Size = new System.Drawing.Size(162, 6);
// //
// toolstripSeperator1 // toolstripSeperator1
// //
@ -249,7 +250,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
toolstripSeperator6.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); toolstripSeperator6.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
toolstripSeperator6.Name = "toolstripSeperator6"; toolstripSeperator6.Name = "toolstripSeperator6";
toolstripSeperator6.Size = new System.Drawing.Size(160, 6); toolstripSeperator6.Size = new System.Drawing.Size(162, 6);
// //
// toolStripSeparator7 // toolStripSeparator7
// //
@ -272,12 +273,12 @@ namespace CodeImp.DoomBuilder.Windows
// toolStripMenuItem4 // toolStripMenuItem4
// //
toolStripMenuItem4.Name = "toolStripMenuItem4"; toolStripMenuItem4.Name = "toolStripMenuItem4";
toolStripMenuItem4.Size = new System.Drawing.Size(150, 6); toolStripMenuItem4.Size = new System.Drawing.Size(161, 6);
// //
// toolStripSeparator2 // toolStripSeparator2
// //
toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Name = "toolStripSeparator2";
toolStripSeparator2.Size = new System.Drawing.Size(153, 6); toolStripSeparator2.Size = new System.Drawing.Size(164, 6);
// //
// buttoneditmodesseperator // buttoneditmodesseperator
// //
@ -323,7 +324,7 @@ namespace CodeImp.DoomBuilder.Windows
toolStripMenuItem3, toolStripMenuItem3,
this.itemexit}); this.itemexit});
this.menufile.Name = "menufile"; this.menufile.Name = "menufile";
this.menufile.Size = new System.Drawing.Size(37, 20); this.menufile.Size = new System.Drawing.Size(35, 20);
this.menufile.Text = "File"; this.menufile.Text = "File";
// //
// itemnewmap // itemnewmap
@ -331,7 +332,7 @@ namespace CodeImp.DoomBuilder.Windows
this.itemnewmap.Image = global::CodeImp.DoomBuilder.Properties.Resources.File; this.itemnewmap.Image = global::CodeImp.DoomBuilder.Properties.Resources.File;
this.itemnewmap.Name = "itemnewmap"; this.itemnewmap.Name = "itemnewmap";
this.itemnewmap.ShortcutKeyDisplayString = ""; this.itemnewmap.ShortcutKeyDisplayString = "";
this.itemnewmap.Size = new System.Drawing.Size(202, 22); this.itemnewmap.Size = new System.Drawing.Size(201, 22);
this.itemnewmap.Tag = "builder_newmap"; this.itemnewmap.Tag = "builder_newmap";
this.itemnewmap.Text = "New Map"; this.itemnewmap.Text = "New Map";
this.itemnewmap.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemnewmap.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -340,7 +341,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemopenmap.Image = global::CodeImp.DoomBuilder.Properties.Resources.OpenMap; this.itemopenmap.Image = global::CodeImp.DoomBuilder.Properties.Resources.OpenMap;
this.itemopenmap.Name = "itemopenmap"; this.itemopenmap.Name = "itemopenmap";
this.itemopenmap.Size = new System.Drawing.Size(202, 22); this.itemopenmap.Size = new System.Drawing.Size(201, 22);
this.itemopenmap.Tag = "builder_openmap"; this.itemopenmap.Tag = "builder_openmap";
this.itemopenmap.Text = "Open Map..."; this.itemopenmap.Text = "Open Map...";
this.itemopenmap.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemopenmap.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -348,7 +349,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemclosemap // itemclosemap
// //
this.itemclosemap.Name = "itemclosemap"; this.itemclosemap.Name = "itemclosemap";
this.itemclosemap.Size = new System.Drawing.Size(202, 22); this.itemclosemap.Size = new System.Drawing.Size(201, 22);
this.itemclosemap.Tag = "builder_closemap"; this.itemclosemap.Tag = "builder_closemap";
this.itemclosemap.Text = "Close Map"; this.itemclosemap.Text = "Close Map";
this.itemclosemap.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemclosemap.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -357,7 +358,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemsavemap.Image = global::CodeImp.DoomBuilder.Properties.Resources.SaveMap; this.itemsavemap.Image = global::CodeImp.DoomBuilder.Properties.Resources.SaveMap;
this.itemsavemap.Name = "itemsavemap"; this.itemsavemap.Name = "itemsavemap";
this.itemsavemap.Size = new System.Drawing.Size(202, 22); this.itemsavemap.Size = new System.Drawing.Size(201, 22);
this.itemsavemap.Tag = "builder_savemap"; this.itemsavemap.Tag = "builder_savemap";
this.itemsavemap.Text = "Save Map"; this.itemsavemap.Text = "Save Map";
this.itemsavemap.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemsavemap.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -365,7 +366,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemsavemapas // itemsavemapas
// //
this.itemsavemapas.Name = "itemsavemapas"; this.itemsavemapas.Name = "itemsavemapas";
this.itemsavemapas.Size = new System.Drawing.Size(202, 22); this.itemsavemapas.Size = new System.Drawing.Size(201, 22);
this.itemsavemapas.Tag = "builder_savemapas"; this.itemsavemapas.Tag = "builder_savemapas";
this.itemsavemapas.Text = "Save Map As..."; this.itemsavemapas.Text = "Save Map As...";
this.itemsavemapas.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemsavemapas.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -373,7 +374,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemsavemapinto // itemsavemapinto
// //
this.itemsavemapinto.Name = "itemsavemapinto"; this.itemsavemapinto.Name = "itemsavemapinto";
this.itemsavemapinto.Size = new System.Drawing.Size(202, 22); this.itemsavemapinto.Size = new System.Drawing.Size(201, 22);
this.itemsavemapinto.Tag = "builder_savemapinto"; this.itemsavemapinto.Tag = "builder_savemapinto";
this.itemsavemapinto.Text = "Save Map Into..."; this.itemsavemapinto.Text = "Save Map Into...";
this.itemsavemapinto.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemsavemapinto.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -382,19 +383,19 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem5.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem5.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem5.Name = "toolStripMenuItem5"; this.toolStripMenuItem5.Name = "toolStripMenuItem5";
this.toolStripMenuItem5.Size = new System.Drawing.Size(199, 6); this.toolStripMenuItem5.Size = new System.Drawing.Size(198, 6);
// //
// itemnorecent // itemnorecent
// //
this.itemnorecent.Enabled = false; this.itemnorecent.Enabled = false;
this.itemnorecent.Name = "itemnorecent"; this.itemnorecent.Name = "itemnorecent";
this.itemnorecent.Size = new System.Drawing.Size(202, 22); this.itemnorecent.Size = new System.Drawing.Size(201, 22);
this.itemnorecent.Text = "No recently opened files"; this.itemnorecent.Text = "No recently opened files";
// //
// itemexit // itemexit
// //
this.itemexit.Name = "itemexit"; this.itemexit.Name = "itemexit";
this.itemexit.Size = new System.Drawing.Size(202, 22); this.itemexit.Size = new System.Drawing.Size(201, 22);
this.itemexit.Text = "Exit"; this.itemexit.Text = "Exit";
this.itemexit.Click += new System.EventHandler(this.itemexit_Click); this.itemexit.Click += new System.EventHandler(this.itemexit_Click);
// //
@ -418,14 +419,14 @@ namespace CodeImp.DoomBuilder.Windows
toolStripSeparator11, toolStripSeparator11,
this.itemmapoptions}); this.itemmapoptions});
this.menuedit.Name = "menuedit"; this.menuedit.Name = "menuedit";
this.menuedit.Size = new System.Drawing.Size(39, 20); this.menuedit.Size = new System.Drawing.Size(37, 20);
this.menuedit.Text = "Edit"; this.menuedit.Text = "Edit";
// //
// itemundo // itemundo
// //
this.itemundo.Image = global::CodeImp.DoomBuilder.Properties.Resources.Undo; this.itemundo.Image = global::CodeImp.DoomBuilder.Properties.Resources.Undo;
this.itemundo.Name = "itemundo"; this.itemundo.Name = "itemundo";
this.itemundo.Size = new System.Drawing.Size(163, 22); this.itemundo.Size = new System.Drawing.Size(165, 22);
this.itemundo.Tag = "builder_undo"; this.itemundo.Tag = "builder_undo";
this.itemundo.Text = "Undo"; this.itemundo.Text = "Undo";
this.itemundo.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemundo.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -434,7 +435,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemredo.Image = global::CodeImp.DoomBuilder.Properties.Resources.Redo; this.itemredo.Image = global::CodeImp.DoomBuilder.Properties.Resources.Redo;
this.itemredo.Name = "itemredo"; this.itemredo.Name = "itemredo";
this.itemredo.Size = new System.Drawing.Size(163, 22); this.itemredo.Size = new System.Drawing.Size(165, 22);
this.itemredo.Tag = "builder_redo"; this.itemredo.Tag = "builder_redo";
this.itemredo.Text = "Redo"; this.itemredo.Text = "Redo";
this.itemredo.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemredo.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -443,13 +444,13 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem7.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem7.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem7.Name = "toolStripMenuItem7"; this.toolStripMenuItem7.Name = "toolStripMenuItem7";
this.toolStripMenuItem7.Size = new System.Drawing.Size(160, 6); this.toolStripMenuItem7.Size = new System.Drawing.Size(162, 6);
// //
// itemcut // itemcut
// //
this.itemcut.Image = global::CodeImp.DoomBuilder.Properties.Resources.Cut; this.itemcut.Image = global::CodeImp.DoomBuilder.Properties.Resources.Cut;
this.itemcut.Name = "itemcut"; this.itemcut.Name = "itemcut";
this.itemcut.Size = new System.Drawing.Size(163, 22); this.itemcut.Size = new System.Drawing.Size(165, 22);
this.itemcut.Tag = "builder_cutselection"; this.itemcut.Tag = "builder_cutselection";
this.itemcut.Text = "Cut"; this.itemcut.Text = "Cut";
this.itemcut.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemcut.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -458,7 +459,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemcopy.Image = global::CodeImp.DoomBuilder.Properties.Resources.Copy; this.itemcopy.Image = global::CodeImp.DoomBuilder.Properties.Resources.Copy;
this.itemcopy.Name = "itemcopy"; this.itemcopy.Name = "itemcopy";
this.itemcopy.Size = new System.Drawing.Size(163, 22); this.itemcopy.Size = new System.Drawing.Size(165, 22);
this.itemcopy.Tag = "builder_copyselection"; this.itemcopy.Tag = "builder_copyselection";
this.itemcopy.Text = "Copy"; this.itemcopy.Text = "Copy";
this.itemcopy.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemcopy.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -467,7 +468,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itempaste.Image = global::CodeImp.DoomBuilder.Properties.Resources.Paste; this.itempaste.Image = global::CodeImp.DoomBuilder.Properties.Resources.Paste;
this.itempaste.Name = "itempaste"; this.itempaste.Name = "itempaste";
this.itempaste.Size = new System.Drawing.Size(163, 22); this.itempaste.Size = new System.Drawing.Size(165, 22);
this.itempaste.Tag = "builder_pasteselection"; this.itempaste.Tag = "builder_pasteselection";
this.itempaste.Text = "Paste"; this.itempaste.Text = "Paste";
this.itempaste.Click += new System.EventHandler(this.InvokeTaggedAction); this.itempaste.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -476,7 +477,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itempastespecial.Image = global::CodeImp.DoomBuilder.Properties.Resources.PasteSpecial; this.itempastespecial.Image = global::CodeImp.DoomBuilder.Properties.Resources.PasteSpecial;
this.itempastespecial.Name = "itempastespecial"; this.itempastespecial.Name = "itempastespecial";
this.itempastespecial.Size = new System.Drawing.Size(163, 22); this.itempastespecial.Size = new System.Drawing.Size(165, 22);
this.itempastespecial.Tag = "builder_pasteselectionspecial"; this.itempastespecial.Tag = "builder_pasteselectionspecial";
this.itempastespecial.Text = "Paste Special..."; this.itempastespecial.Text = "Paste Special...";
this.itempastespecial.Click += new System.EventHandler(this.InvokeTaggedAction); this.itempastespecial.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -487,7 +488,7 @@ namespace CodeImp.DoomBuilder.Windows
this.itemsnaptogrid.CheckState = System.Windows.Forms.CheckState.Checked; this.itemsnaptogrid.CheckState = System.Windows.Forms.CheckState.Checked;
this.itemsnaptogrid.Image = global::CodeImp.DoomBuilder.Properties.Resources.Grid4; this.itemsnaptogrid.Image = global::CodeImp.DoomBuilder.Properties.Resources.Grid4;
this.itemsnaptogrid.Name = "itemsnaptogrid"; this.itemsnaptogrid.Name = "itemsnaptogrid";
this.itemsnaptogrid.Size = new System.Drawing.Size(163, 22); this.itemsnaptogrid.Size = new System.Drawing.Size(165, 22);
this.itemsnaptogrid.Tag = "builder_togglesnap"; this.itemsnaptogrid.Tag = "builder_togglesnap";
this.itemsnaptogrid.Text = "Snap to Grid"; this.itemsnaptogrid.Text = "Snap to Grid";
this.itemsnaptogrid.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemsnaptogrid.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -498,7 +499,7 @@ namespace CodeImp.DoomBuilder.Windows
this.itemautomerge.CheckState = System.Windows.Forms.CheckState.Checked; this.itemautomerge.CheckState = System.Windows.Forms.CheckState.Checked;
this.itemautomerge.Image = global::CodeImp.DoomBuilder.Properties.Resources.mergegeometry2; this.itemautomerge.Image = global::CodeImp.DoomBuilder.Properties.Resources.mergegeometry2;
this.itemautomerge.Name = "itemautomerge"; this.itemautomerge.Name = "itemautomerge";
this.itemautomerge.Size = new System.Drawing.Size(163, 22); this.itemautomerge.Size = new System.Drawing.Size(165, 22);
this.itemautomerge.Tag = "builder_toggleautomerge"; this.itemautomerge.Tag = "builder_toggleautomerge";
this.itemautomerge.Text = "Merge Geometry"; this.itemautomerge.Text = "Merge Geometry";
this.itemautomerge.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemautomerge.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -507,12 +508,12 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem6.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem6.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem6.Name = "toolStripMenuItem6"; this.toolStripMenuItem6.Name = "toolStripMenuItem6";
this.toolStripMenuItem6.Size = new System.Drawing.Size(160, 6); this.toolStripMenuItem6.Size = new System.Drawing.Size(162, 6);
// //
// itemgridinc // itemgridinc
// //
this.itemgridinc.Name = "itemgridinc"; this.itemgridinc.Name = "itemgridinc";
this.itemgridinc.Size = new System.Drawing.Size(163, 22); this.itemgridinc.Size = new System.Drawing.Size(165, 22);
this.itemgridinc.Tag = "builder_griddec"; this.itemgridinc.Tag = "builder_griddec";
this.itemgridinc.Text = "Increase Grid"; this.itemgridinc.Text = "Increase Grid";
this.itemgridinc.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemgridinc.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -520,7 +521,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgriddec // itemgriddec
// //
this.itemgriddec.Name = "itemgriddec"; this.itemgriddec.Name = "itemgriddec";
this.itemgriddec.Size = new System.Drawing.Size(163, 22); this.itemgriddec.Size = new System.Drawing.Size(165, 22);
this.itemgriddec.Tag = "builder_gridinc"; this.itemgriddec.Tag = "builder_gridinc";
this.itemgriddec.Text = "Decrease Grid"; this.itemgriddec.Text = "Decrease Grid";
this.itemgriddec.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemgriddec.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -529,7 +530,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemgridsetup.Image = global::CodeImp.DoomBuilder.Properties.Resources.Grid2; this.itemgridsetup.Image = global::CodeImp.DoomBuilder.Properties.Resources.Grid2;
this.itemgridsetup.Name = "itemgridsetup"; this.itemgridsetup.Name = "itemgridsetup";
this.itemgridsetup.Size = new System.Drawing.Size(163, 22); this.itemgridsetup.Size = new System.Drawing.Size(165, 22);
this.itemgridsetup.Tag = "builder_gridsetup"; this.itemgridsetup.Tag = "builder_gridsetup";
this.itemgridsetup.Text = "Grid Setup..."; this.itemgridsetup.Text = "Grid Setup...";
this.itemgridsetup.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemgridsetup.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -538,7 +539,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemmapoptions.Image = global::CodeImp.DoomBuilder.Properties.Resources.Properties; this.itemmapoptions.Image = global::CodeImp.DoomBuilder.Properties.Resources.Properties;
this.itemmapoptions.Name = "itemmapoptions"; this.itemmapoptions.Name = "itemmapoptions";
this.itemmapoptions.Size = new System.Drawing.Size(163, 22); this.itemmapoptions.Size = new System.Drawing.Size(165, 22);
this.itemmapoptions.Tag = "builder_mapoptions"; this.itemmapoptions.Tag = "builder_mapoptions";
this.itemmapoptions.Text = "Map Options...."; this.itemmapoptions.Text = "Map Options....";
this.itemmapoptions.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemmapoptions.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -559,14 +560,14 @@ namespace CodeImp.DoomBuilder.Windows
this.toolStripMenuItem10, this.toolStripMenuItem10,
this.itemscripteditor}); this.itemscripteditor});
this.menuview.Name = "menuview"; this.menuview.Name = "menuview";
this.menuview.Size = new System.Drawing.Size(44, 20); this.menuview.Size = new System.Drawing.Size(41, 20);
this.menuview.Text = "View"; this.menuview.Text = "View";
// //
// itemthingsfilter // itemthingsfilter
// //
this.itemthingsfilter.Image = global::CodeImp.DoomBuilder.Properties.Resources.Filter; this.itemthingsfilter.Image = global::CodeImp.DoomBuilder.Properties.Resources.Filter;
this.itemthingsfilter.Name = "itemthingsfilter"; this.itemthingsfilter.Name = "itemthingsfilter";
this.itemthingsfilter.Size = new System.Drawing.Size(209, 22); this.itemthingsfilter.Size = new System.Drawing.Size(210, 22);
this.itemthingsfilter.Tag = "builder_thingsfilterssetup"; this.itemthingsfilter.Tag = "builder_thingsfilterssetup";
this.itemthingsfilter.Text = "Configure Things Filters..."; this.itemthingsfilter.Text = "Configure Things Filters...";
this.itemthingsfilter.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemthingsfilter.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -575,13 +576,13 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem9.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem9.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem9.Name = "toolStripMenuItem9"; this.toolStripMenuItem9.Name = "toolStripMenuItem9";
this.toolStripMenuItem9.Size = new System.Drawing.Size(206, 6); this.toolStripMenuItem9.Size = new System.Drawing.Size(207, 6);
// //
// itemviewnormal // itemviewnormal
// //
this.itemviewnormal.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewNormal; this.itemviewnormal.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewNormal;
this.itemviewnormal.Name = "itemviewnormal"; this.itemviewnormal.Name = "itemviewnormal";
this.itemviewnormal.Size = new System.Drawing.Size(209, 22); this.itemviewnormal.Size = new System.Drawing.Size(210, 22);
this.itemviewnormal.Tag = "builder_viewmodenormal"; this.itemviewnormal.Tag = "builder_viewmodenormal";
this.itemviewnormal.Text = "Wireframe"; this.itemviewnormal.Text = "Wireframe";
this.itemviewnormal.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemviewnormal.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -590,7 +591,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemviewbrightness.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewBrightness; this.itemviewbrightness.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewBrightness;
this.itemviewbrightness.Name = "itemviewbrightness"; this.itemviewbrightness.Name = "itemviewbrightness";
this.itemviewbrightness.Size = new System.Drawing.Size(209, 22); this.itemviewbrightness.Size = new System.Drawing.Size(210, 22);
this.itemviewbrightness.Tag = "builder_viewmodebrightness"; this.itemviewbrightness.Tag = "builder_viewmodebrightness";
this.itemviewbrightness.Text = "Brightness Levels"; this.itemviewbrightness.Text = "Brightness Levels";
this.itemviewbrightness.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemviewbrightness.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -599,7 +600,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemviewfloors.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewTextureFloor; this.itemviewfloors.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewTextureFloor;
this.itemviewfloors.Name = "itemviewfloors"; this.itemviewfloors.Name = "itemviewfloors";
this.itemviewfloors.Size = new System.Drawing.Size(209, 22); this.itemviewfloors.Size = new System.Drawing.Size(210, 22);
this.itemviewfloors.Tag = "builder_viewmodefloors"; this.itemviewfloors.Tag = "builder_viewmodefloors";
this.itemviewfloors.Text = "Floor Textures"; this.itemviewfloors.Text = "Floor Textures";
this.itemviewfloors.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemviewfloors.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -608,7 +609,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemviewceilings.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewTextureCeiling; this.itemviewceilings.Image = global::CodeImp.DoomBuilder.Properties.Resources.ViewTextureCeiling;
this.itemviewceilings.Name = "itemviewceilings"; this.itemviewceilings.Name = "itemviewceilings";
this.itemviewceilings.Size = new System.Drawing.Size(209, 22); this.itemviewceilings.Size = new System.Drawing.Size(210, 22);
this.itemviewceilings.Tag = "builder_viewmodeceilings"; this.itemviewceilings.Tag = "builder_viewmodeceilings";
this.itemviewceilings.Text = "Ceiling Textures"; this.itemviewceilings.Text = "Ceiling Textures";
this.itemviewceilings.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemviewceilings.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -616,7 +617,7 @@ namespace CodeImp.DoomBuilder.Windows
// toolStripMenuItem2 // toolStripMenuItem2
// //
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(206, 6); this.toolStripMenuItem2.Size = new System.Drawing.Size(207, 6);
// //
// menuzoom // menuzoom
// //
@ -629,13 +630,13 @@ namespace CodeImp.DoomBuilder.Windows
this.item2zoom5}); this.item2zoom5});
this.menuzoom.Image = global::CodeImp.DoomBuilder.Properties.Resources.Zoom; this.menuzoom.Image = global::CodeImp.DoomBuilder.Properties.Resources.Zoom;
this.menuzoom.Name = "menuzoom"; this.menuzoom.Name = "menuzoom";
this.menuzoom.Size = new System.Drawing.Size(209, 22); this.menuzoom.Size = new System.Drawing.Size(210, 22);
this.menuzoom.Text = "Zoom"; this.menuzoom.Text = "Zoom";
// //
// item2zoom200 // item2zoom200
// //
this.item2zoom200.Name = "item2zoom200"; this.item2zoom200.Name = "item2zoom200";
this.item2zoom200.Size = new System.Drawing.Size(102, 22); this.item2zoom200.Size = new System.Drawing.Size(114, 22);
this.item2zoom200.Tag = "200"; this.item2zoom200.Tag = "200";
this.item2zoom200.Text = "200%"; this.item2zoom200.Text = "200%";
this.item2zoom200.Click += new System.EventHandler(this.itemzoomto_Click); this.item2zoom200.Click += new System.EventHandler(this.itemzoomto_Click);
@ -643,7 +644,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom100 // item2zoom100
// //
this.item2zoom100.Name = "item2zoom100"; this.item2zoom100.Name = "item2zoom100";
this.item2zoom100.Size = new System.Drawing.Size(102, 22); this.item2zoom100.Size = new System.Drawing.Size(114, 22);
this.item2zoom100.Tag = "100"; this.item2zoom100.Tag = "100";
this.item2zoom100.Text = "100%"; this.item2zoom100.Text = "100%";
this.item2zoom100.Click += new System.EventHandler(this.itemzoomto_Click); this.item2zoom100.Click += new System.EventHandler(this.itemzoomto_Click);
@ -651,7 +652,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom50 // item2zoom50
// //
this.item2zoom50.Name = "item2zoom50"; this.item2zoom50.Name = "item2zoom50";
this.item2zoom50.Size = new System.Drawing.Size(102, 22); this.item2zoom50.Size = new System.Drawing.Size(114, 22);
this.item2zoom50.Tag = "50"; this.item2zoom50.Tag = "50";
this.item2zoom50.Text = "50%"; this.item2zoom50.Text = "50%";
this.item2zoom50.Click += new System.EventHandler(this.itemzoomto_Click); this.item2zoom50.Click += new System.EventHandler(this.itemzoomto_Click);
@ -659,7 +660,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom25 // item2zoom25
// //
this.item2zoom25.Name = "item2zoom25"; this.item2zoom25.Name = "item2zoom25";
this.item2zoom25.Size = new System.Drawing.Size(102, 22); this.item2zoom25.Size = new System.Drawing.Size(114, 22);
this.item2zoom25.Tag = "25"; this.item2zoom25.Tag = "25";
this.item2zoom25.Text = "25%"; this.item2zoom25.Text = "25%";
this.item2zoom25.Click += new System.EventHandler(this.itemzoomto_Click); this.item2zoom25.Click += new System.EventHandler(this.itemzoomto_Click);
@ -667,7 +668,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom10 // item2zoom10
// //
this.item2zoom10.Name = "item2zoom10"; this.item2zoom10.Name = "item2zoom10";
this.item2zoom10.Size = new System.Drawing.Size(102, 22); this.item2zoom10.Size = new System.Drawing.Size(114, 22);
this.item2zoom10.Tag = "10"; this.item2zoom10.Tag = "10";
this.item2zoom10.Text = "10%"; this.item2zoom10.Text = "10%";
this.item2zoom10.Click += new System.EventHandler(this.itemzoomto_Click); this.item2zoom10.Click += new System.EventHandler(this.itemzoomto_Click);
@ -675,7 +676,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom5 // item2zoom5
// //
this.item2zoom5.Name = "item2zoom5"; this.item2zoom5.Name = "item2zoom5";
this.item2zoom5.Size = new System.Drawing.Size(102, 22); this.item2zoom5.Size = new System.Drawing.Size(114, 22);
this.item2zoom5.Tag = "5"; this.item2zoom5.Tag = "5";
this.item2zoom5.Text = "5%"; this.item2zoom5.Text = "5%";
this.item2zoom5.Click += new System.EventHandler(this.itemzoomto_Click); this.item2zoom5.Click += new System.EventHandler(this.itemzoomto_Click);
@ -683,7 +684,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemfittoscreen // itemfittoscreen
// //
this.itemfittoscreen.Name = "itemfittoscreen"; this.itemfittoscreen.Name = "itemfittoscreen";
this.itemfittoscreen.Size = new System.Drawing.Size(209, 22); this.itemfittoscreen.Size = new System.Drawing.Size(210, 22);
this.itemfittoscreen.Tag = "builder_centerinscreen"; this.itemfittoscreen.Tag = "builder_centerinscreen";
this.itemfittoscreen.Text = "Fit to screen"; this.itemfittoscreen.Text = "Fit to screen";
this.itemfittoscreen.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemfittoscreen.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -691,7 +692,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemtoggleinfo // itemtoggleinfo
// //
this.itemtoggleinfo.Name = "itemtoggleinfo"; this.itemtoggleinfo.Name = "itemtoggleinfo";
this.itemtoggleinfo.Size = new System.Drawing.Size(209, 22); this.itemtoggleinfo.Size = new System.Drawing.Size(210, 22);
this.itemtoggleinfo.Tag = "builder_toggleinfopanel"; this.itemtoggleinfo.Tag = "builder_toggleinfopanel";
this.itemtoggleinfo.Text = "Expanded Info Panel"; this.itemtoggleinfo.Text = "Expanded Info Panel";
this.itemtoggleinfo.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemtoggleinfo.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -700,13 +701,13 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem10.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem10.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem10.Name = "toolStripMenuItem10"; this.toolStripMenuItem10.Name = "toolStripMenuItem10";
this.toolStripMenuItem10.Size = new System.Drawing.Size(206, 6); this.toolStripMenuItem10.Size = new System.Drawing.Size(207, 6);
// //
// itemscripteditor // itemscripteditor
// //
this.itemscripteditor.Image = global::CodeImp.DoomBuilder.Properties.Resources.Script2; this.itemscripteditor.Image = global::CodeImp.DoomBuilder.Properties.Resources.Script2;
this.itemscripteditor.Name = "itemscripteditor"; this.itemscripteditor.Name = "itemscripteditor";
this.itemscripteditor.Size = new System.Drawing.Size(209, 22); this.itemscripteditor.Size = new System.Drawing.Size(210, 22);
this.itemscripteditor.Tag = "builder_openscripteditor"; this.itemscripteditor.Tag = "builder_openscripteditor";
this.itemscripteditor.Text = "Script Editor..."; this.itemscripteditor.Text = "Script Editor...";
this.itemscripteditor.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemscripteditor.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -714,7 +715,7 @@ namespace CodeImp.DoomBuilder.Windows
// menumode // menumode
// //
this.menumode.Name = "menumode"; this.menumode.Name = "menumode";
this.menumode.Size = new System.Drawing.Size(50, 20); this.menumode.Size = new System.Drawing.Size(45, 20);
this.menumode.Text = "Mode"; this.menumode.Text = "Mode";
// //
// menuprefabs // menuprefabs
@ -725,13 +726,13 @@ namespace CodeImp.DoomBuilder.Windows
this.toolStripMenuItem12, this.toolStripMenuItem12,
this.itemcreateprefab}); this.itemcreateprefab});
this.menuprefabs.Name = "menuprefabs"; this.menuprefabs.Name = "menuprefabs";
this.menuprefabs.Size = new System.Drawing.Size(58, 20); this.menuprefabs.Size = new System.Drawing.Size(56, 20);
this.menuprefabs.Text = "Prefabs"; this.menuprefabs.Text = "Prefabs";
// //
// iteminsertprefabfile // iteminsertprefabfile
// //
this.iteminsertprefabfile.Name = "iteminsertprefabfile"; this.iteminsertprefabfile.Name = "iteminsertprefabfile";
this.iteminsertprefabfile.Size = new System.Drawing.Size(199, 22); this.iteminsertprefabfile.Size = new System.Drawing.Size(205, 22);
this.iteminsertprefabfile.Tag = "builder_insertprefabfile"; this.iteminsertprefabfile.Tag = "builder_insertprefabfile";
this.iteminsertprefabfile.Text = "Insert Prefab from File..."; this.iteminsertprefabfile.Text = "Insert Prefab from File...";
this.iteminsertprefabfile.Click += new System.EventHandler(this.InvokeTaggedAction); this.iteminsertprefabfile.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -739,7 +740,7 @@ namespace CodeImp.DoomBuilder.Windows
// iteminsertpreviousprefab // iteminsertpreviousprefab
// //
this.iteminsertpreviousprefab.Name = "iteminsertpreviousprefab"; this.iteminsertpreviousprefab.Name = "iteminsertpreviousprefab";
this.iteminsertpreviousprefab.Size = new System.Drawing.Size(199, 22); this.iteminsertpreviousprefab.Size = new System.Drawing.Size(205, 22);
this.iteminsertpreviousprefab.Tag = "builder_insertpreviousprefab"; this.iteminsertpreviousprefab.Tag = "builder_insertpreviousprefab";
this.iteminsertpreviousprefab.Text = "Insert Previous Prefab"; this.iteminsertpreviousprefab.Text = "Insert Previous Prefab";
this.iteminsertpreviousprefab.Click += new System.EventHandler(this.InvokeTaggedAction); this.iteminsertpreviousprefab.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -748,12 +749,12 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem12.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem12.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem12.Name = "toolStripMenuItem12"; this.toolStripMenuItem12.Name = "toolStripMenuItem12";
this.toolStripMenuItem12.Size = new System.Drawing.Size(196, 6); this.toolStripMenuItem12.Size = new System.Drawing.Size(202, 6);
// //
// itemcreateprefab // itemcreateprefab
// //
this.itemcreateprefab.Name = "itemcreateprefab"; this.itemcreateprefab.Name = "itemcreateprefab";
this.itemcreateprefab.Size = new System.Drawing.Size(199, 22); this.itemcreateprefab.Size = new System.Drawing.Size(205, 22);
this.itemcreateprefab.Tag = "builder_createprefab"; this.itemcreateprefab.Tag = "builder_createprefab";
this.itemcreateprefab.Text = "Create From Selection..."; this.itemcreateprefab.Text = "Create From Selection...";
this.itemcreateprefab.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemcreateprefab.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -769,13 +770,13 @@ namespace CodeImp.DoomBuilder.Windows
this.toolStripMenuItem11, this.toolStripMenuItem11,
this.itemtestmap}); this.itemtestmap});
this.menutools.Name = "menutools"; this.menutools.Name = "menutools";
this.menutools.Size = new System.Drawing.Size(48, 20); this.menutools.Size = new System.Drawing.Size(44, 20);
this.menutools.Text = "Tools"; this.menutools.Text = "Tools";
// //
// itemreloadresources // itemreloadresources
// //
this.itemreloadresources.Name = "itemreloadresources"; this.itemreloadresources.Name = "itemreloadresources";
this.itemreloadresources.Size = new System.Drawing.Size(196, 22); this.itemreloadresources.Size = new System.Drawing.Size(197, 22);
this.itemreloadresources.Tag = "builder_reloadresources"; this.itemreloadresources.Tag = "builder_reloadresources";
this.itemreloadresources.Text = "Reload Resources"; this.itemreloadresources.Text = "Reload Resources";
this.itemreloadresources.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemreloadresources.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -784,7 +785,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemshowerrors.Image = global::CodeImp.DoomBuilder.Properties.Resources.Warning; this.itemshowerrors.Image = global::CodeImp.DoomBuilder.Properties.Resources.Warning;
this.itemshowerrors.Name = "itemshowerrors"; this.itemshowerrors.Name = "itemshowerrors";
this.itemshowerrors.Size = new System.Drawing.Size(196, 22); this.itemshowerrors.Size = new System.Drawing.Size(197, 22);
this.itemshowerrors.Tag = "builder_showerrors"; this.itemshowerrors.Tag = "builder_showerrors";
this.itemshowerrors.Text = "Errors and Warnings..."; this.itemshowerrors.Text = "Errors and Warnings...";
this.itemshowerrors.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemshowerrors.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -793,12 +794,12 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem8.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem8.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem8.Name = "toolStripMenuItem8"; this.toolStripMenuItem8.Name = "toolStripMenuItem8";
this.toolStripMenuItem8.Size = new System.Drawing.Size(193, 6); this.toolStripMenuItem8.Size = new System.Drawing.Size(194, 6);
// //
// configurationToolStripMenuItem // configurationToolStripMenuItem
// //
this.configurationToolStripMenuItem.Name = "configurationToolStripMenuItem"; this.configurationToolStripMenuItem.Name = "configurationToolStripMenuItem";
this.configurationToolStripMenuItem.Size = new System.Drawing.Size(196, 22); this.configurationToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
this.configurationToolStripMenuItem.Tag = "builder_configuration"; this.configurationToolStripMenuItem.Tag = "builder_configuration";
this.configurationToolStripMenuItem.Text = "Game Configurations..."; this.configurationToolStripMenuItem.Text = "Game Configurations...";
this.configurationToolStripMenuItem.Click += new System.EventHandler(this.InvokeTaggedAction); this.configurationToolStripMenuItem.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -806,7 +807,7 @@ namespace CodeImp.DoomBuilder.Windows
// preferencesToolStripMenuItem // preferencesToolStripMenuItem
// //
this.preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem"; this.preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem";
this.preferencesToolStripMenuItem.Size = new System.Drawing.Size(196, 22); this.preferencesToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
this.preferencesToolStripMenuItem.Tag = "builder_preferences"; this.preferencesToolStripMenuItem.Tag = "builder_preferences";
this.preferencesToolStripMenuItem.Text = "Preferences..."; this.preferencesToolStripMenuItem.Text = "Preferences...";
this.preferencesToolStripMenuItem.Click += new System.EventHandler(this.InvokeTaggedAction); this.preferencesToolStripMenuItem.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -815,13 +816,13 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem11.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem11.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem11.Name = "toolStripMenuItem11"; this.toolStripMenuItem11.Name = "toolStripMenuItem11";
this.toolStripMenuItem11.Size = new System.Drawing.Size(193, 6); this.toolStripMenuItem11.Size = new System.Drawing.Size(194, 6);
// //
// itemtestmap // itemtestmap
// //
this.itemtestmap.Image = global::CodeImp.DoomBuilder.Properties.Resources.Test; this.itemtestmap.Image = global::CodeImp.DoomBuilder.Properties.Resources.Test;
this.itemtestmap.Name = "itemtestmap"; this.itemtestmap.Name = "itemtestmap";
this.itemtestmap.Size = new System.Drawing.Size(196, 22); this.itemtestmap.Size = new System.Drawing.Size(197, 22);
this.itemtestmap.Tag = "builder_testmap"; this.itemtestmap.Tag = "builder_testmap";
this.itemtestmap.Text = "Test Map"; this.itemtestmap.Text = "Test Map";
this.itemtestmap.Click += new System.EventHandler(this.InvokeTaggedAction); this.itemtestmap.Click += new System.EventHandler(this.InvokeTaggedAction);
@ -834,14 +835,14 @@ namespace CodeImp.DoomBuilder.Windows
this.toolStripMenuItem13, this.toolStripMenuItem13,
this.itemhelpabout}); this.itemhelpabout});
this.menuhelp.Name = "menuhelp"; this.menuhelp.Name = "menuhelp";
this.menuhelp.Size = new System.Drawing.Size(44, 20); this.menuhelp.Size = new System.Drawing.Size(40, 20);
this.menuhelp.Text = "Help"; this.menuhelp.Text = "Help";
// //
// itemhelprefmanual // itemhelprefmanual
// //
this.itemhelprefmanual.Image = global::CodeImp.DoomBuilder.Properties.Resources.Help; this.itemhelprefmanual.Image = global::CodeImp.DoomBuilder.Properties.Resources.Help;
this.itemhelprefmanual.Name = "itemhelprefmanual"; this.itemhelprefmanual.Name = "itemhelprefmanual";
this.itemhelprefmanual.Size = new System.Drawing.Size(203, 22); this.itemhelprefmanual.Size = new System.Drawing.Size(198, 22);
this.itemhelprefmanual.Text = "Reference Manual"; this.itemhelprefmanual.Text = "Reference Manual";
this.itemhelprefmanual.Click += new System.EventHandler(this.itemhelprefmanual_Click); this.itemhelprefmanual.Click += new System.EventHandler(this.itemhelprefmanual_Click);
// //
@ -849,7 +850,7 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.itemhelpeditmode.Image = global::CodeImp.DoomBuilder.Properties.Resources.Question; this.itemhelpeditmode.Image = global::CodeImp.DoomBuilder.Properties.Resources.Question;
this.itemhelpeditmode.Name = "itemhelpeditmode"; this.itemhelpeditmode.Name = "itemhelpeditmode";
this.itemhelpeditmode.Size = new System.Drawing.Size(203, 22); this.itemhelpeditmode.Size = new System.Drawing.Size(198, 22);
this.itemhelpeditmode.Text = "About this Editing Mode"; this.itemhelpeditmode.Text = "About this Editing Mode";
this.itemhelpeditmode.Click += new System.EventHandler(this.itemhelpeditmode_Click); this.itemhelpeditmode.Click += new System.EventHandler(this.itemhelpeditmode_Click);
// //
@ -857,12 +858,12 @@ namespace CodeImp.DoomBuilder.Windows
// //
this.toolStripMenuItem13.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3); this.toolStripMenuItem13.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.toolStripMenuItem13.Name = "toolStripMenuItem13"; this.toolStripMenuItem13.Name = "toolStripMenuItem13";
this.toolStripMenuItem13.Size = new System.Drawing.Size(200, 6); this.toolStripMenuItem13.Size = new System.Drawing.Size(195, 6);
// //
// itemhelpabout // itemhelpabout
// //
this.itemhelpabout.Name = "itemhelpabout"; this.itemhelpabout.Name = "itemhelpabout";
this.itemhelpabout.Size = new System.Drawing.Size(203, 22); this.itemhelpabout.Size = new System.Drawing.Size(198, 22);
this.itemhelpabout.Text = "About Doom Builder..."; this.itemhelpabout.Text = "About Doom Builder...";
this.itemhelpabout.Click += new System.EventHandler(this.itemhelpabout_Click); this.itemhelpabout.Click += new System.EventHandler(this.itemhelpabout_Click);
// //
@ -1253,7 +1254,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid1024 // itemgrid1024
// //
this.itemgrid1024.Name = "itemgrid1024"; this.itemgrid1024.Name = "itemgrid1024";
this.itemgrid1024.Size = new System.Drawing.Size(153, 22); this.itemgrid1024.Size = new System.Drawing.Size(164, 22);
this.itemgrid1024.Tag = "1024"; this.itemgrid1024.Tag = "1024";
this.itemgrid1024.Text = "1024 mp"; this.itemgrid1024.Text = "1024 mp";
this.itemgrid1024.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid1024.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1261,7 +1262,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid512 // itemgrid512
// //
this.itemgrid512.Name = "itemgrid512"; this.itemgrid512.Name = "itemgrid512";
this.itemgrid512.Size = new System.Drawing.Size(153, 22); this.itemgrid512.Size = new System.Drawing.Size(164, 22);
this.itemgrid512.Tag = "512"; this.itemgrid512.Tag = "512";
this.itemgrid512.Text = "512 mp"; this.itemgrid512.Text = "512 mp";
this.itemgrid512.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid512.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1269,7 +1270,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid256 // itemgrid256
// //
this.itemgrid256.Name = "itemgrid256"; this.itemgrid256.Name = "itemgrid256";
this.itemgrid256.Size = new System.Drawing.Size(153, 22); this.itemgrid256.Size = new System.Drawing.Size(164, 22);
this.itemgrid256.Tag = "256"; this.itemgrid256.Tag = "256";
this.itemgrid256.Text = "256 mp"; this.itemgrid256.Text = "256 mp";
this.itemgrid256.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid256.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1277,7 +1278,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid128 // itemgrid128
// //
this.itemgrid128.Name = "itemgrid128"; this.itemgrid128.Name = "itemgrid128";
this.itemgrid128.Size = new System.Drawing.Size(153, 22); this.itemgrid128.Size = new System.Drawing.Size(164, 22);
this.itemgrid128.Tag = "128"; this.itemgrid128.Tag = "128";
this.itemgrid128.Text = "128 mp"; this.itemgrid128.Text = "128 mp";
this.itemgrid128.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid128.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1285,7 +1286,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid64 // itemgrid64
// //
this.itemgrid64.Name = "itemgrid64"; this.itemgrid64.Name = "itemgrid64";
this.itemgrid64.Size = new System.Drawing.Size(153, 22); this.itemgrid64.Size = new System.Drawing.Size(164, 22);
this.itemgrid64.Tag = "64"; this.itemgrid64.Tag = "64";
this.itemgrid64.Text = "64 mp"; this.itemgrid64.Text = "64 mp";
this.itemgrid64.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid64.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1293,7 +1294,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid32 // itemgrid32
// //
this.itemgrid32.Name = "itemgrid32"; this.itemgrid32.Name = "itemgrid32";
this.itemgrid32.Size = new System.Drawing.Size(153, 22); this.itemgrid32.Size = new System.Drawing.Size(164, 22);
this.itemgrid32.Tag = "32"; this.itemgrid32.Tag = "32";
this.itemgrid32.Text = "32 mp"; this.itemgrid32.Text = "32 mp";
this.itemgrid32.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid32.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1301,7 +1302,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid16 // itemgrid16
// //
this.itemgrid16.Name = "itemgrid16"; this.itemgrid16.Name = "itemgrid16";
this.itemgrid16.Size = new System.Drawing.Size(153, 22); this.itemgrid16.Size = new System.Drawing.Size(164, 22);
this.itemgrid16.Tag = "16"; this.itemgrid16.Tag = "16";
this.itemgrid16.Text = "16 mp"; this.itemgrid16.Text = "16 mp";
this.itemgrid16.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid16.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1309,7 +1310,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid8 // itemgrid8
// //
this.itemgrid8.Name = "itemgrid8"; this.itemgrid8.Name = "itemgrid8";
this.itemgrid8.Size = new System.Drawing.Size(153, 22); this.itemgrid8.Size = new System.Drawing.Size(164, 22);
this.itemgrid8.Tag = "8"; this.itemgrid8.Tag = "8";
this.itemgrid8.Text = "8 mp"; this.itemgrid8.Text = "8 mp";
this.itemgrid8.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid8.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1317,7 +1318,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid4 // itemgrid4
// //
this.itemgrid4.Name = "itemgrid4"; this.itemgrid4.Name = "itemgrid4";
this.itemgrid4.Size = new System.Drawing.Size(153, 22); this.itemgrid4.Size = new System.Drawing.Size(164, 22);
this.itemgrid4.Tag = "4"; this.itemgrid4.Tag = "4";
this.itemgrid4.Text = "4 mp"; this.itemgrid4.Text = "4 mp";
this.itemgrid4.Click += new System.EventHandler(this.itemgridsize_Click); this.itemgrid4.Click += new System.EventHandler(this.itemgridsize_Click);
@ -1325,7 +1326,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgridcustom // itemgridcustom
// //
this.itemgridcustom.Name = "itemgridcustom"; this.itemgridcustom.Name = "itemgridcustom";
this.itemgridcustom.Size = new System.Drawing.Size(153, 22); this.itemgridcustom.Size = new System.Drawing.Size(164, 22);
this.itemgridcustom.Text = "Customize..."; this.itemgridcustom.Text = "Customize...";
this.itemgridcustom.Click += new System.EventHandler(this.itemgridcustom_Click); this.itemgridcustom.Click += new System.EventHandler(this.itemgridcustom_Click);
// //
@ -1364,7 +1365,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom200 // itemzoom200
// //
this.itemzoom200.Name = "itemzoom200"; this.itemzoom200.Name = "itemzoom200";
this.itemzoom200.Size = new System.Drawing.Size(156, 22); this.itemzoom200.Size = new System.Drawing.Size(167, 22);
this.itemzoom200.Tag = "200"; this.itemzoom200.Tag = "200";
this.itemzoom200.Text = "200%"; this.itemzoom200.Text = "200%";
this.itemzoom200.Click += new System.EventHandler(this.itemzoomto_Click); this.itemzoom200.Click += new System.EventHandler(this.itemzoomto_Click);
@ -1372,7 +1373,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom100 // itemzoom100
// //
this.itemzoom100.Name = "itemzoom100"; this.itemzoom100.Name = "itemzoom100";
this.itemzoom100.Size = new System.Drawing.Size(156, 22); this.itemzoom100.Size = new System.Drawing.Size(167, 22);
this.itemzoom100.Tag = "100"; this.itemzoom100.Tag = "100";
this.itemzoom100.Text = "100%"; this.itemzoom100.Text = "100%";
this.itemzoom100.Click += new System.EventHandler(this.itemzoomto_Click); this.itemzoom100.Click += new System.EventHandler(this.itemzoomto_Click);
@ -1380,7 +1381,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom50 // itemzoom50
// //
this.itemzoom50.Name = "itemzoom50"; this.itemzoom50.Name = "itemzoom50";
this.itemzoom50.Size = new System.Drawing.Size(156, 22); this.itemzoom50.Size = new System.Drawing.Size(167, 22);
this.itemzoom50.Tag = "50"; this.itemzoom50.Tag = "50";
this.itemzoom50.Text = "50%"; this.itemzoom50.Text = "50%";
this.itemzoom50.Click += new System.EventHandler(this.itemzoomto_Click); this.itemzoom50.Click += new System.EventHandler(this.itemzoomto_Click);
@ -1388,7 +1389,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom25 // itemzoom25
// //
this.itemzoom25.Name = "itemzoom25"; this.itemzoom25.Name = "itemzoom25";
this.itemzoom25.Size = new System.Drawing.Size(156, 22); this.itemzoom25.Size = new System.Drawing.Size(167, 22);
this.itemzoom25.Tag = "25"; this.itemzoom25.Tag = "25";
this.itemzoom25.Text = "25%"; this.itemzoom25.Text = "25%";
this.itemzoom25.Click += new System.EventHandler(this.itemzoomto_Click); this.itemzoom25.Click += new System.EventHandler(this.itemzoomto_Click);
@ -1396,7 +1397,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom10 // itemzoom10
// //
this.itemzoom10.Name = "itemzoom10"; this.itemzoom10.Name = "itemzoom10";
this.itemzoom10.Size = new System.Drawing.Size(156, 22); this.itemzoom10.Size = new System.Drawing.Size(167, 22);
this.itemzoom10.Tag = "10"; this.itemzoom10.Tag = "10";
this.itemzoom10.Text = "10%"; this.itemzoom10.Text = "10%";
this.itemzoom10.Click += new System.EventHandler(this.itemzoomto_Click); this.itemzoom10.Click += new System.EventHandler(this.itemzoomto_Click);
@ -1404,7 +1405,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom5 // itemzoom5
// //
this.itemzoom5.Name = "itemzoom5"; this.itemzoom5.Name = "itemzoom5";
this.itemzoom5.Size = new System.Drawing.Size(156, 22); this.itemzoom5.Size = new System.Drawing.Size(167, 22);
this.itemzoom5.Tag = "5"; this.itemzoom5.Tag = "5";
this.itemzoom5.Text = "5%"; this.itemzoom5.Text = "5%";
this.itemzoom5.Click += new System.EventHandler(this.itemzoomto_Click); this.itemzoom5.Click += new System.EventHandler(this.itemzoomto_Click);
@ -1412,7 +1413,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoomfittoscreen // itemzoomfittoscreen
// //
this.itemzoomfittoscreen.Name = "itemzoomfittoscreen"; this.itemzoomfittoscreen.Name = "itemzoomfittoscreen";
this.itemzoomfittoscreen.Size = new System.Drawing.Size(156, 22); this.itemzoomfittoscreen.Size = new System.Drawing.Size(167, 22);
this.itemzoomfittoscreen.Text = "Fit to screen"; this.itemzoomfittoscreen.Text = "Fit to screen";
this.itemzoomfittoscreen.Click += new System.EventHandler(this.itemzoomfittoscreen_Click); this.itemzoomfittoscreen.Click += new System.EventHandler(this.itemzoomfittoscreen_Click);
// //
@ -1591,12 +1592,18 @@ namespace CodeImp.DoomBuilder.Windows
// //
// dockerspanel // dockerspanel
// //
this.dockerspanel.AutoCollpase = true;
this.dockerspanel.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dockerspanel.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dockerspanel.Location = new System.Drawing.Point(62, 67); this.dockerspanel.Location = new System.Drawing.Point(62, 67);
this.dockerspanel.Name = "dockerspanel"; this.dockerspanel.Name = "dockerspanel";
this.dockerspanel.Size = new System.Drawing.Size(236, 467); this.dockerspanel.Size = new System.Drawing.Size(236, 467);
this.dockerspanel.TabIndex = 7; this.dockerspanel.TabIndex = 7;
this.dockerspanel.MouseLeave += new System.EventHandler(this.dockerspanel_MouseLeave);
this.dockerspanel.MouseEnter += new System.EventHandler(this.dockerspanel_MouseEnter);
//
// dockerscollapser
//
this.dockerscollapser.Interval = 200;
this.dockerscollapser.Tick += new System.EventHandler(this.dockerscollapser_Tick);
// //
// MainForm // MainForm
// //
@ -1775,5 +1782,6 @@ namespace CodeImp.DoomBuilder.Windows
private System.Windows.Forms.Panel heightpanel1; private System.Windows.Forms.Panel heightpanel1;
private System.Windows.Forms.Panel dockersspace; private System.Windows.Forms.Panel dockersspace;
private CodeImp.DoomBuilder.Controls.DockersControl dockerspanel; private CodeImp.DoomBuilder.Controls.DockersControl dockerspanel;
private System.Windows.Forms.Timer dockerscollapser;
} }
} }

View file

@ -270,7 +270,7 @@ namespace CodeImp.DoomBuilder.Windows
dockerspanel.Expand(); dockerspanel.Expand();
if(General.Settings.CollapseDockers) if(General.Settings.CollapseDockers)
dockersspace.Width = (int)((float)DOCKER_TAB_WIDTH * scalex); dockersspace.Width = dockerspanel.GetCollapsedWidth();
else else
dockersspace.Width = General.Settings.DockersWidth; dockersspace.Width = General.Settings.DockersWidth;
@ -2460,5 +2460,36 @@ namespace CodeImp.DoomBuilder.Windows
} }
#endregion #endregion
#region ================== Dockers
// Mouse enters dockers window
private void dockerspanel_MouseEnter(object sender, EventArgs e)
{
if(General.Settings.CollapseDockers)
dockerscollapser.Stop();
dockerspanel.Expand();
}
// Mouse leaves dockers window
private void dockerspanel_MouseLeave(object sender, EventArgs e)
{
General.MessageBeep(MessageBeepType.Default);
if(General.Settings.CollapseDockers)
dockerscollapser.Start();
}
// Automatic collapsing
private void dockerscollapser_Tick(object sender, EventArgs e)
{
dockerscollapser.Stop();
Rectangle screenrect = this.RectangleToScreen(new Rectangle(dockerspanel.Location, dockerspanel.Size));
Rectangle mouserect = new Rectangle(Cursor.Position, Size.Empty);
if(!screenrect.IntersectsWith(mouserect))
dockerspanel.Collapse();
}
#endregion
} }
} }

View file

@ -225,6 +225,9 @@
<metadata name="dockerspanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="dockerspanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="dockerscollapser.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>781, 17</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>