QSettingsDialog  1.0.0
A Qt library to easily create a settings dialog for user configurable settings
qsettingsdisplayengine.h
1 #ifndef QSETTINGSDISPLAYENGINE_H
2 #define QSETTINGSDISPLAYENGINE_H
3 
4 #include "qsettingsdialog_global.h"
5 class QWindow;
6 struct SettingsRoot;
7 
9 class QSETTINGSDIALOGSHARED_EXPORT QSettingsDisplayInstance
10 {
11 public:
13  inline virtual ~QSettingsDisplayInstance() {}
14 
16  virtual void setParentWindow(QWidget *parent) = 0;
18  virtual void setParentWindow(QWindow *parent) = 0;
20  virtual void createUi(const QSharedPointer<SettingsRoot> &rootElement) = 0;
21 
22 public slots:
24  virtual void open() = 0;
26  virtual int exec() = 0;
27 
28 signals:
30  virtual void saved(bool closed) = 0;
32  virtual void resetted() = 0;
34  virtual void canceled() = 0;
35 };
36 
38 class QSETTINGSDIALOGSHARED_EXPORT QSettingsDisplayEngine
39 {
40 public:
42  inline virtual ~QSettingsDisplayEngine() {}
43 
45  virtual QSettingsDisplayInstance *createInstance() = 0;
46 };
47 
48 #endif // QSETTINGSDISPLAYENGINE_H
[INTERNAL USE] An interface for an engine to create display dialogs
Definition: qsettingsdisplayengine.h:38
[INTERNAL USE] An interface for a display instance that can be controlled by the dialog ...
Definition: qsettingsdisplayengine.h:9
virtual ~QSettingsDisplayEngine()
Virtual destructor.
Definition: qsettingsdisplayengine.h:42
virtual ~QSettingsDisplayInstance()
Virtual destructor.
Definition: qsettingsdisplayengine.h:13