#include <TGTab.h>
Inheritance diagram for TGTabElement:
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 TGString * | GetText () 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 TGString * | GetText () 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 | |
TGString * | fText |
const TGPicture * | fClosePic |
const TGPicture * | fClosePicD |
GContext_t | fNormGC |
FontStruct_t | fFontStruct |
UInt_t | fTWidth |
UInt_t | fTHeight |
Bool_t | fEnabled |
Bool_t | fShowClose |
Bool_t | fActive |
TGString * | fText |
const TGPicture * | fClosePic |
const TGPicture * | fClosePicD |
Private Member Functions | |
TGTabElement (const TGTabElement &) | |
TGTabElement & | operator= (const TGTabElement &) |
TGTabElement (const TGTabElement &) | |
TGTabElement & | operator= (const TGTabElement &) |
Definition at line 134 of file TGTab.h.
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] |
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().
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().
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] |
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] |
Bool_t TGTabElement::IsActive | ( | ) | const [inline, virtual] |
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] |
const char* TGTabElement::GetString | ( | ) | const [inline] |
void TGTabElement::SetText | ( | TGString * | text | ) |
Bool_t TGTabElement::IsEnabled | ( | ) | const [inline] |
virtual void TGTabElement::SetEditDisabled | ( | UInt_t | ) | [inline, virtual] |
Bool_t TGTabElement::IsCloseShown | ( | ) | const [inline] |
Bool_t TGTabElement::IsActive | ( | ) | const [inline, virtual] |
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] |
FontStruct_t TGTabElement::fFontStruct [protected] |
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] |
Bool_t TGTabElement::fEnabled [protected] |
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] |
TGString* TGTabElement::fText [protected] |
const TGPicture* TGTabElement::fClosePic [protected] |
const TGPicture* TGTabElement::fClosePicD [protected] |