GEMC  1.8
Geant4 Monte-Carlo Framework
detector_editor.h
Go to the documentation of this file.
1 
8 #ifndef DETECTOR_EDITOR_H
9 #define DETECTOR_EDITOR_H
10 
11 
12 // %%%%%%%%%%
13 // Qt headers
14 // %%%%%%%%%%
15 #include <QDialog>
16 #include <QDialogButtonBox>
17 #include <QLabel>
18 #include <QLineEdit>
19 #include <QTabWidget>
20 
21 // %%%%%%%%%%%%%
22 // gemc headers
23 // %%%%%%%%%%%%%
24 #include "detector.h"
25 #include "detector_editor.h"
26 
27 
32 class PlacementTab : public QWidget
33 {
34  Q_OBJECT
35 
36  public:
37 
38  PlacementTab(detector*, QWidget *parent = 0);
39 
41 
42  QLabel* placeXLabel;
43  QLabel* placeYLabel;
44  QLabel* placeZLabel;
45  QLineEdit* placeXEdit;
46  QLineEdit* placeYEdit;
47  QLineEdit* placeZEdit;
48 
49  QLabel* rotXLabel;
50  QLabel* rotYLabel;
51  QLabel* rotZLabel;
52  QLineEdit* rotXEdit;
53  QLineEdit* rotYEdit;
54  QLineEdit* rotZEdit;
55 
56  private slots:
57  void change_dname(QString);
58  void change_placement();
59 
60 };
61 
62 
72 class SensitivityTab : public QWidget
73 {
74  Q_OBJECT
75 
76  public:
77 
78  SensitivityTab(detector*, QWidget *parent = 0);
79 
81 
82 };
83 
91 class DimensionsTab : public QWidget
92 {
93  Q_OBJECT
94 
95  public:
96  DimensionsTab(detector*, QWidget *parent = 0);
98  vector<QLabel*> dimTypesLabel;
99  vector<QLineEdit*> dimTypesEdit;
100 
101  private slots:
102  void change_dimension();
103 };
104 
110 class DetectorEditor : public QDialog
111 {
112  Q_OBJECT
113 
114  public:
115  DetectorEditor(detector*, QWidget *parent = 0);
117 
118  private:
119  QTabWidget *tabWidget;
120  QDialogButtonBox *buttonBox;
121 };
122 
123 #endif
QLabel * rotXLabel
label for x rotation
vector< QLineEdit * > dimTypesEdit
vector of line editor for dimension. Size depends on solid type
PlacementTab(detector *, QWidget *parent=0)
Constructor.
QLineEdit * rotYEdit
line editor for y rotation
QLineEdit * placeYEdit
line editor for y position
detector * Detector
pointer to detector
QLabel * rotZLabel
label for z rotation
QLabel * placeYLabel
label for y position
QLabel * placeZLabel
label for z position
vector< QLabel * > dimTypesLabel
vector of label for dimension. Size depends on solid type
QLineEdit * placeXEdit
line editor for x position
QLabel * placeXLabel
label for x position
QLabel * rotYLabel
label for y rotation
detector * Detector
Pointer to detector object.
detector * Detector
Pointer to detector object.
QLineEdit * rotZEdit
line editor for z rotation
detector * Detector
pointer to detector
QLineEdit * rotXEdit
line editor for x rotation
QLineEdit * placeZEdit
line editor for z position