00001
00002
00003
00004
00005
00006
00007
00008
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef overviewmappanelH
00023 #define overviewmappanelH
00024
00025
00026 #include "global.h"
00027 #include "windowing.h"
00028
00029 class MapDisplayPG;
00030
00031
00032 class OverviewMapPanel : public LayoutablePanel {
00033 MapDisplayPG* mapDisplayWidget;
00034 PG_Widget* ovmap;
00035 float currentZoom;
00036 bool locked;
00037 public:
00038 OverviewMapPanel( PG_Widget *parent, const PG_Rect &r, MapDisplayPG* mapDisplay, const ASCString& widgetName ) ;
00039 protected:
00040 void painter ( const PG_Rect &src, const ASCString& name, const PG_Rect &dst);
00041 void redraw() { Redraw(true); };
00042 bool mouseButtonDown ( const SDL_MouseButtonEvent *button);
00043 bool mouseMotion ( const SDL_MouseMotionEvent *motion);
00044 bool mouseClick ( SPoint pos );
00045
00046 private:
00047 void lockPanel();
00048 void unlockPanel();
00049
00050
00051 };
00052
00053
00054 #endif