#include <TGButton.h>
Inheritance diagram for TGSplitButton:
Definition at line 377 of file TGButton.h.
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] |
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] |
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().
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().
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().
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().
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().
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().
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] |
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().
Reimplemented from TGButton.
Definition at line 2823 of file TGButton.cxx.
References fSplit, TGButton::HandleCrossing(), and HandleSCrossing().
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().
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] |
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] |
void TGSplitButton::SetMenuState | ( | Bool_t | state | ) | [private] |
virtual void TGSplitButton::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGTextButton.
void TGSplitButton::Init | ( | ) | [protected] |
Reimplemented from TGTextButton.
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.
Reimplemented from TGTextButton.
virtual void TGSplitButton::SetMBState | ( | EButtonState | state | ) | [virtual] |
virtual void TGSplitButton::SetSplit | ( | Bool_t | split | ) | [virtual] |
Bool_t TGSplitButton::IsSplit | ( | ) | [inline] |
Reimplemented from TGButton.
Reimplemented from TGButton.
Reimplemented from TGTextButton.
Reimplemented from TGFrame.
virtual void TGSplitButton::Layout | ( | ) | [virtual] |
Reimplemented from TGTextButton.
virtual void TGSplitButton::MBPressed | ( | ) | [inline, virtual] |
virtual void TGSplitButton::MBReleased | ( | ) | [inline, virtual] |
virtual void TGSplitButton::MBClicked | ( | ) | [inline, virtual] |
virtual void TGSplitButton::ItemClicked | ( | Int_t | id | ) | [inline, virtual] |
void TGSplitButton::HandleMenu | ( | Int_t | id | ) |
TGPopupMenu [friend] |
Definition at line 379 of file TGButton.h.
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] |
TGString TGSplitButton::fHeighestLabel [protected] |
TGPopupMenu* TGSplitButton::fPopMenu [protected] |
Definition at line 398 of file TGButton.h.
TGHotString* TGSplitButton::fMenuLabel [protected] |
Definition at line 400 of file TGButton.h.