g4dialog
Loading...
Searching...
No Matches
gcommands.h
Go to the documentation of this file.
1#pragma once
2
3// qt
4#include <QtWidgets>
5
6// G4 headers
7#include "G4UImanager.hh"
8#include "G4UIcommandTree.hh"
9
10class G4Commands : public QWidget {
11
12 Q_OBJECT
13
14public:
15 G4Commands(QWidget *parent = nullptr);
16
17private:
18 QLineEdit *w_search;
19 QTreeView *w_commands;
20 QTextEdit *w_help;
21 QListWidget *w_history;
22 QLineEdit *w_command;
23
24 void create_child_help_tree(QStandardItem *aParent, G4UIcommandTree *aCommandTree);
25
26 // gets the G4 help on a command
27 QString get_command_g4help (const G4UIcommand *aCommand);
28 void filterTreeItems();
29 bool filterItem(QStandardItem *item, const QString &search_text);
30
31private slots:
32
33 void execute_command();
34
35 void recall_history_item_on_double_click(QListWidgetItem *item);
36
37 void display_help_from_selection();
38
39 void paste_help_selection_item();
40
41 void create_geant4_commands_widget();
42
43};
G4Commands(QWidget *parent=nullptr)
Definition gcommands.cc:4