@ work in progress on dockers

This commit is contained in:
codeimp 2009-07-21 13:42:36 +00:00
parent 1a17a2be2b
commit 77230eee5b
6 changed files with 389 additions and 155 deletions

View file

@ -44,48 +44,68 @@
this.splitter.Name = "splitter"; this.splitter.Name = "splitter";
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;
this.splitter.MouseLeave += new System.EventHandler(this.RaiseMouseContainerLeave);
this.splitter.MouseEnter += new System.EventHandler(this.RaiseMouseContainerEnter);
// //
// tabs // tabs
// //
this.tabs.Alignment = System.Windows.Forms.TabAlignment.Left; this.tabs.Alignment = System.Windows.Forms.TabAlignment.Right;
this.tabs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tabs.Controls.Add(this.tabPage1); this.tabs.Controls.Add(this.tabPage1);
this.tabs.Controls.Add(this.tabPage2); this.tabs.Controls.Add(this.tabPage2);
this.tabs.Controls.Add(this.tabPage3); 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.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.ItemSize = new System.Drawing.Size(100, 26);
this.tabs.Location = new System.Drawing.Point(0, 0); this.tabs.Location = new System.Drawing.Point(0, 0);
this.tabs.Margin = new System.Windows.Forms.Padding(0);
this.tabs.Multiline = true; this.tabs.Multiline = true;
this.tabs.Name = "tabs"; this.tabs.Name = "tabs";
this.tabs.Padding = new System.Drawing.Point(12, 5); this.tabs.Padding = new System.Drawing.Point(10, 5);
this.tabs.SelectedIndex = 0; this.tabs.SelectedIndex = 0;
this.tabs.Size = new System.Drawing.Size(308, 541); this.tabs.Size = new System.Drawing.Size(308, 541);
this.tabs.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.tabs.TabIndex = 0; this.tabs.TabIndex = 0;
this.tabs.TabStop = false;
this.tabs.MouseLeave += new System.EventHandler(this.RaiseMouseContainerLeave);
this.tabs.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabs_Selected);
this.tabs.Enter += new System.EventHandler(this.tabs_Enter);
this.tabs.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tabs_MouseUp);
this.tabs.SelectedIndexChanged += new System.EventHandler(this.tabs_SelectedIndexChanged);
this.tabs.MouseEnter += new System.EventHandler(this.RaiseMouseContainerEnter);
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Location = new System.Drawing.Point(32, 4); this.tabPage1.BackColor = System.Drawing.SystemColors.Control;
this.tabPage1.Location = new System.Drawing.Point(4, 4);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(272, 533); this.tabPage1.Size = new System.Drawing.Size(274, 533);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Undo / Redo"; this.tabPage1.Text = "Undo / Redo";
this.tabPage1.MouseLeave += new System.EventHandler(this.RaiseMouseContainerLeave);
this.tabPage1.MouseEnter += new System.EventHandler(this.RaiseMouseContainerEnter);
// //
// tabPage2 // tabPage2
// //
this.tabPage2.Location = new System.Drawing.Point(31, 4); this.tabPage2.BackColor = System.Drawing.SystemColors.Control;
this.tabPage2.Location = new System.Drawing.Point(4, 4);
this.tabPage2.Name = "tabPage2"; this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(273, 533); this.tabPage2.Size = new System.Drawing.Size(274, 533);
this.tabPage2.TabIndex = 1; this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Clipboard"; this.tabPage2.Text = "Clipboard";
this.tabPage2.MouseLeave += new System.EventHandler(this.RaiseMouseContainerLeave);
this.tabPage2.MouseEnter += new System.EventHandler(this.RaiseMouseContainerEnter);
// //
// tabPage3 // tabPage3
// //
this.tabPage3.Location = new System.Drawing.Point(31, 4); this.tabPage3.BackColor = System.Drawing.SystemColors.Control;
this.tabPage3.Location = new System.Drawing.Point(4, 4);
this.tabPage3.Name = "tabPage3"; this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(273, 533); this.tabPage3.Size = new System.Drawing.Size(274, 533);
this.tabPage3.TabIndex = 2; this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Prefabs"; this.tabPage3.Text = "Prefabs";
this.tabPage3.MouseLeave += new System.EventHandler(this.RaiseMouseContainerLeave);
this.tabPage3.MouseEnter += new System.EventHandler(this.RaiseMouseContainerEnter);
// //
// DockersControl // DockersControl
// //
@ -96,6 +116,8 @@
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "DockersControl"; this.Name = "DockersControl";
this.Size = new System.Drawing.Size(308, 541); this.Size = new System.Drawing.Size(308, 541);
this.MouseLeave += new System.EventHandler(this.RaiseMouseContainerLeave);
this.MouseEnter += new System.EventHandler(this.RaiseMouseContainerEnter);
this.tabs.ResumeLayout(false); this.tabs.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);

View file

