TGTab Class Reference

#include <TGTab.h>

Inheritance diagram for TGTab:

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

Public Member Functions

 TGTab (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGTab ()
virtual TGCompositeFrameAddTab (TGString *text)
virtual TGCompositeFrameAddTab (const char *text)
virtual void AddTab (const char *text, TGCompositeFrame *cf)
virtual void AddTab (TGString *text, TGCompositeFrame *cf)
virtual void NewTab (const char *text="tab")
virtual void RemoveTab (Int_t tabIndex=-1, Bool_t storeRemoved=kTRUE)
virtual Bool_t SetTab (Int_t tabIndex, Bool_t emit=kTRUE)
virtual Bool_t SetTab (const char *name, Bool_t emit=kTRUE)
virtual void DrawBorder ()
TGCompositeFrameGetContainer () const
Int_t GetCurrent () const
TGCompositeFrameGetTabContainer (Int_t tabIndex) const
TGCompositeFrameGetTabContainer (const char *name) const
TGTabElementGetTabTab (Int_t tabIndex) const
TGTabElementGetTabTab (const char *name) const
TGCompositeFrameGetCurrentContainer () const
TGTabElementGetCurrentTab () const
UInt_t GetTabHeight () const
Int_t GetNumberOfTabs () const
virtual void SetEnabled (Int_t tabIndex, Bool_t on=kTRUE)
virtual void SetText (const char *text="tab")
Bool_t IsEnabled (Int_t tabIndex) const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void CloseTab (Int_t id)
virtual void Removed (Int_t id)
virtual void Selected (Int_t id)
virtual TGLayoutManagerGetLayoutManager () const
 TGTab (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGTab ()
virtual TGCompositeFrameAddTab (TGString *text)
virtual TGCompositeFrameAddTab (const char *text)
virtual void AddTab (const char *text, TGCompositeFrame *cf)
virtual void AddTab (TGString *text, TGCompositeFrame *cf)
virtual void NewTab (const char *text="tab")
virtual void RemoveTab (Int_t tabIndex=-1, Bool_t storeRemoved=kTRUE)
virtual Bool_t SetTab (Int_t tabIndex, Bool_t emit=kTRUE)
virtual Bool_t SetTab (const char *name, Bool_t emit=kTRUE)
virtual void DrawBorder ()
TGCompositeFrameGetContainer () const
Int_t GetCurrent () const
TGCompositeFrameGetTabContainer (Int_t tabIndex) const
TGCompositeFrameGetTabContainer (const char *name) const
TGTabElementGetTabTab (Int_t tabIndex) const
TGTabElementGetTabTab (const char *name) const
TGCompositeFrameGetCurrentContainer () const
TGTabElementGetCurrentTab () const
UInt_t GetTabHeight () const
Int_t GetNumberOfTabs () const
virtual void SetEnabled (Int_t tabIndex, Bool_t on=kTRUE)
virtual void SetText (const char *text="tab")
Bool_t IsEnabled (Int_t tabIndex) const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void CloseTab (Int_t id)
virtual void Removed (Int_t id)
virtual void Selected (Int_t id)
virtual TGLayoutManagerGetLayoutManager () const

Static Public Member Functions

static FontStruct_t GetDefaultFontStruct ()
static const TGGCGetDefaultGC ()
static FontStruct_t GetDefaultFontStruct ()
static const TGGCGetDefaultGC ()

Protected Member Functions

void ChangeTab (Int_t tabIndex, Bool_t emit=kTRUE)
void ChangeTab (Int_t tabIndex, Bool_t emit=kTRUE)

Protected Attributes

Int_t fCurrent
UInt_t fTabh
TGCompositeFramefContainer
TListfRemoved
FontStruct_t fFontStruct
GContext_t fNormGC
TGCompositeFramefContainer
TListfRemoved

Static Protected Attributes

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

Private Member Functions

 TGTab (const TGTab &)
TGTaboperator= (const TGTab &)
 TGTab (const TGTab &)
TGTaboperator= (const TGTab &)

Detailed Description

Definition at line 66 of file TGTab.h.


Constructor & Destructor Documentation

TGTab::TGTab ( const TGTab  )  [private]

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

TGTab::~TGTab (  )  [virtual]

Definition at line 320 of file TGTab.cxx.

References TGCompositeFrame::Cleanup(), TList::Delete(), and fRemoved.

TGTab::TGTab ( const TGTab  )  [private]

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

virtual TGTab::~TGTab (  )  [virtual]


Member Function Documentation

void TGTab::ChangeTab ( Int_t  tabIndex,
Bool_t  emit = kTRUE 
) [protected]

Definition at line 448 of file TGTab.cxx.

References TGObject::fClient, TGWidget::fCommand, fCurrent, TGFrameElement::fFrame, TGCompositeFrame::fList, TGWidget::fMsgWindow, fTabh, TGFrame::GetDefaultWidth(), GetTabTab(), TGTabElement::IsEnabled(), kC_COMMAND, kCM_TAB, kFALSE, kTRUE, TGWindow::LowerWindow(), MK_MSG(), TGFrame::MoveResize(), TGClient::NeedRedraw(), TGClient::ProcessLine(), TGWindow::RaiseWindow(), Selected(), TGFrame::SendMessage(), and TGTabElement::SetActive().

Referenced by SetTab().

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

FontStruct_t TGTab::GetDefaultFontStruct (  )  [static]

Definition at line 667 of file TGTab.cxx.

References fgDefaultFont, gClient, TGResourcePool::GetDefaultFont(), TGFont::GetFontStruct(), and TGClient::GetResourcePool().

Referenced by G__G__Gui2_259_0_4(), G__setup_memfuncTGTab(), and SavePrimitive().

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

Definition at line 677 of file TGTab.cxx.

References fgDefaultGC, gClient, TGResourcePool::GetFrameGC(), and TGClient::GetResourcePool().

Referenced by G__G__Gui2_259_0_5(), G__setup_memfuncTGTab(), and SavePrimitive().

TGCompositeFrame * TGTab::AddTab ( TGString text  )  [virtual]

Definition at line 331 of file TGTab.cxx.

References TGCompositeFrame::AddFrame(), fFontStruct, TGFrame::fHeight, fNormGC, TGFrame::fWidth, TGWindow::kEditDisableResize, TGFrame::MapWindow(), TGCompositeFrame::SetEditDisabled(), text(), and TGCompositeFrame::TGCompositeFrame().

Referenced by TStyleManager::AddEdition(), AddTab(), TGRootIDE::Build(), TSessionQueryFrame::Build(), TSessionFrame::Build(), TRootGuiBuilder::BuildTab(), TFitEditor::CreateGeneralTab(), TFitEditor::CreateMinimizationTab(), TStyleManager::CreateTabAxis(), TStyleManager::CreateTabHistos(), TEveWindow::CreateWindowInTab(), TGedEditor::GetEditorTabInfo(), TestDialog::HandleButtons(), NewTab(), TGDocument::Open(), TestDialog::ProcessMessage(), RootShower::RootShower(), SettingsDialog::SettingsDialog(), TRootBrowser::StartEmbedding(), TAdvancedGraphicsDialog::TAdvancedGraphicsDialog(), TestDialog::TestDialog(), TGuiBldEditor::TGuiBldEditor(), TMemStatViewerGUI::TMemStatViewerGUI(), TStructViewerGUI::TStructViewerGUI(), and XSElementDlg::XSElementDlg().

TGCompositeFrame * TGTab::AddTab ( const char *  text  )  [virtual]

Definition at line 350 of file TGTab.cxx.

References AddTab().

void TGTab::AddTab ( const char *  text,
TGCompositeFrame cf 
) [virtual]

Definition at line 359 of file TGTab.cxx.

References AddTab().

void TGTab::AddTab ( TGString text,
TGCompositeFrame cf 
) [virtual]

Definition at line 367 of file TGTab.cxx.

References TGCompositeFrame::AddFrame(), fFontStruct, fNormGC, TGWindow::kEditDisableResize, TGFrame::MapWindow(), TGCompositeFrame::SetEditDisabled(), and text().

void TGTab::NewTab ( const char *  text = "tab"  )  [virtual]

Definition at line 687 of file TGTab.cxx.

References AddTab(), TString::Format(), GetLayoutManager(), GetNumberOfTabs(), TGLayoutManager::Layout(), and name.

void TGTab::RemoveTab ( Int_t  tabIndex = -1,
Bool_t  storeRemoved = kTRUE 
) [virtual]

Definition at line 382 of file TGTab.cxx.

References TList::Add(), TGWindow::DestroyWindow(), fCurrent, TGFrameElement::fFrame, TGCompositeFrame::fList, fRemoved, GetLayoutManager(), TGLayoutManager::Layout(), Removed(), TGCompositeFrame::RemoveFrame(), SetTab(), and TGFrame::UnmapWindow().

Referenced by TGDocument::Close(), TGRootIDE::CloseTab(), TEveCompositeFrameInTab::Destroy(), TestDialog::HandleButtons(), and TestDialog::ProcessMessage().

Bool_t TGTab::SetTab ( Int_t  tabIndex,
Bool_t  emit = kTRUE 
) [virtual]

Definition at line 495 of file TGTab.cxx.

References ChangeTab(), TGCompositeFrame::fList, kFALSE, and kTRUE.

Referenced by alice_esd(), alice_vsd(), calo_detail(), calorimeters(), TGuiBldEditor::ChangeSelected(), geom_cms_stereo(), TGRootIDE::HandleKey(), TEditQueryFrame::OnBtnSave(), TGDocument::Open(), TGFileBrowser::PadModified(), RootShower::ProcessMessage(), projection_prescale(), pythia_display(), RemoveTab(), TGuiBldEditor::Reset(), TGeoGedFrame::SetActive(), TGedEditor::SetModel(), TH2Editor::SetModel(), TGeoManagerEditor::SetModel(), TRootBrowser::SetTab(), TGeoTabManager::SetTab(), TRootBrowser::StartEmbedding(), MyColorDialog::SwitchTab(), TGRootIDE::TGRootIDE(), window_manager(), and XSElementDlg::XSElementDlg().

Bool_t TGTab::SetTab ( const char *  name,
Bool_t  emit = kTRUE 
) [virtual]

Definition at line 523 of file TGTab.cxx.

References ChangeTab(), TGFrameElement::fFrame, TGCompositeFrame::fList, TGTabElement::GetText(), if(), kFALSE, and kTRUE.

virtual void TGTab::DrawBorder (  )  [inline, virtual]

Reimplemented from TGFrame.

Definition at line 106 of file TGTab.h.

TGCompositeFrame* TGTab::GetContainer (  )  const [inline]

Definition at line 108 of file TGTab.h.

References fContainer.

Referenced by TGTabLayout::Layout().

Int_t TGTab::GetCurrent (  )  const [inline]

Definition at line 109 of file TGTab.h.

References fCurrent.

Referenced by TGRootIDE::ClearText(), TGDocument::Close(), TAdvancedGraphicsDialog::DoDraw(), TGRootIDE::HandleKey(), TRootBrowser::HandleMenu(), TGTabLayout::Layout(), TGRootIDE::LoadFile(), TGDocument::Open(), XSElementDlg::ProcessButton(), RootShower::ProcessMessage(), SavePrimitive(), TGeoGedFrame::SetActive(), TH2Editor::SetModel(), and XSElementDlg::~XSElementDlg().

TGCompositeFrame * TGTab::GetTabContainer ( Int_t  tabIndex  )  const

Definition at line 553 of file TGTab.cxx.

References TGFrameElement::fFrame, and TGCompositeFrame::fList.

Referenced by TRootBrowser::CloseWindow(), TEveCompositeFrameInTab::FindTabIndex(), GetCurrentContainer(), TGFileBrowser::PadModified(), SavePrimitive(), TRootBrowser::SetTab(), and TRootBrowser::StartEmbedding().

TGCompositeFrame * TGTab::GetTabContainer ( const char *  name  )  const

Definition at line 577 of file TGTab.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, TGTabElement::GetText(), and if().

TGTabElement * TGTab::GetTabTab ( Int_t  tabIndex  )  const

Definition at line 602 of file TGTab.cxx.

References TGFrameElement::fFrame, and TGCompositeFrame::fList.

Referenced by TGRootIDE::Build(), TGuiBldEditor::ChangeSelected(), ChangeTab(), TGRootIDE::ClearText(), TGRootIDE::DoTab(), GetCurrentTab(), TGedEditor::GetEditorTabInfo(), TGeoTabManager::GetTabIndex(), TestDialog::HandleButtons(), IsEnabled(), TGRootIDE::LoadFile(), TGDocument::Open(), TestDialog::ProcessMessage(), TGuiBldEditor::Reset(), SavePrimitive(), TEveCompositeFrameInTab::SetCurrent(), SetEnabled(), TSessionFrame::SetLocal(), TRootBrowser::StartEmbedding(), TestDialog::TestDialog(), and TEveCompositeFrameInTab::WindowNameChanged().

TGTabElement * TGTab::GetTabTab ( const char *  name  )  const

Definition at line 626 of file TGTab.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, TGTabElement::GetText(), and if().

TGCompositeFrame* TGTab::GetCurrentContainer (  )  const [inline]

Definition at line 114 of file TGTab.h.

References fCurrent, and GetTabContainer().

Referenced by TGFileBrowser::DoubleClicked().

TGTabElement* TGTab::GetCurrentTab (  )  const [inline]

Definition at line 115 of file TGTab.h.

References fCurrent, and GetTabTab().

Referenced by TGedEditor::SetModel(), and SetText().

UInt_t TGTab::GetTabHeight (  )  const [inline]

Definition at line 116 of file TGTab.h.

References fTabh.

Referenced by TGTabLayout::GetDefaultSize(), and TGTabLayout::Layout().

Int_t TGTab::GetNumberOfTabs (  )  const

Definition at line 649 of file TGTab.cxx.

References TGCompositeFrame::fList.

Referenced by TGDocument::Close(), TGRootIDE::CloseTab(), TRootBrowser::CloseWindow(), TEveCompositeFrameInTab::FindTabIndex(), TGedEditor::GetEditorTabInfo(), TGeoTabManager::GetTabIndex(), TestDialog::HandleButtons(), TGRootIDE::HandleKey(), TGRootIDE::LoadFile(), NewTab(), TGDocument::Open(), TGFileBrowser::PadModified(), TestDialog::ProcessMessage(), TGRootIDE::ProcessMessage(), SavePrimitive(), TRootBrowser::StartEmbedding(), and TGRootIDE::TGRootIDE().

void TGTab::SetEnabled ( Int_t  tabIndex,
Bool_t  on = kTRUE 
) [virtual]

Definition at line 426 of file TGTab.cxx.

References TGObject::fClient, GetTabTab(), TGClient::NeedRedraw(), and TGTabElement::SetEnabled().

Referenced by TH1Editor::SetModel(), TH2Editor::SetModel(), and TGeoTabManager::SetVolTabEnabled().

void TGTab::SetText ( const char *  text = "tab"  )  [virtual]

Definition at line 702 of file TGTab.cxx.

References GetCurrentTab(), GetLayoutManager(), TGLayoutManager::Layout(), and TGTabElement::SetText().

Bool_t TGTab::IsEnabled ( Int_t  tabIndex  )  const

Definition at line 438 of file TGTab.cxx.

References GetTabTab(), TGTabElement::IsEnabled(), and kFALSE.

Referenced by TGeoGedFrame::SetActive(), and TH2Editor::SetModel().

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

Reimplemented from TGCompositeFrame.

Definition at line 725 of file TGTab.cxx.

References xmlio::Class, TString::Data(), TGFrame::fBackground, fFontStruct, TGFontPool::FindFont(), TGGCPool::FindGC(), fNormGC, TString::Form(), TGWindow::fParent, gClient, TGFrame::GetBackground(), GetCurrent(), GetDefaultFontStruct(), TGFrame::GetDefaultFrameBackground(), GetDefaultGC(), TGResourcePool::GetFontPool(), TGResourcePool::GetGCPool(), TGFrame::GetHeight(), TGCompositeFrame::GetLayoutManager(), TGWindow::GetName(), GetNumberOfTabs(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGClient::GetResourcePool(), TGTabElement::GetString(), GetTabContainer(), GetTabTab(), TGFrame::GetWidth(), i, TObject::InheritsFrom(), TGWidget::IsEnabled(), kChildFrame, kHorizontalFrame, kVerticalFrame, TGGC::SavePrimitive(), TObject::SavePrimitive(), TGFont::SavePrimitive(), TGCompositeFrame::SavePrimitiveSubframes(), and TGFrame::SaveUserColor().

virtual void TGTab::CloseTab ( Int_t  id  )  [inline, virtual]

Definition at line 124 of file TGTab.h.

References TQObject::Emit().

virtual void TGTab::Removed ( Int_t  id  )  [inline, virtual]

Definition at line 125 of file TGTab.h.

References TQObject::Emit().

Referenced by RemoveTab().

virtual void TGTab::Selected ( Int_t  id  )  [inline, virtual]

Definition at line 126 of file TGTab.h.

References TQObject::Emit().

Referenced by ChangeTab().

TGLayoutManager * TGTab::GetLayoutManager (  )  const [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 711 of file TGTab.cxx.

References xmlio::Class, TGCompositeFrame::fLayoutManager, and TGCompositeFrame::SetLayoutManager().

Referenced by NewTab(), RemoveTab(), and SetText().

void TGTab::ChangeTab ( Int_t  tabIndex,
Bool_t  emit = kTRUE 
) [protected]

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

static FontStruct_t TGTab::GetDefaultFontStruct (  )  [static]

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

virtual TGCompositeFrame* TGTab::AddTab ( TGString text  )  [virtual]

virtual TGCompositeFrame* TGTab::AddTab ( const char *  text  )  [virtual]

virtual void TGTab::AddTab ( const char *  text,
TGCompositeFrame cf 
) [virtual]

virtual void TGTab::AddTab ( TGString text,
TGCompositeFrame cf 
) [virtual]

virtual void TGTab::NewTab ( const char *  text = "tab"  )  [virtual]

virtual void TGTab::RemoveTab ( Int_t  tabIndex = -1,
Bool_t  storeRemoved = kTRUE 
) [virtual]

virtual Bool_t TGTab::SetTab ( Int_t  tabIndex,
Bool_t  emit = kTRUE 
) [virtual]

virtual Bool_t TGTab::SetTab ( const char *  name,
Bool_t  emit = kTRUE 
) [virtual]

virtual void TGTab::DrawBorder (  )  [inline, virtual]

Reimplemented from TGFrame.

Definition at line 106 of file TGTab.h.

TGCompositeFrame* TGTab::GetContainer (  )  const [inline]

Definition at line 108 of file TGTab.h.

References fContainer.

Int_t TGTab::GetCurrent (  )  const [inline]

Definition at line 109 of file TGTab.h.

References fCurrent.

TGCompositeFrame* TGTab::GetTabContainer ( Int_t  tabIndex  )  const

TGCompositeFrame* TGTab::GetTabContainer ( const char *  name  )  const

TGTabElement* TGTab::GetTabTab ( Int_t  tabIndex  )  const

TGTabElement* TGTab::GetTabTab ( const char *  name  )  const

TGCompositeFrame* TGTab::GetCurrentContainer (  )  const [inline]

Definition at line 114 of file TGTab.h.

References fCurrent, and GetTabContainer().

TGTabElement* TGTab::GetCurrentTab (  )  const [inline]

Definition at line 115 of file TGTab.h.

References fCurrent, and GetTabTab().

UInt_t TGTab::GetTabHeight (  )  const [inline]

Definition at line 116 of file TGTab.h.

References fTabh.

Int_t TGTab::GetNumberOfTabs (  )  const

virtual void TGTab::SetEnabled ( Int_t  tabIndex,
Bool_t  on = kTRUE 
) [virtual]

virtual void TGTab::SetText ( const char *  text = "tab"  )  [virtual]

Bool_t TGTab::IsEnabled ( Int_t  tabIndex  )  const

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

Reimplemented from TGCompositeFrame.

virtual void TGTab::CloseTab ( Int_t  id  )  [inline, virtual]

Definition at line 124 of file TGTab.h.

References TQObject::Emit().

virtual void TGTab::Removed ( Int_t  id  )  [inline, virtual]

Definition at line 125 of file TGTab.h.

References TQObject::Emit().

virtual void TGTab::Selected ( Int_t  id  )  [inline, virtual]

Definition at line 126 of file TGTab.h.

References TQObject::Emit().

virtual TGLayoutManager* TGTab::GetLayoutManager (  )  const [virtual]

Reimplemented from TGCompositeFrame.


Member Data Documentation

Int_t TGTab::fCurrent [protected]

Definition at line 69 of file TGTab.h.

Referenced by ChangeTab(), GetCurrent(), GetCurrentContainer(), GetCurrentTab(), and RemoveTab().

UInt_t TGTab::fTabh [protected]

Definition at line 70 of file TGTab.h.

Referenced by ChangeTab(), and GetTabHeight().

TGCompositeFrame* TGTab::fContainer [protected]

Definition at line 71 of file TGTab.h.

Referenced by GetContainer().

TList* TGTab::fRemoved [protected]

Definition at line 72 of file TGTab.h.

Referenced by RemoveTab(), and ~TGTab().

FontStruct_t TGTab::fFontStruct [protected]

Definition at line 73 of file TGTab.h.

Referenced by AddTab(), and SavePrimitive().

GContext_t TGTab::fNormGC [protected]

Definition at line 74 of file TGTab.h.

Referenced by AddTab(), and SavePrimitive().

const TGFont * TGTab::fgDefaultFont [static, protected]

Definition at line 78 of file TGTab.h.

Referenced by GetDefaultFontStruct().

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

Definition at line 79 of file TGTab.h.

Referenced by GetDefaultGC().

TGCompositeFrame* TGTab::fContainer [protected]

Definition at line 71 of file TGTab.h.

TList* TGTab::fRemoved [protected]

Definition at line 72 of file TGTab.h.

const TGFont* TGTab::fgDefaultFont [static, protected]

Definition at line 78 of file TGTab.h.

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

Definition at line 79 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