|
gui
|
This module provides the Qt-based graphical user interface for GEMC. The primary entry point is the GemcGUI widget, which builds the application layout and connects UI actions to the EventDispenser so the user can run events interactively and switch between different visualization/configuration pages.
The GUI is a composition of a left-side button bar (page selector), a right-side stacked content area (pages such as display, dialog, setup, and geometry tree), and a bottom board widget for status/controls.
QWidget and participates in Qt parent/child ownership.this as parent are owned and destroyed by Qt automatically.QStackedWidget hosts multiple “pages” and is driven by the left pane selection.QTimer; “Stop” stops the timer.change_page reads the selected index and applies it to the QStackedWidget, updating the visible page.This module does not define a standalone GUI option schema. Instead it consumes:
Upcoming in the next release: English, Italian, Japanese, French, and Chinese GUI catalogs share the logging language option and automatic system detection. gemc::makeQtApplication installs translators before constructing widgets; pass the GOptions pointer to honor explicit overrides. Restart to change language. Missing translations use English. Qt's installed catalogs translate standard dialogs.
Use complete tr() messages and QString::arg() parameters. Store command identifiers in item data and counters as numeric members, independent of translated labels. SVG captions are translated at runtime. Generated catalogs and the shared cron workflow are documented in translations/gui/README.md.
The top-level widget has no module-specific logger. Child pages use their own logger categories, including g4display, g4dialog, gtree, and dbselect.