|
dbselect
|
Qt widget used to select experiment/system configurations from an SQLite geometry database. More...
#include <dbselectView.h>
Public Slots | |
| void | reload_geometry () |
| Slot invoked by the Reload button to reload geometry based on current selections. | |
Public Member Functions | |
| DBSelectView (const std::shared_ptr< GOptions > &gopts, GDetectorConstruction *dc, QWidget *parent=nullptr) | |
| Construct the view and populate the experiment/system model from the database. | |
| ~DBSelectView () override | |
| Destructor. | |
| SystemList | get_gsystems () |
| Build and return the list of selected systems as a SystemList. | |
Public Member Functions inherited from GBase< DBSelectView > | |
| GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="") | |
| GBase (const std::shared_ptr< GLogger > &logger) | |
| GBase (const GBase &)=default | |
| GBase (GBase &&) noexcept=default | |
| virtual | ~GBase () |
| GBase & | operator= (const GBase &)=default |
| GBase & | operator= (GBase &&) noexcept=default |
Additional Inherited Members | |
Protected Attributes inherited from GBase< DBSelectView > | |
| std::shared_ptr< GLogger > | log |
DBSelectView displays a tree of experiments and their systems obtained from an SQLite database. Each system row allows:
The widget is designed to be used as a selection front-end for geometry reload:
Ownership model:
sqlite3 database handle opened read-only.GDetectorConstruction pointer.Important Qt note: GBase must appear after QWidget derivations; otherwise Qt's MOC expects a staticMetaObject.
Definition at line 47 of file dbselectView.h.
|
explicit |
Construction steps (high-level):
geometry table.| gopts | Shared options used for database selection, default experiment, and UI mode. |
| dc | Detector construction instance used to reload geometry on user request. |
| parent | Optional parent widget for Qt ownership. |
Definition at line 19 of file dbselectView.cc.
|
inlineoverride |
Closes the sqlite3 handle if it was successfully opened. Qt child widgets are cleaned up automatically by Qt parent ownership.
Definition at line 73 of file dbselectView.h.
| SystemList DBSelectView::get_gsystems | ( | ) |
The returned SystemList contains one GSystem for each checked system item in the model. For each enabled system, the selected variation and run are taken from the corresponding model columns.
This function does not change the UI state; it is a pure extraction step.
Definition at line 537 of file dbselectView.cc.
|
slot |
High-level behavior:
Definition at line 598 of file dbselectView.cc.