Tome
A generic data editor for games supporting arbitrary input and output formats.
componentwindow.h
1 #ifndef COMPONENTWINDOW_H
2 #define COMPONENTWINDOW_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
7  class ComponentWindow;
8 }
9 
13 class ComponentWindow : public QDialog
14 {
15  Q_OBJECT
16 
17  public:
22  explicit ComponentWindow(QWidget* parent = 0);
23  ~ComponentWindow();
24 
29  QString getComponentName() const;
30 
35  QString getComponentSetName() const;
36 
41  void setDisallowedComponentIds(const QStringList disallowedComponentIds);
42 
47  void setComponentSetName(const QString& componentSetName);
48 
53  void setComponentSetNames(const QStringList& componentSetNames);
54 
55  public slots:
59  void accept() Q_DECL_OVERRIDE;
60 
61  protected:
66  virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
67 
68  private:
69  Ui::ComponentWindow *ui;
70 
71  QStringList disallowedComponentIds;
72 
73  bool validate();
74 };
75 
76 #endif // COMPONENTWINDOW_H
Definition: mainwindow.h:25
Window for adding a new component.
Definition: componentwindow.h:13