Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

overviewmappanel.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           paradialog.h  -  description
00003                              -------------------
00004     begin                : Thu Feb 21 2002
00005     copyright            : (C) 2002 by Martin Bickel
00006     email                : bickel@asc-hq.org
00007  ***************************************************************************/
00008 
00013 /***************************************************************************
00014  *                                                                         *
00015  *   This program is free software; you can redistribute it and/or modify  *
00016  *   it under the terms of the GNU General Public License as published by  *
00017  *   the Free Software Foundation; either version 2 of the License, or     *
00018  *   (at your option) any later version.                                   *
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

Generated on Tue Jun 24 01:27:46 2008 for Advanced Strategic Command by  doxygen 1.4.2