49 const char *title,
const char *msg,
const TGPicture *icon,
55 PMsgBox(title, msg, icon, buttons, ret_code, text_align);
76 const char *title,
const char *msg,
EMsgBoxIcon icon,
86 if (!icon_pic)
Error(
"TGMsgBox",
"mb_stop_s.xpm not found");
91 if (!icon_pic)
Error(
"TGMsgBox",
"mb_question_s.xpm not found");
96 if (!icon_pic)
Error(
"TGMsgBox",
"mb_exclamation_s.xpm not found");
101 if (!icon_pic)
Error(
"TGMsgBox",
"mb_asterisk_s.xpm not found");
110 PMsgBox(title, msg, icon_pic, buttons, ret_code, text_align);
148 if (buttons &
kMBNo) {
155 if (buttons &
kMBOk) {
260 char *tmpMsg, *nextLine;
262 int len = strlen(msg) + 1;
263 tmpMsg =
new char[len];
267 strlcpy(nextLine, msg, len);
268 while ((nextLine = strchr(
line,
'\n'))) {
const Mask_t kKeyPressMask
include TDocParser_001 C image html pict1_TDocParser_001 png width
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void WaitFor(TGWindow *w)
Wait for window to be destroyed.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual UInt_t GetDefaultWidth() const
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual UInt_t GetDefaultHeight() const
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
virtual void MapRaised()
map raised
virtual UInt_t GetDefaultWidth() const
virtual void DeleteWindow()
Delete window.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
A composite frame that layout their children in horizontal way.
TGHotString is a string with a "hot" character underlined.
This class handles GUI icons.
This class handles GUI labels.
void SetTextJustify(Int_t tmode)
Set text justification.
This class describes layout hints used by the layout classes.
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
TGButton * fNoAll
buttons in dialog box
TGLayoutHints * fL5
layout hints
virtual Bool_t HandleKey(Event_t *event)
Handle enter and escape keys (used as Ok and Cancel for now).
TList * fMsgList
text (list of TGLabels)
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process message dialog box event.
TGHorizontalFrame * fIconFrame
frame containing icon and text
virtual ~TGMsgBox()
Destroy message dialog box.
void PMsgBox(const char *title, const char *msg, const TGPicture *icon, Int_t buttons, Int_t *ret_code, Int_t text_align)
Protected, common message dialog box initialization.
TGVerticalFrame * fLabelFrame
frame containing text
TGMsgBox(const TGMsgBox &)=delete
virtual void CloseWindow()
Close dialog box.
TGHorizontalFrame * fButtonFrame
frame containing buttons
TGButton * fDismiss
buttons in dialog box
TGButton * fCancel
buttons in dialog box
Int_t * fRetCode
address to store return code
TGButton * fApply
buttons in dialog box
TGClient * fClient
Connection to display server.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Yield an action as soon as it is clicked.
Defines transient windows that typically are used for dialogs windows.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
virtual void Add(TObject *obj)
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
R__ALWAYS_INLINE Bool_t IsZombie() const
Short_t Max(Short_t a, Short_t b)