lbrycrd/src/qt/optionsdialog.h

51 lines
935 B
C
Raw Normal View History

#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
class OptionsModel;
class MainOptionsPage;
class DisplayOptionsPage;
class MonitoredDataMapper;
class OptionsDialog : public QDialog
{
Q_OBJECT
public:
explicit OptionsDialog(QWidget *parent=0);
void setModel(OptionsModel *model);
signals:
public slots:
void changePage(int index);
2011-06-01 09:33:48 +02:00
private slots:
void okClicked();
void cancelClicked();
void applyClicked();
void enableApply();
void disableApply();
2011-05-12 14:44:52 +02:00
private:
QListWidget *contents_widget;
QStackedWidget *pages_widget;
OptionsModel *model;
MonitoredDataMapper *mapper;
2011-06-01 09:33:48 +02:00
QPushButton *apply_button;
// Pages
MainOptionsPage *main_page;
DisplayOptionsPage *display_page;
2011-05-12 14:44:52 +02:00
void setupMainPage();
};
#endif // OPTIONSDIALOG_H