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(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