* Add a start for the MainFrame window (and display it when starting the program)

* An implementation of Help->About is already provided :-D (which is probably the easiest thing about the program...)
  * Currently this window is produced through means of code generation since I can work around something that seems to be a bug in wxSmith this way (the "bug" only occurs when defining windows in XML resource files)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3207 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-12-28 00:08:25 +00:00
parent 47816967a7
commit 9fd1fde8ec
5 changed files with 841 additions and 1 deletions

View File

@ -159,6 +159,8 @@
<Unit filename="listctrlval.hpp" />
<Unit filename="macros.h" />
<Unit filename="main.cpp" />
<Unit filename="mainframe.cpp" />
<Unit filename="mainframe.hpp" />
<Unit filename="mainfrm.cpp" />
<Unit filename="mainfrm.h" />
<Unit filename="mapprefs.cpp" />
@ -207,9 +209,11 @@
<wxDialog wxs="wxsmith/infodialog.wxs" src="infodialog.cpp" hdr="infodialog.hpp" xrc="infodialog.xrc" name="InfoDialog" language="CPP" />
<wxDialog wxs="wxsmith/initiallimitsdialog.wxs" src="initiallimitsdialog.cpp" hdr="initiallimitsdialog.hpp" xrc="initiallimitsdialog.xrc" name="InitialLimitsDialog" language="CPP" />
<wxDialog wxs="wxsmith/limitsdialog.wxs" src="limitsdialog.cpp" hdr="limitsdialog.hpp" xrc="limitsdialog.xrc" name="LimitsDialog" language="CPP" />
<wxFrame wxs="wxsmith/mainframe.wxs" src="mainframe.cpp" hdr="mainframe.hpp" name="MainFrame" language="CPP" />
<wxDialog wxs="wxsmith/savesegmentdialog.wxs" src="savesegmentdialog.cpp" hdr="savesegmentdialog.hpp" xrc="savesegmentdialog.xrc" name="SaveSegmentDialog" language="CPP" />
</resources>
</wxsmith>
<lib_finder />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -33,6 +33,7 @@
#endif
#include "wx/hyperlink.h"
#include "mainframe.hpp"
class EditWorldApp : public wxApp
{
@ -49,7 +50,13 @@ class EditWorldApp : public wxApp
bool wxsOK = true;
/// @todo construct our main window/frame here and show it
if (wxsOK)
{
// Constructing and showing our main window/frame
MainFrame* frame = new MainFrame;
frame->Show();
SetTopWindow(frame);
}
return wxsOK;
}

View File

