2011-05-12 09:40:40 +02:00
|
|
|
#ifndef OPTIONSDIALOG_H
|
|
|
|
#define OPTIONSDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2011-05-13 22:00:27 +02:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QStackedWidget;
|
|
|
|
class QListWidget;
|
|
|
|
class QListWidgetItem;
|
2011-06-01 09:33:48 +02:00
|
|
|
class QPushButton;
|
2011-05-13 22:00:27 +02:00
|
|
|
QT_END_NAMESPACE
|
2011-05-31 22:24:53 +02:00
|
|
|
class OptionsModel;
|
|
|
|
class MainOptionsPage;
|
2011-06-01 14:40:06 +02:00
|
|
|
class MonitoredDataMapper;
|
2011-05-12 09:40:40 +02:00
|
|
|
|
|
|
|
class OptionsDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2011-05-31 22:24:53 +02:00
|
|
|
explicit OptionsDialog(QWidget *parent=0);
|
|
|
|
|
|
|
|
void setModel(OptionsModel *model);
|
2011-05-12 09:40:40 +02:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
2011-05-12 14:44:52 +02:00
|
|
|
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
|
2011-06-01 09:33:48 +02:00
|
|
|
private slots:
|
|
|
|
void okClicked();
|
|
|
|
void cancelClicked();
|
|
|
|
void applyClicked();
|
|
|
|
void enableApply();
|
2011-06-01 14:40:06 +02:00
|
|
|
void disableApply();
|
2011-05-12 14:44:52 +02:00
|
|
|
private:
|
|
|
|
QListWidget *contents_widget;
|
|
|
|
QStackedWidget *pages_widget;
|
2011-05-31 22:24:53 +02:00
|
|
|
MainOptionsPage *main_options_page;
|
|
|
|
OptionsModel *model;
|
2011-06-01 14:40:06 +02:00
|
|
|
MonitoredDataMapper *mapper;
|
2011-06-01 09:33:48 +02:00
|
|
|
QPushButton *apply_button;
|
2011-05-12 09:40:40 +02:00
|
|
|
|
2011-05-12 14:44:52 +02:00
|
|
|
void setupMainPage();
|
2011-05-12 09:40:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OPTIONSDIALOG_H
|