TGMsgBox Class Reference

#include <TGMsgBox.h>

Inheritance diagram for TGMsgBox:

TGTransientFrame TGTransientFrame TGMainFrame TGMainFrame TGMainFrame TGMainFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame List of all members.

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

TGButtonfYes
TGButtonfNo
TGButtonfOK
TGButtonfApply
TGButtonfRetry
TGButtonfIgnore
TGButtonfCancel
TGButtonfClose
TGButtonfYesAll
TGButtonfNoAll
TGButtonfNewer
TGButtonfAppend
TGButtonfDismiss
TGIconfIcon
TGHorizontalFramefButtonFrame
TGHorizontalFramefIconFrame
TGVerticalFramefLabelFrame
TGLayoutHintsfL1
TGLayoutHintsfL2
TGLayoutHintsfL3
TGLayoutHintsfL4
TGLayoutHintsfL5
TListfMsgList
Int_tfRetCode
TGButtonfYes
TGButtonfRetry
TGButtonfClose
TGButtonfNewer
TGIconfIcon
TGHorizontalFramefButtonFrame
TGHorizontalFramefIconFrame
TGVerticalFramefLabelFrame
TGLayoutHintsfL1
TListfMsgList
Int_tfRetCode

Private Member Functions

 TGMsgBox (const TGMsgBox &)
TGMsgBoxoperator= (const TGMsgBox &)
 TGMsgBox (const TGMsgBox &)
TGMsgBoxoperator= (const TGMsgBox &)

Detailed Description

Definition at line 71 of file TGMsgBox.h.


Constructor & Destructor Documentation

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]


Member Function Documentation

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().

TGMsgBox& TGMsgBox::operator= ( const TGMsgBox  )  [private]

void TGMsgBox::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

Definition at line 343 of file TGMsgBox.cxx.

References TGFrame::DeleteWindow(), fRetCode, and kMBClose.

Bool_t TGMsgBox::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

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]

TGMsgBox& TGMsgBox::operator= ( const TGMsgBox  )  [private]

virtual void TGMsgBox::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

virtual Bool_t TGMsgBox::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.


Member Data Documentation

TGButton* TGMsgBox::fYes [protected]

Definition at line 74 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fNo [protected]

Definition at line 74 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fOK [protected]

Definition at line 74 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fApply [protected]

Definition at line 74 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton* TGMsgBox::fRetry [protected]

Definition at line 75 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fIgnore [protected]

Definition at line 75 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fCancel [protected]

Definition at line 75 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton* TGMsgBox::fClose [protected]

Definition at line 76 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fYesAll [protected]

Definition at line 76 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fNoAll [protected]

Definition at line 76 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton* TGMsgBox::fNewer [protected]

Definition at line 77 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fAppend [protected]

Definition at line 77 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGButton * TGMsgBox::fDismiss [protected]

Definition at line 77 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGIcon* TGMsgBox::fIcon [protected]

Definition at line 78 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGHorizontalFrame* TGMsgBox::fButtonFrame [protected]

Definition at line 79 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGHorizontalFrame* TGMsgBox::fIconFrame [protected]

Definition at line 80 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGVerticalFrame* TGMsgBox::fLabelFrame [protected]

Definition at line 81 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGLayoutHints* TGMsgBox::fL1 [protected]

Definition at line 82 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGLayoutHints * TGMsgBox::fL2 [protected]

Definition at line 82 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGLayoutHints * TGMsgBox::fL3 [protected]

Definition at line 82 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGLayoutHints * TGMsgBox::fL4 [protected]

Definition at line 82 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TGLayoutHints * TGMsgBox::fL5 [protected]

Definition at line 82 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

TList* TGMsgBox::fMsgList [protected]

Definition at line 83 of file TGMsgBox.h.

Referenced by PMsgBox(), and ~TGMsgBox().

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.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:23 2011 for ROOT_528-00b_version by  doxygen 1.5.1