summaryrefslogtreecommitdiffstats
path: root/konquest/minimap.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitc90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch)
tree6d8391395bce9eaea4ad78958617edb20c6a7573 /konquest/minimap.h
downloadtdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz
tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konquest/minimap.h')
-rw-r--r--konquest/minimap.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/konquest/minimap.h b/konquest/minimap.h
new file mode 100644
index 00000000..9d205abb
--- /dev/null
+++ b/konquest/minimap.h
@@ -0,0 +1,44 @@
+#ifndef _MINIMAP_H
+#define _MINIMAP_H
+
+#include <qwidget.h>
+#include <qframe.h>
+#include <qpixmap.h>
+#include <qgridview.h>
+#include <qtimer.h>
+
+#include "gamecore.h"
+#include "images.h"
+
+
+class MiniMap : public QGridView
+{
+ Q_OBJECT
+
+ // Constructors
+public:
+ MiniMap( QWidget *parent = 0, const char* name = 0 );
+ virtual ~MiniMap();
+
+ void setMap( Map *newMap );
+
+protected:
+ void paintCell( QPainter *p, int row, int col );
+
+private slots:
+ void mapUpdate();
+
+private:
+ int SECTOR_HEIGHT;
+ int SECTOR_WIDTH;
+
+ int BOARD_HEIGHT;
+ int BOARD_WIDTH;
+
+ void drawSector( QPainter *, Sector & );
+
+ Map *map;
+};
+
+
+#endif // _MINIMAP_H_