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. | |
LoadViews | loadViews () const |
Get method for how to load views. | |
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 | 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 | setLoadViews (LoadViews loadViews) |
Set method for how to load views. | |
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. | |
Public Member Functions inherited from DocumentModelAbstractBase | |
DocumentModelAbstractBase () | |
Single constructor. | |
virtual | ~DocumentModelAbstractBase () |
Single destructor. |
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.
double MainWindowModel::highlightOpacity | ( | ) | const |
Get method for highlight opacity.
Definition at line 94 of file MainWindowModel.cpp.
bool MainWindowModel::imageReplaceRenamesDocument | ( | ) | const |
Get method for image replaces renames document.
Definition at line 99 of file MainWindowModel.cpp.
ImportCropping MainWindowModel::importCropping | ( | ) | const |
Get method for import cropping.
Definition at line 104 of file MainWindowModel.cpp.
LoadViews MainWindowModel::loadViews | ( | ) | const |
Get method for how to load views.
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 121 of file MainWindowModel.cpp.
MainTitleBarFormat MainWindowModel::mainTitleBarFormat | ( | ) | const |
Get method for MainWindow titlebar filename format.
Definition at line 126 of file MainWindowModel.cpp.
int MainWindowModel::maximumExportedPointsPerCurve | ( | ) | const |
Get method for maximum number of exported points per curve.
Definition at line 131 of file MainWindowModel.cpp.
int MainWindowModel::maximumGridLines | ( | ) | const |
Get method for maximum number of grid lines.
Definition at line 136 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 141 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 146 of file MainWindowModel.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 174 of file MainWindowModel.cpp.
void MainWindowModel::setDragDropExport | ( | bool | dragDropExport | ) |
Set method for drag and drop export.
Definition at line 181 of file MainWindowModel.cpp.
void MainWindowModel::setHighlightOpacity | ( | double | highlightOpacity | ) |
Set method for highlight opacity.
Definition at line 186 of file MainWindowModel.cpp.
void MainWindowModel::setImageReplaceRenamesDocument | ( | bool | imageReplaceRenamesDocument | ) |
Set method for image replace renames document.
Definition at line 191 of file MainWindowModel.cpp.
void MainWindowModel::setImportCropping | ( | ImportCropping | importCropping | ) |
Set method for import cropping.
Definition at line 196 of file MainWindowModel.cpp.
void MainWindowModel::setLoadViews | ( | LoadViews | loadViews | ) |
Set method for how to load views.
Definition at line 201 of file MainWindowModel.cpp.
void MainWindowModel::setLocale | ( | const QLocale & | locale | ) |
Set method for locale given locale object.
Definition at line 216 of file MainWindowModel.cpp.
void MainWindowModel::setLocale | ( | QLocale::Language | language, |
QLocale::Country | country ) |
Set method for locale given attributes.
Definition at line 206 of file MainWindowModel.cpp.
void MainWindowModel::setMainTitleBarFormat | ( | MainTitleBarFormat | mainTitleBarFormat | ) |
Set method for MainWindow titlebar filename format.
Definition at line 222 of file MainWindowModel.cpp.
void MainWindowModel::setMaximumExportedPointsPerCurve | ( | int | maximumExportedPointsPerCurve | ) |
Set method for maximum number of exported points per curve.
Definition at line 227 of file MainWindowModel.cpp.
void MainWindowModel::setMaximumGridLines | ( | int | maximumGridLines | ) |
Set method for maximum number of grid lines.
Definition at line 232 of file MainWindowModel.cpp.
void MainWindowModel::setPdfResolution | ( | int | resolution | ) |
Set method for resolution of imported PDF files, in dots per inch.
Definition at line 237 of file MainWindowModel.cpp.
void MainWindowModel::setSignificantDigits | ( | int | significantDigits | ) |
Set method for significant digits.
Definition at line 242 of file MainWindowModel.cpp.
void MainWindowModel::setSmallDialogs | ( | bool | smallDialogs | ) |
Set method for small dialogs flag.
Definition at line 247 of file MainWindowModel.cpp.
void MainWindowModel::setZoomControl | ( | ZoomControl | zoomControl | ) |
Set method for zoom control.
Definition at line 252 of file MainWindowModel.cpp.
void MainWindowModel::setZoomFactorInitial | ( | ZoomFactorInitial | zoomFactorInitial | ) |
Set method for initial zoom factor.
Definition at line 257 of file MainWindowModel.cpp.
int MainWindowModel::significantDigits | ( | ) | const |
Get method for significant digits.
Definition at line 262 of file MainWindowModel.cpp.
bool MainWindowModel::smallDialogs | ( | ) | const |
Get method for small dialogs flag.
Definition at line 267 of file MainWindowModel.cpp.
ZoomControl MainWindowModel::zoomControl | ( | ) | const |
Get method for zoom control.
Definition at line 272 of file MainWindowModel.cpp.
ZoomFactorInitial MainWindowModel::zoomFactorInitial | ( | ) | const |
Get method for initial zoom factor.
Definition at line 277 of file MainWindowModel.cpp.