gui
Loading...
Searching...
No Matches
rightContent.cc
Go to the documentation of this file.
1
// gui
2
#include "
gui.h
"
3
4
// gemc
5
#include "
g4display.h
"
6
#include "
g4dialog.h
"
7
#include "
dbselectView.h
"
8
#include "
gtree.h
"
9
10
void
GemcGUI::createRightContent(std::shared_ptr<GOptions> gopts,
11
GDetectorConstruction
* dc,
12
GBoard
* gb) {
13
// The stacked widget hosts all right-side pages. The left button bar selects the current index.
14
rightContent =
new
QStackedWidget;
15
16
// Page order must match the left button bar order so indexes remain consistent.
17
rightContent->addWidget(
new
G4Display
(gopts));
18
rightContent->addWidget(
new
G4Dialog
(gopts, gb));
19
rightContent->addWidget(
new
DBSelectView
(gopts, dc));
20
rightContent->addWidget(
new
GTree
(gopts, dc->
get_g4volumes_map
()));
21
22
// Default to the first page and update the left bar visual highlight accordingly.
23
rightContent->setCurrentIndex(0);
24
leftButtons->
press_button
(0);
25
}
DBSelectView
G4Dialog
G4Display
GBoard
GDetectorConstruction
GDetectorConstruction::get_g4volumes_map
std::unordered_map< std::string, G4Volume * > get_g4volumes_map() const
GQTButtonsWidget::press_button
void press_button(int i)
GTree
dbselectView.h
g4dialog.h
g4display.h
gtree.h
gui.h
rightContent.cc
Generated by
1.10.0