@ -0,0 +1,385 @@
/*
This file is part of Warzone 2100.
Copyright (C) 2007 Giel van Schijndel
Copyright (C) 2007 Warzone Resurrection Project
Warzone 2100 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.
Warzone 2100 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 Warzone 2100; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
$Revision$
$Id$
$HeadURL$
*/
#include "mainframe.hpp"
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
//(*InternalHeaders(MainFrame)
#include <wx/artprov.h>
#include <wx/bitmap.h>
#include <wx/intl.h>
#include <wx/image.h>
#include <wx/string.h>
//*)
#endif
#include "aboutdialog.hpp"
//(*IdInit(MainFrame)
const long MainFrame::ID_TOOLBARITEM_NEW = wxNewId();
const long MainFrame::ID_TOOLBARITEM_OPEN = wxNewId();
const long MainFrame::ID_TOOLBARITEM_SAVE = wxNewId();
const long MainFrame::ID_TOOLBARITEM_UNDO = wxNewId();
const long MainFrame::ID_TOOLBARITEM_REDO = wxNewId();
const long MainFrame::ID_TOOLBARITEM_POINT = wxNewId();
const long MainFrame::ID_TOOLBARITEM_MOVE = wxNewId();
const long MainFrame::ID_TOOLBARITEM_OBJECTROTATE = wxNewId();
const long MainFrame::ID_TOOLBARITEM_DRAW_GET = wxNewId();
const long MainFrame::ID_TOOLBARITEM_DRAW_PAINT = wxNewId();
const long MainFrame::ID_TOOLBARITEM_DRAW_FILL = wxNewId();
const long MainFrame::ID_TOOLBARITEM_DRAW_EDGEPAINT = wxNewId();
const long MainFrame::ID_TOOLBARITEM_DRAWBRUSHFILL = wxNewId();
const long MainFrame::ID_TOOLBARITEM_GATEWAY = wxNewId();
const long MainFrame::ID_TOOLBARITEM_HEIGHT_TILEMODE = wxNewId();
const long MainFrame::ID_TOOLBARITEM_HEIGHT_VERTEXMODE = wxNewId();
const long MainFrame::ID_TOOLBARITEM_HEIGHT_PICK = wxNewId();
const long MainFrame::ID_TOOLBARITEM_HEIGHT_PAINT = wxNewId();
const long MainFrame::ID_TOOLBARITEM_PAINTATSEALEVEL = wxNewId();
const long MainFrame::ID_TOOLBARITEM_HEIGHT_DRAG = wxNewId();
const long MainFrame::ID_TOOLBARITEM_MARKRECT = wxNewId();
const long MainFrame::ID_TOOLBARITEM_XFLIPMARKED = wxNewId();
const long MainFrame::ID_TOOLBARITEM_YFLIPMARKED = wxNewId();
const long MainFrame::ID_TOOLBARITEM_COPYMARKED = wxNewId();
const long MainFrame::ID_TOOLBARITEM_PASTE = wxNewId();
const long MainFrame::ID_TOOLBARITEM_PASTEPREFS = wxNewId();
const long MainFrame::ID_TOOLBARITEM_FILE_EXPORTCLIPBOARD = wxNewId();
const long MainFrame::ID_TOOLBARITEM_FILE_IMPORTCLIPBOARD = wxNewId();
const long MainFrame::ID_TOOLBAR_MAIN = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_NEW = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_LOADFEATURESET = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_OPEN = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_SAVE = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_SAVE_AS = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_SAVEMAPSEGMENT = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_EXPORTCLIPBOARD = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_IMPORTCLIPBOARD = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_EXPORTWARZONESCENARIO = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_EXPORTWARZONESCENARIOEXPANSION = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_EXPORTWARZONESCENARIOMISSION = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_SAVEEDGEBRUSHES = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_LOADEDGEBRUSHES = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_SAVETILETYPES = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_LOADTILETYPES = wxNewId();
const long MainFrame::ID_MENUITEM_FILE_MOSTRECENTFILES = wxNewId();
const long MainFrame::ID_QUIT = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_PREFERENCES = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_IMPORTHEIGHTMAP = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_EXPORTHEIGHTMAP = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_EXPORTASBITMAP = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_IMPORTTILEMAP = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_EXPORTTILEMAP = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_RESETTEXTUREFLAGS = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_EDITSCROLLLIMITS = wxNewId();
const long MainFrame::ID_MENUITEM_MAP_REFRESHZONES = wxNewId();
const long MainFrame::ID_MENUITEM_VIEW_ZEROCAMERA = wxNewId();
const long MainFrame::ID_MENUITEM_VIEW_ZEROCAMERAPOSITION = wxNewId();
const long MainFrame::ID_MENUITEM_VIEW_LOCKCAMERA = wxNewId();
const long MainFrame::ID_MENUITEM_VIEW_FREECAMERA = wxNewId();
const long MainFrame::ID_MENUITEM_VIEW_WORLD = wxNewId();
const long MainFrame::ID_MENUITEM_VIEW_EDGEBRUSHES = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_TEXTURED = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_WIREFRAME = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_GOURADSHADING = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_AUTOHEIGHSET = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_SEALEVEL = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_TERRAINTYPES = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_OBJECTS = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_BOUNDINGSPHERES = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_ENABLEAUTOSNAP = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_USEINGAMENAMES = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_LOCATERMAPS = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_SHOWHEIGHTS = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_SHOWTEXTURES = wxNewId();
const long MainFrame::ID_MENUITEM_OPTIONS_LARGESCALE = wxNewId();
const long MainFrame::ID_APP_ABOUT = wxNewId();
//*)
BEGIN_EVENT_TABLE(MainFrame,wxFrame)
//(*EventTable(MainFrame)
//*)
END_EVENT_TABLE()
MainFrame::MainFrame(wxWindow* parent)
{
//(*Initialize(MainFrame)
wxToolBarToolBase* ToolBarItem4;
wxMenuItem* MenuItem31;
wxMenuItem* MenuItem8;
wxMenuItem* MenuItem33;
wxMenuItem* MenuItem7;
wxMenuItem* MenuItem26;
wxToolBarToolBase* ToolBarItem9;
wxMenuItem* MenuItem25;
wxToolBarToolBase* ToolBarItem21;
wxToolBarToolBase* ToolBarItem19;
wxMenuItem* MenuItem40;
wxToolBarToolBase* ToolBarItem26;
wxToolBarToolBase* ToolBarItem3;
wxToolBarToolBase* ToolBarItem12;
wxMenuItem* MenuItem5;
wxToolBarToolBase* ToolBarItem11;
wxMenuItem* MenuItem2;
wxMenu* Menu3;
wxToolBarToolBase* ToolBarItem10;
wxToolBarToolBase* ToolBarItem20;
wxMenuItem* MenuItem46;
wxToolBarToolBase* ToolBarItem15;
wxMenuItem* MenuItem1;
wxMenuItem* MenuItem4;
wxMenuItem* MenuItem14;
wxMenuItem* MenuItem36;
wxMenuItem* MenuItem11;
wxMenuItem* MenuItem29;
wxToolBarToolBase* ToolBarItem23;
wxMenuItem* MenuItem15;
wxMenuItem* MenuItem22;
wxMenuItem* MenuItem37;
wxMenuItem* MenuItem32;
wxMenuItem* MenuItem17;
wxToolBarToolBase* ToolBarItem24;
wxMenuItem* MenuItem13;
wxMenu* Menu1;
wxToolBarToolBase* ToolBarItem16;
wxMenuItem* MenuItem42;
wxMenuItem* MenuItem10;
wxToolBarToolBase* ToolBarItem6;
wxToolBarToolBase* ToolBarItem13;
wxMenuItem* MenuItem12;
wxMenuItem* MenuItem24;
wxMenuItem* MenuItem27;
wxMenuItem* MenuItem44;
wxToolBarToolBase* ToolBarItem1;
wxMenuItem* MenuItem39;
wxMenuItem* MenuItem38;
wxMenuBar* Main_MenuBar;
wxMenuItem* MenuItem3;
wxToolBar* Main_ToolBar;
wxMenuItem* MenuItem20;
wxMenuItem* MenuItem28;
wxToolBarToolBase* ToolBarItem14;
wxMenuItem* MenuItem6;
wxToolBarToolBase* ToolBarItem22;
wxMenuItem* MenuItem35;
wxMenuItem* MenuItem23;
wxToolBarToolBase* ToolBarItem5;
wxToolBarToolBase* ToolBarItem28;
wxMenuItem* MenuItem41;
wxToolBarToolBase* ToolBarItem8;
wxMenuItem* MenuItem21;
wxToolBarToolBase* ToolBarItem27;
wxToolBarToolBase* ToolBarItem25;
wxMenuItem* MenuItem34;
wxMenuItem* MenuItem16;
wxMenuItem* MenuItem43;
wxMenu* Menu2;
wxMenuItem* MenuItem9;
wxToolBarToolBase* ToolBarItem17;
wxMenuItem* MenuItem45;
wxMenuItem* MenuItem18;
wxMenuItem* MenuItem47;
wxMenuItem* MenuItem30;
wxToolBarToolBase* ToolBarItem2;
wxMenu* Menu5;
wxMenu* Menu4;
wxMenuItem* MenuItem19;
wxToolBarToolBase* ToolBarItem18;
wxToolBarToolBase* ToolBarItem7;
Create(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxID_ANY"));
SetClientSize(wxSize(716,488));
Main_ToolBar = new wxToolBar(this, ID_TOOLBAR_MAIN, wxDefaultPosition, wxDefaultSize, wxTB_HORIZONTAL|wxNO_BORDER, _T("ID_TOOLBAR_MAIN"));
ToolBarItem1 = Main_ToolBar->AddTool(ID_TOOLBARITEM_NEW, _("New file"), wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_NEW")),wxART_TOOLBAR), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem2 = Main_ToolBar->AddTool(ID_TOOLBARITEM_OPEN, _("Open file"), wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_FILE_OPEN")),wxART_TOOLBAR), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem3 = Main_ToolBar->AddTool(ID_TOOLBARITEM_SAVE, _("Save file"), wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_FILE_SAVE")),wxART_TOOLBAR), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
Main_ToolBar->AddSeparator();
ToolBarItem4 = Main_ToolBar->AddTool(ID_TOOLBARITEM_UNDO, _("Undo"), wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_UNDO")),wxART_TOOLBAR), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem5 = Main_ToolBar->AddTool(ID_TOOLBARITEM_REDO, _("Redo"), wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_REDO")),wxART_TOOLBAR), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
Main_ToolBar->AddSeparator();
ToolBarItem6 = Main_ToolBar->AddTool(ID_TOOLBARITEM_POINT, _("Point"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem7 = Main_ToolBar->AddTool(ID_TOOLBARITEM_MOVE, _("Move"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem8 = Main_ToolBar->AddTool(ID_TOOLBARITEM_OBJECTROTATE, _("Rotate Object"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
Main_ToolBar->AddSeparator();
ToolBarItem9 = Main_ToolBar->AddTool(ID_TOOLBARITEM_DRAW_GET, _("Get"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem10 = Main_ToolBar->AddTool(ID_TOOLBARITEM_DRAW_PAINT, _("Paint"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem11 = Main_ToolBar->AddTool(ID_TOOLBARITEM_DRAW_FILL, _("Fill"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem12 = Main_ToolBar->AddTool(ID_TOOLBARITEM_DRAW_EDGEPAINT, _("Edge Paint"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem13 = Main_ToolBar->AddTool(ID_TOOLBARITEM_DRAWBRUSHFILL, _("Brush Fill"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem14 = Main_ToolBar->AddTool(ID_TOOLBARITEM_GATEWAY, _("Gateway"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
Main_ToolBar->AddSeparator();
ToolBarItem15 = Main_ToolBar->AddTool(ID_TOOLBARITEM_HEIGHT_TILEMODE, _("Tilemode"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem16 = Main_ToolBar->AddTool(ID_TOOLBARITEM_HEIGHT_VERTEXMODE, _("Vertexmode"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem17 = Main_ToolBar->AddTool(ID_TOOLBARITEM_HEIGHT_PICK, _("Pick"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem18 = Main_ToolBar->AddTool(ID_TOOLBARITEM_HEIGHT_PAINT, _("Paint"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem19 = Main_ToolBar->AddTool(ID_TOOLBARITEM_PAINTATSEALEVEL, _("Paint at sealevel"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem20 = Main_ToolBar->AddTool(ID_TOOLBARITEM_HEIGHT_DRAG, _("Drag"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
Main_ToolBar->AddSeparator();
ToolBarItem21 = Main_ToolBar->AddTool(ID_TOOLBARITEM_MARKRECT, _("Mark rect"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem22 = Main_ToolBar->AddTool(ID_TOOLBARITEM_XFLIPMARKED, _("X Flip Marked"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem23 = Main_ToolBar->AddTool(ID_TOOLBARITEM_YFLIPMARKED, _("Y Flip Marked"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem24 = Main_ToolBar->AddTool(ID_TOOLBARITEM_COPYMARKED, _("Copy Marked"), wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_COPY")),wxART_TOOLBAR), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem25 = Main_ToolBar->AddTool(ID_TOOLBARITEM_PASTE, _("Paste"), wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_PASTE")),wxART_TOOLBAR), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem26 = Main_ToolBar->AddTool(ID_TOOLBARITEM_PASTEPREFS, _("Paste Preferences"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem27 = Main_ToolBar->AddTool(ID_TOOLBARITEM_FILE_EXPORTCLIPBOARD, _("Export Clipboard"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
ToolBarItem28 = Main_ToolBar->AddTool(ID_TOOLBARITEM_FILE_IMPORTCLIPBOARD, _("Import Clipboard"), wxNullBitmap, wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString);
Main_ToolBar->Realize();
SetToolBar(Main_ToolBar);
Main_MenuBar = new wxMenuBar();
Menu1 = new wxMenu();
MenuItem8 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_NEW, _("&New"), wxEmptyString, wxITEM_NORMAL);
MenuItem8->SetBitmap(wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_NEW")),wxART_OTHER));
Menu1->Append(MenuItem8);
MenuItem9 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_LOADFEATURESET, _("Load Data Set"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem9);
Menu1->AppendSeparator();
MenuItem10 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_OPEN, _("&Open Project...\tCTRL+O"), wxEmptyString, wxITEM_NORMAL);
MenuItem10->SetBitmap(wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_FILE_OPEN")),wxART_OTHER));
Menu1->Append(MenuItem10);
MenuItem11 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_SAVE, _("&Save Project\tCTRL+S"), wxEmptyString, wxITEM_NORMAL);
MenuItem11->SetBitmap(wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_FILE_SAVE")),wxART_OTHER));
Menu1->Append(MenuItem11);
MenuItem12 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_SAVE_AS, _("Save Project &As..."), wxEmptyString, wxITEM_NORMAL);
MenuItem12->SetBitmap(wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_FILE_SAVE_AS")),wxART_OTHER));
Menu1->Append(MenuItem12);
MenuItem13 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_SAVEMAPSEGMENT, _("Save Map Segment"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem13);
Menu1->AppendSeparator();
MenuItem14 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_EXPORTCLIPBOARD, _("Export Clipboard"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem14);
MenuItem15 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_IMPORTCLIPBOARD, _("Import Clipboard"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem15);
Menu1->AppendSeparator();
MenuItem16 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_EXPORTWARZONESCENARIO, _("Export Warzone Scenario Start"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem16);
MenuItem17 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_EXPORTWARZONESCENARIOEXPANSION, _("Export Warzone Scenario Expansion"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem17);
MenuItem18 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_EXPORTWARZONESCENARIOMISSION, _("Export Warzone Scenario Mission"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem18);
Menu1->AppendSeparator();
MenuItem19 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_SAVEEDGEBRUSHES, _("Export Edge Brushes"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem19);
MenuItem20 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_LOADEDGEBRUSHES, _("Import Edge Brushes"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem20);
MenuItem21 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_SAVETILETYPES, _("Export Tile Types"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem21);
MenuItem22 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_LOADTILETYPES, _("Import Tile Types"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem22);
Menu1->AppendSeparator();
MenuItem23 = new wxMenuItem(Menu1, ID_MENUITEM_FILE_MOSTRECENTFILES, _("Most Recent Files"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem23);
MenuItem23->Enable(false);
Menu1->AppendSeparator();
MenuItem24 = new wxMenuItem(Menu1, ID_QUIT, _("E&xit"), wxEmptyString, wxITEM_NORMAL);
MenuItem24->SetBitmap(wxArtProvider::GetBitmap(wxART_MAKE_ART_ID_FROM_STR(_T("wxART_QUIT")),wxART_OTHER));
Menu1->Append(MenuItem24);
Main_MenuBar->Append(Menu1, _("&File"));
Menu2 = new wxMenu();
MenuItem25 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_PREFERENCES, _("Map Preferences"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem25);
Menu2->AppendSeparator();
MenuItem26 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_IMPORTHEIGHTMAP, _("Import Height Map"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem26);
MenuItem27 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_EXPORTHEIGHTMAP, _("Export Height Map"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem27);
MenuItem28 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_EXPORTASBITMAP, _("Export Map As Bitmap"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem28);
Menu2->AppendSeparator();
MenuItem29 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_IMPORTTILEMAP, _("Import Tile Map"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem29);
MenuItem30 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_EXPORTTILEMAP, _("Export Tile Map"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem30);
Menu2->AppendSeparator();
MenuItem31 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_RESETTEXTUREFLAGS, _("Reset Texture Flags"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem31);
Menu2->AppendSeparator();
MenuItem32 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_EDITSCROLLLIMITS, _("Edit Scroll Limits"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem32);
Menu2->AppendSeparator();
MenuItem33 = new wxMenuItem(Menu2, ID_MENUITEM_MAP_REFRESHZONES, _("Refresh Zones"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem33);
Main_MenuBar->Append(Menu2, _("&Map"));
Menu3 = new wxMenu();
MenuItem2 = new wxMenuItem(Menu3, ID_MENUITEM_VIEW_ZEROCAMERA, _("Look North\tF1"), wxEmptyString, wxITEM_NORMAL);
Menu3->Append(MenuItem2);
MenuItem3 = new wxMenuItem(Menu3, ID_MENUITEM_VIEW_ZEROCAMERAPOSITION, _("Zero Camera Position"), wxEmptyString, wxITEM_NORMAL);
Menu3->Append(MenuItem3);
Menu3->AppendSeparator();
MenuItem4 = new wxMenuItem(Menu3, ID_MENUITEM_VIEW_LOCKCAMERA, _("Lock Camera"), wxEmptyString, wxITEM_CHECK);
Menu3->Append(MenuItem4);
MenuItem5 = new wxMenuItem(Menu3, ID_MENUITEM_VIEW_FREECAMERA, _("Free Camera"), wxEmptyString, wxITEM_CHECK);
Menu3->Append(MenuItem5);
Menu3->AppendSeparator();
MenuItem6 = new wxMenuItem(Menu3, ID_MENUITEM_VIEW_WORLD, _("World\tF2"), wxEmptyString, wxITEM_CHECK);
Menu3->Append(MenuItem6);
MenuItem7 = new wxMenuItem(Menu3, ID_MENUITEM_VIEW_EDGEBRUSHES, _("Edge Brushes\tF3"), wxEmptyString, wxITEM_CHECK);
Menu3->Append(MenuItem7);
Main_MenuBar->Append(Menu3, _("&View"));
Menu4 = new wxMenu();
MenuItem34 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_TEXTURED, _("Textured"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem34);
MenuItem35 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_WIREFRAME, _("Wire Frame"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem35);
MenuItem36 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_GOURADSHADING, _("Gouraud Shading"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem36);
Menu4->AppendSeparator();
MenuItem37 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_AUTOHEIGHSET, _("Auto Height Set"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem37);
Menu4->AppendSeparator();
MenuItem38 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_SEALEVEL, _("Sea Level"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem38);
MenuItem39 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_TERRAINTYPES, _("Terrain Types"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem39);
MenuItem40 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_OBJECTS, _("Objects"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem40);
MenuItem41 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_BOUNDINGSPHERES, _("Bounding spheres"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem41);
MenuItem42 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_ENABLEAUTOSNAP, _("Enable Auto Snap"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem42);
MenuItem43 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_USEINGAMENAMES, _("Use In Game Names"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem43);
Menu4->AppendSeparator();
MenuItem44 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_LOCATERMAPS, _("Locator Maps"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem44);
MenuItem45 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_SHOWHEIGHTS, _("Show Heights"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem45);
MenuItem46 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_SHOWTEXTURES, _("Show Textures"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem46);
MenuItem47 = new wxMenuItem(Menu4, ID_MENUITEM_OPTIONS_LARGESCALE, _("Large Scale"), wxEmptyString, wxITEM_CHECK);
Menu4->Append(MenuItem47);
Main_MenuBar->Append(Menu4, _("&Options"));
Menu5 = new wxMenu();
MenuItem1 = new wxMenuItem(Menu5, ID_APP_ABOUT, _("&About"), wxEmptyString, wxITEM_NORMAL);
Menu5->Append(MenuItem1);
Main_MenuBar->Append(Menu5, _("&Help"));
SetMenuBar(Main_MenuBar);
Connect(ID_APP_ABOUT,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&MainFrame::OnAbout);
//*)
}
void MainFrame::OnAbout(wxCommandEvent& event)
{
AboutDialog().ShowModal();
}

View File

@ -0,0 +1,135 @@
/*
This file is part of Warzone 2100.
Copyright (C) 2007 Giel van Schijndel
Copyright (C) 2007 Warzone Resurrection Project
Warzone 2100 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.
Warzone 2100 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 Warzone 2100; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
$Revision$
$Id$
$HeadURL$
*/
#ifndef __INCLUDED_MAINFRAME_HPP__
#define __INCLUDED_MAINFRAME_HPP__
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
//(*Headers(MainFrame)
#include <wx/menu.h>
#include <wx/toolbar.h>
#include <wx/frame.h>
//*)
#endif
class MainFrame: public wxFrame
{
public:
MainFrame(wxWindow* parent = NULL);
//(*Declarations(MainFrame)
//*)
private:
//(*Identifiers(MainFrame)
static const long ID_TOOLBARITEM_NEW;
static const long ID_TOOLBARITEM_OPEN;
static const long ID_TOOLBARITEM_SAVE;
static const long ID_TOOLBARITEM_UNDO;
static const long ID_TOOLBARITEM_REDO;
static const long ID_TOOLBARITEM_POINT;
static const long ID_TOOLBARITEM_MOVE;
static const long ID_TOOLBARITEM_OBJECTROTATE;
static const long ID_TOOLBARITEM_DRAW_GET;
static const long ID_TOOLBARITEM_DRAW_PAINT;
static const long ID_TOOLBARITEM_DRAW_FILL;
static const long ID_TOOLBARITEM_DRAW_EDGEPAINT;
static const long ID_TOOLBARITEM_DRAWBRUSHFILL;
static const long ID_TOOLBARITEM_GATEWAY;
static const long ID_TOOLBARITEM_HEIGHT_TILEMODE;
static const long ID_TOOLBARITEM_HEIGHT_VERTEXMODE;
static const long ID_TOOLBARITEM_HEIGHT_PICK;
static const long ID_TOOLBARITEM_HEIGHT_PAINT;
static const long ID_TOOLBARITEM_PAINTATSEALEVEL;
static const long ID_TOOLBARITEM_HEIGHT_DRAG;
static const long ID_TOOLBARITEM_MARKRECT;
static const long ID_TOOLBARITEM_XFLIPMARKED;
static const long ID_TOOLBARITEM_YFLIPMARKED;
static const long ID_TOOLBARITEM_COPYMARKED;
static const long ID_TOOLBARITEM_PASTE;
static const long ID_TOOLBARITEM_PASTEPREFS;
static const long ID_TOOLBARITEM_FILE_EXPORTCLIPBOARD;
static const long ID_TOOLBARITEM_FILE_IMPORTCLIPBOARD;
static const long ID_TOOLBAR_MAIN;
static const long ID_MENUITEM_FILE_NEW;
static const long ID_MENUITEM_FILE_LOADFEATURESET;
static const long ID_MENUITEM_FILE_OPEN;
static const long ID_MENUITEM_FILE_SAVE;
static const long ID_MENUITEM_FILE_SAVE_AS;
static const long ID_MENUITEM_FILE_SAVEMAPSEGMENT;
static const long ID_MENUITEM_FILE_EXPORTCLIPBOARD;
static const long ID_MENUITEM_FILE_IMPORTCLIPBOARD;
static const long ID_MENUITEM_FILE_EXPORTWARZONESCENARIO;
static const long ID_MENUITEM_FILE_EXPORTWARZONESCENARIOEXPANSION;
static const long ID_MENUITEM_FILE_EXPORTWARZONESCENARIOMISSION;
static const long ID_MENUITEM_FILE_SAVEEDGEBRUSHES;
static const long ID_MENUITEM_FILE_LOADEDGEBRUSHES;
static const long ID_MENUITEM_FILE_SAVETILETYPES;
static const long ID_MENUITEM_FILE_LOADTILETYPES;
static const long ID_MENUITEM_FILE_MOSTRECENTFILES;
static const long ID_QUIT;
static const long ID_MENUITEM_MAP_PREFERENCES;
static const long ID_MENUITEM_MAP_IMPORTHEIGHTMAP;
static const long ID_MENUITEM_MAP_EXPORTHEIGHTMAP;
static const long ID_MENUITEM_MAP_EXPORTASBITMAP;
static const long ID_MENUITEM_MAP_IMPORTTILEMAP;
static const long ID_MENUITEM_MAP_EXPORTTILEMAP;
static const long ID_MENUITEM_MAP_RESETTEXTUREFLAGS;
static const long ID_MENUITEM_MAP_EDITSCROLLLIMITS;
static const long ID_MENUITEM_MAP_REFRESHZONES;
static const long ID_MENUITEM_VIEW_ZEROCAMERA;
static const long ID_MENUITEM_VIEW_ZEROCAMERAPOSITION;
static const long ID_MENUITEM_VIEW_LOCKCAMERA;
static const long ID_MENUITEM_VIEW_FREECAMERA;
static const long ID_MENUITEM_VIEW_WORLD;
static const long ID_MENUITEM_VIEW_EDGEBRUSHES;
static const long ID_MENUITEM_OPTIONS_TEXTURED;
static const long ID_MENUITEM_OPTIONS_WIREFRAME;
static const long ID_MENUITEM_OPTIONS_GOURADSHADING;
static const long ID_MENUITEM_OPTIONS_AUTOHEIGHSET;
static const long ID_MENUITEM_OPTIONS_SEALEVEL;
static const long ID_MENUITEM_OPTIONS_TERRAINTYPES;
static const long ID_MENUITEM_OPTIONS_OBJECTS;
static const long ID_MENUITEM_OPTIONS_BOUNDINGSPHERES;
static const long ID_MENUITEM_OPTIONS_ENABLEAUTOSNAP;
static const long ID_MENUITEM_OPTIONS_USEINGAMENAMES;
static const long ID_MENUITEM_OPTIONS_LOCATERMAPS;
static const long ID_MENUITEM_OPTIONS_SHOWHEIGHTS;
static const long ID_MENUITEM_OPTIONS_SHOWTEXTURES;
static const long ID_MENUITEM_OPTIONS_LARGESCALE;
static const long ID_APP_ABOUT;
//*)
private:
//(*Handlers(MainFrame)
void OnAbout(wxCommandEvent& event);
//*)
private:
DECLARE_EVENT_TABLE()
};
#endif // __INCLUDED_MAINFRAME_HPP__

View File

@ -0,0 +1,309 @@
<?xml version="1.0" encoding="utf-8" ?>
<wxsmith>
<object class="wxFrame" name="MainFrame">
<size>716,488</size>
<id_arg>0</id_arg>
<object class="wxToolBar" name="ID_TOOLBAR_MAIN" variable="Main_ToolBar" member="no">
<object class="tool" name="ID_TOOLBARITEM_NEW" variable="ToolBarItem1" member="no">
<label>New file</label>
<bitmap stock_id="wxART_NEW" />
</object>
<object class="tool" name="ID_TOOLBARITEM_OPEN" variable="ToolBarItem2" member="no">
<label>Open file</label>
<bitmap stock_id="wxART_FILE_OPEN" />
</object>
<object class="tool" name="ID_TOOLBARITEM_SAVE" variable="ToolBarItem3" member="no">
<label>Save file</label>
<bitmap stock_id="wxART_FILE_SAVE" />
</object>
<object class="separator" />
<object class="tool" name="ID_TOOLBARITEM_UNDO" variable="ToolBarItem4" member="no">
<label>Undo</label>
<bitmap stock_id="wxART_UNDO" />
</object>
<object class="tool" name="ID_TOOLBARITEM_REDO" variable="ToolBarItem5" member="no">
<label>Redo</label>
<bitmap stock_id="wxART_REDO" />
</object>
<object class="separator" />
<object class="tool" name="ID_TOOLBARITEM_POINT" variable="ToolBarItem6" member="no">
<label>Point</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_MOVE" variable="ToolBarItem7" member="no">
<label>Move</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_OBJECTROTATE" variable="ToolBarItem8" member="no">
<label>Rotate Object</label>
</object>
<object class="separator" />
<object class="tool" name="ID_TOOLBARITEM_DRAW_GET" variable="ToolBarItem9" member="no">
<label>Get</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_DRAW_PAINT" variable="ToolBarItem10" member="no">
<label>Paint</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_DRAW_FILL" variable="ToolBarItem11" member="no">
<label>Fill</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_DRAW_EDGEPAINT" variable="ToolBarItem12" member="no">
<label>Edge Paint</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_DRAWBRUSHFILL" variable="ToolBarItem13" member="no">
<label>Brush Fill</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_GATEWAY" variable="ToolBarItem14" member="no">
<label>Gateway</label>
</object>
<object class="separator" />
<object class="tool" name="ID_TOOLBARITEM_HEIGHT_TILEMODE" variable="ToolBarItem15" member="no">
<label>Tilemode</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_HEIGHT_VERTEXMODE" variable="ToolBarItem16" member="no">
<label>Vertexmode</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_HEIGHT_PICK" variable="ToolBarItem17" member="no">
<label>Pick</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_HEIGHT_PAINT" variable="ToolBarItem18" member="no">
<label>Paint</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_PAINTATSEALEVEL" variable="ToolBarItem19" member="no">
<label>Paint at sealevel</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_HEIGHT_DRAG" variable="ToolBarItem20" member="no">
<label>Drag</label>
</object>
<object class="separator" />
<object class="tool" name="ID_TOOLBARITEM_MARKRECT" variable="ToolBarItem21" member="no">
<label>Mark rect</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_XFLIPMARKED" variable="ToolBarItem22" member="no">
<label>X Flip Marked</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_YFLIPMARKED" variable="ToolBarItem23" member="no">
<label>Y Flip Marked</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_COPYMARKED" variable="ToolBarItem24" member="no">
<label>Copy Marked</label>
<bitmap stock_id="wxART_COPY" />
</object>
<object class="tool" name="ID_TOOLBARITEM_PASTE" variable="ToolBarItem25" member="no">
<label>Paste</label>
<bitmap stock_id="wxART_PASTE" />
</object>
<object class="tool" name="ID_TOOLBARITEM_PASTEPREFS" variable="ToolBarItem26" member="no">
<label>Paste Preferences</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_FILE_EXPORTCLIPBOARD" variable="ToolBarItem27" member="no">
<label>Export Clipboard</label>
</object>
<object class="tool" name="ID_TOOLBARITEM_FILE_IMPORTCLIPBOARD" variable="ToolBarItem28" member="no">
<label>Import Clipboard</label>
</object>
</object>
<object class="wxMenuBar" variable="Main_MenuBar" member="no">
<object class="wxMenu" variable="Menu1" member="no">
<label>&amp;File</label>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_NEW" variable="MenuItem8" member="no">
<label>&amp;New</label>
<bitmap stock_id="wxART_NEW" />
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_LOADFEATURESET" variable="MenuItem9" member="no">
<label>Load Data Set</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_FILE_OPEN" variable="MenuItem10" member="no">
<label>&amp;Open Project...</label>
<accel>CTRL+O</accel>
<bitmap stock_id="wxART_FILE_OPEN" />
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_SAVE" variable="MenuItem11" member="no">
<label>&amp;Save Project</label>
<accel>CTRL+S</accel>
<bitmap stock_id="wxART_FILE_SAVE" />
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_SAVE_AS" variable="MenuItem12" member="no">
<label>Save Project &amp;As...</label>
<bitmap stock_id="wxART_FILE_SAVE_AS" />
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_SAVEMAPSEGMENT" variable="MenuItem13" member="no">
<label>Save Map Segment</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_FILE_EXPORTCLIPBOARD" variable="MenuItem14" member="no">
<label>Export Clipboard</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_IMPORTCLIPBOARD" variable="MenuItem15" member="no">
<label>Import Clipboard</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_FILE_EXPORTWARZONESCENARIO" variable="MenuItem16" member="no">
<label>Export Warzone Scenario Start</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_EXPORTWARZONESCENARIOEXPANSION" variable="MenuItem17" member="no">
<label>Export Warzone Scenario Expansion</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_EXPORTWARZONESCENARIOMISSION" variable="MenuItem18" member="no">
<label>Export Warzone Scenario Mission</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_FILE_SAVEEDGEBRUSHES" variable="MenuItem19" member="no">
<label>Export Edge Brushes</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_LOADEDGEBRUSHES" variable="MenuItem20" member="no">
<label>Import Edge Brushes</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_SAVETILETYPES" variable="MenuItem21" member="no">
<label>Export Tile Types</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_FILE_LOADTILETYPES" variable="MenuItem22" member="no">
<label>Import Tile Types</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_FILE_MOSTRECENTFILES" variable="MenuItem23" member="no">
<label>Most Recent Files</label>
<enabled>0</enabled>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_QUIT" variable="MenuItem24" member="no">
<label>E&amp;xit</label>
<bitmap stock_id="wxART_QUIT" />
</object>
</object>
<object class="wxMenu" variable="Menu2" member="no">
<label>&amp;Map</label>
<object class="wxMenuItem" name="ID_MENUITEM_MAP_PREFERENCES" variable="MenuItem25" member="no">
<label>Map Preferences</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_MAP_IMPORTHEIGHTMAP" variable="MenuItem26" member="no">
<label>Import Height Map</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_MAP_EXPORTHEIGHTMAP" variable="MenuItem27" member="no">
<label>Export Height Map</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_MAP_EXPORTASBITMAP" variable="MenuItem28" member="no">
<label>Export Map As Bitmap</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_MAP_IMPORTTILEMAP" variable="MenuItem29" member="no">
<label>Import Tile Map</label>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_MAP_EXPORTTILEMAP" variable="MenuItem30" member="no">
<label>Export Tile Map</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_MAP_RESETTEXTUREFLAGS" variable="MenuItem31" member="no">
<label>Reset Texture Flags</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_MAP_EDITSCROLLLIMITS" variable="MenuItem32" member="no">
<label>Edit Scroll Limits</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_MAP_REFRESHZONES" variable="MenuItem33" member="no">
<label>Refresh Zones</label>
</object>
</object>
<object class="wxMenu" variable="Menu3" member="no">
<label>&amp;View</label>
<object class="wxMenuItem" name="ID_MENUITEM_VIEW_ZEROCAMERA" variable="MenuItem2" member="no">
<label>Look North</label>
<accel>F1</accel>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_VIEW_ZEROCAMERAPOSITION" variable="MenuItem3" member="no">
<label>Zero Camera Position</label>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_VIEW_LOCKCAMERA" variable="MenuItem4" member="no">
<label>Lock Camera</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_VIEW_FREECAMERA" variable="MenuItem5" member="no">
<label>Free Camera</label>
<check>1</check>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_VIEW_WORLD" variable="MenuItem6" member="no">
<label>World</label>
<accel>F2</accel>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_VIEW_EDGEBRUSHES" variable="MenuItem7" member="no">
<label>Edge Brushes</label>
<accel>F3</accel>
<check>1</check>
</object>
</object>
<object class="wxMenu" variable="Menu4" member="no">
<label>&amp;Options</label>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_TEXTURED" variable="MenuItem34" member="no">
<label>Textured</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_WIREFRAME" variable="MenuItem35" member="no">
<label>Wire Frame</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_GOURADSHADING" variable="MenuItem36" member="no">
<label>Gouraud Shading</label>
<check>1</check>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_AUTOHEIGHSET" variable="MenuItem37" member="no">
<label>Auto Height Set</label>
<check>1</check>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_SEALEVEL" variable="MenuItem38" member="no">
<label>Sea Level</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_TERRAINTYPES" variable="MenuItem39" member="no">
<label>Terrain Types</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_OBJECTS" variable="MenuItem40" member="no">
<label>Objects</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_BOUNDINGSPHERES" variable="MenuItem41" member="no">
<label>Bounding spheres</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_ENABLEAUTOSNAP" variable="MenuItem42" member="no">
<label>Enable Auto Snap</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_USEINGAMENAMES" variable="MenuItem43" member="no">
<label>Use In Game Names</label>
<check>1</check>
</object>
<object class="separator" />
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_LOCATERMAPS" variable="MenuItem44" member="no">
<label>Locator Maps</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_SHOWHEIGHTS" variable="MenuItem45" member="no">
<label>Show Heights</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_SHOWTEXTURES" variable="MenuItem46" member="no">
<label>Show Textures</label>
<check>1</check>
</object>
<object class="wxMenuItem" name="ID_MENUITEM_OPTIONS_LARGESCALE" variable="MenuItem47" member="no">
<label>Large Scale</label>
<check>1</check>
</object>
</object>
<object class="wxMenu" variable="Menu5" member="no">
<label>&amp;Help</label>
<object class="wxMenuItem" name="ID_APP_ABOUT" variable="MenuItem1" member="no">
<label>&amp;About</label>
<handler function="OnAbout" entry="EVT_MENU" />
</object>
</object>
</object>
</object>
</wxsmith>