twisterp2pbittorrentblockchainnetworkipv6microbloggingdecentralizedsocial-networkdhttwister-coretwisterarmyp2p-networktwister-servertwister-ipv6
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
906 B
46 lines
906 B
14 years ago
|
#ifndef OPTIONSDIALOG_H
|
||
|
#define OPTIONSDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
14 years ago
|
|
||
|
QT_BEGIN_NAMESPACE
|
||
|
class QStackedWidget;
|
||
|
class QListWidget;
|
||
|
class QListWidgetItem;
|
||
14 years ago
|
class QPushButton;
|
||
14 years ago
|
QT_END_NAMESPACE
|
||
14 years ago
|
class OptionsModel;
|
||
|
class MainOptionsPage;
|
||
14 years ago
|
class MonitoredDataMapper;
|
||
14 years ago
|
|
||
|
class OptionsDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
explicit OptionsDialog(QWidget *parent=0);
|
||
|
|
||
|
void setModel(OptionsModel *model);
|
||
14 years ago
|
|
||
|
signals:
|
||
|
|
||
|
public slots:
|
||
14 years ago
|
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
|
||
14 years ago
|
private slots:
|
||
|
void okClicked();
|
||
|
void cancelClicked();
|
||
|
void applyClicked();
|
||
|
void enableApply();
|
||
14 years ago
|
void disableApply();
|
||
14 years ago
|
private:
|
||
|
QListWidget *contents_widget;
|
||
|
QStackedWidget *pages_widget;
|
||
14 years ago
|
MainOptionsPage *main_options_page;
|
||
|
OptionsModel *model;
|
||
14 years ago
|
MonitoredDataMapper *mapper;
|
||
14 years ago
|
QPushButton *apply_button;
|
||
14 years ago
|
|
||
14 years ago
|
void setupMainPage();
|
||
14 years ago
|
};
|
||
|
|
||
|
#endif // OPTIONSDIALOG_H
|