7 #ifndef MAIN_WINDOW_MODEL_H 8 #define MAIN_WINDOW_MODEL_H 10 #include "DocumentModelAbstractBase.h" 11 #include "ImportCropping.h" 12 #include "MainTitleBarFormat.h" 15 #include "ZoomControl.h" 16 #include "ZoomFactorInitial.h" 20 extern bool DEFAULT_DRAG_DROP_EXPORT;
21 extern int DEFAULT_SIGNIFICANT_DIGITS;
22 extern bool DEFAULT_SMALL_DIALOGS;
23 extern bool DEFAULT_IMAGE_REPLACE_RENAMES_DOCUMENT;
44 virtual void loadXml(QXmlStreamReader &reader);
69 QTextStream &str)
const;
71 virtual void saveXml(QXmlStreamWriter &writer)
const;
86 void setLocale (QLocale::Language language,
87 QLocale::Country country);
128 ZoomControl m_zoomControl;
129 ZoomFactorInitial m_zoomFactorInitial;
130 MainTitleBarFormat m_mainTitleBarFormat;
132 ImportCropping m_importCropping;
133 int m_maximumGridLines;
134 double m_highlightOpacity;
136 bool m_dragDropExport;
137 int m_significantDigits;
138 bool m_imageReplaceRenamesDocument;
141 #endif // MAIN_WINDOW_MODEL_H MainWindowModel & operator=(const MainWindowModel &other)
Assignment constructor.
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
void setDragDropExport(bool dragDropExport)
Set method for drag and drop export.
void setSignificantDigits(int significantDigits)
Set method for significant digits.
void setHighlightOpacity(double highlightOpacity)
Set method for highlight opacity.
double highlightOpacity() const
Get method for highlight opacity.
ZoomFactorInitial zoomFactorInitial() const
Get method for initial zoom factor.
void setLocale(QLocale::Language language, QLocale::Country country)
Set method for locale given attributes.
bool smallDialogs() const
Get method for small dialogs flag.
MainWindowModel()
Default constructor.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
bool imageReplaceRenamesDocument() const
Get method for image replaces renames document.
ZoomControl zoomControl() const
Get method for zoom control.
ImportCropping importCropping() const
Get method for import cropping.
int significantDigits() const
Get method for significant digits.
Model for DlgSettingsMainWindow.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
int maximumGridLines() const
Maximum number of grid lines.
int pdfResolution() const
Get method for resolution of imported PDF files, in dots per inch.
void setMaximumGridLines(int maximumGridLines)
Set method for maximum number of grid lines.
MainTitleBarFormat mainTitleBarFormat() const
Get method for MainWindow titlebar filename format.
QLocale locale() const
Get method for locale.
void setZoomControl(ZoomControl zoomControl)
Set method for zoom control.
void setMainTitleBarFormat(MainTitleBarFormat mainTitleBarFormat)
Set method for MainWindow titlebar filename format.
void setZoomFactorInitial(ZoomFactorInitial zoomFactorInitial)
Set method for initial zoom factor.
bool dragDropExport() const
Get method for drag and drop export.
void setImageReplaceRenamesDocument(bool imageReplaceRenamesDocument)
Set method for image replace renames document.
void setSmallDialogs(bool smallDialogs)
Set method for small dialogs flag.
void setPdfResolution(int resolution)
Set method for resolution of imported PDF files, in dots per inch.
void setImportCropping(ImportCropping importCropping)
Set method for import cropping.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...