Tome
A generic data editor for games supporting arbitrary input and output formats.
listwindow.h
1 #ifndef LISTWINDOW_H
2 #define LISTWINDOW_H
3 
4 #include <QDialog>
5 
6 
7 namespace Ui {
8  class ListWindow;
9 }
10 
11 namespace Tome
12 {
13  class TypesController;
14 }
15 
19 class ListWindow : public QDialog
20 {
21  Q_OBJECT
22 
23  public:
29  explicit ListWindow(Tome::TypesController& typesController, QWidget *parent = 0);
30  ~ListWindow();
31 
36  QString getListName() const;
37 
42  QString getListItemType() const;
43 
48  QString getTypeSetName() const;
49 
53  void init();
54 
59  void setListName(const QString& listName);
60 
65  void setListItemType(const QString& itemType);
66 
71  void setTypeSetName(const QString& typeSet);
72 
77  void setTypeSetNames(const QStringList& typeSets);
78 
79  public slots:
83  void accept() Q_DECL_OVERRIDE;
84 
85  protected:
90  virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
91 
92  private:
93  Ui::ListWindow *ui;
94  Tome::TypesController& typesController;
95 
96  bool validate();
97 };
98 
99 #endif // LISTWINDOW_H
Definition: commandlineoptions.h:6
Definition: mainwindow.h:25
Controller for adding, updating and removing custom types.
Definition: typescontroller.h:14
Window for adding a new list type or editing an existing one.
Definition: listwindow.h:19