g4display
Loading...
Searching...
No Matches
g4displayutilities.cc
Go to the documentation of this file.
1// g4displayutilities.cc
2//
3// Implementation of the G4DisplayUtilities tab.
4// Doxygen documentation for this class is authoritative in g4displayutilities.h (see rule 7).
5
7
8// c++
9#include <string>
10using namespace std;
11
12G4DisplayUtilities::G4DisplayUtilities([[maybe_unused]] const std::shared_ptr<GOptions>& gopt,
13 std::shared_ptr<GLogger> logger,
14 QWidget* parent)
15 : QWidget(parent), log(logger) {
16 log->debug(CONSTRUCTOR, "G4DisplayUtilities");
17
18 // Currently this tab provides a minimal “log board” placeholder.
19 // Future expansions may include:
20 // - routing Glogger output to a QTextEdit
21 // - quick buttons for common viewer commands
22 // - visualization diagnostics and snapshots
23 auto logTextEdit = new QTextEdit(this);
24 logTextEdit->setReadOnly(true);
25 logTextEdit->setText("Log Board Initialized");
26 logTextEdit->setStyleSheet("background-color: lightblue;");
27 logTextEdit->setMinimumHeight(200);
28 logTextEdit->setMinimumWidth(400);
29
30 // NOTE: This placeholder widget is not yet placed into a layout.
31 // In a future functional expansion, a layout should be set and widgets added to it.
32}
G4DisplayUtilities(const std::shared_ptr< GOptions > &gopt, std::shared_ptr< GLogger > logger, QWidget *parent=nullptr)
Construct the utilities tab widget.
void debug(debug_type type, Args &&... args) const
Declaration of the G4DisplayUtilities widget.
CONSTRUCTOR