Advanced Strategic Command
overviewmappanel.h
Go to the documentation of this file.
1 /***************************************************************************
2  paradialog.h - description
3  -------------------
4  begin : Thu Feb 21 2002
5  copyright : (C) 2002 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  ***************************************************************************/
21 
22 #ifndef overviewmappanelH
23  #define overviewmappanelH
24 
25 
26 #include "global.h"
27 #include "windowing.h"
28 
29 class MapDisplayPG;
30 
31 
33  MapDisplayPG* mapDisplayWidget;
34  PG_Widget* ovmap;
35  float currentZoom;
36  bool locked;
37  public:
38  OverviewMapPanel( PG_Widget *parent, const PG_Rect &r, MapDisplayPG* mapDisplay, const ASCString& widgetName ) ;
39  protected:
40  void painter ( const PG_Rect &src, const ASCString& name, const PG_Rect &dst);
41  void redraw() { Redraw(true); };
42  bool mouseButtonDown ( PG_MessageObject* o, const SDL_MouseButtonEvent *button);
43  bool mouseMotion ( PG_MessageObject* o, const SDL_MouseMotionEvent *motion);
44  bool mouseClick ( SPoint pos );
45 
46  private:
47  void lockPanel();
48  void unlockPanel();
49 
50 
51 };
52 
53 
54 #endif
OverviewMapPanel(PG_Widget *parent, const PG_Rect &r, MapDisplayPG *mapDisplay, const ASCString &widgetName)
Global platform dependant definitions. This file just branches to the platform specific files in thei...
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
bool mouseClick(SPoint pos)
SDLmm::SPoint SPoint
Definition: surface.h:27
bool mouseMotion(PG_MessageObject *o, const SDL_MouseMotionEvent *motion)
bool mouseButtonDown(PG_MessageObject *o, const SDL_MouseButtonEvent *button)
void painter(const PG_Rect &src, const ASCString &name, const PG_Rect &dst)
this Panel saves its position in the gameoptions and loads it on construction
Definition: windowing.h:121