TGRadioButton Class Reference

#include <TGButton.h>

Inheritance diagram for TGRadioButton:

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

 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 TGGCGetDefaultGC ()
static FontStruct_t GetDefaultFontStruct ()
static const TGGCGetDefaultGC ()

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 TGPicturefOn
const TGPicturefOff
const TGPicturefDisOn
const TGPicturefDisOff
const TGPicturefOn
const TGPicturefOff
const TGPicturefDisOn
const TGPicturefDisOff

Static Protected Attributes

static const TGFontfgDefaultFont
static const TGGCfgDefaultGC
static const TGFontfgDefaultFont
static const TGGCfgDefaultGC

Private Member Functions

 TGRadioButton (const TGRadioButton &)
TGRadioButtonoperator= (const TGRadioButton &)
 TGRadioButton (const TGRadioButton &)
TGRadioButtonoperator= (const TGRadioButton &)

Detailed Description

Definition at line 320 of file TGButton.h.


Constructor & Destructor Documentation

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 
)

Definition at line 1341 of file TGButton.cxx.

References Init().

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 
)

Definition at line 1352 of file TGButton.cxx.

References Init().

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 
)

Definition at line 1361 of file TGButton.cxx.

References Init().

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]


Member Function Documentation

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

void TGRadioButton::EmitSignals ( Bool_t  wasUp = kTRUE  )  [protected, virtual]

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.

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

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

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

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

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

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]

Reimplemented from TGButton.

Definition at line 366 of file TGButton.h.

References kTRUE.

virtual Bool_t TGRadioButton::IsExclusiveToggle (  )  const [inline, virtual]

Reimplemented from TGButton.

Definition at line 367 of file TGButton.h.

References kTRUE.

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.

virtual void TGRadioButton::EmitSignals ( Bool_t  wasUp = kTRUE  )  [protected, virtual]

Reimplemented from TGButton.

static FontStruct_t TGRadioButton::GetDefaultFontStruct (  )  [static]

Reimplemented from TGTextButton.

static const TGGC& TGRadioButton::GetDefaultGC (  )  [static]

Reimplemented from TGButton.

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

Reimplemented from TGTextButton.

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

Reimplemented from TGButton.

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

Reimplemented from TGTextButton.

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

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]

Reimplemented from TGButton.

Definition at line 366 of file TGButton.h.

References kTRUE.

virtual Bool_t TGRadioButton::IsExclusiveToggle (  )  const [inline, virtual]

Reimplemented from TGButton.

Definition at line 367 of file TGButton.h.

References kTRUE.

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]

Definition at line 370 of file TGButton.h.

References TGTextButton::fStateOn, and kButtonDisabled.

virtual void TGRadioButton::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGTextButton.


Member Data Documentation

EButtonState TGRadioButton::fPrevState [protected]

Definition at line 327 of file TGButton.h.

Referenced by HandleKey(), Init(), and PSetState().

const TGPicture* TGRadioButton::fOn [protected]

Definition at line 328 of file TGButton.h.

Referenced by DoRedraw(), Init(), and ~TGRadioButton().

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]

Definition at line 330 of file TGButton.h.

Referenced by DoRedraw(), Init(), and ~TGRadioButton().

const TGPicture* TGRadioButton::fDisOff [protected]

Definition at line 331 of file TGButton.h.

Referenced by DoRedraw(), Init(), and ~TGRadioButton().

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]

Reimplemented from TGTextButton.

Definition at line 338 of file TGButton.h.

const TGGC* TGRadioButton::fgDefaultGC [static, protected]

Reimplemented from TGButton.

Definition at line 339 of file TGButton.h.


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