|
Engauge Digitizer
2
|
Dialog for editing main window settings, which are entirely independent of all documents. More...
#include <DlgSettingsMainWindow.h>


Public Member Functions | |
| DlgSettingsMainWindow (MainWindow &mainWindow) | |
| Single constructor. More... | |
| virtual | ~DlgSettingsMainWindow () |
| virtual void | createOptionalSaveDefault (QHBoxLayout *layout) |
| Let subclass define an optional Save As Default button. More... | |
| virtual QWidget * | createSubPanel () |
| Create dialog-specific panel to which base class will add Ok and Cancel buttons. More... | |
| virtual void | load (CmdMediator &cmdMediator) |
| Load settings from Document. More... | |
| void | loadMainWindowModel (CmdMediator &cmdMediator, const MainWindowModel &modelMainWindow) |
| Replaced load method since the main window settings are independent of document, unlike other DlgSettings* classes. More... | |
| virtual void | setSmallDialogs (bool smallDialogs) |
| If false then dialogs have a minimum size so all controls are visible. More... | |
Public Member Functions inherited from DlgSettingsAbstractBase | |
| DlgSettingsAbstractBase (const QString &title, const QString &dialogName, MainWindow &mainWindow) | |
| Single constructor. More... | |
| virtual | ~DlgSettingsAbstractBase () |
Protected Member Functions | |
| virtual void | handleOk () |
| Process slotOk. More... | |
Protected Member Functions inherited from DlgSettingsAbstractBase | |
| CmdMediator & | cmdMediator () |
| Provide access to Document information wrapped inside CmdMediator. More... | |
| void | enableOk (bool enable) |
| Let leaf subclass control the Ok button. More... | |
| void | finishPanel (QWidget *subPanel, int minimumWidth=MINIMUM_DIALOG_WIDTH, int minimumHeightOrZero=0) |
| Add Ok and Cancel buttons to subpanel to get the whole dialog. More... | |
| MainWindow & | mainWindow () |
| Get method for MainWindow. More... | |
| const MainWindow & | mainWindow () const |
| Const get method for MainWindow. More... | |
| void | populateColorComboWithoutTransparent (QComboBox &combo) |
| Add colors in color palette to combobox, without transparent entry at end. More... | |
| void | populateColorComboWithTransparent (QComboBox &combo) |
| Add colors in color palette to combobox, with transparent entry at end. More... | |
| void | setCmdMediator (CmdMediator &cmdMediator) |
| Store CmdMediator for easy access by the leaf class. More... | |
| void | setDisableOkAtStartup (bool disableOkAtStartup) |
| Override the default Ok button behavior applied in showEvent. More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from DlgSettingsAbstractBase | |
| static int | MINIMUM_DIALOG_WIDTH = 380 |
| Dialog layout constant that guarantees every widget has sufficient room. Can be increased by finishPanel. More... | |
| static int | MINIMUM_PREVIEW_HEIGHT = 100 |
| Dialog layout constant that guarantees preview has sufficent room. More... | |
Dialog for editing main window settings, which are entirely independent of all documents.
Definition at line 24 of file DlgSettingsMainWindow.h.
| DlgSettingsMainWindow::DlgSettingsMainWindow | ( | MainWindow & | mainWindow | ) |
Single constructor.
Definition at line 42 of file DlgSettingsMainWindow.cpp.
|
virtual |
Definition at line 56 of file DlgSettingsMainWindow.cpp.
|
virtual |
Let subclass define an optional Save As Default button.
Implements DlgSettingsAbstractBase.
Definition at line 257 of file DlgSettingsMainWindow.cpp.
|
virtual |
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
Implements DlgSettingsAbstractBase.
Definition at line 262 of file DlgSettingsMainWindow.cpp.
|
protectedvirtual |
Process slotOk.
Implements DlgSettingsAbstractBase.
Definition at line 291 of file DlgSettingsMainWindow.cpp.
|
virtual |
Load settings from Document.
Implements DlgSettingsAbstractBase.
Definition at line 300 of file DlgSettingsMainWindow.cpp.
| void DlgSettingsMainWindow::loadMainWindowModel | ( | CmdMediator & | cmdMediator, |
| const MainWindowModel & | modelMainWindow | ||
| ) |
Replaced load method since the main window settings are independent of document, unlike other DlgSettings* classes.
Definition at line 307 of file DlgSettingsMainWindow.cpp.
|
virtual |
If false then dialogs have a minimum size so all controls are visible.
Implements DlgSettingsAbstractBase.
Definition at line 353 of file DlgSettingsMainWindow.cpp.
1.8.14