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
10void GemcGUI::createRightContent(std::shared_ptr<GOptions> gopts,
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}
std::unordered_map< std::string, G4Volume * > get_g4volumes_map() const
void press_button(int i)