|
Engauge Digitizer 2
|
Model for DlgSettingsMainWindow. More...
#include <MainWindowModel.h>
Public Member Functions | |
| MainWindowModel () | |
| Default constructor. | |
| MainWindowModel (const MainWindowModel &other) | |
| Copy constructor. | |
| MainWindowModel & | operator= (const MainWindowModel &other) |
| Assignment constructor. | |
| virtual void | loadXml (QXmlStreamReader &reader) |
| Load model from serialized xml. | |
| QLocale | locale () const |
| Get method for locale. | |
| MainTitleBarFormat | mainTitleBarFormat () const |
| Get method for MainWindow titlebar filename format. | |
| void | printStream (QString indentation, QTextStream &str) const |
| Debugging method that supports print method of this class and printStream method of some other class(es) | |
| virtual void | saveXml (QXmlStreamWriter &writer) const |
| Save entire model as xml into stream. | |
| void | setLocale (QLocale::Language language, QLocale::Country country) |
| Set method for locale given attributes. | |
| void | setLocale (const QLocale &locale) |
| Set method for locale given locale object. | |
| void | setMainTitleBarFormat (MainTitleBarFormat mainTitleBarFormat) |
| Set method for MainWindow titlebar filename format. | |
| void | setZoomControl (ZoomControl zoomControl) |
| Set method for zoom control. | |
| void | setZoomFactorInitial (ZoomFactorInitial zoomFactorInitial) |
| Set method for initial zoom factor. | |
| ZoomControl | zoomControl () const |
| Get method for zoom control. | |
| ZoomFactorInitial | zoomFactorInitial () const |
| Get method for initial zoom factor. | |
Public Member Functions inherited from DocumentModelAbstractBase | |
| DocumentModelAbstractBase () | |
| Single constructor. | |
| virtual | ~DocumentModelAbstractBase () |
| Single destructor. | |
Additional Inherited Members |
Model for DlgSettingsMainWindow.
Unlike the other models (DocumentModel*) this data is not saved and loaded within the document, so no xml or working with the Document class is involved. Also, there is no associated Cmd. Instead, the settings are saved using QSettings. Method involving xml/Document (from DocumentModelAbstractBase) are stubbed out
Definition at line 23 of file MainWindowModel.h.
| MainWindowModel::MainWindowModel | ( | ) |
Default constructor.
Definition at line 19 of file MainWindowModel.cpp.
| MainWindowModel::MainWindowModel | ( | const MainWindowModel & | other | ) |
Copy constructor.
Definition at line 27 of file MainWindowModel.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 45 of file MainWindowModel.cpp.
| QLocale MainWindowModel::locale | ( | ) | const |
Get method for locale.
Definition at line 66 of file MainWindowModel.cpp.
| MainTitleBarFormat MainWindowModel::mainTitleBarFormat | ( | ) | const |
Get method for MainWindow titlebar filename format.
Definition at line 71 of file MainWindowModel.cpp.
| MainWindowModel & MainWindowModel::operator= | ( | const MainWindowModel & | other | ) |
Assignment constructor.
Definition at line 35 of file MainWindowModel.cpp.
| void MainWindowModel::printStream | ( | QString | indentation, |
| QTextStream & | str | ||
| ) | const |
Debugging method that supports print method of this class and printStream method of some other class(es)
Definition at line 76 of file MainWindowModel.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 91 of file MainWindowModel.cpp.
| void MainWindowModel::setLocale | ( | const QLocale & | locale | ) |
Set method for locale given locale object.
Definition at line 108 of file MainWindowModel.cpp.
| void MainWindowModel::setLocale | ( | QLocale::Language | language, |
| QLocale::Country | country | ||
| ) |
Set method for locale given attributes.
Definition at line 99 of file MainWindowModel.cpp.
| void MainWindowModel::setMainTitleBarFormat | ( | MainTitleBarFormat | mainTitleBarFormat | ) |
Set method for MainWindow titlebar filename format.
Definition at line 113 of file MainWindowModel.cpp.
| void MainWindowModel::setZoomControl | ( | ZoomControl | zoomControl | ) |
Set method for zoom control.
Definition at line 118 of file MainWindowModel.cpp.
| void MainWindowModel::setZoomFactorInitial | ( | ZoomFactorInitial | zoomFactorInitial | ) |
Set method for initial zoom factor.
Definition at line 123 of file MainWindowModel.cpp.
| ZoomControl MainWindowModel::zoomControl | ( | ) | const |
Get method for zoom control.
Definition at line 128 of file MainWindowModel.cpp.
| ZoomFactorInitial MainWindowModel::zoomFactorInitial | ( | ) | const |
Get method for initial zoom factor.
Definition at line 133 of file MainWindowModel.cpp.