QXRD  0.11.16
qxrdexperimentpreferencesdialog.h
Go to the documentation of this file.
1 #ifndef QXRDEXPERIMENTPREFERENCESDIALOG_H
2 #define QXRDEXPERIMENTPREFERENCESDIALOG_H
3 
4 #include "qcepmacros.h"
5 
6 #include <QDialog>
7 #include <QLineEdit>
8 #include <QVector>
9 #include <QCheckBox>
10 #include "ui_qxrdexperimentpreferencesdialog.h"
11 
12 #include "qxrdexperiment-ptr.h"
13 #include "qxrddetectorproxy-ptr.h"
15 
16 class QxrdExperimentPreferencesDialog : public QDialog, public Ui::QxrdExperimentPreferencesDialog {
17  Q_OBJECT
18 public:
19  QxrdExperimentPreferencesDialog(QxrdExperimentWPtr exptw, QWidget *parent = 0, int initialPage = -1);
21 
22 public slots:
23  void accept();
24 
25 private slots:
26  void dataDirectoryBrowse();
27  void currentLogFileBrowse();
29  void saveRawBrowse();
30  void saveDarkBrowse();
31  void saveSubtractedBrowse();
32  void saveIntegratedBrowse();
33 
34  void addDetector();
35  void removeDetector();
36  void moveDetectorDown();
37  void moveDetectorUp();
38  void configureDetector();
39  void detectorDoubleClicked(const QModelIndex& item);
40 
41 protected:
42  void changeEvent(QEvent *e);
43 
44 private:
45  void getRelativeDirectoryPath(QLineEdit *edit);
46 
47  QString experimentDirectory();
48  QString dataDirectory();
49 
51 
52 private:
55 };
56 
57 #endif // QXRDEXPERIMENTPREFERENCESDIALOG_H
QSharedPointer< QxrdDetectorProxy > QxrdDetectorProxyPtr
QxrdExperimentPreferencesDialog(QxrdExperimentWPtr exptw, QWidget *parent=0, int initialPage=-1)
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
QSharedPointer< QxrdDetectorProxyListModel > QxrdDetectorProxyListModelPtr
void detectorDoubleClicked(const QModelIndex &item)
void appendDetectorProxy(QxrdDetectorProxyPtr proxy)
QxrdDetectorProxyListModelPtr m_DetectorProxyModel