101 virtual void NewTab(
const char *
text =
"tab");
virtual void ShowClose(Bool_t on=kTRUE)
Show/hide close icon on the tab element, then apply layout to compute correct elements size...
virtual void NewTab(const char *text="tab")
Create new tab. Used in context menu.
UInt_t GetTabHeight() const
const TGPicture * fClosePicD
TGTabElement * GetCurrentTab() const
TGTab & operator=(const TGTab &)
const TGString * GetText() const
static const TGGC & GetDefaultGC()
Return default graphics context in use.
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
virtual ~TGTabElement()
Delete tab element.
TGTabLayout(const TGTabLayout &)
virtual Bool_t HandleButton(Event_t *event)
Handle button event in the tab widget.
virtual TGDimension GetDefaultSize() const
Return default size of tab element.
TGCompositeFrame * GetTabContainer(Int_t tabIndex) const
Return container of tab with index tabIndex.
TGCompositeFrame * fContainer
virtual void SetText(const char *text="tab")
Set text to current tab.
Int_t GetNumberOfTabs() const
Return number of tabs.
void SetText(TGString *text)
Set new tab text.
static const TGFont * fgDefaultFont
#define ClassDef(name, id)
virtual void Selected(Int_t id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void SetEditDisabled(UInt_t)
virtual TGLayoutManager * GetLayoutManager() const
Return layout manager.
TGTabElement(const TGTabElement &)
const TGPicture * fClosePic
virtual void DrawBorder()
Draw frame border.
void Emit(const char *signal)
Acitvate signal without args.
void ChangeTab(Int_t tabIndex, Bool_t emit=kTRUE)
Make tabIdx the current tab.
virtual void CloseTab(Int_t id)
TGTabElement * GetTabTab(Int_t tabIndex) const
Return the tab element of tab with index tabIndex.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
TGTabLayout & operator=(const TGTabLayout &)
const char * GetString() const
virtual void RemoveTab(Int_t tabIndex=-1, Bool_t storeRemoved=kTRUE)
Remove container and tab of tab with index tabIndex.
Bool_t IsCloseShown() const
int main(int argc, char *argv[])
virtual void Layout()
Layout the tab widget.
virtual void SetActive(Bool_t on=kTRUE)
TGTabElement & operator=(const TGTabElement &)
virtual TGDimension GetDefaultSize() const
Get default size of tab widget.
TGCompositeFrame * GetCurrentContainer() const
virtual void DrawBorder()
Draw little tab element.
virtual void Removed(Int_t id)
TGCompositeFrame * GetContainer() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
const char * GetString() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a tab widget as a C++ statement(s) on output stream out.
virtual ~TGTab()
Delete tab widget.
virtual void SetEnabled(Bool_t on=kTRUE)
double norm(double *x, double *p)
virtual void SetEnabled(Int_t tabIndex, Bool_t on=kTRUE)
Enable or disable tab.
static const TGGC * fgDefaultGC