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