cctw  0.2.1
cctwqtmainwindow.h
Go to the documentation of this file.
1 #ifndef CCTWQTMAINWINDOW_H
2 #define CCTWQTMAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include <QPointer>
6 #include <QDateTime>
7 #include "cctwapplication.h"
13 #include "cctwvector3d.h"
14 #include "cctwqttransformtester.h"
15 
16 namespace Ui {
17 class CctwqtMainWindow;
18 }
19 
20 class CctwApplication;
21 class QwtPlotCurve;
22 class QwtLegend;
23 class QwtPlotPanner;
24 class QwtPlotMagnifier;
25 class QwtPlotZoomer;
26 
27 class CctwqtMainWindow : public QMainWindow
28 {
29  Q_OBJECT
30 
31 public:
32  explicit CctwqtMainWindow(CctwApplication *app, QWidget *parent = 0);
35 
36 public slots:
37  void printLine(QString line);
38  void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime());
39  void doEvaluateCommand();
40 #ifdef WANT_IMPORT_COMMANDS
41  void doSetupImport();
42  void doImport();
43 #endif
44  void doExecuteScriptFile();
45  void doBrowseInputFile();
46  void doCheckDataFile(QString path);
47  void doBrowseInputDataset(QString entry);
48  void doCheckDataset(QString name);
49  void doSetupOutput();
50  void doSetupTransform();
51  void doTransform();
52  void doCheckTransform();
53  void doHalt();
54  void doLoadSettings();
55  void doSaveSettings();
56  void doSaveDependencies();
57  void doLoadDependencies();
60  void onProgressUpdate();
61  void doAnalyzePEMetaData();
62  void doAnalyzeSpecDataFile();
63  void possiblyClose();
64  void plotCurves(QwtPlotCurve *c1, QwtPlotCurve *c2, QwtPlotCurve *c3, QwtPlotCurve *c4);
65 
66  void doCompareHDF5();
67 
68 #ifdef WANT_IMPORT_COMMANDS
69  void doCheckImportedData();
70  void updateImportImagePaths(QStringList p);
71 #endif
72 
73  void doBrowseProject();
74  void doProjectInput();
75  void doProjectOutput();
76 
77 private:
78  bool wantToClose();
79  void closeEvent (QCloseEvent * event);
80  void reportDependencies(CctwChunkedData *data, QString title);
81 public:
82  Ui::CctwqtMainWindow *ui;
83 
84 private:
87 
88 #ifdef WANT_IMPORT_COMMANDS
89  QPointer<CctwqtSetupImportDialog> m_SetupImportDialog;
90 #endif
91  QPointer<CctwqtSetupOutputDialog> m_SetupOutputDialog;
92  QPointer<CctwqtSetupTransformDialog> m_SetupTransformDialog;
93  QPointer<CctwqtSetupCheckImportDialog> m_SetupCheckImportDialog;
94  QPointer<CctwqtSetupCompareDialog> m_SetupCompareDialog;
95 
96  QwtLegend *m_Legend;
97  QwtPlotPanner *m_Panner;
98  QwtPlotMagnifier *m_Magnifier;
99  QwtPlotZoomer *m_Zoomer;
100 };
101 
102 #endif // CCTWQTMAINWINDOW_H
QwtPlotZoomer * m_Zoomer
QPointer< CctwqtSetupTransformDialog > m_SetupTransformDialog
void printLine(QString line)
Ui::CctwqtMainWindow * ui
void doCheckDataFile(QString path)
void closeEvent(QCloseEvent *event)
CctwApplication * cctwApplication()
CctwqtMainWindow(CctwApplication *app, QWidget *parent=0)
CctwqtTransformTester * m_TransformTester
QPointer< CctwqtSetupCompareDialog > m_SetupCompareDialog
void plotCurves(QwtPlotCurve *c1, QwtPlotCurve *c2, QwtPlotCurve *c3, QwtPlotCurve *c4)
QPointer< CctwqtSetupCheckImportDialog > m_SetupCheckImportDialog
void reportDependencies(CctwChunkedData *data, QString title)
QwtPlotMagnifier * m_Magnifier
void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime())
QPointer< CctwqtSetupOutputDialog > m_SetupOutputDialog
CctwApplication * m_Application
QwtLegend * m_Legend
void doBrowseInputDataset(QString entry)
void doCheckDataset(QString name)
QwtPlotPanner * m_Panner