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

Qt widget that exposes a searchable Geant4 UI command tree with contextual help. More...

#include <gcommands.h>

Public Member Functions

 G4Commands (QWidget *parent=nullptr)
 Construct the commands widget.
 

Detailed Description

This widget provides three main capabilities:

  • Discovery: a hierarchical tree view of the Geant4 UI command structure.
  • Assistance: contextual help for the currently selected command or command directory.
  • Execution: a command prompt with a history list for quick recall.

The widget is typically embedded as a tab inside G4Dialog, but it can be used independently anywhere a QWidget is accepted.

Internally the command tree is built by querying G4UImanager and walking the G4UIcommandTree. Filtering is applied by recursively checking whether each tree node matches the search string or contains matching descendants.

Definition at line 27 of file gcommands.h.

Constructor & Destructor Documentation

◆ G4Commands()

G4Commands::G4Commands ( QWidget * parent = nullptr)
explicit
Parameters
parentParent widget, or nullptr to create a top-level widget.

Definition at line 4 of file gcommands.cc.


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