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

UniversePane.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(UniversePane_h)
00027 #define UniversePane_h
00028 
00029 
00030 class UniversePane: public wxScrolledWindow
00031 {
00032 public:
00033     UniversePane(MainWindow * mainw);
00034     void OnPaint( wxPaintEvent &WXUNUSED( event ) );
00035         void OnRightDown(wxMouseEvent &me);
00036         void OnLeftDown(wxMouseEvent &me);
00037         void OnSelectLocation(wxCommandEvent& event);
00038         void SelectLocation(Location * loc);
00039 
00040     DECLARE_EVENT_TABLE()
00041 
00042 private:
00043         deque<Location *> * mLastSelected;
00044         int mpLastSelected;
00045         MainWindow * mParent;
00046         double mScale;
00047 };
00048 
00049 class wxLocation : public wxObject
00050 {
00051 public:
00052         wxLocation(Location * l) : mLocation(l) {}
00053         virtual ~wxLocation();
00054         Location * mLocation;
00055 };
00056 
00057 #endif // UniversePane_h

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