Tome
A generic data editor for games supporting arbitrary input and output formats.
mapwindow.h
1 #ifndef MAPWINDOW_H
2 #define MAPWINDOW_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
7  class MapWindow;
8 }
9 
10 namespace Tome
11 {
12  class TypesController;
13 }
14 
18 class MapWindow : public QDialog
19 {
20  Q_OBJECT
21 
22  public:
28  explicit MapWindow(Tome::TypesController& typesController, QWidget *parent = 0);
29  ~MapWindow();
30 
35  QString getMapName() const;
36 
41  QString getMapKeyType() const;
42 
47  QString getMapValueType() const;
48 
53  QString getTypeSetName() const;
54 
58  void init();
59 
64  void setMapName(const QString& mapName);
65 
70  void setMapKeyType(const QString& keyType);
71 
76  void setMapValueType(const QString& valueType);
77 
82  void setTypeSetName(const QString& typeSetName);
83 
88  void setTypeSetNames(const QStringList& typeSetNames);
89 
90  public slots:
94  void accept() Q_DECL_OVERRIDE;
95 
96  protected:
101  virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
102 
103  private:
104  Ui::MapWindow *ui;
105  Tome::TypesController& typesController;
106 
107  bool validate();
108 };
109 
110 #endif // MAPWINDOW_H
Definition: commandlineoptions.h:6
Window for adding a new map type or editing an existing one.
Definition: mapwindow.h:18
Definition: mainwindow.h:25
Controller for adding, updating and removing custom types.
Definition: typescontroller.h:14