#include <TGButton.h>
Inheritance diagram for TGRadioButton:
Public Member Functions | |
TGRadioButton (const TGWindow *p, TGHotString *s, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
TGRadioButton (const TGWindow *p=0, const char *s=0, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
TGRadioButton (const TGWindow *p, const char *s, const char *cmd, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
virtual | ~TGRadioButton () |
virtual TGDimension | GetDefaultSize () const |
virtual Bool_t | HandleButton (Event_t *event) |
virtual Bool_t | HandleKey (Event_t *event) |
virtual Bool_t | HandleCrossing (Event_t *event) |
virtual void | SetState (EButtonState state, Bool_t emit=kFALSE) |
virtual void | SetDisabledAndSelected (Bool_t) |
virtual Bool_t | IsToggleButton () const |
virtual Bool_t | IsExclusiveToggle () const |
virtual Bool_t | IsOn () const |
virtual Bool_t | IsDown () const |
virtual Bool_t | IsDisabledAndSelected () const |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
TGRadioButton (const TGWindow *p, TGHotString *s, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
TGRadioButton (const TGWindow *p=0, const char *s=0, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
TGRadioButton (const TGWindow *p, const char *s, const char *cmd, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
virtual | ~TGRadioButton () |
virtual TGDimension | GetDefaultSize () const |
virtual Bool_t | HandleButton (Event_t *event) |
virtual Bool_t | HandleKey (Event_t *event) |
virtual Bool_t | HandleCrossing (Event_t *event) |
virtual void | SetState (EButtonState state, Bool_t emit=kFALSE) |
virtual void | SetDisabledAndSelected (Bool_t) |
virtual Bool_t | IsToggleButton () const |
virtual Bool_t | IsExclusiveToggle () const |
virtual Bool_t | IsOn () const |
virtual Bool_t | IsDown () const |
virtual Bool_t | IsDisabledAndSelected () const |
virtual void | SavePrimitive (ostream &out, Option_t *option="") |
Static Public Member Functions | |
static FontStruct_t | GetDefaultFontStruct () |
static const TGGC & | GetDefaultGC () |
static FontStruct_t | GetDefaultFontStruct () |
static const TGGC & | GetDefaultGC () |
Protected Member Functions | |
void | Init () |
void | PSetState (EButtonState state, Bool_t emit) |
virtual void | DoRedraw () |
virtual void | EmitSignals (Bool_t wasUp=kTRUE) |
void | Init () |
void | PSetState (EButtonState state, Bool_t emit) |
virtual void | DoRedraw () |
virtual void | EmitSignals (Bool_t wasUp=kTRUE) |
Protected Attributes | |
EButtonState | fPrevState |
const TGPicture * | fOn |
const TGPicture * | fOff |
const TGPicture * | fDisOn |
const TGPicture * | fDisOff |
const TGPicture * | fOn |
const TGPicture * | fOff |
const TGPicture * | fDisOn |
const TGPicture * | fDisOff |
Static Protected Attributes | |
static const TGFont * | fgDefaultFont |
static const TGGC * | fgDefaultGC |
static const TGFont * | fgDefaultFont |
static const TGGC * | fgDefaultGC |
Private Member Functions | |
TGRadioButton (const TGRadioButton &) | |
TGRadioButton & | operator= (const TGRadioButton &) |
TGRadioButton (const TGRadioButton &) | |
TGRadioButton & | operator= (const TGRadioButton &) |
Definition at line 320 of file TGButton.h.
TGRadioButton::TGRadioButton | ( | const TGRadioButton & | ) | [private] |
TGRadioButton::TGRadioButton | ( | const TGWindow * | p, | |
TGHotString * | s, | |||
Int_t | id = -1 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
TGRadioButton::TGRadioButton | ( | const TGWindow * | p = 0 , |
|
const char * | s = 0 , |
|||
Int_t | id = -1 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
TGRadioButton::TGRadioButton | ( | const TGWindow * | p, | |
const char * | s, | |||
const char * | cmd, | |||
Int_t | id = -1 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
TGRadioButton::~TGRadioButton | ( | ) | [virtual] |
Definition at line 1414 of file TGButton.cxx.
References TGObject::fClient, fDisOff, fDisOn, fOff, fOn, and TGClient::FreePicture().
TGRadioButton::TGRadioButton | ( | const TGRadioButton & | ) | [private] |
TGRadioButton::TGRadioButton | ( | const TGWindow * | p, | |
TGHotString * | s, | |||
Int_t | id = -1 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
TGRadioButton::TGRadioButton | ( | const TGWindow * | p = 0 , |
|
const char * | s = 0 , |
|||
Int_t | id = -1 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
TGRadioButton::TGRadioButton | ( | const TGWindow * | p, | |
const char * | s, | |||
const char * | cmd, | |||
Int_t | id = -1 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
virtual TGRadioButton::~TGRadioButton | ( | ) | [virtual] |
TGRadioButton& TGRadioButton::operator= | ( | const TGRadioButton & | ) | [private] |
void TGRadioButton::Init | ( | ) | [protected] |
Reimplemented from TGTextButton.
Definition at line 1372 of file TGButton.cxx.
References xmlio::Class, TObject::Error(), TGObject::fClient, fDisOff, fDisOn, TGTextButton::fHKeycode, TGTextButton::fLabel, fOff, fOn, TGWindow::fParent, fPrevState, TGButton::fState, TGHotString::GetHotChar(), TGWindow::GetMainFrame(), TGClient::GetPicture(), gVirtualX, TObject::InheritsFrom(), kButtonUp, kKeyLockMask, kKeyMod1Mask, kKeyMod2Mask, kKeyShiftMask, kTRUE, main(), TGFrame::Resize(), and TGWindow::SetWindowName().
Referenced by TGRadioButton().
void TGRadioButton::PSetState | ( | EButtonState | state, | |
Bool_t | emit | |||
) | [protected] |
Definition at line 1482 of file TGButton.cxx.
References DoRedraw(), EmitSignals(), fPrevState, TGButton::fState, TGTextButton::fStateOn, kButtonDisabled, kButtonDown, kButtonUp, kFALSE, and kTRUE.
Referenced by HandleButton(), HandleKey(), SetDisabledAndSelected(), and SetState().
void TGRadioButton::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGTextButton.
Definition at line 1627 of file TGButton.cxx.
References TGFrame::DoRedraw(), TGPicture::Draw(), TGTextLayout::DrawText(), TGObject::fClient, fDisOff, fDisOn, TGFrame::fHeight, TGObject::fId, TGGCPool::FindGC(), TGTextButton::fLabel, TGButton::fNormGC, fOff, fOn, TGButton::fState, TGTextButton::fStateOn, TGButton::fTHeight, TGTextButton::fTLayout, TGGC::GetForeground(), TGGC::GetGC(), TGResourcePool::GetGCPool(), TGFrame::GetHilightGC(), TGHotString::GetHotPos(), TGClient::GetResourcePool(), TGFrame::GetShadowGC(), hi, kButtonDisabled, kTRUE, TGGC::SetForeground(), and TGTextLayout::UnderlineChar().
Referenced by HandleButton(), HandleCrossing(), and PSetState().
Reimplemented from TGButton.
Definition at line 1471 of file TGButton.cxx.
References TGButton::Clicked(), TGButton::fState, TGTextButton::fStateOn, kButtonDown, kButtonUp, TGButton::Pressed(), TGButton::Released(), and TGButton::Toggled().
Referenced by PSetState().
FontStruct_t TGRadioButton::GetDefaultFontStruct | ( | ) | [static] |
Reimplemented from TGTextButton.
Definition at line 1678 of file TGButton.cxx.
References fgDefaultFont, gClient, TGResourcePool::GetDefaultFont(), TGFont::GetFontStruct(), and TGClient::GetResourcePool().
Referenced by G__G__Gui1_236_0_7(), G__setup_memfuncTGRadioButton(), and SavePrimitive().
const TGGC & TGRadioButton::GetDefaultGC | ( | ) | [static] |
Reimplemented from TGButton.
Definition at line 1688 of file TGButton.cxx.
References fgDefaultGC, gClient, TGResourcePool::GetFrameGC(), and TGClient::GetResourcePool().
Referenced by G__G__Gui1_236_0_8(), G__setup_memfuncTGRadioButton(), and SavePrimitive().
TGDimension TGRadioButton::GetDefaultSize | ( | ) | const [virtual] |
Reimplemented from TGTextButton.
Definition at line 1425 of file TGButton.cxx.
References TGFrame::fHeight, fOff, TGButton::fTHeight, TGButton::fTWidth, TGFrame::fWidth, TGPicture::GetHeight(), TGFrame::GetOptions(), TGPicture::GetWidth(), h, kFixedHeight, kFixedWidth, and w.
Reimplemented from TGButton.
Definition at line 1519 of file TGButton.cxx.
References TGButton::Clicked(), DoRedraw(), TGObject::fClient, TGWidget::fCommand, TGButton::fgReleaseBtn, TGFrame::fHeight, TGObject::fId, TGWidget::fMsgWindow, TGFrame::fOptions, TGTextButton::fPrevStateOn, TGButton::fState, TGTextButton::fStateOn, TGButton::fTip, Event_t::fType, TGButton::fUserData, TGWidget::fWidgetId, TGFrame::fWidth, Event_t::fX, Event_t::fY, TGToolTip::Hide(), kButtonDisabled, kButtonDown, kButtonPress, kC_COMMAND, kCM_RADIOBUTTON, kFALSE, kSunkenFrame, kTRUE, MK_MSG(), TGButton::Pressed(), TGClient::ProcessLine(), PSetState(), TGButton::Released(), TGFrame::SendMessage(), and TGButton::Toggled().
Referenced by TGHtml::HandleHtmlInput().
Reimplemented from TGTextButton.
Definition at line 1597 of file TGButton.cxx.
References TGObject::fClient, TGWidget::fCommand, TGWidget::fMsgWindow, fPrevState, Event_t::fState, TGButton::fState, TGButton::fTip, Event_t::fType, TGButton::fUserData, TGWidget::fWidgetId, gVirtualX, TGToolTip::Hide(), kButtonDisabled, kButtonDown, kC_COMMAND, kCM_RADIOBUTTON, kFALSE, kGKeyPress, kKeyMod1Mask, kKeyRelease, kTRUE, MK_MSG(), TGClient::ProcessLine(), PSetState(), and TGFrame::SendMessage().
Reimplemented from TGButton.
Definition at line 1568 of file TGButton.cxx.
References DoRedraw(), TGFrame::fgDbw, TGButton::fgReleaseBtn, TGFrame::fOptions, Event_t::fState, TGButton::fState, TGButton::fTip, Event_t::fType, Event_t::fWindow, TGToolTip::Hide(), kButton1Mask, kButton2Mask, kButton3Mask, kButtonDisabled, kEnterNotify, kSunkenFrame, kTRUE, and TGToolTip::Reset().
void TGRadioButton::SetState | ( | EButtonState | state, | |
Bool_t | emit = kFALSE | |||
) | [virtual] |
Reimplemented from TGButton.
Definition at line 1438 of file TGButton.cxx.
References TGWidget::fWidgetFlags, kButtonDisabled, kWidgetIsEnabled, and PSetState().
Referenced by TFitEditor::CreateFunctionGroup(), TFitEditor::CreateMinimizationTab(), TFitEditor::DoLibrary(), TGraphEditor::DoMarkerOnOff(), TEveCaloVizEditor::DoPlot(), TFitEditor::DoPrintOpt(), TGeoVolumeEditor::DoRemoveNode(), TFitEditor::DoReset(), TGSearchDialog::ProcessMessage(), TFitEditor::SetEditable(), TFrameEditor::SetModel(), TGeoVolumeEditor::SetModel(), TEveCaloVizEditor::SetModel(), TPieEditor::SetModel(), TestMsgBox::TestMsgBox(), and TASPaletteEditor::UpdateScreen().
void TGRadioButton::SetDisabledAndSelected | ( | Bool_t | ) | [virtual] |
Definition at line 1450 of file TGButton.cxx.
References TGButton::fState, TGTextButton::fStateOn, kButtonDisabled, kButtonDown, kButtonUp, kFALSE, and PSetState().
virtual Bool_t TGRadioButton::IsToggleButton | ( | ) | const [inline, virtual] |
virtual Bool_t TGRadioButton::IsExclusiveToggle | ( | ) | const [inline, virtual] |
virtual Bool_t TGRadioButton::IsOn | ( | ) | const [inline, virtual] |
Reimplemented from TGButton.
Definition at line 368 of file TGButton.h.
References TGTextButton::fStateOn.
Referenced by TGeoCombiTransEditor::DoParameters(), and TGeoRotationEditor::DoParameters().
virtual Bool_t TGRadioButton::IsDown | ( | ) | const [inline, virtual] |
Reimplemented from TGButton.
Definition at line 369 of file TGButton.h.
References TGTextButton::fStateOn.
Referenced by TGeoManagerEditor::DoExportGeometry(), TEveCaloVizEditor::DoPlot(), and TGHtml::HandleHtmlInput().
virtual Bool_t TGRadioButton::IsDisabledAndSelected | ( | ) | const [inline, virtual] |
Definition at line 370 of file TGButton.h.
References TGTextButton::fStateOn, and kButtonDisabled.
Referenced by SavePrimitive().
void TGRadioButton::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGTextButton.
Definition at line 1920 of file TGButton.cxx.
References TGTextButton::fFontStruct, TGFontPool::FindFont(), TGGCPool::FindGC(), TGTextButton::fLabel, TGTextButton::fMBottom, TGTextButton::fMLeft, TGTextButton::fMRight, TGTextButton::fMTop, TGButton::fNormGC, TString::Form(), TGWindow::fParent, TGButton::fState, TGTextButton::fTMode, TGWidget::fWidgetId, TGTextButton::fWrapLength, gClient, GetDefaultFontStruct(), GetDefaultGC(), TGResourcePool::GetFontPool(), TGResourcePool::GetGCPool(), TGHotString::GetHotPos(), TGWindow::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGClient::GetResourcePool(), TGString::GetString(), IsDisabledAndSelected(), kButtonDisabled, kChildFrame, TGGC::SavePrimitive(), TGFont::SavePrimitive(), and TGButton::SavePrimitive().
TGRadioButton& TGRadioButton::operator= | ( | const TGRadioButton & | ) | [private] |
void TGRadioButton::Init | ( | ) | [protected] |
Reimplemented from TGTextButton.
void TGRadioButton::PSetState | ( | EButtonState | state, | |
Bool_t | emit | |||
) | [protected] |
virtual void TGRadioButton::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGTextButton.
Reimplemented from TGButton.
static FontStruct_t TGRadioButton::GetDefaultFontStruct | ( | ) | [static] |
Reimplemented from TGTextButton.
virtual TGDimension TGRadioButton::GetDefaultSize | ( | ) | const [virtual] |
Reimplemented from TGTextButton.
Reimplemented from TGButton.
Reimplemented from TGTextButton.
Reimplemented from TGButton.
virtual void TGRadioButton::SetState | ( | EButtonState | state, | |
Bool_t | emit = kFALSE | |||
) | [virtual] |
Reimplemented from TGButton.
virtual void TGRadioButton::SetDisabledAndSelected | ( | Bool_t | ) | [virtual] |
virtual Bool_t TGRadioButton::IsToggleButton | ( | ) | const [inline, virtual] |
virtual Bool_t TGRadioButton::IsExclusiveToggle | ( | ) | const [inline, virtual] |
virtual Bool_t TGRadioButton::IsOn | ( | ) | const [inline, virtual] |
Reimplemented from TGButton.
Definition at line 368 of file TGButton.h.
References TGTextButton::fStateOn.
virtual Bool_t TGRadioButton::IsDown | ( | ) | const [inline, virtual] |
Reimplemented from TGButton.
Definition at line 369 of file TGButton.h.
References TGTextButton::fStateOn.
virtual Bool_t TGRadioButton::IsDisabledAndSelected | ( | ) | const [inline, virtual] |
virtual void TGRadioButton::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGTextButton.
EButtonState TGRadioButton::fPrevState [protected] |
const TGPicture* TGRadioButton::fOn [protected] |
const TGPicture* TGRadioButton::fOff [protected] |
Definition at line 329 of file TGButton.h.
Referenced by DoRedraw(), GetDefaultSize(), Init(), and ~TGRadioButton().
const TGPicture* TGRadioButton::fDisOn [protected] |
const TGPicture* TGRadioButton::fDisOff [protected] |
const TGFont * TGRadioButton::fgDefaultFont [static, protected] |
Reimplemented from TGTextButton.
Definition at line 338 of file TGButton.h.
Referenced by GetDefaultFontStruct().
const TGGC * TGRadioButton::fgDefaultGC [static, protected] |
Reimplemented from TGButton.
Definition at line 339 of file TGButton.h.
Referenced by GetDefaultGC().
const TGPicture* TGRadioButton::fOn [protected] |
Definition at line 328 of file TGButton.h.
const TGPicture* TGRadioButton::fOff [protected] |
Definition at line 329 of file TGButton.h.
const TGPicture* TGRadioButton::fDisOn [protected] |
Definition at line 330 of file TGButton.h.
const TGPicture* TGRadioButton::fDisOff [protected] |
Definition at line 331 of file TGButton.h.
const TGFont* TGRadioButton::fgDefaultFont [static, protected] |
const TGGC* TGRadioButton::fgDefaultGC [static, protected] |