7 std::shared_ptr<EventDispenser> ed,
20 guiSession = std::make_unique<GUI_Session>(gopts,
gboard);
23 createRightContent(gopts, dc,
gboard);
26 auto* topLayout =
new QHBoxLayout;
27 createTopButtons(topLayout);
30 auto* bottomLayout =
new QHBoxLayout;
32 bottomLayout->addWidget(leftButtons, 1);
33 bottomLayout->addWidget(rightContent, 10);
36 auto* mainLayout =
new QVBoxLayout;
37 mainLayout->addLayout(topLayout);
38 mainLayout->addLayout(bottomLayout);
39 mainLayout->addWidget(
gboard);
41 setLayout(mainLayout);
42 setWindowTitle(tr(
"GEMC: Geant4 Monte-Carlo"));
46 gtimer =
new QTimer(
this);
47 connect(gtimer, SIGNAL(timeout()),
this, SLOT(cycleBeamOn()));
51 SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem*)),
52 this, SLOT(change_page(QListWidgetItem *, QListWidgetItem*)));
GemcGUI(std::shared_ptr< GOptions > gopts, std::shared_ptr< EventDispenser > ed, GDetectorConstruction *dc, QWidget *parent=nullptr)
Construct the main GUI widget.