@ -44,10 +44,19 @@ namespace CodeImp.DoomBuilder.Controls
#endregion #endregion
#region ================== Delegates
public event EventHandler MouseContainerEnter;
public event EventHandler MouseContainerLeave;
public event EventHandler Collapsed;
public event EventHandler Expanded;
#endregion
#region ================== Variables #region ================== Variables
private bool rightalign; private bool rightalign;
private bool collapsed; private bool iscollapsed;
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
@ -56,7 +65,7 @@ namespace CodeImp.DoomBuilder.Controls
#region ================== Properties #region ================== Properties
public bool IsCollpased { get { return collapsed; } } public bool IsCollpased { get { return iscollapsed; } }
#endregion #endregion
@ -81,11 +90,15 @@ namespace CodeImp.DoomBuilder.Controls
{ {
splitter.Dock = DockStyle.Left; splitter.Dock = DockStyle.Left;
tabs.Alignment = TabAlignment.Right; tabs.Alignment = TabAlignment.Right;
tabs.Location = new Point(0, 0);
tabs.Size = new Size(this.ClientRectangle.Width + 2, this.ClientRectangle.Height);
} }
else else
{ {
splitter.Dock = DockStyle.Right; splitter.Dock = DockStyle.Right;
tabs.Alignment = TabAlignment.Left; tabs.Alignment = TabAlignment.Left;
tabs.Location = new Point(-2, 0);
tabs.Size = new Size(this.ClientRectangle.Width + 2, this.ClientRectangle.Height);
} }
tabs.SendToBack(); tabs.SendToBack();
@ -94,7 +107,7 @@ namespace CodeImp.DoomBuilder.Controls
// This collapses the docker // This collapses the docker
public void Collapse() public void Collapse()
{ {
if(collapsed) return; if(iscollapsed) return;
splitter.Visible = false; splitter.Visible = false;
expandedtab = tabs.SelectedIndex; expandedtab = tabs.SelectedIndex;
@ -105,13 +118,15 @@ namespace CodeImp.DoomBuilder.Controls
this.Width = GetCollapsedWidth(); this.Width = GetCollapsedWidth();
General.LockWindowUpdate(IntPtr.Zero); General.LockWindowUpdate(IntPtr.Zero);
collapsed = true; iscollapsed = true;
if(Collapsed != null) Collapsed(this, EventArgs.Empty);
} }
// This expands the docker // This expands the docker
public void Expand() public void Expand()
{ {
if(!collapsed) return; if(!iscollapsed) return;
splitter.Visible = true; splitter.Visible = true;
General.LockWindowUpdate(Parent.Handle); General.LockWindowUpdate(Parent.Handle);
@ -121,7 +136,9 @@ namespace CodeImp.DoomBuilder.Controls
tabs.SelectedIndex = expandedtab; tabs.SelectedIndex = expandedtab;
tabs.Invalidate(); tabs.Invalidate();
collapsed = false; iscollapsed = false;
if(Expanded != null) Expanded(this, EventArgs.Empty);
} }
// This calculates the collapsed width // This calculates the collapsed width
@ -138,6 +155,7 @@ namespace CodeImp.DoomBuilder.Controls
TabPage page = new TabPage(d.Title); TabPage page = new TabPage(d.Title);
page.Font = this.Font; page.Font = this.Font;
page.Tag = d; page.Tag = d;
page.UseVisualStyleBackColor = false;
page.Controls.Add(d.Panel); page.Controls.Add(d.Panel);
tabs.TabPages.Add(page); tabs.TabPages.Add(page);
} }
@ -184,6 +202,39 @@ namespace CodeImp.DoomBuilder.Controls
#region ================== Events #region ================== Events
// This raises the MouseContainerEnter event
private void RaiseMouseContainerEnter(object sender, EventArgs e)
{
if(MouseContainerEnter != null)
MouseContainerEnter(sender, e);
}
// This raises the MouseContainerLeave event
private void RaiseMouseContainerLeave(object sender, EventArgs e)
{
if(MouseContainerLeave != null)
MouseContainerLeave(sender, e);
}
// We don't want the focus
private void tabs_Enter(object sender, EventArgs e) { General.MainWindow.FocusDisplay(); }
private void tabs_MouseUp(object sender, MouseEventArgs e) { General.MainWindow.FocusDisplay(); }
#endregion #endregion
private void tabs_SelectedIndexChanged(object sender, EventArgs e)
{
General.MainWindow.FocusDisplay();
}
private void tabs_Selected(object sender, TabControlEventArgs e)
{
General.MainWindow.FocusDisplay();
}
protected override void OnEnter(EventArgs e)
{
General.MainWindow.FocusDisplay();
}
} }
} }

View file

