GEMC  2.3
Geant4 Monte-Carlo Framework
g4dialog.h
Go to the documentation of this file.
1 #ifndef g4dialog_H
2 #define g4dialog_H 1
3 
4 // Qt headers
5 #include <QWidget>
6 #include <QSlider>
7 #include <QComboBox>
8 #include <QTextEdit>
9 #include <QtWidgets>
10 
11 // gemc headers
12 #include "options.h"
13 
14 // G4 headers
15 #include "G4UImanager.hh"
16 
17 // C++ headers
18 #include <string>
19 #include <map>
20 using namespace std;
21 
22 
23 
24 // Class definition
25 
26 class g4dialog : public QWidget
27 {
28  // metaobject required for non-qt slots
29  Q_OBJECT
30 
31  public:
32  g4dialog(QWidget *parent, goptions*);
33  ~g4dialog();
34 
36  G4UImanager *UImanager;
37 
38  private:
39  QListWidget *fCommandHistoryArea;
40  QLineEdit *fCommandArea;
41  QTextEdit *fHelpArea;
42  QTreeWidget *fHelpTreeWidget;
43 
44  private slots:
45  void CommandHistoryCallback(); // calls back a command from the history box
46  void CommandEnteredCallback(); // command entered manually
47 
48  QTreeWidget* CreateHelpTree(); // creates help Tree
49  void CreateChildTree(QTreeWidgetItem *aParent,G4UIcommandTree *aCommandTree); // creates branch
50  void HelpTreeClicCallback(); // displays help on a command
51  QString GetCommandList (const G4UIcommand *aCommand); // gets the G4 help on a command
52  void HelpTreeDoubleClicCallback(); // sets a double clicked command to command line
53 
54 
55 };
56 
57 #endif
58 
59 
60 
61 
62 
63 
64 
65 
STL namespace.
goptions * gemcOpt
Definition: g4dialog.h:35
G4UImanager * UImanager
Definition: g4dialog.h:36