00001 #ifndef TEST_EXPORT_H
00002 #define TEST_EXPORT_H
00003
00004 #include "DocumentModelCoords.h"
00005 #include "DocumentModelExportFormat.h"
00006 #include "DocumentModelGeneral.h"
00007 #include "ExportValuesXOrY.h"
00008 #include "MainWindowModel.h"
00009 #include <QObject>
00010 #include "Transformation.h"
00011
00012 class Document;
00013
00015 class TestExport : public QObject
00016 {
00017 Q_OBJECT
00018 public:
00020 explicit TestExport(QObject *parent = 0);
00021
00022 signals:
00023
00024 private slots:
00025 void cleanupTestCase ();
00026 void initTestCase ();
00027
00028
00029
00030
00031 void testCommasInFunctionsForCommasSwitzerland ();
00032 void testCommasInFunctionsForCommasUnitedStates ();
00033 void testCommasInFunctionsForTabsSwitzerland ();
00034 void testCommasInFunctionsForTabsUnitedStates ();
00035 void testCommasInRelationsForCommasSwitzerland ();
00036 void testCommasInRelationsForCommasUnitedStates ();
00037 void testCommasInRelationsForTabsSwitzerland ();
00038 void testCommasInRelationsForTabsUnitedStates ();
00039 void testLogExtrapolationFunctionsAll ();
00040
00041 private:
00042 bool checkCommasInFunctionsForDelimiter (ExportDelimiter delimiter,
00043 QLocale::Country country,
00044 QString &output);
00045 bool checkCommasInRelationsForDelimiter (ExportDelimiter delimiter,
00046 QLocale::Country country,
00047 QString &output);
00048 void initData (bool isLog,
00049 ExportDelimiter delimiter,
00050 QLocale::Country country);
00051
00052 Document *m_document;
00053 DocumentModelCoords m_modelCoords;
00054 DocumentModelExportFormat m_modelExportOverride;
00055 DocumentModelGeneral m_modelGeneral;
00056 MainWindowModel m_modelMainWindow;
00057 Transformation m_transformation;
00058 ExportValuesXOrY m_xThetaValues;
00059 QStringList m_curvesIncluded;
00060 };
00061
00062 #endif // TEST_EXPORT_H