summaryrefslogtreecommitdiff
path: root/MainForm.cs
blob: 731bf2ac2135d9f4710201158fa665eda76728e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
// BitmapFontEd
// Copyright (C) 2005  Ian Cowburn
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// 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.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
// $Id$
//
using System;
using System.Drawing;
using System.Windows.Forms;

namespace BitmapFontEd
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public class MainForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MenuItem menuItem6;
		private System.Windows.Forms.MenuItem m_quit;
		private System.Windows.Forms.MenuItem m_saveAs;
		private System.Windows.Forms.MenuItem m_save;
		private System.Windows.Forms.MainMenu m_menu;
		private System.Windows.Forms.MenuItem m_fileMenu;
		private System.Windows.Forms.GroupBox m_editGroup;
		private System.Windows.Forms.MenuItem m_open;
		private System.Windows.Forms.MenuItem m_new;
		
		private GfxEditor	m_edit;
		
		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			// Trying to add this in the designer seems to mess up quite a bit.
			//
			m_edit=new GfxEditor();
			m_edit.Location=new Point(4,16);
			m_editGroup.Controls.Add(m_edit);
			
			m_edit.BitmapChar=new BitmapChar();
		}
		
		[STAThread]
		public static void Main(string[] args)
		{
			Application.Run(new MainForm());
		}
		
		#region Windows Forms Designer generated code
		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent() {
			this.m_new = new System.Windows.Forms.MenuItem();
			this.m_open = new System.Windows.Forms.MenuItem();
			this.m_editGroup = new System.Windows.Forms.GroupBox();
			this.m_fileMenu = new System.Windows.Forms.MenuItem();
			this.m_menu = new System.Windows.Forms.MainMenu();
			this.m_save = new System.Windows.Forms.MenuItem();
			this.m_saveAs = new System.Windows.Forms.MenuItem();
			this.m_quit = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.SuspendLayout();
			// 
			// m_new
			// 
			this.m_new.Index = 0;
			this.m_new.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
			this.m_new.Text = "&New";
			// 
			// m_open
			// 
			this.m_open.Index = 1;
			this.m_open.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
			this.m_open.Text = "&Open";
			// 
			// m_editGroup
			// 
			this.m_editGroup.Location = new System.Drawing.Point(8, 8);
			this.m_editGroup.Name = "m_editGroup";
			this.m_editGroup.Size = new System.Drawing.Size(408, 328);
			this.m_editGroup.TabIndex = 0;
			this.m_editGroup.TabStop = false;
			this.m_editGroup.Text = "Editor";
			// 
			// m_fileMenu
			// 
			this.m_fileMenu.Index = 0;
			this.m_fileMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
						this.m_new,
						this.m_open,
						this.m_save,
						this.m_saveAs,
						this.menuItem6,
						this.m_quit});
			this.m_fileMenu.Text = "&File";
			// 
			// m_menu
			// 
			this.m_menu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
						this.m_fileMenu});
			// 
			// m_save
			// 
			this.m_save.Index = 2;
			this.m_save.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
			this.m_save.Text = "&Save";
			// 
			// m_saveAs
			// 
			this.m_saveAs.Index = 3;
			this.m_saveAs.Shortcut = System.Windows.Forms.Shortcut.F12;
			this.m_saveAs.Text = "S&ave as...";
			// 
			// m_quit
			// 
			this.m_quit.Index = 5;
			this.m_quit.Shortcut = System.Windows.Forms.Shortcut.CtrlQ;
			this.m_quit.Text = "&Quit";
			// 
			// menuItem6
			// 
			this.menuItem6.Index = 4;
			this.menuItem6.Text = "-";
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
			this.ClientSize = new System.Drawing.Size(642, 479);
			this.Controls.Add(this.m_editGroup);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.MaximizeBox = false;
			this.Menu = this.m_menu;
			this.MinimumSize = new System.Drawing.Size(648, 504);
			this.Name = "MainForm";
			this.Text = "Bitmap Font Editor";
			this.ResumeLayout(false);
		}
		#endregion
	}
}