g4dialog
Loading...
Searching...
No Matches
g4dialog.cc
Go to the documentation of this file.
1// G4Dialog
2#include "g4dialog.h"
3#include "g4dialog_options.h" // Provides G4DIALOG_LOGGER constant and option definitions
4#include "tabs/gcommands.h"
5
6G4Dialog::G4Dialog(const std::shared_ptr<GOptions>& gopt, QWidget* parent) :
8 QWidget(parent) {
9 // Summary: Create the main tab widget, populate tabs, and install the primary layout.
10
11 auto dialogTabs = new QTabWidget;
12
13 // Tab: Geant4 commands browser/executor.
14 dialogTabs->addTab(new G4Commands(this), "Geant4 Commands");
15
16 // Main vertical layout: tabs fill the widget.
17 auto* mainLayout = new QVBoxLayout;
18 mainLayout->addWidget(dialogTabs);
19 setLayout(mainLayout);
20
21 log->debug(NORMAL, "View and Utilities tabs added.");
22}
Qt widget that exposes a searchable Geant4 UI command tree with contextual help.
Definition gcommands.h:28
G4Dialog(const std::shared_ptr< GOptions > &gopt, QWidget *parent=nullptr)
Construct the main dialog widget.
Definition g4dialog.cc:6
std::shared_ptr< GLogger > log
void debug(debug_type type, Args &&... args) const
constexpr const char * G4DIALOG_LOGGER
Logger name used by the G4Dialog module.
NORMAL