TGSplitButton Class Reference

#include <TGButton.h>

Inheritance diagram for TGSplitButton:

TGTextButton TGTextButton TGButton TGButton TGButton TGButton TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame List of all members.

Public Member Functions

 TGSplitButton (const TGWindow *p, TGHotString *menulabel, TGPopupMenu *popmenu, Bool_t split=kTRUE, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t fontstruct=GetDefaultFontStruct(), UInt_t option=kRaisedFrame|kDoubleBorder)
virtual ~TGSplitButton ()
virtual TGDimension GetDefaultSize () const
virtual void SetText (TGHotString *new_label)
virtual void SetText (const TString &new_label)
virtual void SetFont (FontStruct_t font, Bool_t global=kFALSE)
virtual void SetFont (const char *fontName, Bool_t global=kFALSE)
virtual void SetMBState (EButtonState state)
virtual void SetSplit (Bool_t split)
Bool_t IsSplit ()
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleCrossing (Event_t *event)
virtual Bool_t HandleKey (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual void Layout ()
virtual void MBPressed ()
virtual void MBReleased ()
virtual void MBClicked ()
virtual void ItemClicked (Int_t id)
void HandleMenu (Int_t id)
 TGSplitButton (const TGWindow *p, TGHotString *menulabel, TGPopupMenu *popmenu, Bool_t split=kTRUE, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t fontstruct=GetDefaultFontStruct(), UInt_t option=kRaisedFrame|kDoubleBorder)
virtual ~TGSplitButton ()
virtual TGDimension GetDefaultSize () const
virtual void SetText (TGHotString *new_label)
virtual void SetText (const TString &new_label)
virtual void SetFont (FontStruct_t font, Bool_t global=kFALSE)
virtual void SetFont (const char *fontName, Bool_t global=kFALSE)
virtual void SetMBState (EButtonState state)
virtual void SetSplit (Bool_t split)
Bool_t IsSplit ()
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleCrossing (Event_t *event)
virtual Bool_t HandleKey (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual void Layout ()
virtual void MBPressed ()
virtual void MBReleased ()
virtual void MBClicked ()
virtual void ItemClicked (Int_t id)
void HandleMenu (Int_t id)

Protected Member Functions

virtual void DoRedraw ()
void Init ()
void BindKeys (Bool_t on=kTRUE)
void BindMenuKeys (Bool_t on=kTRUE)
virtual void DoRedraw ()
void Init ()
void BindKeys (Bool_t on=kTRUE)
void BindMenuKeys (Bool_t on=kTRUE)

Protected Attributes

Bool_t fSplit
EButtonState fMBState
UInt_t fTBWidth
UInt_t fMBWidth
TGPopupMenufPopMenu
Int_t fEntryId
TGHotStringfMenuLabel
Cursor_t fDefaultCursor
Bool_t fKeyNavigate
TGString fWidestLabel
TGString fHeighestLabel
TGPopupMenufPopMenu
TGHotStringfMenuLabel

Private Member Functions

 TGSplitButton (const TGSplitButton &)
TGSplitButtonoperator= (const TGSplitButton &)
void CalcSize ()
void DrawTriangle (const GContext_t gc, Int_t x, Int_t y)
Bool_t HandleSButton (Event_t *event)
Bool_t HandleSCrossing (Event_t *event)
Bool_t HandleSKey (Event_t *event)
void SetMenuState (Bool_t state)
 TGSplitButton (const TGSplitButton &)
TGSplitButtonoperator= (const TGSplitButton &)
void CalcSize ()
void DrawTriangle (const GContext_t gc, Int_t x, Int_t y)
Bool_t HandleSButton (Event_t *event)
Bool_t HandleSCrossing (Event_t *event)
Bool_t HandleSKey (Event_t *event)
void SetMenuState (Bool_t state)

Friends

class TGPopupMenu

Detailed Description

Definition at line 377 of file TGButton.h.


Constructor & Destructor Documentation

TGSplitButton::TGSplitButton ( const TGSplitButton  )  [private]

TGSplitButton::TGSplitButton ( const TGWindow p,
TGHotString menulabel,
TGPopupMenu popmenu,
Bool_t  split = kTRUE,
Int_t  id = -1,
GContext_t  norm = GetDefaultGC()(),
FontStruct_t  fontstruct = GetDefaultFontStruct(),
UInt_t  option = kRaisedFrame|kDoubleBorder 
)

Definition at line 1988 of file TGButton.cxx.

References TGFrame::ChangeOptions(), TGFont::ComputeTextLayout(), TQObject::Connect(), dummy, entry, TGObject::fClient, fDefaultCursor, fEntryId, TGTextButton::fFontStruct, TGTextButton::fgDefaultFont, fHeighestLabel, TGFrame::fHeight, TGTextButton::fHKeycode, TGFontPool::FindFont(), fKeyNavigate, fMBState, fMBWidth, fMenuLabel, fPopMenu, fSplit, TGPopupMenu::fSplitButton, fTBWidth, TGButton::fTHeight, TGTextButton::fTMode, TGButton::fTWidth, fWidestLabel, TGTextButton::fWrapLength, TGFontPool::GetFont(), TGClient::GetFontPool(), TGFont::GetFontStruct(), TGResourcePool::GetGrabCursor(), TGString::GetLength(), TGPopupMenu::GetListOfEntries(), TGFrame::GetOptions(), TGClient::GetResourcePool(), Init(), kButtonUp, kFALSE, kFixedSize, kMenuEnableMask, kMenuEntry, kMenuHideMask, kMenuLabel, kMenuSeparator, kTextLeft, list, TIter::Next(), TGFrame::Resize(), and SetSplit().

TGSplitButton::~TGSplitButton (  )  [virtual]

Definition at line 2126 of file TGButton.cxx.

References fMenuLabel, and fPopMenu.

TGSplitButton::TGSplitButton ( const TGSplitButton  )  [private]

TGSplitButton::TGSplitButton ( const TGWindow p,
TGHotString menulabel,
TGPopupMenu popmenu,
Bool_t  split = kTRUE,
Int_t  id = -1,
GContext_t  norm = GetDefaultGC()(),
FontStruct_t  fontstruct = GetDefaultFontStruct(),
UInt_t  option = kRaisedFrame|kDoubleBorder 
)

virtual TGSplitButton::~TGSplitButton (  )  [virtual]


Member Function Documentation

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

void TGSplitButton::CalcSize (  )  [private]

Definition at line 2152 of file TGButton.cxx.

References TGTextButton::fFontStruct, TGFrame::fHeight, TGTextButton::fLabel, fTBWidth, TGButton::fTHeight, TGButton::fTWidth, TGFrame::fWidth, TGString::GetLength(), TGString::GetString(), and gVirtualX.

void TGSplitButton::DrawTriangle ( const GContext_t  gc,
Int_t  x,
Int_t  y 
) [private]

Definition at line 2135 of file TGButton.cxx.

References TGObject::fId, gVirtualX, and points.

Referenced by DoRedraw().

Bool_t TGSplitButton::HandleSButton ( Event_t event  )  [private]

Definition at line 2167 of file TGButton.cxx.

References TGPopupMenu::Activated(), TGButton::Clicked(), entry, TGObject::fClient, TGWidget::fCommand, fDefaultCursor, TGButton::fgReleaseBtn, TGFrame::fHeight, TGObject::fId, fMBState, fMBWidth, TGWidget::fMsgWindow, fPopMenu, TGButton::fState, TGButton::fStayDown, fTBWidth, Event_t::fType, TGButton::fUserData, TGWidget::fWidgetId, TGFrame::fWidth, Event_t::fX, Event_t::fY, TGPopupMenu::GetCurrent(), gVirtualX, kButtonDisabled, kButtonDown, kButtonEngaged, kButtonPress, kButtonPressMask, kButtonReleaseMask, kButtonUp, kC_COMMAND, kCM_BUTTON, kFALSE, kMenuEnableMask, kMenuHideMask, kMenuLabel, kMenuSeparator, kNone, kPointerMotionMask, kTRUE, MBClicked(), MBPressed(), MBReleased(), MK_MSG(), TGButton::Pressed(), TGClient::ProcessLine(), TGButton::Released(), TGFrame::SendMessage(), SetMBState(), SetMenuState(), and TGButton::SetState().

Referenced by HandleButton().

Bool_t TGSplitButton::HandleSCrossing ( Event_t event  )  [private]

Definition at line 2298 of file TGButton.cxx.

References TGFrame::fgDbw, TGButton::fgReleaseBtn, fMBState, Event_t::fState, TGButton::fState, fTBWidth, TGButton::fTip, Event_t::fType, Event_t::fWindow, Event_t::fX, TGToolTip::Hide(), kButton1Mask, kButton2Mask, kButton3Mask, kButtonDisabled, kButtonDown, kButtonEngaged, kButtonUp, kEnterNotify, kFALSE, kTRUE, TGToolTip::Reset(), SetMBState(), and TGButton::SetState().

Referenced by HandleCrossing().

Bool_t TGSplitButton::HandleSKey ( Event_t event  )  [private]

Definition at line 2340 of file TGButton.cxx.

References TGButton::Clicked(), TGObject::fClient, TGWidget::fCommand, TGWidget::fMsgWindow, Event_t::fState, TGButton::fState, TGButton::fStayDown, TGButton::fTip, Event_t::fType, TGButton::fUserData, TGWidget::fWidgetId, gVirtualX, TGToolTip::Hide(), kButtonDisabled, kButtonDown, kButtonEngaged, kButtonUp, kC_COMMAND, kCM_BUTTON, kFALSE, kGKeyPress, kKeyMod1Mask, kKeyRelease, kTRUE, MK_MSG(), TGButton::Pressed(), TGClient::ProcessLine(), TGButton::Released(), TGFrame::SendMessage(), and TGButton::SetState().

Referenced by HandleKey().

void TGSplitButton::SetMenuState ( Bool_t  state  )  [private]

Definition at line 2388 of file TGButton.cxx.

References BindKeys(), BindMenuKeys(), TGPopupMenu::EndMenu(), entry, TGFrame::fHeight, TGObject::fId, fPopMenu, fSplit, TGButton::fUserData, TGObject::GetId(), TGPopupMenu::GetListOfEntries(), TGWindow::GetParent(), gVirtualX, TObject::Info(), kFALSE, kMenuLabel, kMenuSeparator, kTRUE, and TGPopupMenu::PlaceMenu().

Referenced by HandleButton(), HandleKey(), HandleMenu(), and HandleSButton().

void TGSplitButton::DoRedraw (  )  [protected, virtual]

Reimplemented from TGTextButton.

Definition at line 2429 of file TGButton.cxx.

References TGFrame::DoRedraw(), TGTextLayout::DrawText(), DrawTriangle(), TGObject::fClient, TGFrame::fHeight, TGObject::fId, TGGCPool::FindGC(), TGTextButton::fLabel, TGTextButton::fMBottom, fMBState, fMBWidth, TGTextButton::fMLeft, TGTextButton::fMRight, TGTextButton::fMTop, TGButton::fNormGC, fSplit, TGButton::fState, fTBWidth, TGButton::fTHeight, TGTextButton::fTLayout, TGTextButton::fTMode, TGButton::fTWidth, TGFrame::fWidth, TGGC::GetForeground(), TGGC::GetGC(), TGResourcePool::GetGCPool(), TGButton::GetHibckgndGC(), TGFrame::GetHilightGC(), TGHotString::GetHotPos(), TGClient::GetResourcePool(), TGFrame::GetShadowGC(), gVirtualX, hi, kButtonDisabled, kButtonDown, kButtonEngaged, kButtonUp, kTextBottom, kTextLeft, kTextRight, kTextTop, TGGC::SetForeground(), TGTextLayout::UnderlineChar(), x, and y.

Referenced by HandleMenu(), SetMBState(), and SetSplit().

void TGSplitButton::Init (  )  [protected]

Reimplemented from TGTextButton.

Definition at line 2084 of file TGButton.cxx.

References TGFrame::AddInput(), SetWindowAttributes_t::fBitGravity, TGTextButton::fHasOwnFont, TGFrame::fHeight, TGTextButton::fHKeycode, TGObject::fId, TGTextButton::fLabel, SetWindowAttributes_t::fMask, fMBState, TGTextButton::fPrevStateOn, TGTextButton::fStateOn, TGTextButton::fTMode, TGFrame::fWidth, SetWindowAttributes_t::fWinGravity, TGHotString::GetHotChar(), TGWindow::GetMainFrame(), gVirtualX, kButtonUp, kEnterWindowMask, kFALSE, kKeyLockMask, kKeyMod1Mask, kKeyMod2Mask, kKeyShiftMask, kLeaveWindowMask, kPointerMotionMask, kTextCenterX, kTextCenterY, kWABitGravity, kWAWinGravity, main(), TGFrame::SetSize(), and TGWindow::SetWindowName().

Referenced by TGSplitButton().

void TGSplitButton::BindKeys ( Bool_t  on = kTRUE  )  [protected]

Definition at line 2532 of file TGButton.cxx.

References TGObject::fId, gVirtualX, kAnyModifier, kKey_Down, kKey_Enter, kKey_Escape, kKey_Return, and kKey_Up.

Referenced by SetMenuState().

void TGSplitButton::BindMenuKeys ( Bool_t  on = kTRUE  )  [protected]

Definition at line 2545 of file TGButton.cxx.

References TGObject::fId, fPopMenu, TGHotString::GetHotChar(), TGMenuEntry::GetLabel(), TGPopupMenu::GetListOfEntries(), gVirtualX, kKeyLockMask, kKeyMod2Mask, and kKeyShiftMask.

Referenced by SetMenuState().

TGDimension TGSplitButton::GetDefaultSize (  )  const [virtual]

Reimplemented from TGTextButton.

Definition at line 2570 of file TGButton.cxx.

References TGFrame::fHeight, TGTextButton::fMBottom, fMBWidth, TGTextButton::fMLeft, TGTextButton::fMRight, TGTextButton::fMTop, TGButton::fTHeight, TGButton::fTWidth, TGFrame::fWidth, TGFrame::GetOptions(), h, kFixedHeight, kFixedWidth, and w.

void TGSplitButton::SetText ( TGHotString new_label  )  [virtual]

Reimplemented from TGTextButton.

Definition at line 2580 of file TGButton.cxx.

References TGFont::ComputeTextLayout(), dummy, TGObject::fClient, TGTextButton::fFontStruct, TGTextButton::fgDefaultFont, TGTextButton::fHKeycode, TGFontPool::FindFont(), TGTextButton::fLabel, TGButton::fTip, fWidestLabel, TGTextButton::fWrapLength, TGFontPool::GetFont(), TGClient::GetFontPool(), TGFont::GetFontStruct(), TGHotString::GetHotChar(), TGString::GetLength(), TGWindow::GetMainFrame(), TGString::GetString(), gVirtualX, TObject::Info(), kFALSE, kKeyLockMask, kKeyMod1Mask, kKeyMod2Mask, kKeyShiftMask, kTextLeft, kTRUE, Layout(), main(), TString::Resize(), TGButton::SetToolTipText(), and width.

Referenced by HandleMenu(), SetSplit(), and SetText().

void TGSplitButton::SetText ( const TString new_label  )  [virtual]

Reimplemented from TGTextButton.

Definition at line 2648 of file TGButton.cxx.

References SetText().

void TGSplitButton::SetFont ( FontStruct_t  font,
Bool_t  global = kFALSE 
) [virtual]

Reimplemented from TGTextButton.

Definition at line 2656 of file TGButton.cxx.

References TGObject::fClient, TGTextButton::fFontStruct, TGTextButton::fHasOwnFont, TGGCPool::FindGC(), TGButton::fNormGC, TGGC::GetAttributes(), TGGC::GetGC(), TGGCPool::GetGC(), TGResourcePool::GetGCPool(), TGClient::GetResourcePool(), gVirtualX, kTRUE, TGClient::NeedRedraw(), and TGGC::SetFont().

Referenced by SetFont().

void TGSplitButton::SetFont ( const char *  fontName,
Bool_t  global = kFALSE 
) [virtual]

Reimplemented from TGTextButton.

Definition at line 2683 of file TGButton.cxx.

References TGObject::fClient, TGClient::GetFont(), TGFont::GetFontStruct(), and SetFont().

void TGSplitButton::SetMBState ( EButtonState  state  )  [virtual]

Definition at line 2695 of file TGButton.cxx.

References DoRedraw(), and fMBState.

Referenced by HandleMenu(), HandleMotion(), HandleSButton(), and HandleSCrossing().

void TGSplitButton::SetSplit ( Bool_t  split  )  [virtual]

Definition at line 2706 of file TGButton.cxx.

References TQObject::Connect(), TQObject::Disconnect(), DoRedraw(), TGPopupMenu::EnableEntry(), entry, fEntryId, fMenuLabel, fPopMenu, fSplit, TGButton::fStayDown, TGPopupMenu::GetEntry(), TGPopupMenu::HideEntry(), kFALSE, kTRUE, SetText(), and str.

Referenced by SplitButtonTest::DoSplit(), and TGSplitButton().

Bool_t TGSplitButton::IsSplit (  )  [inline]

Definition at line 428 of file TGButton.h.

References fSplit.

Bool_t TGSplitButton::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGButton.

Definition at line 2743 of file TGButton.cxx.

References TGPopupMenu::Activated(), TGButton::Clicked(), entry, TGObject::fClient, TGWidget::fCommand, fDefaultCursor, TGButton::fgReleaseBtn, TGFrame::fHeight, TGObject::fId, fKeyNavigate, TGWidget::fMsgWindow, fPopMenu, fSplit, TGButton::fState, TGButton::fStayDown, TGButton::fUserData, TGWidget::fWidgetId, TGFrame::fWidth, TGPopupMenu::GetCurrent(), gVirtualX, HandleSButton(), kButtonDisabled, kButtonDown, kButtonEngaged, kButtonPress, kButtonPressMask, kButtonReleaseMask, kButtonUp, kC_COMMAND, kCM_BUTTON, kFALSE, kMenuEnableMask, kMenuHideMask, kMenuLabel, kMenuSeparator, kNone, kPointerMotionMask, kTRUE, MK_MSG(), TGButton::Pressed(), TGClient::ProcessLine(), TGButton::Released(), TGFrame::SendMessage(), SetMenuState(), and TGButton::SetState().

Referenced by HandleKey().

Bool_t TGSplitButton::HandleCrossing ( Event_t event  )  [virtual]

Reimplemented from TGButton.

Definition at line 2823 of file TGButton.cxx.

References fSplit, TGButton::HandleCrossing(), and HandleSCrossing().

Bool_t TGSplitButton::HandleKey ( Event_t event  )  [virtual]

Reimplemented from TGTextButton.

Definition at line 2835 of file TGButton.cxx.

References TGPopupMenu::Activate(), TList::After(), TList::Before(), TGButton::Clicked(), entry, TGObject::fClient, TGWidget::fCommand, fDefaultCursor, TGObject::fId, TList::First(), fKeyNavigate, TGWidget::fMsgWindow, fPopMenu, fSplit, TGButton::fState, TGButton::fStayDown, TGButton::fTip, Event_t::fType, TGButton::fUserData, TGWidget::fWidgetId, Event_t::fWindow, Event_t::fX, Event_t::fY, TGPopupMenu::GetCurrent(), TGHotString::GetHotChar(), TGObject::GetId(), TGMenuEntry::GetLabel(), TGPopupMenu::GetListOfEntries(), gVirtualX, HandleButton(), HandleSKey(), TGToolTip::Hide(), kButtonDisabled, kButtonDown, kButtonEngaged, kButtonPressMask, kButtonRelease, kButtonReleaseMask, kButtonUp, kC_COMMAND, kCM_BUTTON, kFALSE, kGKeyPress, kKey_Down, kKey_Enter, kKey_Escape, kKey_Return, kKey_Up, kKeyMod1Mask, kKeyRelease, kMenuEnableMask, kMenuHideMask, kMenuLabel, kMenuSeparator, kNone, kPointerMotionMask, kTRUE, TList::Last(), MK_MSG(), TGButton::Pressed(), TGClient::ProcessLine(), TGButton::Released(), TGWindow::RequestFocus(), TGFrame::SendMessage(), SetMenuState(), and TGButton::SetState().

Bool_t TGSplitButton::HandleMotion ( Event_t event  )  [virtual]

Reimplemented from TGFrame.

Definition at line 2969 of file TGButton.cxx.

References fKeyNavigate, fMBState, fSplit, TGButton::fState, fTBWidth, Event_t::fX, kButtonDown, kButtonUp, kTRUE, SetMBState(), and TGButton::SetState().

void TGSplitButton::Layout (  )  [virtual]

Reimplemented from TGTextButton.

Definition at line 2993 of file TGButton.cxx.

References TGFont::ComputeTextLayout(), dummy, TGObject::fClient, TGTextButton::fFontStruct, TGTextButton::fgDefaultFont, fHeighestLabel, TGFrame::fHeight, TGFontPool::FindFont(), TGTextButton::fLabel, fMBWidth, fTBWidth, TGButton::fTHeight, TGTextButton::fTLayout, TGButton::fTWidth, fWidestLabel, TGFrame::fWidth, TGTextButton::fWrapLength, TGFontPool::GetFont(), TGClient::GetFontPool(), TGFont::GetFontStruct(), TGString::GetLength(), TGString::GetString(), kTextLeft, and TGClient::NeedRedraw().

Referenced by SetText().

virtual void TGSplitButton::MBPressed (  )  [inline, virtual]

Definition at line 435 of file TGButton.h.

References TQObject::Emit().

Referenced by HandleSButton().

virtual void TGSplitButton::MBReleased (  )  [inline, virtual]

Definition at line 436 of file TGButton.h.

References TQObject::Emit().

Referenced by HandleSButton().

virtual void TGSplitButton::MBClicked (  )  [inline, virtual]

Definition at line 437 of file TGButton.h.

References TQObject::Emit().

Referenced by HandleSButton().

virtual void TGSplitButton::ItemClicked ( Int_t  id  )  [inline, virtual]

Definition at line 438 of file TGButton.h.

References TQObject::Emit().

Referenced by HandleMenu().

void TGSplitButton::HandleMenu ( Int_t  id  ) 

Definition at line 3026 of file TGButton.cxx.

References TQObject::Connect(), TQObject::Disconnect(), DoRedraw(), TGPopupMenu::EnableEntry(), fEntryId, TString::Format(), fPopMenu, fSplit, TGPopupMenu::GetEntry(), TGMenuEntry::GetEntryId(), TGMenuEntry::GetLabel(), TGPopupMenu::GetListOfEntries(), TGPopupMenu::HideEntry(), ItemClicked(), kButtonUp, kFALSE, list, SetMBState(), SetMenuState(), TGButton::SetState(), and SetText().

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

void TGSplitButton::CalcSize (  )  [private]

void TGSplitButton::DrawTriangle ( const GContext_t  gc,
Int_t  x,
Int_t  y 
) [private]

Bool_t TGSplitButton::HandleSButton ( Event_t event  )  [private]

Bool_t TGSplitButton::HandleSCrossing ( Event_t event  )  [private]

Bool_t TGSplitButton::HandleSKey ( Event_t event  )  [private]

void TGSplitButton::SetMenuState ( Bool_t  state  )  [private]

virtual void TGSplitButton::DoRedraw (  )  [protected, virtual]

Reimplemented from TGTextButton.

void TGSplitButton::Init (  )  [protected]

Reimplemented from TGTextButton.

void TGSplitButton::BindKeys ( Bool_t  on = kTRUE  )  [protected]

void TGSplitButton::BindMenuKeys ( Bool_t  on = kTRUE  )  [protected]

virtual TGDimension TGSplitButton::GetDefaultSize (  )  const [virtual]

Reimplemented from TGTextButton.

virtual void TGSplitButton::SetText ( TGHotString new_label  )  [virtual]

Reimplemented from TGTextButton.

virtual void TGSplitButton::SetText ( const TString new_label  )  [virtual]

Reimplemented from TGTextButton.

virtual void TGSplitButton::SetFont ( FontStruct_t  font,
Bool_t  global = kFALSE 
) [virtual]

Reimplemented from TGTextButton.

virtual void TGSplitButton::SetFont ( const char *  fontName,
Bool_t  global = kFALSE 
) [virtual]

Reimplemented from TGTextButton.

virtual void TGSplitButton::SetMBState ( EButtonState  state  )  [virtual]

virtual void TGSplitButton::SetSplit ( Bool_t  split  )  [virtual]

Bool_t TGSplitButton::IsSplit (  )  [inline]

Definition at line 428 of file TGButton.h.

References fSplit.

virtual Bool_t TGSplitButton::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGButton.

virtual Bool_t TGSplitButton::HandleCrossing ( Event_t event  )  [virtual]

Reimplemented from TGButton.

virtual Bool_t TGSplitButton::HandleKey ( Event_t event  )  [virtual]

Reimplemented from TGTextButton.

virtual Bool_t TGSplitButton::HandleMotion ( Event_t event  )  [virtual]

Reimplemented from TGFrame.

virtual void TGSplitButton::Layout (  )  [virtual]

Reimplemented from TGTextButton.

virtual void TGSplitButton::MBPressed (  )  [inline, virtual]

Definition at line 435 of file TGButton.h.

References TQObject::Emit().

virtual void TGSplitButton::MBReleased (  )  [inline, virtual]

Definition at line 436 of file TGButton.h.

References TQObject::Emit().

virtual void TGSplitButton::MBClicked (  )  [inline, virtual]

Definition at line 437 of file TGButton.h.

References TQObject::Emit().

virtual void TGSplitButton::ItemClicked ( Int_t  id  )  [inline, virtual]

Definition at line 438 of file TGButton.h.

References TQObject::Emit().

void TGSplitButton::HandleMenu ( Int_t  id  ) 


Friends And Related Function Documentation

TGPopupMenu [friend]

Definition at line 379 of file TGButton.h.


Member Data Documentation

Bool_t TGSplitButton::fSplit [protected]

Definition at line 394 of file TGButton.h.

Referenced by DoRedraw(), HandleButton(), HandleCrossing(), HandleKey(), HandleMenu(), HandleMotion(), IsSplit(), SetMenuState(), SetSplit(), and TGSplitButton().

EButtonState TGSplitButton::fMBState [protected]

Definition at line 395 of file TGButton.h.

Referenced by DoRedraw(), HandleMotion(), HandleSButton(), HandleSCrossing(), Init(), SetMBState(), and TGSplitButton().

UInt_t TGSplitButton::fTBWidth [protected]

Definition at line 396 of file TGButton.h.

Referenced by CalcSize(), DoRedraw(), HandleMotion(), HandleSButton(), HandleSCrossing(), Layout(), and TGSplitButton().

UInt_t TGSplitButton::fMBWidth [protected]

Definition at line 397 of file TGButton.h.

Referenced by DoRedraw(), GetDefaultSize(), HandleSButton(), Layout(), and TGSplitButton().

TGPopupMenu* TGSplitButton::fPopMenu [protected]

Definition at line 398 of file TGButton.h.

Referenced by BindMenuKeys(), HandleButton(), HandleKey(), HandleMenu(), HandleSButton(), SetMenuState(), SetSplit(), TGSplitButton(), and ~TGSplitButton().

Int_t TGSplitButton::fEntryId [protected]

Definition at line 399 of file TGButton.h.

Referenced by HandleMenu(), SetSplit(), and TGSplitButton().

TGHotString* TGSplitButton::fMenuLabel [protected]

Definition at line 400 of file TGButton.h.

Referenced by SetSplit(), TGSplitButton(), and ~TGSplitButton().

Cursor_t TGSplitButton::fDefaultCursor [protected]

Definition at line 401 of file TGButton.h.

Referenced by HandleButton(), HandleKey(), HandleSButton(), and TGSplitButton().

Bool_t TGSplitButton::fKeyNavigate [protected]

Definition at line 402 of file TGButton.h.

Referenced by HandleButton(), TGPopupMenu::HandleCrossing(), HandleKey(), HandleMotion(), and TGSplitButton().

TGString TGSplitButton::fWidestLabel [protected]

Definition at line 403 of file TGButton.h.

Referenced by Layout(), SetText(), and TGSplitButton().

TGString TGSplitButton::fHeighestLabel [protected]

Definition at line 404 of file TGButton.h.

Referenced by Layout(), and TGSplitButton().

TGPopupMenu* TGSplitButton::fPopMenu [protected]

Definition at line 398 of file TGButton.h.

TGHotString* TGSplitButton::fMenuLabel [protected]

Definition at line 400 of file TGButton.h.


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