OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dialogue.hpp
Go to the documentation of this file.
1 #ifndef CSV_PREFS_DIALOGUE_H
2 #define CSV_PREFS_DIALOGUE_H
3 
4 #include <QMainWindow>
5 
6 class QSplitter;
7 class QListWidget;
8 class QStackedWidget;
9 class QListWidgetItem;
10 
11 namespace CSVPrefs
12 {
13  class PageBase;
14 
15  class Dialogue : public QMainWindow
16  {
17  Q_OBJECT
18 
20  QStackedWidget *mContent;
21 
22  private:
23 
24  void buildCategorySelector (QSplitter *main);
25 
26  void buildContentArea (QSplitter *main);
27 
28  PageBase *makePage (const std::string& key);
29 
30  public:
31 
32  Dialogue();
33 
34  virtual ~Dialogue();
35 
36  protected:
37 
38  void closeEvent (QCloseEvent *event);
39 
40  public slots:
41 
42  void show();
43 
44  private slots:
45 
46  void selectionChanged (QListWidgetItem *current, QListWidgetItem *previous);
47  };
48 }
49 
50 #endif
int main(int argc, char **argv)
Definition: bsatool.cpp:152
Definition: dialogue.hpp:15
QListWidget * mList
Definition: dialogue.hpp:19
void buildContentArea(QSplitter *main)
Definition: dialogue.cpp:45
void show()
Definition: dialogue.cpp:90
virtual ~Dialogue()
Definition: dialogue.cpp:77
Definition: pagebase.hpp:13
QStackedWidget * mContent
Definition: dialogue.hpp:20
void buildCategorySelector(QSplitter *main)
Definition: dialogue.cpp:16
void selectionChanged(QListWidgetItem *current, QListWidgetItem *previous)
Definition: dialogue.cpp:109
Dialogue()
Definition: dialogue.cpp:62
void closeEvent(QCloseEvent *event)
Definition: dialogue.cpp:83
PageBase * makePage(const std::string &key)
Definition: dialogue.cpp:53