#include <TGTableHeader.h>
Inheritance diagram for TGTableHeader:
Public Member Functions | |
TGTableHeader (const TGWindow *p=0, TGTable *table=0, TGString *label=0, UInt_t position=0, EHeaderType type=kColumnHeader, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
TGTableHeader (const TGWindow *p, TGTable *table, const char *label, UInt_t position, EHeaderType type=kColumnHeader, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
virtual | ~TGTableHeader () |
virtual void | SetWidth (UInt_t width) |
virtual void | SetHeight (UInt_t height) |
virtual void | SetLabel (const char *label) |
virtual void | SetDefaultLabel () |
virtual void | SetPosition (UInt_t pos) |
virtual void | Resize (UInt_t width, UInt_t height) |
virtual void | Resize (TGDimension newsize) |
virtual void | Sort (Bool_t order=kSortAscending) |
virtual void | UpdatePosition () |
virtual EHeaderType | GetType () |
TGTableHeader (const TGWindow *p=0, TGTable *table=0, TGString *label=0, UInt_t position=0, EHeaderType type=kColumnHeader, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
TGTableHeader (const TGWindow *p, TGTable *table, const char *label, UInt_t position, EHeaderType type=kColumnHeader, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0) | |
virtual | ~TGTableHeader () |
virtual void | SetWidth (UInt_t width) |
virtual void | SetHeight (UInt_t height) |
virtual void | SetLabel (const char *label) |
virtual void | SetDefaultLabel () |
virtual void | SetPosition (UInt_t pos) |
virtual void | Resize (UInt_t width, UInt_t height) |
virtual void | Resize (TGDimension newsize) |
virtual void | Sort (Bool_t order=kSortAscending) |
virtual void | UpdatePosition () |
virtual EHeaderType | GetType () |
Protected Member Functions | |
void | Init () |
void | Init () |
Protected Attributes | |
EHeaderType | fType |
UInt_t | fWidth |
UInt_t | fHeight |
Bool_t | fReadOnly |
Bool_t | fEnabled |
Bool_t | fHasOwnLabel |
Definition at line 26 of file TGTableHeader.h.
TGTableHeader::TGTableHeader | ( | const TGWindow * | p = 0 , |
|
TGTable * | table = 0 , |
|||
TGString * | label = 0 , |
|||
UInt_t | position = 0 , |
|||
EHeaderType | type = kColumnHeader , |
|||
UInt_t | width = 80 , |
|||
UInt_t | height = 25 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
TGTableHeader::TGTableHeader | ( | const TGWindow * | p, | |
TGTable * | table, | |||
const char * | label, | |||
UInt_t | position, | |||
EHeaderType | type = kColumnHeader , |
|||
UInt_t | width = 80 , |
|||
UInt_t | height = 25 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
Definition at line 75 of file TGTableHeader.cxx.
References TGTableCell::fColumn, fHasOwnLabel, fHeight, TGTableCell::fRow, fWidth, Init(), kColumnHeader, kRowHeader, kTRUE, and SetDefaultLabel().
TGTableHeader::~TGTableHeader | ( | ) | [virtual] |
Definition at line 111 of file TGTableHeader.cxx.
TGTableHeader::TGTableHeader | ( | const TGWindow * | p = 0 , |
|
TGTable * | table = 0 , |
|||
TGString * | label = 0 , |
|||
UInt_t | position = 0 , |
|||
EHeaderType | type = kColumnHeader , |
|||
UInt_t | width = 80 , |
|||
UInt_t | height = 25 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
TGTableHeader::TGTableHeader | ( | const TGWindow * | p, | |
TGTable * | table, | |||
const char * | label, | |||
UInt_t | position, | |||
EHeaderType | type = kColumnHeader , |
|||
UInt_t | width = 80 , |
|||
UInt_t | height = 25 , |
|||
GContext_t | norm = GetDefaultGC()() , |
|||
FontStruct_t | font = GetDefaultFontStruct() , |
|||
UInt_t | option = 0 | |||
) |
virtual TGTableHeader::~TGTableHeader | ( | ) | [virtual] |
void TGTableHeader::Init | ( | ) | [protected] |
Definition at line 117 of file TGTableHeader.cxx.
References TGTableCell::fFontStruct, fHeight, TGTableCell::fLabel, TGTableCell::fTable, TGTableCell::fTHeight, TGTableCell::fTWidth, fType, fWidth, TGFrame::GetBackground(), TGTable::GetHeaderBackground(), TGString::GetLength(), TGString::GetString(), gVirtualX, kTableHeader, Resize(), and TGFrame::SetBackgroundColor().
Referenced by TGTableHeader().
void TGTableHeader::SetWidth | ( | UInt_t | width | ) | [virtual] |
Reimplemented from TGFrame.
Definition at line 138 of file TGTableHeader.cxx.
References TGFrame::GetDefaultHeight(), and Resize().
void TGTableHeader::SetHeight | ( | UInt_t | height | ) | [virtual] |
Reimplemented from TGFrame.
Definition at line 146 of file TGTableHeader.cxx.
References TGFrame::GetDefaultWidth(), and Resize().
void TGTableHeader::SetLabel | ( | const char * | label | ) | [virtual] |
Reimplemented from TGTableCell.
Definition at line 154 of file TGTableHeader.cxx.
References SetDefaultLabel(), and TGTableCell::SetLabel().
Referenced by TGTable::UpdateView().
void TGTableHeader::SetDefaultLabel | ( | ) | [virtual] |
Definition at line 166 of file TGTableHeader.cxx.
References TGTableCell::fColumn, fHasOwnLabel, TGTableCell::fLabel, TGTableCell::fRow, TGTableCell::fTable, fType, TGTable::GetNTableColumns(), TGTable::GetNTableRows(), kColumnHeader, kFALSE, and kRowHeader.
Referenced by SetLabel(), and TGTableHeader().
void TGTableHeader::SetPosition | ( | UInt_t | pos | ) | [virtual] |
Definition at line 189 of file TGTableHeader.cxx.
References TGTableCell::fColumn, TGTableCell::fRow, fType, kColumnHeader, and kRowHeader.
Reimplemented from TGTableCell.
Definition at line 216 of file TGTableHeader.cxx.
References TGTableCell::Resize().
Referenced by Init(), Resize(), SetHeight(), and SetWidth().
void TGTableHeader::Resize | ( | TGDimension | newsize | ) | [virtual] |
Reimplemented from TGTableCell.
Definition at line 208 of file TGTableHeader.cxx.
References TGDimension::fHeight, TGDimension::fWidth, and Resize().
void TGTableHeader::Sort | ( | Bool_t | order = kSortAscending |
) | [virtual] |
void TGTableHeader::UpdatePosition | ( | ) | [virtual] |
Definition at line 237 of file TGTableHeader.cxx.
References TGTableCell::fColumn, TGTableCell::fRow, TGTableCell::fTable, fType, TGTable::GetColumnHeader(), TGTable::GetRowHeader(), kColumnHeader, and kRowHeader.
virtual EHeaderType TGTableHeader::GetType | ( | ) | [inline, virtual] |
void TGTableHeader::Init | ( | ) | [protected] |
virtual void TGTableHeader::SetLabel | ( | const char * | label | ) | [virtual] |
Reimplemented from TGTableCell.
virtual void TGTableHeader::SetDefaultLabel | ( | ) | [virtual] |
virtual void TGTableHeader::SetPosition | ( | UInt_t | pos | ) | [virtual] |
Reimplemented from TGTableCell.
virtual void TGTableHeader::Resize | ( | TGDimension | newsize | ) | [virtual] |
Reimplemented from TGTableCell.
virtual void TGTableHeader::Sort | ( | Bool_t | order = kSortAscending |
) | [virtual] |
virtual void TGTableHeader::UpdatePosition | ( | ) | [virtual] |
virtual EHeaderType TGTableHeader::GetType | ( | ) | [inline, virtual] |
EHeaderType TGTableHeader::fType [protected] |
Definition at line 29 of file TGTableHeader.h.
Referenced by GetType(), Init(), SetDefaultLabel(), SetPosition(), and UpdatePosition().
UInt_t TGTableHeader::fWidth [protected] |
Reimplemented from TGFrame.
Definition at line 30 of file TGTableHeader.h.
Referenced by Init(), and TGTableHeader().
UInt_t TGTableHeader::fHeight [protected] |
Reimplemented from TGFrame.
Definition at line 31 of file TGTableHeader.h.
Referenced by Init(), and TGTableHeader().
Bool_t TGTableHeader::fReadOnly [protected] |
Bool_t TGTableHeader::fEnabled [protected] |
Bool_t TGTableHeader::fHasOwnLabel [protected] |
Definition at line 34 of file TGTableHeader.h.
Referenced by SetDefaultLabel(), and TGTableHeader().