|
gui
|
Main GEMC Qt widget that assembles the GUI layout and connects user actions to event processing. More...
#include <gui.h>
Public Member Functions | |
| GemcGUI (std::shared_ptr< GOptions > gopts, std::shared_ptr< EventDispenser > ed, GDetectorConstruction *dc, QWidget *parent=nullptr) | |
| Construct the main GUI widget. | |
| ~GemcGUI () override | |
| Destroy the GUI widget and release explicitly owned resources. | |
GemcGUI builds a three-part interface:
QStackedWidget) hosting the pages.Event execution is delegated to an EventDispenser instance provided by the caller. Page widgets are constructed using shared configuration objects (GOptions, GDetectorConstruction, and GBoard) so that the GUI pages remain synchronized with the simulation configuration.
QWidget and uses Qt signals/slots (Q_OBJECT). | GemcGUI::GemcGUI | ( | std::shared_ptr< GOptions > | gopts, |
| std::shared_ptr< EventDispenser > | ed, | ||
| GDetectorConstruction * | dc, | ||
| QWidget * | parent = nullptr ) |
The constructor:
QStackedWidget.QTimer used for “Cycle” mode.| gopts | Shared options/configuration container used by GUI pages. |
| ed | Event execution backend used to run and configure event processing. |
| dc | Detector construction object used by setup/tree pages. |
| parent | Optional parent widget for Qt ownership. |
|
override |