@ -34,6 +34,7 @@ using System.Drawing.Imaging;
using System.Drawing.Drawing2D; using System.Drawing.Drawing2D;
using CodeImp.DoomBuilder.Map; using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Types; using CodeImp.DoomBuilder.Types;
using System.Drawing.Text;
#endregion #endregion
@ -48,6 +49,7 @@ namespace CodeImp.DoomBuilder.Controls
#region ================== Variables #region ================== Variables
private Bitmap tabsimage; private Bitmap tabsimage;
private int highlighttab;
#endregion #endregion
@ -62,12 +64,15 @@ namespace CodeImp.DoomBuilder.Controls
{ {
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser) if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{ {
// Style settings
this.SetStyle(ControlStyles.SupportsTransparentBackColor, false); this.SetStyle(ControlStyles.SupportsTransparentBackColor, false);
this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.Opaque, true); this.SetStyle(ControlStyles.Opaque, true);
this.UpdateStyles(); this.UpdateStyles();
} }
highlighttab = -1;
} }
// Disposer // Disposer
@ -90,8 +95,14 @@ namespace CodeImp.DoomBuilder.Controls
protected unsafe void RedrawTabs() protected unsafe void RedrawTabs()
{ {
// Determine length and width in pixels // Determine length and width in pixels
int tabslength = this.ItemSize.Width * this.TabPages.Count; int tabslength = 0;
int tabswidth = this.ItemSize.Height; for(int i = 0; i < this.TabPages.Count; i++)
{
Rectangle r = this.GetTabRect(i);
tabslength += r.Height;
}
tabslength += 4;
int tabswidth = this.ItemSize.Height + 2;
// Dispose old image // Dispose old image
if(tabsimage != null) if(tabsimage != null)
@ -100,19 +111,59 @@ namespace CodeImp.DoomBuilder.Controls
tabsimage = null; tabsimage = null;
} }
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{
StringFormat drawformat = new StringFormat();
drawformat.Alignment = StringAlignment.Center;
drawformat.HotkeyPrefix = HotkeyPrefix.None;
drawformat.LineAlignment = StringAlignment.Center;
// Create images // Create images
tabsimage = new Bitmap(tabswidth, tabslength, PixelFormat.Format32bppArgb); tabsimage = new Bitmap(tabswidth, tabslength, PixelFormat.Format32bppArgb);
Bitmap drawimage = new Bitmap(tabslength, tabswidth, PixelFormat.Format32bppArgb); Bitmap drawimage = new Bitmap(tabslength, tabswidth, PixelFormat.Format32bppArgb);
Graphics g = Graphics.FromImage(drawimage); Graphics g = Graphics.FromImage(drawimage);
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser) // Render the tabs (backwards when right-aligned)
int posoffset = 0;
int selectedposoffset = -1;
int start = (this.Alignment == TabAlignment.Left) ? 0 : (this.TabPages.Count - 1);
int end = (this.Alignment == TabAlignment.Left) ? this.TabPages.Count : -1;
int step = (this.Alignment == TabAlignment.Left) ? 1 : -1;
for(int i = start; i != end; i += step)
{ {
// Render the tabs VisualStyleRenderer renderer;
for(int i = 0; i < this.TabPages.Count; i++) Rectangle tr = this.GetTabRect(i);
// Tab selected?
if(i == this.SelectedIndex)
{ {
VisualStyleRenderer renderer = new VisualStyleRenderer(VisualStyleElement.Tab.TabItem.Normal); // We will draw this later
Rectangle tabrect = this.GetTabRect(i); selectedposoffset = posoffset;
renderer.DrawBackground(g, new Rectangle(i * this.ItemSize.Width, 0, this.ItemSize.Width, this.ItemSize.Height)); }
else
{
if(i == highlighttab)
renderer = new VisualStyleRenderer(VisualStyleElement.Tab.TabItem.Hot);
else
renderer = new VisualStyleRenderer(VisualStyleElement.Tab.TabItem.Normal);
// Draw tab
Rectangle r = new Rectangle(posoffset + 2, 2, tr.Height, tr.Width - 2);
renderer.DrawBackground(g, r);
g.DrawString(this.TabPages[i].Text, this.Font, SystemBrushes.ControlText, new RectangleF(r.Location, r.Size), drawformat);
}
posoffset += tr.Height;
}
// Render the selected tab, because it is slightly larger and overlapping the others
if(selectedposoffset > -1)
{
VisualStyleRenderer renderer = new VisualStyleRenderer(VisualStyleElement.Tab.TabItem.Pressed);
Rectangle tr = this.GetTabRect(this.SelectedIndex);
Rectangle r = new Rectangle(selectedposoffset, 0, tr.Height + 4, tr.Width);
renderer.DrawBackground(g, r);
g.DrawString(this.TabPages[this.SelectedIndex].Text, this.Font, SystemBrushes.ControlText, new RectangleF(r.X, r.Y, r.Width, r.Height - 2), drawformat);
} }
// Rotate the image and copy to tabsimage // Rotate the image and copy to tabsimage
@ -120,37 +171,52 @@ namespace CodeImp.DoomBuilder.Controls
BitmapData targetdata = tabsimage.LockBits(new Rectangle(0, 0, tabsimage.Size.Width, tabsimage.Size.Height), ImageLockMode.WriteOnly, 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* dd = (int*)drawndata.Scan0.ToPointer();
int* td = (int*)targetdata.Scan0.ToPointer(); int* td = (int*)targetdata.Scan0.ToPointer();
if(this.Alignment == TabAlignment.Right)
{
for(int y = 0; y < drawndata.Height; y++) for(int y = 0; y < drawndata.Height; y++)
{ {
for(int x = 0; x < drawndata.Width; x++) for(int x = 0; x < drawndata.Width; x++)
{ {
td[x * targetdata.Width + y] = *dd; td[(drawndata.Width - 1 - x) * targetdata.Width + y] = *dd;
dd++; dd++;
} }
} }
}
else
{
for(int y = 0; y < drawndata.Height; y++)
{
for(int x = 0; x < drawndata.Width; x++)
{
td[x * targetdata.Width + (drawndata.Height - 1 - y)] = *dd;
dd++;
}
}
}
drawimage.UnlockBits(drawndata); drawimage.UnlockBits(drawndata);
tabsimage.UnlockBits(targetdata); tabsimage.UnlockBits(targetdata);
}
// Clean up // Clean up
g.Dispose(); g.Dispose();
drawimage.Dispose(); drawimage.Dispose();
} }
}
#endregion #endregion
#region ================== Events #region ================== Events
// Redrawing needed
protected override void OnPaint(PaintEventArgs e) protected override void OnPaint(PaintEventArgs e)
{ {
Point p; Point p;
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser) if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{ {
e.Graphics.Clear(SystemColors.Control);
RedrawTabs(); RedrawTabs();
e.Graphics.Clear(SystemColors.Control);
if(this.Alignment == TabAlignment.Left) if(this.Alignment == TabAlignment.Left)
{ {
p = new Point(0, 0); p = new Point(0, 0);
@ -170,6 +236,64 @@ namespace CodeImp.DoomBuilder.Controls
} }
} }
// Mouse moves
protected override void OnMouseMove(MouseEventArgs e)
{
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{
int foundindex = -1;
Rectangle prect = new Rectangle(e.Location, Size.Empty);
// Check in which tab the mouse is
for(int i = 0; i < this.TabPages.Count; i++)
{
Rectangle tabrect = this.GetTabRect(i);
if(tabrect.IntersectsWith(prect))
{
foundindex = i;
break;
}
}
// Redraw?
if(foundindex != highlighttab)
{
highlighttab = foundindex;
this.Invalidate();
}
}
base.OnMouseMove(e);
}
// Mouse leaves
protected override void OnMouseLeave(EventArgs e)
{
if(VisualStyleInformation.IsSupportedByOS && VisualStyleInformation.IsEnabledByUser)
{
// Redraw?
if(highlighttab != -1)
{
highlighttab = -1;
this.Invalidate();
}
}
base.OnMouseLeave(e);
}
// Tabs don't process keys
protected override void OnKeyDown(KeyEventArgs ke)
{
ke.Handled = true;
}
// Tabs don't process keys
protected override void OnKeyUp(KeyEventArgs e)
{
e.Handled = true;
}
#endregion #endregion
} }
} }

