#include <TGMsgBox.h>
Inheritance diagram for TGMsgBox:
Public Member Functions | |
TGMsgBox (const TGWindow *p=0, const TGWindow *main=0, const char *title=0, const char *msg=0, const TGPicture *icon=0, Int_t buttons=kMBDismiss, Int_t *ret_code=0, UInt_t options=kVerticalFrame, Int_t text_align=kTextCenterX|kTextCenterY) | |
TGMsgBox (const TGWindow *p, const TGWindow *main, const char *title, const char *msg, EMsgBoxIcon icon, Int_t buttons=kMBDismiss, Int_t *ret_code=0, UInt_t options=kVerticalFrame, Int_t text_align=kTextCenterX|kTextCenterY) | |
virtual | ~TGMsgBox () |
virtual void | CloseWindow () |
virtual Bool_t | ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2) |
TGMsgBox (const TGWindow *p=0, const TGWindow *main=0, const char *title=0, const char *msg=0, const TGPicture *icon=0, Int_t buttons=kMBDismiss, Int_t *ret_code=0, UInt_t options=kVerticalFrame, Int_t text_align=kTextCenterX|kTextCenterY) | |
TGMsgBox (const TGWindow *p, const TGWindow *main, const char *title, const char *msg, EMsgBoxIcon icon, Int_t buttons=kMBDismiss, Int_t *ret_code=0, UInt_t options=kVerticalFrame, Int_t text_align=kTextCenterX|kTextCenterY) | |
virtual | ~TGMsgBox () |
virtual void | CloseWindow () |
virtual Bool_t | ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2) |
Protected Member Functions | |
void | PMsgBox (const char *title, const char *msg, const TGPicture *icon, Int_t buttons, Int_t *ret_code, Int_t text_align) |
void | PMsgBox (const char *title, const char *msg, const TGPicture *icon, Int_t buttons, Int_t *ret_code, Int_t text_align) |
Protected Attributes | |
TGButton * | fYes |
TGButton * | fNo |
TGButton * | fOK |
TGButton * | fApply |
TGButton * | fRetry |
TGButton * | fIgnore |
TGButton * | fCancel |
TGButton * | fClose |
TGButton * | fYesAll |
TGButton * | fNoAll |
TGButton * | fNewer |
TGButton * | fAppend |
TGButton * | fDismiss |
TGIcon * | fIcon |
TGHorizontalFrame * | fButtonFrame |
TGHorizontalFrame * | fIconFrame |
TGVerticalFrame * | fLabelFrame |
TGLayoutHints * | fL1 |
TGLayoutHints * | fL2 |
TGLayoutHints * | fL3 |
TGLayoutHints * | fL4 |
TGLayoutHints * | fL5 |
TList * | fMsgList |
Int_t * | fRetCode |
TGButton * | fYes |
TGButton * | fRetry |
TGButton * | fClose |
TGButton * | fNewer |
TGIcon * | fIcon |
TGHorizontalFrame * | fButtonFrame |
TGHorizontalFrame * | fIconFrame |
TGVerticalFrame * | fLabelFrame |
TGLayoutHints * | fL1 |
TList * | fMsgList |
Int_t * | fRetCode |
Private Member Functions | |
TGMsgBox (const TGMsgBox &) | |
TGMsgBox & | operator= (const TGMsgBox &) |
TGMsgBox (const TGMsgBox &) | |
TGMsgBox & | operator= (const TGMsgBox &) |
Definition at line 71 of file TGMsgBox.h.
TGMsgBox::TGMsgBox | ( | const TGMsgBox & | ) | [private] |
TGMsgBox::TGMsgBox | ( | const TGWindow * | p = 0 , |
|
const TGWindow * | main = 0 , |
|||
const char * | title = 0 , |
|||
const char * | msg = 0 , |
|||
const TGPicture * | icon = 0 , |
|||
Int_t | buttons = kMBDismiss , |
|||
Int_t * | ret_code = 0 , |
|||
UInt_t | options = kVerticalFrame , |
|||
Int_t | text_align = kTextCenterX|kTextCenterY | |||
) |
TGMsgBox::TGMsgBox | ( | const TGWindow * | p, | |
const TGWindow * | main, | |||
const char * | title, | |||
const char * | msg, | |||
EMsgBoxIcon | icon, | |||
Int_t | buttons = kMBDismiss , |
|||
Int_t * | ret_code = 0 , |
|||
UInt_t | options = kVerticalFrame , |
|||
Int_t | text_align = kTextCenterX|kTextCenterY | |||
) |
Definition at line 57 of file TGMsgBox.cxx.
References TObject::Error(), TGObject::fClient, TGClient::GetPicture(), kMBIconAsterisk, kMBIconExclamation, kMBIconQuestion, kMBIconStop, TObject::MakeZombie(), p, and PMsgBox().
TGMsgBox::~TGMsgBox | ( | ) | [virtual] |
Definition at line 314 of file TGMsgBox.cxx.
References TList::Delete(), fAppend, fApply, fButtonFrame, fCancel, fClose, fDismiss, fIcon, fIconFrame, fIgnore, fL1, fL2, fL3, fL4, fL5, fLabelFrame, fMsgList, fNewer, fNo, fNoAll, fOK, fRetry, fYes, fYesAll, and TObject::IsZombie().
TGMsgBox::TGMsgBox | ( | const TGMsgBox & | ) | [private] |
TGMsgBox::TGMsgBox | ( | const TGWindow * | p = 0 , |
|
const TGWindow * | main = 0 , |
|||
const char * | title = 0 , |
|||
const char * | msg = 0 , |
|||
const TGPicture * | icon = 0 , |
|||
Int_t | buttons = kMBDismiss , |
|||
Int_t * | ret_code = 0 , |
|||
UInt_t | options = kVerticalFrame , |
|||
Int_t | text_align = kTextCenterX|kTextCenterY | |||
) |
TGMsgBox::TGMsgBox | ( | const TGWindow * | p, | |
const TGWindow * | main, | |||
const char * | title, | |||
const char * | msg, | |||
EMsgBoxIcon | icon, | |||
Int_t | buttons = kMBDismiss , |
|||
Int_t * | ret_code = 0 , |
|||
UInt_t | options = kVerticalFrame , |
|||
Int_t | text_align = kTextCenterX|kTextCenterY | |||
) |
virtual TGMsgBox::~TGMsgBox | ( | ) | [virtual] |
void TGMsgBox::PMsgBox | ( | const char * | title, | |
const char * | msg, | |||
const TGPicture * | icon, | |||
Int_t | buttons, | |||
Int_t * | ret_code, | |||
Int_t | text_align | |||
) | [protected] |
Definition at line 112 of file TGMsgBox.cxx.
References TList::Add(), TGCompositeFrame::AddFrame(), TGWidget::Associate(), TGTransientFrame::CenterOnParent(), fAppend, fApply, fButtonFrame, fCancel, TGObject::fClient, fClose, fDismiss, fIcon, fIconFrame, fIgnore, fL1, fL2, fL3, fL4, fL5, fLabelFrame, fMsgList, fNewer, fNo, fNoAll, fOK, fRetCode, fRetry, fYes, fYesAll, TGCompositeFrame::GetDefaultHeight(), TGFrame::GetDefaultWidth(), TGCompositeFrame::GetDefaultWidth(), TGPicture::GetHeight(), TGPicture::GetWidth(), height, kFixedWidth, kLHintsBottom, kLHintsCenterX, kLHintsCenterY, kLHintsExpandX, kLHintsLeft, kLHintsTop, kMBAppend, kMBApply, kMBCancel, kMBClose, kMBDismiss, kMBIgnore, kMBNewer, kMBNo, kMBNoAll, kMBOk, kMBRetry, kMBYes, kMBYesAll, kMWMDecorAll, kMWMDecorMaximize, kMWMDecorMenu, kMWMDecorMinimize, kMWMDecorResizeH, kMWMFuncAll, kMWMFuncMaximize, kMWMFuncMinimize, kMWMFuncResize, kMWMInputModeless, line, TGFrame::MapRaised(), TGCompositeFrame::MapSubwindows(), TMath::Max(), TGFrame::Resize(), TGMainFrame::SetClassHints(), TGMainFrame::SetIconName(), TGMainFrame::SetMWMHints(), TGLabel::SetTextJustify(), TGMainFrame::SetWindowName(), TGMainFrame::SetWMSize(), TGMainFrame::SetWMSizeHints(), strlcpy(), TGClient::WaitFor(), and width.
Referenced by TGMsgBox().
void TGMsgBox::CloseWindow | ( | ) | [virtual] |
Reimplemented from TGMainFrame.
Definition at line 343 of file TGMsgBox.cxx.
References TGFrame::DeleteWindow(), fRetCode, and kMBClose.
Reimplemented from TGCompositeFrame.
Definition at line 353 of file TGMsgBox.cxx.
References TGFrame::DeleteWindow(), fRetCode, GET_MSG(), GET_SUBMSG(), kC_COMMAND, kCM_BUTTON, and kTRUE.
void TGMsgBox::PMsgBox | ( | const char * | title, | |
const char * | msg, | |||
const TGPicture * | icon, | |||
Int_t | buttons, | |||
Int_t * | ret_code, | |||
Int_t | text_align | |||
) | [protected] |
virtual void TGMsgBox::CloseWindow | ( | ) | [virtual] |
Reimplemented from TGMainFrame.
Reimplemented from TGCompositeFrame.
TGButton* TGMsgBox::fYes [protected] |
TGButton * TGMsgBox::fNo [protected] |
TGButton * TGMsgBox::fOK [protected] |
TGButton * TGMsgBox::fApply [protected] |
TGButton* TGMsgBox::fRetry [protected] |
TGButton * TGMsgBox::fIgnore [protected] |
TGButton * TGMsgBox::fCancel [protected] |
TGButton* TGMsgBox::fClose [protected] |
TGButton * TGMsgBox::fYesAll [protected] |
TGButton * TGMsgBox::fNoAll [protected] |
TGButton* TGMsgBox::fNewer [protected] |
TGButton * TGMsgBox::fAppend [protected] |
TGButton * TGMsgBox::fDismiss [protected] |
TGIcon* TGMsgBox::fIcon [protected] |
TGHorizontalFrame* TGMsgBox::fButtonFrame [protected] |
TGHorizontalFrame* TGMsgBox::fIconFrame [protected] |
TGVerticalFrame* TGMsgBox::fLabelFrame [protected] |
TGLayoutHints* TGMsgBox::fL1 [protected] |
TGLayoutHints * TGMsgBox::fL2 [protected] |
TGLayoutHints * TGMsgBox::fL3 [protected] |
TGLayoutHints * TGMsgBox::fL4 [protected] |
TGLayoutHints * TGMsgBox::fL5 [protected] |
TList* TGMsgBox::fMsgList [protected] |
Int_t* TGMsgBox::fRetCode [protected] |
Definition at line 84 of file TGMsgBox.h.
Referenced by CloseWindow(), PMsgBox(), and ProcessMessage().
TGButton* TGMsgBox::fYes [protected] |
Definition at line 74 of file TGMsgBox.h.
TGButton* TGMsgBox::fRetry [protected] |
Definition at line 75 of file TGMsgBox.h.
TGButton* TGMsgBox::fClose [protected] |
Definition at line 76 of file TGMsgBox.h.
TGButton* TGMsgBox::fNewer [protected] |
Definition at line 77 of file TGMsgBox.h.
TGIcon* TGMsgBox::fIcon [protected] |
Definition at line 78 of file TGMsgBox.h.
TGHorizontalFrame* TGMsgBox::fButtonFrame [protected] |
Definition at line 79 of file TGMsgBox.h.
TGHorizontalFrame* TGMsgBox::fIconFrame [protected] |
Definition at line 80 of file TGMsgBox.h.
TGVerticalFrame* TGMsgBox::fLabelFrame [protected] |
Definition at line 81 of file TGMsgBox.h.
TGLayoutHints* TGMsgBox::fL1 [protected] |
Definition at line 82 of file TGMsgBox.h.
TList* TGMsgBox::fMsgList [protected] |
Definition at line 83 of file TGMsgBox.h.
Int_t* TGMsgBox::fRetCode [protected] |
Definition at line 84 of file TGMsgBox.h.