musrfit 1.10.0
PMsgBox.h
Go to the documentation of this file.
1/***************************************************************************
2
3 PMsgBox.h
4
5 Author: Andreas Suter
6 e-mail: andreas.suter@psi.ch
7
8***************************************************************************/
9
10/***************************************************************************
11 * Copyright (C) 2007-2026 by Andreas Suter *
12 * andreas.suter@psi.ch *
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program; if not, write to the *
26 * Free Software Foundation, Inc., *
27 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28 ***************************************************************************/
29
30#ifndef _PMSGBOX_H_
31#define _PMSGBOX_H_
32
33#include <string>
34
35#include <TApplication.h>
36#include <TGClient.h>
37#include <TGButton.h>
38#include <TGListBox.h>
39#include <TList.h>
40
41//--------------------------------------------------------------------------
63class PMsgBox : public TGMainFrame {
64
65private:
66 TGListBox *fListBox;
67
68public:
69 //-----------------------------------------------------------------------
85 PMsgBox(const std::string errMsg, const TGWindow *p, UInt_t w, UInt_t h);
86
87 //-----------------------------------------------------------------------
91 ~PMsgBox() override;
92
93 //-----------------------------------------------------------------------
102 void DoExit();
103
104 ClassDefOverride(PMsgBox, 0)
105};
106
107#endif // _PMSGBOX_H_
TGListBox * fListBox
List box widget displaying error message lines.
Definition PMsgBox.h:66
~PMsgBox() override
Destructor that cleans up the message box resources.
Definition PMsgBox.cpp:115
void DoExit()
Exit button callback that terminates the application.
Definition PMsgBox.cpp:141
PMsgBox(const std::string errMsg, const TGWindow *p, UInt_t w, UInt_t h)
Constructor that creates and displays the message box window.
Definition PMsgBox.cpp:64