|
musrfit 1.10.0
|
GUI message box for displaying error messages and warnings. More...
#include <PMsgBox.h>


Public Member Functions | |
| PMsgBox (const std::string errMsg, const TGWindow *p, UInt_t w, UInt_t h) | |
| Constructor that creates and displays the message box window. | |
| ~PMsgBox () override | |
| Destructor that cleans up the message box resources. | |
| void | DoExit () |
| Exit button callback that terminates the application. | |
Private Attributes | |
| TGListBox * | fListBox |
| List box widget displaying error message lines. | |
GUI message box for displaying error messages and warnings.
PMsgBox is a ROOT-based GUI window that displays multi-line error messages in a scrollable list box. It provides a simple, modal-like interface for showing diagnostic information to the user.
The message box:
Typical use case:
| PMsgBox::PMsgBox | ( | const std::string | errMsg, |
| const TGWindow * | p, | ||
| UInt_t | w, | ||
| UInt_t | h ) |
Constructor that creates and displays the message box window.
Constructor that creates and displays the message box GUI.
Creates a GUI window containing:
The error message is split at newline characters, and each line is displayed as a separate entry in the list box.
| errMsg | Multi-line error message string (lines separated by ' ') |
| p | Parent window (typically gClient->GetRoot()) |
| w | Window width in pixels |
| h | Window height in pixels |
This constructor performs the following steps:
The message parsing algorithm:
GUI Layout:
| errMsg | Multi-line error message string with ' ' separators |
| p | Parent window pointer (typically gClient->GetRoot()) |
| w | Initial window width in pixels |
| h | Initial window height in pixels |
Definition at line 64 of file PMsgBox.cpp.
References fListBox.
|
override |
Destructor that cleans up the message box resources.
The ROOT framework automatically handles cleanup of GUI components (list box, buttons, frames) through the TGMainFrame destructor chain, so no explicit cleanup is required here.
Definition at line 115 of file PMsgBox.cpp.
| void PMsgBox::DoExit | ( | ) |
Exit button callback that terminates the application.
This method is called when the user clicks the Exit button. It terminates the entire application with exit code 0.
This method is invoked when the user clicks the Exit button. It terminates the entire ROOT application with exit code 0, which causes a clean shutdown of the program.
The method is connected to the Exit button's "Pressed()" signal in the constructor via ROOT's signal/slot mechanism:
Definition at line 141 of file PMsgBox.cpp.
|
private |