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. | |
ColorPalette | guidelineColor () const |
Get method for guideline color. | |
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 | maximumExportedPointsPerCurve () const |
Get method for maximum number of exported points per curve. | |
int | maximumGridLines () const |
Get method for 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 | setGuidelineColor (ColorPalette guidelineColor) |
Set method for guideline color. | |
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 | setMaximumExportedPointsPerCurve (int maximumExportedPointsPerCurve) |
Set method for maximum number of exported points per curve. | |
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 32 of file MainWindowModel.h.
MainWindowModel::MainWindowModel | ( | ) |
Default constructor.
Definition at line 33 of file MainWindowModel.cpp.
MainWindowModel::MainWindowModel | ( | const MainWindowModel & | other | ) |
Copy constructor.
Definition at line 51 of file MainWindowModel.cpp.
bool MainWindowModel::dragDropExport | ( | ) | const |
Get method for drag and drop export.
Definition at line 89 of file MainWindowModel.cpp.
ColorPalette MainWindowModel::guidelineColor | ( | ) | const |
Get method for guideline color.
Definition at line 94 of file MainWindowModel.cpp.
double MainWindowModel::highlightOpacity | ( | ) | const |
Get method for highlight opacity.
Definition at line 99 of file MainWindowModel.cpp.
bool MainWindowModel::imageReplaceRenamesDocument | ( | ) | const |
Get method for image replaces renames document.
Definition at line 104 of file MainWindowModel.cpp.
ImportCropping MainWindowModel::importCropping | ( | ) | const |
Get method for import cropping.
Definition at line 109 of file MainWindowModel.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 114 of file MainWindowModel.cpp.
QLocale MainWindowModel::locale | ( | ) | const |
Get method for locale.
Definition at line 135 of file MainWindowModel.cpp.
MainTitleBarFormat MainWindowModel::mainTitleBarFormat | ( | ) | const |
Get method for MainWindow titlebar filename format.
Definition at line 140 of file MainWindowModel.cpp.
int MainWindowModel::maximumExportedPointsPerCurve | ( | ) | const |
Get method for maximum number of exported points per curve.
Definition at line 145 of file MainWindowModel.cpp.
int MainWindowModel::maximumGridLines | ( | ) | const |
Get method for maximum number of grid lines.
Definition at line 150 of file MainWindowModel.cpp.
MainWindowModel & MainWindowModel::operator= | ( | const MainWindowModel & | other | ) |
Assignment constructor.
Definition at line 69 of file MainWindowModel.cpp.
int MainWindowModel::pdfResolution | ( | ) | const |
Get method for resolution of imported PDF files, in dots per inch.
Definition at line 155 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 160 of file MainWindowModel.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 185 of file MainWindowModel.cpp.
Set method for drag and drop export.
Definition at line 193 of file MainWindowModel.cpp.
void MainWindowModel::setGuidelineColor | ( | ColorPalette | guidelineColor | ) |
Set method for guideline color.
Definition at line 198 of file MainWindowModel.cpp.
Set method for highlight opacity.
Definition at line 203 of file MainWindowModel.cpp.
Set method for image replace renames document.
Definition at line 208 of file MainWindowModel.cpp.
void MainWindowModel::setImportCropping | ( | ImportCropping | importCropping | ) |
Set method for import cropping.
Definition at line 213 of file MainWindowModel.cpp.
Set method for locale given locale object.
Definition at line 228 of file MainWindowModel.cpp.
void MainWindowModel::setLocale | ( | QLocale::Language | language, |
QLocale::Country | country ) |
Set method for locale given attributes.
Definition at line 218 of file MainWindowModel.cpp.
void MainWindowModel::setMainTitleBarFormat | ( | MainTitleBarFormat | mainTitleBarFormat | ) |
Set method for MainWindow titlebar filename format.
Definition at line 234 of file MainWindowModel.cpp.
Set method for maximum number of exported points per curve.
Definition at line 239 of file MainWindowModel.cpp.
Set method for maximum number of grid lines.
Definition at line 244 of file MainWindowModel.cpp.
Set method for resolution of imported PDF files, in dots per inch.
Definition at line 249 of file MainWindowModel.cpp.
Set method for significant digits.
Definition at line 254 of file MainWindowModel.cpp.
Set method for small dialogs flag.
Definition at line 259 of file MainWindowModel.cpp.
void MainWindowModel::setZoomControl | ( | ZoomControl | zoomControl | ) |
Set method for zoom control.
Definition at line 264 of file MainWindowModel.cpp.
void MainWindowModel::setZoomFactorInitial | ( | ZoomFactorInitial | zoomFactorInitial | ) |
Set method for initial zoom factor.
Definition at line 269 of file MainWindowModel.cpp.
int MainWindowModel::significantDigits | ( | ) | const |
Get method for significant digits.
Definition at line 274 of file MainWindowModel.cpp.
bool MainWindowModel::smallDialogs | ( | ) | const |
Get method for small dialogs flag.
Definition at line 279 of file MainWindowModel.cpp.
ZoomControl MainWindowModel::zoomControl | ( | ) | const |
Get method for zoom control.
Definition at line 284 of file MainWindowModel.cpp.
ZoomFactorInitial MainWindowModel::zoomFactorInitial | ( | ) | const |
Get method for initial zoom factor.
Definition at line 289 of file MainWindowModel.cpp.