GEMC  2.3
Geant4 Monte-Carlo Framework
physicsListGui.cc
Go to the documentation of this file.
1 // Qt headers
2 #include <QtWidgets>
3 
4 // gemc headers
5 #include "physicsListGui.h"
6 
7 // G4 headers
8 #include "G4UIcommandTree.hh"
9 
11 {
12  gemcOpt = Opts;
13  UImanager = G4UImanager::GetUIpointer();
14 
15  // Layout:
16  //
17  // + +----------------------------+ +
18  // | | | | |
19  // | | Phys List | Description | |
20  // | | | | |
21  // + +----------------------------+ +
22 
23 
24  // Vertical Splitter - Top and Bottom layouts
25  QSplitter *splitter = new QSplitter(Qt::Vertical);
26 
27  // top layout
28  QWidget *topWidget = new QWidget(splitter);
29  QSplitter *treesplitter = new QSplitter(Qt::Horizontal);
30 
31  // treesplitter size
32  QList<int> tlist;
33  tlist.append( 400 );
34  tlist.append( 400 );
35  treesplitter->setSizes(tlist);
36 
37  QVBoxLayout *layoutTop = new QVBoxLayout(topWidget);
38  layoutTop->addWidget(treesplitter);
39 
40 
41  // all layouts
42  QVBoxLayout *mainLayout = new QVBoxLayout;
43  mainLayout->addWidget(splitter);
44  setLayout(mainLayout);
45 
46 }
47 
48 
49 
50 
52 {
53  string hd_msg = gemcOpt->optMap["LOG_MSG"].args ;
54  double VERB = gemcOpt->optMap["PHYS_VERBOSITY"].arg ;
55  if(VERB>2)
56  cout << hd_msg << " g4 Physics List Widget Deleted." << endl;
57 }
58 
59 
60 
61 
62 
63 
64 
65 
66 
goptions * gemcOpt
physicsList(QWidget *parent, goptions *)
map< string, aopt > optMap
Options map.
Definition: options.h:75
G4UImanager * UImanager