00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #if !defined(MainWindow_h)
00027 #define MainWindow_h
00028
00029 class UniversePane;
00030 class DetailsFleet;
00031 class DetailsPlanet;
00032 class OrdersFleet;
00033 class OrdersPlanet;
00034
00035
00036 class MainWindow: public wxFrame
00037 {
00038 public:
00039 static bool mPaintOK;
00040 MainWindow(const wxString& title, const wxPoint& pos, const wxSize& size);
00041 ~MainWindow();
00042 void OnExit( wxCommandEvent& event );
00043 void OnAbout( wxCommandEvent& event );
00044 void OnOpen( wxCommandEvent& event );
00045 void SetLocation(Location * loc);
00046
00047 private:
00048 UniversePane *map;
00049 wxStatusBar * mStatusBar;
00050 wxToolBar* mToolBar;
00051 DetailsFleet * mDetailsFleet;
00052 DetailsPlanet * mDetailsPlanet;
00053 OrdersFleet * mOrdersFleet;
00054 OrdersPlanet * mOrdersPlanet;
00055 wxLayoutManager * mLayoutManager;
00056
00057 public:
00058 DECLARE_EVENT_TABLE()
00059 };
00060
00061 enum
00062 {
00063 ID_New = wxID_HIGHEST+1,
00064 ID_CustomRaceWizard,
00065 ID_Open,
00066 ID_Close,
00067 ID_Save,
00068 ID_SaveAndSubmit,
00069 ID_PrintMap,
00070 ID_Toolbar,
00071 ID_Find,
00072 ID_Zoom,
00073 ID_Zoom25,
00074 ID_Zoom38,
00075 ID_Zoom50,
00076 ID_Zoom75,
00077 ID_Zoom100,
00078 ID_Zoom125,
00079 ID_Zoom150,
00080 ID_Zoom200,
00081 ID_Zoom400,
00082 ID_WindowLayout,
00083 ID_LayoutLarge,
00084 ID_LayoutMedium,
00085 ID_LayoutSmall,
00086 ID_PlayerColors,
00087 ID_Race,
00088 ID_GameParameters,
00089 ID_WaitForNew,
00090 ID_Generate,
00091 ID_ShipDesign,
00092 ID_Research,
00093 ID_BattlePlans,
00094 ID_PlayerRelations,
00095 ID_ChangePassword,
00096 ID_Planets,
00097 ID_Fleets,
00098 ID_OthersFleets,
00099 ID_Battles,
00100 ID_Score,
00101 ID_Dump,
00102 ID_UniverseDefinition,
00103 ID_PlanetInformation,
00104 ID_FleetInformation,
00105 ID_Introduction,
00106 ID_PlayersGuide,
00107 ID_TechnologyBrowser,
00108 ID_Tutorial,
00109 ID_SelLocation,
00110 ID_Previous,
00111 ID_Next,
00112 ID_Rename,
00113 ID_Goto,
00114 ID_Transfer,
00115 ID_MAX_MAIN,
00116 };
00117
00118 #endif // MainWindow_h