mkRPG
src/editor/GUI/Tabs/MapTab/maptab.h
Go to the documentation of this file.
00001 #ifndef MAPTAB_H
00002 #define MAPTAB_H
00003 
00004 #include "ui_maptab.h"
00005 #include "../tabwidget.h"
00006 #include "celltypesdock.h"
00007 #include "selectiondock.h"
00008 #include "celldock.h"
00009 #include "mapdock.h"
00010 #include "../ObjectEditors/mapeditor.h"
00011 
00012 
00024 class MapsTab : public TabWidget, private Ui::MapsTab
00025 {
00026     Q_OBJECT
00027 
00028 public:
00029     explicit MapsTab(QWidget *parent = 0);
00030     void setGame(Game* g);
00031 
00032 public slots:
00033     void updateGame();
00034 
00035 private slots:
00036     void mapSizeChanged(QSize s);
00037     void viewCenterChanged(QPoint p);
00038     void viewSizeChanged(QSize s);
00039     void on_mapHScrollBar_valueChanged(int);
00040     void on_mapVScrollBar_valueChanged(int);
00041 
00042     void mapChanged(const QModelIndex &to, const QModelIndex &from);
00043 
00044 
00045 private:
00046 
00047     void checkScrollBarUtility();
00048     void updateViewCenterPosition();
00049     Game *game;
00050     Map *currentMap;
00051     QList<BDockWidget*> docksW;
00052     MapsListModel *maps;
00053 };
00054 
00055 #endif // MAPTAB_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines