19#include <QXmlStreamWriter>
91 return m_dragDropExport;
96 return m_highlightOpacity;
101 return m_imageReplaceRenamesDocument;
106 return m_importCropping;
128 return m_mainTitleBarFormat;
133 return m_maximumExportedPointsPerCurve;
138 return m_maximumGridLines;
143 return m_pdfResolution;
147 QTextStream &str)
const
149 str << indentation <<
"MainWindowModel\n";
153 str << indentation <<
"locale=" << m_locale.name() <<
"\n";
154 str << indentation <<
"zoomControl=" << m_zoomControl <<
"\n";
155 str << indentation <<
"zoomFactorInitial=" << m_zoomFactorInitial <<
"\n";
159 str << indentation <<
"pdfResolution=" << m_pdfResolution <<
"\n";
164 "UseDocument") <<
"\n";
165 str << indentation <<
"maximumGridLines=" << m_maximumGridLines <<
"\n";
166 str << indentation <<
"highlightOpacity=" << m_highlightOpacity <<
"\n";
167 str << indentation <<
"smallDialogs=" << (m_smallDialogs ?
"yes" :
"no") <<
"\n";
168 str << indentation <<
"dragDropExport=" << (m_dragDropExport ?
"yes" :
"no") <<
"\n";
169 str << indentation <<
"significantDigits=" << m_significantDigits <<
"\n";
170 str << indentation <<
"imageReplaceRenamesDocument=" << (m_imageReplaceRenamesDocument ?
"yes" :
"no") <<
"\n";
171 str << indentation <<
"maximumExportedPointsPerCurve=" << m_maximumExportedPointsPerCurve <<
"\n";
207 QLocale::Country country)
239 m_pdfResolution = resolution;
264 return m_significantDigits;
269 return m_smallDialogs;
274 return m_zoomControl;
279 return m_zoomFactorInitial;
const double DEFAULT_HIGHLIGHT_OPACITY
const int DEFAULT_MAXIMUM_GRID_LINES
Default for maximum number of grid lines.
const ImportCropping DEFAULT_IMPORT_CROPPING
LoadViews
Options for loading view states.
@ LOAD_VIEWS_KEEP_CURRENT
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
MainTitleBarFormat
Format format in MainWindow title bar.
@ MAIN_TITLE_BAR_FORMAT_NO_PATH
@ MAIN_TITLE_BAR_FORMAT_PATH
Filename without path.
const bool DEFAULT_SMALL_DIALOGS
const int DEFAULT_MAXIMUM_EXPORTED_POINTS_PER_CURVE
const QLocale::NumberOption HIDE_GROUP_SEPARATOR
const LoadViews DEFAULT_LOAD_VIEWS
const bool DEFAULT_IMAGE_REPLACE_RENAMES_DOCUMENT
const int DEFAULT_SIGNIFICANT_DIGITS
const bool DEFAULT_DRAG_DROP_EXPORT
const bool DEFAULT_SMALL_DIALOGS
const int DEFAULT_MAXIMUM_EXPORTED_POINTS_PER_CURVE
const LoadViews DEFAULT_LOAD_VIEWS
const bool DEFAULT_IMAGE_REPLACE_RENAMES_DOCUMENT
const int DEFAULT_SIGNIFICANT_DIGITS
const bool DEFAULT_DRAG_DROP_EXPORT
int DEFAULT_IMPORT_PDF_RESOLUTION
@ ZOOM_CONTROL_MENU_WHEEL_PLUSMINUS
const ZoomFactorInitial DEFAULT_ZOOM_FACTOR_INITIAL
static QString importCroppingToString(ImportCropping importCropping)
Option as string for display to user.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setSmallDialogs(bool smallDialogs)
Set method for small dialogs flag.
QLocale locale() const
Get method for locale.
MainWindowModel()
Default constructor.
LoadViews loadViews() const
Get method for how to load views.
void setImageReplaceRenamesDocument(bool imageReplaceRenamesDocument)
Set method for image replace renames document.
MainWindowModel & operator=(const MainWindowModel &other)
Assignment constructor.
bool dragDropExport() const
Get method for drag and drop export.
bool imageReplaceRenamesDocument() const
Get method for image replaces renames document.
ZoomFactorInitial zoomFactorInitial() const
Get method for initial zoom factor.
void setImportCropping(ImportCropping importCropping)
Set method for import cropping.
void setMaximumExportedPointsPerCurve(int maximumExportedPointsPerCurve)
Set method for maximum number of exported points per curve.
ImportCropping importCropping() const
Get method for import cropping.
bool smallDialogs() const
Get method for small dialogs flag.
void setLoadViews(LoadViews loadViews)
Set method for how to load views.
void setMainTitleBarFormat(MainTitleBarFormat mainTitleBarFormat)
Set method for MainWindow titlebar filename format.
void setDragDropExport(bool dragDropExport)
Set method for drag and drop export.
double highlightOpacity() const
Get method for highlight opacity.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setZoomControl(ZoomControl zoomControl)
Set method for zoom control.
void setMaximumGridLines(int maximumGridLines)
Set method for maximum number of grid lines.
ZoomControl zoomControl() const
Get method for zoom control.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void setPdfResolution(int resolution)
Set method for resolution of imported PDF files, in dots per inch.
int maximumGridLines() const
Get method for maximum number of grid lines.
int significantDigits() const
Get method for significant digits.
void setZoomFactorInitial(ZoomFactorInitial zoomFactorInitial)
Set method for initial zoom factor.
MainTitleBarFormat mainTitleBarFormat() const
Get method for MainWindow titlebar filename format.
void setHighlightOpacity(double highlightOpacity)
Set method for highlight opacity.
int maximumExportedPointsPerCurve() const
Get method for maximum number of exported points per curve.
void setLocale(QLocale::Language language, QLocale::Country country)
Set method for locale given attributes.
int pdfResolution() const
Get method for resolution of imported PDF files, in dots per inch.
void setSignificantDigits(int significantDigits)
Set method for significant digits.
#define LOG4CPP_ERROR_S(logger)