aboutsummaryrefslogtreecommitdiff
path: root/src/qt/optionsdialog.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-11 22:11:58 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-11 22:11:58 +0200
commitba4081c1fcaddf361abd61b2721994eff5475bb3 (patch)
tree8667eac9e13bde9d006407b55b73bacc830f46e6 /src/qt/optionsdialog.h
parent5813089e0b5ab9cff50192f0068d256eb2602316 (diff)
move back to original directory structure
Diffstat (limited to 'src/qt/optionsdialog.h')
-rw-r--r--src/qt/optionsdialog.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/qt/optionsdialog.h b/src/qt/optionsdialog.h
new file mode 100644
index 0000000000..07e85297d5
--- /dev/null
+++ b/src/qt/optionsdialog.h
@@ -0,0 +1,45 @@
+#ifndef OPTIONSDIALOG_H
+#define OPTIONSDIALOG_H
+
+#include <QDialog>
+
+QT_BEGIN_NAMESPACE
+class QStackedWidget;
+class QListWidget;
+class QListWidgetItem;
+class QPushButton;
+QT_END_NAMESPACE
+class OptionsModel;
+class MainOptionsPage;
+class MonitoredDataMapper;
+
+class OptionsDialog : public QDialog
+{
+ Q_OBJECT
+public:
+ explicit OptionsDialog(QWidget *parent=0);
+
+ void setModel(OptionsModel *model);
+
+signals:
+
+public slots:
+ void changePage(QListWidgetItem *current, QListWidgetItem *previous);
+private slots:
+ void okClicked();
+ void cancelClicked();
+ void applyClicked();
+ void enableApply();
+ void disableApply();
+private:
+ QListWidget *contents_widget;
+ QStackedWidget *pages_widget;
+ MainOptionsPage *main_options_page;
+ OptionsModel *model;
+ MonitoredDataMapper *mapper;
+ QPushButton *apply_button;
+
+ void setupMainPage();
+};
+
+#endif // OPTIONSDIALOG_H