TGTabElement Class Reference

#include <TGTab.h>

Inheritance diagram for TGTabElement:

TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 TGTabElement (const TGWindow *p=0, TGString *text=0, UInt_t w=1, UInt_t h=1, GContext_t norm=TGTab::GetDefaultGC()(), FontStruct_t font=TGTab::GetDefaultFontStruct(), UInt_t options=kRaisedFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGTabElement ()
virtual void DrawBorder ()
virtual TGDimension GetDefaultSize () const
const TGStringGetText () const
const char * GetString () const
virtual Bool_t HandleButton (Event_t *event)
void SetText (TGString *text)
virtual void SetEnabled (Bool_t on=kTRUE)
Bool_t IsEnabled () const
virtual void SetEditDisabled (UInt_t)
virtual void ShowClose (Bool_t on=kTRUE)
Bool_t IsCloseShown () const
virtual void SetActive (Bool_t on=kTRUE)
Bool_t IsActive () const
 TGTabElement (const TGWindow *p=0, TGString *text=0, UInt_t w=1, UInt_t h=1, GContext_t norm=TGTab::GetDefaultGC()(), FontStruct_t font=TGTab::GetDefaultFontStruct(), UInt_t options=kRaisedFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGTabElement ()
virtual void DrawBorder ()
virtual TGDimension GetDefaultSize () const
const TGStringGetText () const
const char * GetString () const
virtual Bool_t HandleButton (Event_t *event)
void SetText (TGString *text)
virtual void SetEnabled (Bool_t on=kTRUE)
Bool_t IsEnabled () const
virtual void SetEditDisabled (UInt_t)
virtual void ShowClose (Bool_t on=kTRUE)
Bool_t IsCloseShown () const
virtual void SetActive (Bool_t on=kTRUE)
Bool_t IsActive () const

Protected Attributes

TGStringfText
const TGPicturefClosePic
const TGPicturefClosePicD
GContext_t fNormGC
FontStruct_t fFontStruct
UInt_t fTWidth
UInt_t fTHeight
Bool_t fEnabled
Bool_t fShowClose
Bool_t fActive
TGStringfText
const TGPicturefClosePic
const TGPicturefClosePicD

Private Member Functions

 TGTabElement (const TGTabElement &)
TGTabElementoperator= (const TGTabElement &)
 TGTabElement (const TGTabElement &)
TGTabElementoperator= (const TGTabElement &)

Detailed Description

Definition at line 134 of file TGTab.h.


Constructor & Destructor Documentation

TGTabElement::TGTabElement ( const TGTabElement  )  [private]

TGTabElement::TGTabElement ( const TGWindow p = 0,
TGString text = 0,
UInt_t  w = 1,
UInt_t  h = 1,
GContext_t  norm = TGTab::GetDefaultGC()(),
FontStruct_t  font = TGTab::GetDefaultFontStruct(),
UInt_t  options = kRaisedFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

TGTabElement::~TGTabElement (  )  [virtual]

Definition at line 85 of file TGTab.cxx.

References fClosePic, fClosePicD, TGClient::FreePicture(), fText, and gClient.

TGTabElement::TGTabElement ( const TGTabElement  )  [private]

TGTabElement::TGTabElement ( const TGWindow p = 0,
TGString text = 0,
UInt_t  w = 1,
UInt_t  h = 1,
GContext_t  norm = TGTab::GetDefaultGC()(),
FontStruct_t  font = TGTab::GetDefaultFontStruct(),
UInt_t  options = kRaisedFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

virtual TGTabElement::~TGTabElement (  )  [virtual]


Member Function Documentation

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

void TGTabElement::DrawBorder (  )  [virtual]

Reimplemented from TGFrame.

Definition at line 95 of file TGTab.cxx.

References TGString::Draw(), TGPicture::Draw(), fActive, fClosePic, fClosePicD, fEnabled, fFontStruct, TGFrame::fHeight, TGObject::fId, fNormGC, fShowClose, fText, fTWidth, TGFrame::fWidth, TGFrame::GetBlackGC(), TGFrame::GetHilightGC(), TGFrame::GetShadowGC(), and gVirtualX.

TGDimension TGTabElement::GetDefaultSize (  )  const [virtual]

Reimplemented from TGFrame.

Definition at line 164 of file TGTab.cxx.

References fClosePic, fClosePicD, fShowClose, fTHeight, fTWidth, and TMath::Max().

const TGString* TGTabElement::GetText (  )  const [inline]

Definition at line 162 of file TGTab.h.

References fText.

Referenced by TGedEditor::GetEditorTabInfo(), TGTab::GetTabContainer(), TGTab::GetTabTab(), and TGTab::SetTab().

const char* TGTabElement::GetString (  )  const [inline]

Definition at line 163 of file TGTab.h.

References fText, and TGString::GetString().

Referenced by TGDocument::DataChanged(), TGDocument::DataDropped(), TGRootIDE::DoTab(), TGeoTabManager::GetTabIndex(), TestDialog::HandleButtons(), TestDialog::ProcessMessage(), TGTab::SavePrimitive(), and TGedEditor::SetModel().

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

Reimplemented from TGFrame.

Definition at line 126 of file TGTab.cxx.

References c, TGFrameElement::fFrame, TGFrame::fHeight, TGWindow::fParent, fShowClose, fTWidth, Event_t::fType, Event_t::fWindow, Event_t::fX, Event_t::fY, TGObject::GetId(), i, kButtonPress, kTRUE, and main().

void TGTabElement::SetText ( TGString text  ) 

Definition at line 175 of file TGTab.cxx.

References TGObject::fClient, fFontStruct, fText, fTHeight, fTWidth, TGString::GetLength(), TGString::GetString(), gVirtualX, TGClient::NeedRedraw(), and text().

Referenced by TGDocument::Close(), TGDocument::DataChanged(), TGDocument::DataDropped(), TGDocument::Open(), TGDocument::Save(), TRootBrowser::SetTabTitle(), TGTab::SetText(), and TEveCompositeFrameInTab::WindowNameChanged().

virtual void TGTabElement::SetEnabled ( Bool_t  on = kTRUE  )  [inline, virtual]

Definition at line 166 of file TGTab.h.

References fEnabled.

Referenced by TGuiBldEditor::ChangeSelected(), TGuiBldEditor::Reset(), and TGTab::SetEnabled().

Bool_t TGTabElement::IsEnabled (  )  const [inline]

Definition at line 167 of file TGTab.h.

References fEnabled.

Referenced by TGTab::ChangeTab(), and TGTab::IsEnabled().

virtual void TGTabElement::SetEditDisabled ( UInt_t   )  [inline, virtual]

Reimplemented from TGWindow.

Definition at line 168 of file TGTab.h.

void TGTabElement::ShowClose ( Bool_t  on = kTRUE  )  [virtual]

Definition at line 191 of file TGTab.cxx.

References fClosePic, fClosePicD, TGWindow::fParent, fShowClose, fTHeight, fTWidth, main(), TMath::Max(), and TGFrame::Resize().

Referenced by TGRootIDE::Build(), TGDocument::Open(), and TRootBrowser::StartEmbedding().

Bool_t TGTabElement::IsCloseShown (  )  const [inline]

Definition at line 170 of file TGTab.h.

References fShowClose.

virtual void TGTabElement::SetActive ( Bool_t  on = kTRUE  )  [inline, virtual]

Definition at line 171 of file TGTab.h.

References fActive.

Referenced by TGTab::ChangeTab().

Bool_t TGTabElement::IsActive (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 172 of file TGTab.h.

References fActive.

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

virtual void TGTabElement::DrawBorder (  )  [virtual]

Reimplemented from TGFrame.

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

Reimplemented from TGFrame.

const TGString* TGTabElement::GetText (  )  const [inline]

Definition at line 162 of file TGTab.h.

References fText.

const char* TGTabElement::GetString (  )  const [inline]

Definition at line 163 of file TGTab.h.

References fText, and TGString::GetString().

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

Reimplemented from TGFrame.

void TGTabElement::SetText ( TGString text  ) 

virtual void TGTabElement::SetEnabled ( Bool_t  on = kTRUE  )  [inline, virtual]

Definition at line 166 of file TGTab.h.

References fEnabled.

Bool_t TGTabElement::IsEnabled (  )  const [inline]

Definition at line 167 of file TGTab.h.

References fEnabled.

virtual void TGTabElement::SetEditDisabled ( UInt_t   )  [inline, virtual]

Reimplemented from TGWindow.

Definition at line 168 of file TGTab.h.

virtual void TGTabElement::ShowClose ( Bool_t  on = kTRUE  )  [virtual]

Bool_t TGTabElement::IsCloseShown (  )  const [inline]

Definition at line 170 of file TGTab.h.

References fShowClose.

virtual void TGTabElement::SetActive ( Bool_t  on = kTRUE  )  [inline, virtual]

Definition at line 171 of file TGTab.h.

References fActive.

Bool_t TGTabElement::IsActive (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 172 of file TGTab.h.

References fActive.


Member Data Documentation

TGString* TGTabElement::fText [protected]

Definition at line 137 of file TGTab.h.

Referenced by DrawBorder(), GetString(), GetText(), SetText(), and ~TGTabElement().

const TGPicture* TGTabElement::fClosePic [protected]

Definition at line 138 of file TGTab.h.

Referenced by DrawBorder(), GetDefaultSize(), ShowClose(), and ~TGTabElement().

const TGPicture* TGTabElement::fClosePicD [protected]

Definition at line 139 of file TGTab.h.

Referenced by DrawBorder(), GetDefaultSize(), ShowClose(), and ~TGTabElement().

GContext_t TGTabElement::fNormGC [protected]

Definition at line 140 of file TGTab.h.

Referenced by DrawBorder().

FontStruct_t TGTabElement::fFontStruct [protected]

Definition at line 141 of file TGTab.h.

Referenced by DrawBorder(), and SetText().

UInt_t TGTabElement::fTWidth [protected]

Definition at line 142 of file TGTab.h.

Referenced by DrawBorder(), GetDefaultSize(), HandleButton(), SetText(), and ShowClose().

UInt_t TGTabElement::fTHeight [protected]

Definition at line 143 of file TGTab.h.

Referenced by GetDefaultSize(), SetText(), and ShowClose().

Bool_t TGTabElement::fEnabled [protected]

Definition at line 144 of file TGTab.h.

Referenced by DrawBorder(), IsEnabled(), and SetEnabled().

Bool_t TGTabElement::fShowClose [protected]

Definition at line 145 of file TGTab.h.

Referenced by DrawBorder(), GetDefaultSize(), HandleButton(), IsCloseShown(), and ShowClose().

Bool_t TGTabElement::fActive [protected]

Definition at line 146 of file TGTab.h.

Referenced by DrawBorder(), IsActive(), and SetActive().

TGString* TGTabElement::fText [protected]

Definition at line 137 of file TGTab.h.

const TGPicture* TGTabElement::fClosePic [protected]

Definition at line 138 of file TGTab.h.

const TGPicture* TGTabElement::fClosePicD [protected]

Definition at line 139 of file TGTab.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