Engauge Digitizer  2
DlgSettingsGeneral.h
1 #ifndef DLG_SETTINGS_GENERAL_H
2 #define DLG_SETTINGS_GENERAL_H
3 
4 #include "DlgSettingsAbstractBase.h"
5 
7 class QGridLayout;
8 class QPushButton;
9 class QSpinBox;
10 
13 {
14  Q_OBJECT;
15 
16 public:
19  virtual ~DlgSettingsGeneral();
20 
21  virtual void createOptionalSaveDefault (QHBoxLayout *layout);
22  virtual QWidget *createSubPanel ();
23  virtual void load (CmdMediator &cmdMediator);
24 
25 private slots:
26  void slotCursorSize (int);
27  void slotExtraPrecision (int);
28  void slotSaveDefault();
29 
30 protected:
31  virtual void handleOk ();
32 
33 private:
34 
35  void createControls (QGridLayout *layout,
36  int &row);
37  void updateControls();
38 
39  QSpinBox *m_spinCursorSize;
40  QSpinBox *m_spinExtraPrecision;
41 
42  QPushButton *m_btnSaveDefault;
43 
44  DocumentModelGeneral *m_modelGeneralBefore;
45  DocumentModelGeneral *m_modelGeneralAfter;
46 };
47 
48 #endif // DLG_SETTINGS_GENERAL_H
Model for DlgSettingsGeneral and CmdSettingsGeneral.
virtual void handleOk()
Process slotOk.
DlgSettingsGeneral(MainWindow &mainWindow)
Single constructor.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
Dialog for editing general settings.
Command queue stack.
Definition: CmdMediator.h:16
Abstract base class for all Settings dialogs.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
MainWindow & mainWindow()
Get method for MainWindow.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:66
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.