View file

@ -202,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(198, 6); toolStripMenuItem1.Size = new System.Drawing.Size(199, 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(198, 6); toolStripMenuItem3.Size = new System.Drawing.Size(199, 6);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
@ -238,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(162, 6); toolStripSeparator11.Size = new System.Drawing.Size(160, 6);
// //
// toolstripSeperator1 // toolstripSeperator1
// //
@ -250,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(162, 6); toolstripSeperator6.Size = new System.Drawing.Size(160, 6);
// //
// toolStripSeparator7 // toolStripSeparator7
// //
@ -273,12 +273,12 @@ namespace CodeImp.DoomBuilder.Windows
// toolStripMenuItem4 // toolStripMenuItem4
// //
toolStripMenuItem4.Name = "toolStripMenuItem4"; toolStripMenuItem4.Name = "toolStripMenuItem4";
toolStripMenuItem4.Size = new System.Drawing.Size(161, 6); toolStripMenuItem4.Size = new System.Drawing.Size(150, 6);
// //
// toolStripSeparator2 // toolStripSeparator2
// //
toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Name = "toolStripSeparator2";
toolStripSeparator2.Size = new System.Drawing.Size(164, 6); toolStripSeparator2.Size = new System.Drawing.Size(153, 6);
// //
// buttoneditmodesseperator // buttoneditmodesseperator
// //
@ -324,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(35, 20); this.menufile.Size = new System.Drawing.Size(37, 20);
this.menufile.Text = "File"; this.menufile.Text = "File";
// //
// itemnewmap // itemnewmap
@ -332,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(201, 22); this.itemnewmap.Size = new System.Drawing.Size(202, 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);
@ -341,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(201, 22); this.itemopenmap.Size = new System.Drawing.Size(202, 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);
@ -349,7 +349,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemclosemap // itemclosemap
// //
this.itemclosemap.Name = "itemclosemap"; this.itemclosemap.Name = "itemclosemap";
this.itemclosemap.Size = new System.Drawing.Size(201, 22); this.itemclosemap.Size = new System.Drawing.Size(202, 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);
@ -358,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(201, 22); this.itemsavemap.Size = new System.Drawing.Size(202, 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);
@ -366,7 +366,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemsavemapas // itemsavemapas
// //
this.itemsavemapas.Name = "itemsavemapas"; this.itemsavemapas.Name = "itemsavemapas";
this.itemsavemapas.Size = new System.Drawing.Size(201, 22); this.itemsavemapas.Size = new System.Drawing.Size(202, 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);
@ -374,7 +374,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemsavemapinto // itemsavemapinto
// //
this.itemsavemapinto.Name = "itemsavemapinto"; this.itemsavemapinto.Name = "itemsavemapinto";
this.itemsavemapinto.Size = new System.Drawing.Size(201, 22); this.itemsavemapinto.Size = new System.Drawing.Size(202, 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);
@ -383,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(198, 6); this.toolStripMenuItem5.Size = new System.Drawing.Size(199, 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(201, 22); this.itemnorecent.Size = new System.Drawing.Size(202, 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(201, 22); this.itemexit.Size = new System.Drawing.Size(202, 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);
// //
@ -419,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(37, 20); this.menuedit.Size = new System.Drawing.Size(39, 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(165, 22); this.itemundo.Size = new System.Drawing.Size(163, 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);
@ -435,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(165, 22); this.itemredo.Size = new System.Drawing.Size(163, 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);
@ -444,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(162, 6); this.toolStripMenuItem7.Size = new System.Drawing.Size(160, 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(165, 22); this.itemcut.Size = new System.Drawing.Size(163, 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);
@ -459,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(165, 22); this.itemcopy.Size = new System.Drawing.Size(163, 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);
@ -468,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(165, 22); this.itempaste.Size = new System.Drawing.Size(163, 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);
@ -477,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(165, 22); this.itempastespecial.Size = new System.Drawing.Size(163, 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);
@ -488,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(165, 22); this.itemsnaptogrid.Size = new System.Drawing.Size(163, 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);
@ -499,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(165, 22); this.itemautomerge.Size = new System.Drawing.Size(163, 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);
@ -508,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(162, 6); this.toolStripMenuItem6.Size = new System.Drawing.Size(160, 6);
// //
// itemgridinc // itemgridinc
// //
this.itemgridinc.Name = "itemgridinc"; this.itemgridinc.Name = "itemgridinc";
this.itemgridinc.Size = new System.Drawing.Size(165, 22); this.itemgridinc.Size = new System.Drawing.Size(163, 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);
@ -521,7 +521,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgriddec // itemgriddec
// //
this.itemgriddec.Name = "itemgriddec"; this.itemgriddec.Name = "itemgriddec";
this.itemgriddec.Size = new System.Drawing.Size(165, 22); this.itemgriddec.Size = new System.Drawing.Size(163, 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);
@ -530,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(165, 22); this.itemgridsetup.Size = new System.Drawing.Size(163, 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);
@ -539,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(165, 22); this.itemmapoptions.Size = new System.Drawing.Size(163, 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);
@ -560,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(41, 20); this.menuview.Size = new System.Drawing.Size(44, 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(210, 22); this.itemthingsfilter.Size = new System.Drawing.Size(209, 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);
@ -576,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(207, 6); this.toolStripMenuItem9.Size = new System.Drawing.Size(206, 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(210, 22); this.itemviewnormal.Size = new System.Drawing.Size(209, 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);
@ -591,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(210, 22); this.itemviewbrightness.Size = new System.Drawing.Size(209, 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);
@ -600,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(210, 22); this.itemviewfloors.Size = new System.Drawing.Size(209, 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);
@ -609,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(210, 22); this.itemviewceilings.Size = new System.Drawing.Size(209, 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);
@ -617,7 +617,7 @@ namespace CodeImp.DoomBuilder.Windows
// toolStripMenuItem2 // toolStripMenuItem2
// //
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(207, 6); this.toolStripMenuItem2.Size = new System.Drawing.Size(206, 6);
// //
// menuzoom // menuzoom
// //
@ -630,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(210, 22); this.menuzoom.Size = new System.Drawing.Size(209, 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(114, 22); this.item2zoom200.Size = new System.Drawing.Size(102, 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);
@ -644,7 +644,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom100 // item2zoom100
// //
this.item2zoom100.Name = "item2zoom100"; this.item2zoom100.Name = "item2zoom100";
this.item2zoom100.Size = new System.Drawing.Size(114, 22); this.item2zoom100.Size = new System.Drawing.Size(102, 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);
@ -652,7 +652,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom50 // item2zoom50
// //
this.item2zoom50.Name = "item2zoom50"; this.item2zoom50.Name = "item2zoom50";
this.item2zoom50.Size = new System.Drawing.Size(114, 22); this.item2zoom50.Size = new System.Drawing.Size(102, 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);
@ -660,7 +660,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom25 // item2zoom25
// //
this.item2zoom25.Name = "item2zoom25"; this.item2zoom25.Name = "item2zoom25";
this.item2zoom25.Size = new System.Drawing.Size(114, 22); this.item2zoom25.Size = new System.Drawing.Size(102, 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);
@ -668,7 +668,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom10 // item2zoom10
// //
this.item2zoom10.Name = "item2zoom10"; this.item2zoom10.Name = "item2zoom10";
this.item2zoom10.Size = new System.Drawing.Size(114, 22); this.item2zoom10.Size = new System.Drawing.Size(102, 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);
@ -676,7 +676,7 @@ namespace CodeImp.DoomBuilder.Windows
// item2zoom5 // item2zoom5
// //
this.item2zoom5.Name = "item2zoom5"; this.item2zoom5.Name = "item2zoom5";
this.item2zoom5.Size = new System.Drawing.Size(114, 22); this.item2zoom5.Size = new System.Drawing.Size(102, 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);
@ -684,7 +684,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemfittoscreen // itemfittoscreen
// //
this.itemfittoscreen.Name = "itemfittoscreen"; this.itemfittoscreen.Name = "itemfittoscreen";
this.itemfittoscreen.Size = new System.Drawing.Size(210, 22); this.itemfittoscreen.Size = new System.Drawing.Size(209, 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);
@ -692,7 +692,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemtoggleinfo // itemtoggleinfo
// //
this.itemtoggleinfo.Name = "itemtoggleinfo"; this.itemtoggleinfo.Name = "itemtoggleinfo";
this.itemtoggleinfo.Size = new System.Drawing.Size(210, 22); this.itemtoggleinfo.Size = new System.Drawing.Size(209, 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);
@ -701,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(207, 6); this.toolStripMenuItem10.Size = new System.Drawing.Size(206, 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(210, 22); this.itemscripteditor.Size = new System.Drawing.Size(209, 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);
@ -715,7 +715,7 @@ namespace CodeImp.DoomBuilder.Windows
// menumode // menumode
// //
this.menumode.Name = "menumode"; this.menumode.Name = "menumode";
this.menumode.Size = new System.Drawing.Size(45, 20); this.menumode.Size = new System.Drawing.Size(50, 20);
this.menumode.Text = "Mode"; this.menumode.Text = "Mode";
// //
// menuprefabs // menuprefabs
@ -726,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(56, 20); this.menuprefabs.Size = new System.Drawing.Size(58, 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(205, 22); this.iteminsertprefabfile.Size = new System.Drawing.Size(199, 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);
@ -740,7 +740,7 @@ namespace CodeImp.DoomBuilder.Windows
// iteminsertpreviousprefab // iteminsertpreviousprefab
// //
this.iteminsertpreviousprefab.Name = "iteminsertpreviousprefab"; this.iteminsertpreviousprefab.Name = "iteminsertpreviousprefab";
this.iteminsertpreviousprefab.Size = new System.Drawing.Size(205, 22); this.iteminsertpreviousprefab.Size = new System.Drawing.Size(199, 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);
@ -749,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(202, 6); this.toolStripMenuItem12.Size = new System.Drawing.Size(196, 6);
// //
// itemcreateprefab // itemcreateprefab
// //
this.itemcreateprefab.Name = "itemcreateprefab"; this.itemcreateprefab.Name = "itemcreateprefab";
this.itemcreateprefab.Size = new System.Drawing.Size(205, 22); this.itemcreateprefab.Size = new System.Drawing.Size(199, 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);
@ -770,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(44, 20); this.menutools.Size = new System.Drawing.Size(48, 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(197, 22); this.itemreloadresources.Size = new System.Drawing.Size(196, 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);
@ -785,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(197, 22); this.itemshowerrors.Size = new System.Drawing.Size(196, 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);
@ -794,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(194, 6); this.toolStripMenuItem8.Size = new System.Drawing.Size(193, 6);
// //
// configurationToolStripMenuItem // configurationToolStripMenuItem
// //
this.configurationToolStripMenuItem.Name = "configurationToolStripMenuItem"; this.configurationToolStripMenuItem.Name = "configurationToolStripMenuItem";
this.configurationToolStripMenuItem.Size = new System.Drawing.Size(197, 22); this.configurationToolStripMenuItem.Size = new System.Drawing.Size(196, 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);
@ -807,7 +807,7 @@ namespace CodeImp.DoomBuilder.Windows
// preferencesToolStripMenuItem // preferencesToolStripMenuItem
// //
this.preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem"; this.preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem";
this.preferencesToolStripMenuItem.Size = new System.Drawing.Size(197, 22); this.preferencesToolStripMenuItem.Size = new System.Drawing.Size(196, 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);
@ -816,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(194, 6); this.toolStripMenuItem11.Size = new System.Drawing.Size(193, 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(197, 22); this.itemtestmap.Size = new System.Drawing.Size(196, 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);
@ -835,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(40, 20); this.menuhelp.Size = new System.Drawing.Size(44, 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(198, 22); this.itemhelprefmanual.Size = new System.Drawing.Size(203, 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);
// //
@ -850,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(198, 22); this.itemhelpeditmode.Size = new System.Drawing.Size(203, 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);
// //
@ -858,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(195, 6); this.toolStripMenuItem13.Size = new System.Drawing.Size(200, 6);
// //
// itemhelpabout // itemhelpabout
// //
this.itemhelpabout.Name = "itemhelpabout"; this.itemhelpabout.Name = "itemhelpabout";
this.itemhelpabout.Size = new System.Drawing.Size(198, 22); this.itemhelpabout.Size = new System.Drawing.Size(203, 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);
// //
@ -1254,7 +1254,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid1024 // itemgrid1024
// //
this.itemgrid1024.Name = "itemgrid1024"; this.itemgrid1024.Name = "itemgrid1024";
this.itemgrid1024.Size = new System.Drawing.Size(164, 22); this.itemgrid1024.Size = new System.Drawing.Size(153, 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);
@ -1262,7 +1262,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid512 // itemgrid512
// //
this.itemgrid512.Name = "itemgrid512"; this.itemgrid512.Name = "itemgrid512";
this.itemgrid512.Size = new System.Drawing.Size(164, 22); this.itemgrid512.Size = new System.Drawing.Size(153, 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);
@ -1270,7 +1270,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid256 // itemgrid256
// //
this.itemgrid256.Name = "itemgrid256"; this.itemgrid256.Name = "itemgrid256";
this.itemgrid256.Size = new System.Drawing.Size(164, 22); this.itemgrid256.Size = new System.Drawing.Size(153, 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);
@ -1278,7 +1278,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid128 // itemgrid128
// //
this.itemgrid128.Name = "itemgrid128"; this.itemgrid128.Name = "itemgrid128";
this.itemgrid128.Size = new System.Drawing.Size(164, 22); this.itemgrid128.Size = new System.Drawing.Size(153, 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);
@ -1286,7 +1286,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid64 // itemgrid64
// //
this.itemgrid64.Name = "itemgrid64"; this.itemgrid64.Name = "itemgrid64";
this.itemgrid64.Size = new System.Drawing.Size(164, 22); this.itemgrid64.Size = new System.Drawing.Size(153, 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);
@ -1294,7 +1294,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid32 // itemgrid32
// //
this.itemgrid32.Name = "itemgrid32"; this.itemgrid32.Name = "itemgrid32";
this.itemgrid32.Size = new System.Drawing.Size(164, 22); this.itemgrid32.Size = new System.Drawing.Size(153, 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);
@ -1302,7 +1302,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid16 // itemgrid16
// //
this.itemgrid16.Name = "itemgrid16"; this.itemgrid16.Name = "itemgrid16";
this.itemgrid16.Size = new System.Drawing.Size(164, 22); this.itemgrid16.Size = new System.Drawing.Size(153, 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);
@ -1310,7 +1310,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid8 // itemgrid8
// //
this.itemgrid8.Name = "itemgrid8"; this.itemgrid8.Name = "itemgrid8";
this.itemgrid8.Size = new System.Drawing.Size(164, 22); this.itemgrid8.Size = new System.Drawing.Size(153, 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);
@ -1318,7 +1318,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgrid4 // itemgrid4
// //
this.itemgrid4.Name = "itemgrid4"; this.itemgrid4.Name = "itemgrid4";
this.itemgrid4.Size = new System.Drawing.Size(164, 22); this.itemgrid4.Size = new System.Drawing.Size(153, 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);
@ -1326,7 +1326,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemgridcustom // itemgridcustom
// //
this.itemgridcustom.Name = "itemgridcustom"; this.itemgridcustom.Name = "itemgridcustom";
this.itemgridcustom.Size = new System.Drawing.Size(164, 22); this.itemgridcustom.Size = new System.Drawing.Size(153, 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);
// //
@ -1365,7 +1365,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom200 // itemzoom200
// //
this.itemzoom200.Name = "itemzoom200"; this.itemzoom200.Name = "itemzoom200";
this.itemzoom200.Size = new System.Drawing.Size(167, 22); this.itemzoom200.Size = new System.Drawing.Size(156, 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);
@ -1373,7 +1373,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom100 // itemzoom100
// //
this.itemzoom100.Name = "itemzoom100"; this.itemzoom100.Name = "itemzoom100";
this.itemzoom100.Size = new System.Drawing.Size(167, 22); this.itemzoom100.Size = new System.Drawing.Size(156, 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);
@ -1381,7 +1381,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom50 // itemzoom50
// //
this.itemzoom50.Name = "itemzoom50"; this.itemzoom50.Name = "itemzoom50";
this.itemzoom50.Size = new System.Drawing.Size(167, 22); this.itemzoom50.Size = new System.Drawing.Size(156, 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);
@ -1389,7 +1389,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom25 // itemzoom25
// //
this.itemzoom25.Name = "itemzoom25"; this.itemzoom25.Name = "itemzoom25";
this.itemzoom25.Size = new System.Drawing.Size(167, 22); this.itemzoom25.Size = new System.Drawing.Size(156, 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);
@ -1397,7 +1397,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom10 // itemzoom10
// //
this.itemzoom10.Name = "itemzoom10"; this.itemzoom10.Name = "itemzoom10";
this.itemzoom10.Size = new System.Drawing.Size(167, 22); this.itemzoom10.Size = new System.Drawing.Size(156, 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);
@ -1405,7 +1405,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoom5 // itemzoom5
// //
this.itemzoom5.Name = "itemzoom5"; this.itemzoom5.Name = "itemzoom5";
this.itemzoom5.Size = new System.Drawing.Size(167, 22); this.itemzoom5.Size = new System.Drawing.Size(156, 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);
@ -1413,7 +1413,7 @@ namespace CodeImp.DoomBuilder.Windows
// itemzoomfittoscreen // itemzoomfittoscreen
// //
this.itemzoomfittoscreen.Name = "itemzoomfittoscreen"; this.itemzoomfittoscreen.Name = "itemzoomfittoscreen";
this.itemzoomfittoscreen.Size = new System.Drawing.Size(167, 22); this.itemzoomfittoscreen.Size = new System.Drawing.Size(156, 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);
// //
@ -1561,6 +1561,7 @@ namespace CodeImp.DoomBuilder.Windows
this.display.TabIndex = 5; this.display.TabIndex = 5;
this.display.MouseLeave += new System.EventHandler(this.display_MouseLeave); this.display.MouseLeave += new System.EventHandler(this.display_MouseLeave);
this.display.Paint += new System.Windows.Forms.PaintEventHandler(this.display_Paint); this.display.Paint += new System.Windows.Forms.PaintEventHandler(this.display_Paint);
this.display.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.display_PreviewKeyDown);
this.display.MouseMove += new System.Windows.Forms.MouseEventHandler(this.display_MouseMove); this.display.MouseMove += new System.Windows.Forms.MouseEventHandler(this.display_MouseMove);
this.display.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.display_MouseDoubleClick); this.display.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.display_MouseDoubleClick);
this.display.MouseClick += new System.Windows.Forms.MouseEventHandler(this.display_MouseClick); this.display.MouseClick += new System.Windows.Forms.MouseEventHandler(this.display_MouseClick);
@ -1597,8 +1598,10 @@ namespace CodeImp.DoomBuilder.Windows
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.TabStop = false;
this.dockerspanel.MouseEnter += new System.EventHandler(this.dockerspanel_MouseEnter); this.dockerspanel.Collapsed += new System.EventHandler(this.LoseFocus);
this.dockerspanel.MouseContainerEnter += new System.EventHandler(this.dockerspanel_MouseContainerEnter);
this.dockerspanel.MouseContainerLeave += new System.EventHandler(this.dockerspanel_MouseContainerLeave);
// //
// dockerscollapser // dockerscollapser
// //

View file

@ -946,6 +946,8 @@ namespace CodeImp.DoomBuilder.Windows
{ {
int key = 0; int key = 0;
LoseFocus(this, EventArgs.Empty);
int mod = 0; int mod = 0;
if(alt) mod |= (int)Keys.Alt; if(alt) mod |= (int)Keys.Alt;
if(shift) mod |= (int)Keys.Shift; if(shift) mod |= (int)Keys.Shift;
@ -1169,8 +1171,8 @@ namespace CodeImp.DoomBuilder.Windows
if(shift) mod |= (int)Keys.Shift; if(shift) mod |= (int)Keys.Shift;
if(ctrl) mod |= (int)Keys.Control; if(ctrl) mod |= (int)Keys.Control;
// Don't process any keys when they are meant for the things filter drop down box // Don't process any keys when they are meant for other input controls
if(!thingfilters.DroppedDown) if((ActiveControl == null) || (ActiveControl == display))
{ {
// Invoke any actions associated with this key // Invoke any actions associated with this key
General.Actions.UpdateModifiers(mod); General.Actions.UpdateModifiers(mod);
@ -1178,6 +1180,10 @@ namespace CodeImp.DoomBuilder.Windows
// Invoke on editing mode // Invoke on editing mode
if((General.Map != null) && (General.Editing.Mode != null)) General.Editing.Mode.OnKeyDown(e); if((General.Map != null) && (General.Editing.Mode != null)) General.Editing.Mode.OnKeyDown(e);
// Handled
e.Handled = true;
e.SuppressKeyPress = true;
} }
// F1 pressed? // F1 pressed?
@ -1215,8 +1221,8 @@ namespace CodeImp.DoomBuilder.Windows
if(shift) mod |= (int)Keys.Shift; if(shift) mod |= (int)Keys.Shift;
if(ctrl) mod |= (int)Keys.Control; if(ctrl) mod |= (int)Keys.Control;
// Don't process any keys when they are meant for the things filter drop down box // Don't process any keys when they are meant for other input controls
if(!thingfilters.DroppedDown) if((ActiveControl == null) || (ActiveControl == display))
{ {
// Invoke any actions associated with this key // Invoke any actions associated with this key
General.Actions.UpdateModifiers(mod); General.Actions.UpdateModifiers(mod);
@ -1224,6 +1230,28 @@ namespace CodeImp.DoomBuilder.Windows
// Invoke on editing mode // Invoke on editing mode
if((General.Map != null) && (General.Editing.Mode != null)) General.Editing.Mode.OnKeyUp(e); if((General.Map != null) && (General.Editing.Mode != null)) General.Editing.Mode.OnKeyUp(e);
// Handled
e.Handled = true;
e.SuppressKeyPress = true;
}
}
// These prevent focus changes by way of TAB or Arrow keys
protected override bool IsInputChar(char charCode) { return false; }
protected override bool IsInputKey(Keys keyData) { return false; }
protected override bool ProcessKeyPreview(ref Message m) { return false; }
protected override bool ProcessDialogKey(Keys keyData) { return false; }
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { return false; }
// This fixes some odd input behaviour
private void display_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
if((ActiveControl == null) || (ActiveControl == display))
{
LoseFocus(this, EventArgs.Empty);
KeyEventArgs ea = new KeyEventArgs(e.KeyData);
MainForm_KeyDown(sender, ea);
} }
} }
@ -1290,6 +1318,7 @@ namespace CodeImp.DoomBuilder.Windows
private void LoseFocus(object sender, EventArgs e) private void LoseFocus(object sender, EventArgs e)
{ {
// Lose focus! // Lose focus!
try { display.Focus(); } catch(Exception) { }
this.ActiveControl = null; this.ActiveControl = null;
} }
@ -2464,7 +2493,7 @@ namespace CodeImp.DoomBuilder.Windows
#region ================== Dockers #region ================== Dockers
// Mouse enters dockers window // Mouse enters dockers window
private void dockerspanel_MouseEnter(object sender, EventArgs e) private void dockerspanel_MouseContainerEnter(object sender, EventArgs e)
{ {
if(General.Settings.CollapseDockers) if(General.Settings.CollapseDockers)
dockerscollapser.Stop(); dockerscollapser.Stop();
@ -2473,20 +2502,25 @@ namespace CodeImp.DoomBuilder.Windows
} }
// Mouse leaves dockers window // Mouse leaves dockers window
private void dockerspanel_MouseLeave(object sender, EventArgs e) private void dockerspanel_MouseContainerLeave(object sender, EventArgs e)
{ {
General.MessageBeep(MessageBeepType.Default);
if(General.Settings.CollapseDockers) if(General.Settings.CollapseDockers)
{
Point p = this.PointToClient(Cursor.Position);
Rectangle r = new Rectangle(dockerspanel.Location, dockerspanel.Size);
if(!r.IntersectsWith(new Rectangle(p, Size.Empty)))
dockerscollapser.Start(); dockerscollapser.Start();
} }
}
// Automatic collapsing // Automatic collapsing
private void dockerscollapser_Tick(object sender, EventArgs e) private void dockerscollapser_Tick(object sender, EventArgs e)
{ {
dockerscollapser.Stop(); dockerscollapser.Stop();
Rectangle screenrect = this.RectangleToScreen(new Rectangle(dockerspanel.Location, dockerspanel.Size));
Rectangle mouserect = new Rectangle(Cursor.Position, Size.Empty); Point p = this.PointToClient(Cursor.Position);
if(!screenrect.IntersectsWith(mouserect)) Rectangle r = new Rectangle(dockerspanel.Location, dockerspanel.Size);
if(!r.IntersectsWith(new Rectangle(p, Size.Empty)))
dockerspanel.Collapse(); dockerspanel.Collapse();
} }

View file

@ -165,12 +165,12 @@
<metadata name="menumain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="menumain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="toolbar.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="toolbar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolbar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>127, 17</value> <value>127, 17</value>
</metadata> </metadata>
<metadata name="toolbar.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statusbar.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="statusbar.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>