mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
b7daffbf08
Since I'm using a dialog created by hand, I also need to hook things by hand. the code is very simple - debug output kept in just to make sure things are indeed working. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
31 lines
No EOL
683 B
C++
31 lines
No EOL
683 B
C++
#ifndef PREFERENCES_WIDGET_H
|
|
#define PREFERENCES_WIDGET_H
|
|
|
|
#include <QDialog>
|
|
#include "pref.h"
|
|
|
|
class AbstractPreferencesWidget;
|
|
class QListWidget;
|
|
class QStackedWidget;
|
|
class QDialogButtonBox;
|
|
class QAbstractButton;
|
|
|
|
class PreferencesDialogV2 : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
PreferencesDialogV2();
|
|
virtual ~PreferencesDialogV2();
|
|
void addPreferencePage(AbstractPreferencesWidget *page);
|
|
void refreshPages();
|
|
private:
|
|
void cancelRequested();
|
|
void applyRequested();
|
|
void defaultsRequested();
|
|
void buttonClicked(QAbstractButton *btn);
|
|
QList<AbstractPreferencesWidget*> pages;
|
|
QListWidget *pagesList;
|
|
QStackedWidget *pagesStack;
|
|
QDialogButtonBox *buttonBox;
|
|
};
|
|
|
|
#endif |