g4dialog
Loading...
Searching...
No Matches
G4Dialog Class Reference

Main widget for the G4Dialog module. More...

#include <g4dialog.h>

Public Member Functions

 G4Dialog (const std::shared_ptr< GOptions > &gopt, QWidget *parent=nullptr)
 Construct the main dialog widget.
 
 ~G4Dialog () override=default
 Destructor (defaulted).
 
- Public Member Functions inherited from GBase< G4Dialog >
 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 ()
 
GBaseoperator= (const GBase &)=default
 
GBaseoperator= (GBase &&) noexcept=default
 

Additional Inherited Members

- Protected Attributes inherited from GBase< G4Dialog >
std::shared_ptr< GLoggerlog
 

Detailed Description

G4Dialog is a tabbed Qt widget that aggregates UI utilities intended for interacting with Geant4 from a GUI application. It derives from GBase (for logging/config integration) and from QWidget (for embedding into Qt applications).

Current tabs include:

  • A Geant4 commands browser/executor (G4Commands).

Ownership model:

  • Tabs and layouts are created with Qt parent ownership, so they are released automatically when the parent widget is destroyed.

Definition at line 25 of file g4dialog.h.

Constructor & Destructor Documentation

◆ G4Dialog()

G4Dialog::G4Dialog ( const std::shared_ptr< GOptions > & gopt,
QWidget * parent = nullptr )
explicit
Parameters
goptShared configuration/options object provided by the surrounding application.
parentParent widget for Qt ownership, or nullptr.

Definition at line 6 of file g4dialog.cc.

◆ ~G4Dialog()

G4Dialog::~G4Dialog ( )
overridedefault

The documentation for this class was generated from the following files: