mkRPG
src/editor/GUI/Tabs/ObjectEditors/mapeditor.h
Go to the documentation of this file.
00001 #ifndef MAPEDITOR_H
00002 #define MAPEDITOR_H
00003 
00010 #include "gameobjecteditor.h"
00011 #include "ui_mapeditor.h"
00012 #include "mapresizedialog.h"
00013 #include "Game/ItemModels/mapslistmodel.h"
00014 
00015 
00020 class MapEditor : public GameObjectEditor, private Ui::MapEditor
00021 {
00022     Q_OBJECT
00023 
00024 public:
00025     explicit MapEditor(QWidget *parent = 0);
00026     explicit MapEditor(Map &map, QWidget *parent = 0);
00027     void setMap(Map *m);
00028 
00029 private slots:
00030     void on_resizing_clicked();
00031     void on_angleX_valueChanged(int i);
00032     void on_angleY_valueChanged(int i);
00033     void on_ang_valueChanged(int i);
00034     void on_etir_valueChanged(int i);
00035 
00036 signals:
00037     void mapModified();
00038 
00039 private:
00040     void updateAngles();
00041     void updateParam();
00042     Map *map;
00043     MapTypeListModel *mtModel;
00044 };
00045 
00046 
00047 
00048 #endif // MAPEDITOR_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines