mkRPG
src/editor/GUI/Tabs/newgameobject.h
Go to the documentation of this file.
00001 #ifndef NEWGAMEOBJECT_H
00002 #define NEWGAMEOBJECT_H
00003 
00011 #include "ui_newgameobject.h"
00012 #include "Game/game.h"
00013 #include "Game/ItemModels/itemmodels.h"
00014 #include <QPushButton>
00015 
00020 class NewGameObject : public QDialog, private Ui::NewGameObject
00021 {
00022     Q_OBJECT
00023 
00024 public:
00025     explicit NewGameObject(Game &g, QWidget *parent = 0);
00026     int selectedType() const;
00027     bool createObject() const;
00028 
00029 
00030 private slots:
00031     void on_gameObject_toggled(bool t);
00032 
00033     void typeChanged(const QModelIndex &ty);
00034     void preciseTypeChanged(const QModelIndex &ty);
00035 
00036 private:
00037 
00038     ObjectsTreeModel *types;
00039     ObjectsTreeModel *preciseTypes;
00040     FilteredObjectsTreeModel *preciseType;
00041     FilteredObjectsTreeModel *allowedType;
00042     int selType;
00043 };
00044 
00045 #endif // NEWGAMEOBJECT_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines