Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DocumentModelExportFormat.h
1 #ifndef DOCUMENT_MODEL_EXPORT_FORMAT_H
2 #define DOCUMENT_MODEL_EXPORT_FORMAT_H
3 
4 #include "DocumentModelAbstractBase.h"
5 #include "ExportDelimiter.h"
6 #include "ExportHeader.h"
7 #include "ExportLayoutFunctions.h"
8 #include "ExportPointsIntervalUnits.h"
9 #include "ExportPointsSelectionFunctions.h"
10 #include "ExportPointsSelectionRelations.h"
11 #include <QStringList>
12 
13 class Document;
14 class QTextStream;
15 
18 {
19 public:
22 
24  DocumentModelExportFormat(const Document &document);
25 
28 
31 
33  QStringList curveNamesNotExported() const;
34 
36  ExportDelimiter delimiter() const;
37 
39  ExportHeader header() const;
40 
42  ExportLayoutFunctions layoutFunctions() const;
43 
44  virtual void loadXml(QXmlStreamReader &reader);
45 
47  double pointsIntervalFunctions () const;
48 
50  double pointsIntervalRelations () const;
51 
53  ExportPointsIntervalUnits pointsIntervalUnitsFunctions () const;
54 
56  ExportPointsIntervalUnits pointsIntervalUnitsRelations () const;
57 
59  ExportPointsSelectionFunctions pointsSelectionFunctions() const;
60 
62  ExportPointsSelectionRelations pointsSelectionRelations() const;
63 
65  void printStream (QString indentation,
66  QTextStream &str) const;
67 
68  virtual void saveXml(QXmlStreamWriter &writer) const;
69 
71  void setCurveNamesNotExported(const QStringList &curveNamesNotExported);
72 
74  void setDelimiter(ExportDelimiter exportDelimiter);
75 
77  void setHeader(ExportHeader exportHeader);
78 
80  void setLayoutFunctions(ExportLayoutFunctions exportLayoutFunctions);
81 
83  void setPointsIntervalFunctions (double pointsIntervalFunctions);
84 
86  void setPointsIntervalRelations (double pointsIntervalRelations);
87 
89  void setPointsIntervalUnitsFunctions (ExportPointsIntervalUnits pointsIntervalUnitsFunctions);
90 
92  void setPointsIntervalUnitsRelations (ExportPointsIntervalUnits pointsIntervalUnitsRelations);
93 
95  void setPointsSelectionFunctions(ExportPointsSelectionFunctions exportPointsSelectionFunctions);
96 
98  void setPointsSelectionRelations(ExportPointsSelectionRelations exportPointsSelectionRelations);
99 
101  void setXLabel (const QString &xLabel);
102 
104  QString xLabel () const;
105 
106 private:
107 
108  // Curves to be excluded from export. New curves will not appear in this so they will be exported by default.
109  QStringList m_curveNamesNotExported;
110 
111  ExportPointsSelectionFunctions m_pointsSelectionFunctions;
112  double m_pointsIntervalFunctions;
113  ExportPointsIntervalUnits m_pointsIntervalUnitsFunctions;
114  ExportPointsSelectionRelations m_pointsSelectionRelations;
115  double m_pointsIntervalRelations;
116  ExportPointsIntervalUnits m_pointsIntervalUnitsRelations;
117  ExportLayoutFunctions m_layoutFunctions;
118  ExportDelimiter m_delimiter;
119  ExportHeader m_header;
120  QString m_xLabel;
121 };
122 
123 #endif // DOCUMENT_MODEL_EXPORT_FORMAT_H
void setPointsSelectionFunctions(ExportPointsSelectionFunctions exportPointsSelectionFunctions)
Set method for point selection for functions.
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
ExportLayoutFunctions layoutFunctions() const
Get method for functions layout.
DocumentModelExportFormat()
Default constructor.
ExportPointsIntervalUnits pointsIntervalUnitsRelations() const
Get method for points interval units for relations.
ExportPointsIntervalUnits pointsIntervalUnitsFunctions() const
Get method for points interval units for functions.
Model for DlgSettingsExportFormat and CmdSettingsExportFormat.
void setPointsSelectionRelations(ExportPointsSelectionRelations exportPointsSelectionRelations)
Set method for point selection for relations.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setCurveNamesNotExported(const QStringList &curveNamesNotExported)
Set method for curve names not exported.
void setDelimiter(ExportDelimiter exportDelimiter)
Set method for delimiter.
void setPointsIntervalFunctions(double pointsIntervalFunctions)
Set method for points interval for functions.
double pointsIntervalFunctions() const
Get method for points interval for functions.
ExportHeader header() const
Get method for header.
void setLayoutFunctions(ExportLayoutFunctions exportLayoutFunctions)
Set method for functions layout.
QString xLabel() const
Get method for x label.
void setPointsIntervalUnitsFunctions(ExportPointsIntervalUnits pointsIntervalUnitsFunctions)
Set method for points interval units for functions.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
DocumentModelExportFormat & operator=(const DocumentModelExportFormat &other)
Assignment constructor.
ExportDelimiter delimiter() const
Get method for delimiter.
QStringList curveNamesNotExported() const
Get method for curve names not exported.
void setPointsIntervalRelations(double pointsIntervalRelations)
Set method for relations interval for relations.
double pointsIntervalRelations() const
Get method for relations interval for relations.
Storage of one imported image and the data attached to that image.
Definition: Document.h:29
void setPointsIntervalUnitsRelations(ExportPointsIntervalUnits pointsIntervalUnitsRelations)
Set method for points interval units for relations.
void setHeader(ExportHeader exportHeader)
Set method for header.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
ExportPointsSelectionRelations pointsSelectionRelations() const
Get method for point selection for relations.
void setXLabel(const QString &xLabel)
Set method for x label.