gboard
Loading...
Searching...
No Matches
gui_session.h
Go to the documentation of this file.
1#pragma once
2
3#include "G4UIsession.hh"
4#include "gboard.h"
5
6// gemc
7#include "gbase.h"
8
32class GUI_Session : public GBase<GUI_Session>, public G4UIsession
33{
34public:
43 GUI_Session(const std::shared_ptr<GOptions>& gopt, GBoard* board);
44
54 G4int ReceiveG4cout(const G4String& coutString) override;
55
65 G4int ReceiveG4cerr(const G4String& cerrString) override;
66
72 ~GUI_Session() override;
73
74private:
81 GBoard* board; // let parent manage GBoard, do not kill
82
96 QString ansiToHtml(const QString& ansiText);
97};
A Qt widget that displays read-only log text with a compact "top bar" UI.
Definition gboard.h:56
A custom Geant4 UI session that forwards Geant4 text output to a GBoard widget.
Definition gui_session.h:33
GUI_Session(const std::shared_ptr< GOptions > &gopt, GBoard *board)
Constructs a GUI_Session.
Definition gui_session.cc:6
G4int ReceiveG4cerr(const G4String &cerrString) override
Receives error output from Geant4 and forwards it to the board.
~GUI_Session() override
Destructor.
G4int ReceiveG4cout(const G4String &coutString) override
Receives standard output from Geant4 and forwards it to the board.