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. | |
bool | dragDropExport () const |
Get method for drag and drop export. | |
double | highlightOpacity () const |
Get method for highlight opacity. | |
bool | imageReplaceRenamesDocument () const |
Get method for image replaces renames document. | |
ImportCropping | importCropping () const |
Get method for import cropping. | |
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. | |
int | maximumGridLines () const |
Maximum number of grid lines. | |
int | pdfResolution () const |
Get method for resolution of imported PDF files, in dots per inch. | |
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 | setDragDropExport (bool dragDropExport) |
Set method for drag and drop export. | |
void | setHighlightOpacity (double highlightOpacity) |
Set method for highlight opacity. | |
void | setImageReplaceRenamesDocument (bool imageReplaceRenamesDocument) |
Set method for image replace renames document. | |
void | setImportCropping (ImportCropping importCropping) |
Set method for import cropping. | |
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 | setMaximumGridLines (int maximumGridLines) |
Set method for maximum number of grid lines. | |
void | setPdfResolution (int resolution) |
Set method for resolution of imported PDF files, in dots per inch. | |
void | setSignificantDigits (int significantDigits) |
Set method for significant digits. | |
void | setSmallDialogs (bool smallDialogs) |
Set method for small dialogs flag. | |
void | setZoomControl (ZoomControl zoomControl) |
Set method for zoom control. | |
void | setZoomFactorInitial (ZoomFactorInitial zoomFactorInitial) |
Set method for initial zoom factor. | |
int | significantDigits () const |
Get method for significant digits. | |
bool | smallDialogs () const |
Get method for small dialogs flag. | |
ZoomControl | zoomControl () const |
Get method for zoom control. | |
ZoomFactorInitial | zoomFactorInitial () const |
Get method for initial zoom factor. | |
![]() | |
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. Methods involving xml/Document (from DocumentModelAbstractBase) are stubbed out
Definition at line 30 of file MainWindowModel.h.
MainWindowModel::MainWindowModel | ( | ) |
Default constructor.
Definition at line 31 of file MainWindowModel.cpp.
MainWindowModel::MainWindowModel | ( | const MainWindowModel & | other | ) |
Copy constructor.
Definition at line 47 of file MainWindowModel.cpp.
bool MainWindowModel::dragDropExport | ( | ) | const |
Get method for drag and drop export.
Definition at line 81 of file MainWindowModel.cpp.
double MainWindowModel::highlightOpacity | ( | ) | const |
Get method for highlight opacity.
Definition at line 86 of file MainWindowModel.cpp.
bool MainWindowModel::imageReplaceRenamesDocument | ( | ) | const |
Get method for image replaces renames document.
Definition at line 91 of file MainWindowModel.cpp.
ImportCropping MainWindowModel::importCropping | ( | ) | const |
Get method for import cropping.
Definition at line 96 of file MainWindowModel.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 101 of file MainWindowModel.cpp.
QLocale MainWindowModel::locale | ( | ) | const |
Get method for locale.
Definition at line 122 of file MainWindowModel.cpp.
MainTitleBarFormat MainWindowModel::mainTitleBarFormat | ( | ) | const |
Get method for MainWindow titlebar filename format.
Definition at line 127 of file MainWindowModel.cpp.
int MainWindowModel::maximumGridLines | ( | ) | const |
Maximum number of grid lines.
Definition at line 132 of file MainWindowModel.cpp.
MainWindowModel & MainWindowModel::operator= | ( | const MainWindowModel & | other | ) |
Assignment constructor.
Definition at line 63 of file MainWindowModel.cpp.
int MainWindowModel::pdfResolution | ( | ) | const |
Get method for resolution of imported PDF files, in dots per inch.
Definition at line 137 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 142 of file MainWindowModel.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 165 of file MainWindowModel.cpp.
Set method for drag and drop export.
Definition at line 173 of file MainWindowModel.cpp.
Set method for highlight opacity.
Definition at line 178 of file MainWindowModel.cpp.
Set method for image replace renames document.
Definition at line 183 of file MainWindowModel.cpp.
void MainWindowModel::setImportCropping | ( | ImportCropping | importCropping | ) |
Set method for import cropping.
Definition at line 188 of file MainWindowModel.cpp.
Set method for locale given locale object.
Definition at line 203 of file MainWindowModel.cpp.
void MainWindowModel::setLocale | ( | QLocale::Language | language, |
QLocale::Country | country ) |
Set method for locale given attributes.
Definition at line 193 of file MainWindowModel.cpp.
void MainWindowModel::setMainTitleBarFormat | ( | MainTitleBarFormat | mainTitleBarFormat | ) |
Set method for MainWindow titlebar filename format.
Definition at line 209 of file MainWindowModel.cpp.
Set method for maximum number of grid lines.
Definition at line 214 of file MainWindowModel.cpp.
Set method for resolution of imported PDF files, in dots per inch.
Definition at line 219 of file MainWindowModel.cpp.
Set method for significant digits.
Definition at line 224 of file MainWindowModel.cpp.
Set method for small dialogs flag.
Definition at line 229 of file MainWindowModel.cpp.
void MainWindowModel::setZoomControl | ( | ZoomControl | zoomControl | ) |
Set method for zoom control.
Definition at line 234 of file MainWindowModel.cpp.
void MainWindowModel::setZoomFactorInitial | ( | ZoomFactorInitial | zoomFactorInitial | ) |
Set method for initial zoom factor.
Definition at line 239 of file MainWindowModel.cpp.
int MainWindowModel::significantDigits | ( | ) | const |
Get method for significant digits.
Definition at line 244 of file MainWindowModel.cpp.
bool MainWindowModel::smallDialogs | ( | ) | const |
Get method for small dialogs flag.
Definition at line 249 of file MainWindowModel.cpp.
ZoomControl MainWindowModel::zoomControl | ( | ) | const |
Get method for zoom control.
Definition at line 254 of file MainWindowModel.cpp.
ZoomFactorInitial MainWindowModel::zoomFactorInitial | ( | ) | const |
Get method for initial zoom factor.
Definition at line 259 of file MainWindowModel.cpp.