Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgSettingsGeneral.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef DLG_SETTINGS_GENERAL_H
8#define DLG_SETTINGS_GENERAL_H
9
11
12class ButtonWhatsThis;
14class QGridLayout;
15class QPushButton;
16class QSpinBox;
17
20{
21 Q_OBJECT;
22
23public:
26 virtual ~DlgSettingsGeneral();
27
28 virtual void createOptionalSaveDefault (QHBoxLayout *layout);
29 virtual QWidget *createSubPanel ();
30 virtual void load (CmdMediator &cmdMediator);
31 virtual void setSmallDialogs (bool smallDialogs);
32
33private slots:
34 void slotCursorSize (int);
35 void slotExtraPrecision (int);
36 void slotSaveDefault();
37 void slotWhatsThis();
38
39protected:
40 virtual void handleOk ();
41
42private:
43
44 void createControls (QGridLayout *layout,
45 int &row);
46 void updateControls();
47
48 ButtonWhatsThis *m_btnWhatsThis;
49
50 QSpinBox *m_spinCursorSize;
51 QSpinBox *m_spinExtraPrecision;
52
53 QPushButton *m_btnSaveDefault;
54
55 DocumentModelGeneral *m_modelGeneralBefore;
56 DocumentModelGeneral *m_modelGeneralAfter;
57};
58
59#endif // DLG_SETTINGS_GENERAL_H
Unobtrusive button to trigger QWhatsThis since some operating systems (Linux Mint) do not show WhatsT...
Command queue stack.
Definition CmdMediator.h:24
DlgSettingsAbstractBase(const QString &title, const QString &dialogName, MainWindow &mainWindow)
Single constructor.
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.
MainWindow & mainWindow()
Get method for MainWindow.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
virtual void handleOk()
Process slotOk.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
DlgSettingsGeneral(MainWindow &mainWindow)
Single constructor.
virtual void setSmallDialogs(bool smallDialogs)
If false then dialogs have a minimum size so all controls are visible.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95