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_SMALL_DIALOGS;
38 virtual void loadXml(QXmlStreamReader &reader);
60 QTextStream &str)
const;
62 virtual void saveXml(QXmlStreamWriter &writer)
const;
68 void setLocale (QLocale::Language language,
69 QLocale::Country country);
107 ZoomControl m_zoomControl;
108 ZoomFactorInitial m_zoomFactorInitial;
109 MainTitleBarFormat m_mainTitleBarFormat;
111 ImportCropping m_importCropping;
112 int m_maximumGridLines;
113 double m_highlightOpacity;
118 #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...
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
MainTitleBarFormat mainTitleBarFormat() const
Get method for MainWindow titlebar filename format.
void setHighlightOpacity(double highlightOpacity)
Set method for highlight opacity.
void setLocale(QLocale::Language language, QLocale::Country country)
Set method for locale given attributes.
int maximumGridLines() const
Maximum number of grid lines.
MainWindowModel()
Default constructor.
bool smallDialogs() const
Get method for small dialogs flag.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
ZoomControl zoomControl() const
Get method for zoom control.
Model for DlgSettingsMainWindow.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setMaximumGridLines(int maximumGridLines)
Set method for maximum number of grid lines.
double highlightOpacity() const
Get method for highlight opacity.
int pdfResolution() const
Get method for resolution of imported PDF files, in dots per inch.
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.
ZoomFactorInitial zoomFactorInitial() const
Get method for initial zoom factor.
void setSmallDialogs(bool smallDialogs)
Set method for small dialogs flag.
ImportCropping importCropping() const
Get method for import cropping.
QLocale locale() const
Get method for locale.
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.