Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List

MainWindow.h

00001 /*
00002 Copyright 2005 Elliott Kleinrock
00003 
00004 This file is part of FreeStars, a free clone of the Stars! game.
00005 
00006 FreeStars is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 FreeStars is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with FreeStars; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 The full GPL Copyright notice should be in the file COPYING.txt
00021 
00022 Contact:
00023 Email Elliott at 9jm0tjj02@sneakemail.com
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

Generated on Mon Aug 8 21:33:43 2005 for Freestars by  doxygen 1.4.2-20050421