20 #ifndef ROOT_TGTableHeader
243 virtual void Print();
TGHorizontalFrame * fTopFrame
virtual TObjArray * GetColumn(UInt_t columns)
Return a pointer to a TObjArray that contains pointers to all the cells in column.
TGTableFrame * fTableFrame
virtual void Show()
Show the contents of the TGTable in stdout.
virtual void SetHeaderBackground(Pixel_t pixel)
Set the background color for the headers.
TGTableHeaderFrame * fCHdrFrame
virtual TGTableCell * operator()(UInt_t row, UInt_t column)
Operator for easy cell acces.
virtual const TTableRange * GetCurrentRange() const
Return the current range of the TGTable.
virtual void Update()
Update the range of the available data and refresh the current view.
virtual void Expand(UInt_t nrows, UInt_t ncolumns)
Expand a TGTable by nrows and ncolumns.
virtual void DoRedraw()
Redraw the TGTable.
virtual const TGTableHeaderFrame * GetCHdrFrame()
TGTextButton * fNextButton
virtual void NextChunk()
Move the table to the next chunk of the data set with the same size.
virtual void UpdateHeaders(EHeaderType type)
Update the labels of the headers of the given type.
virtual TObjArray * GetRow(UInt_t row)
Get row.
virtual void GotoTableRange(Int_t xtl, Int_t ytl, Int_t xbr, Int_t ybr)
Move and resize the table to the specified range.
virtual const TGTableCell * FindCell(TGString label) const
Const version of FindCell().
Pixel_t fHeaderBackground
virtual void PreviousChunk()
Move the table to the previous chunk of the data set with the same size.
virtual UInt_t GetNTableColumns() const
Return the amount of columns in the table.
TGHorizontalFrame * fBottomFrame
TGTableHeaderFrame * fRHdrFrame
TGTable(const TGWindow *p=0, Int_t id=0, TVirtualTableInterface *interface=0, UInt_t nrows=50, UInt_t ncolumns=20)
TGLabel * fFirstCellLabel
#define ClassDef(name, id)
TGHorizontalFrame * fButtonFrame
virtual UInt_t GetNTableCells() const
Return the amount of cells in the table.
virtual const TGTableHeader * GetRowHeader(const UInt_t row) const
Const version of GetRowHeader();.
virtual ~TGTable()
TGTable destructor.
Bool_t operator==(TTableRange &other)
Operator to determine if 2 ranges are equal.
virtual void SetEvenRowBackground(Pixel_t pixel)
Set the background color for all even numbered rows.
TGTableHeader * fTableHeader
virtual void ScrollCHeaders(Int_t xpos)
Scroll the column headers horizontally.
virtual void Shrink(UInt_t nrows, UInt_t ncolumns)
Shrink the TGTable by nrows and ncolumns.
Pixel_t fOddRowBackground
virtual void SetOddRowBackground(Pixel_t pixel)
Set the background color for all odd numbered rows.
virtual TGTableHeader * GetTableHeader()
Return a pointer to the table header.
virtual void ScrollRHeaders(Int_t ypos)
Scroll the row headers vertically.
virtual void UpdateView()
Update and layout the visible part of the TGTable.
virtual UInt_t GetNDataRows() const
Return the amount of rows in the data source.
virtual void MoveTable(Int_t rows, Int_t columns)
Move and layout the table to the specified range.
TGTextButton * fUpdateButton
virtual const TGTableHeaderFrame * GetRHdrFrame()
virtual void SetDefaultColors()
Set the background color for all rows and headers to their defaults.
virtual void ExpandRows(UInt_t nrows)
Expand the rows of a TGTable by nrows.
virtual void SetInterface(TVirtualTableInterface *interface, UInt_t nrows=50, UInt_t ncolumns=20)
Set the interface that the TGTable uses to interface.
TVirtualTableInterface * fInterface
virtual UInt_t GetNDataColumns() const
Return the amount of columns in the data source.
virtual void UserRangeChange()
Slot used when the text in one of the range frame text entries changes.
virtual void ExpandColumns(UInt_t ncolumns)
Expand the columns of a TGTable by ncolumns.
TTableRange * fCurrentRange
virtual UInt_t GetNDataCells() const
Return the amount of cell in the data source.
TObjArray * fColumnHeaders
Pixel_t fEvenRowBackground
virtual Pixel_t GetRowBackground(UInt_t row) const
Get the background collor for row.
virtual TVirtualTableInterface * GetInterface()
virtual void ShrinkColumns(UInt_t ncolumns)
Shrink the columns of the TGTable by ncolumns.
TTableRange()
TTableRange constuctor.
virtual void ShrinkRows(UInt_t nrows)
Shrink the rows of the TGTable by nrows.
TGTextButton * fPrevButton
virtual void UpdateRangeFrame()
Update the range shown in the range frame.
virtual UInt_t GetNTableRows() const
Return the amount of rows in the table.
virtual const TGTableHeader * GetColumnHeader(const UInt_t column) const
Const version of GetColumnHeader();.
TGTextEntry * fFirstCellEntry
virtual void Print()
Print the values of a range.
virtual void Goto()
Slot used by the Goto button and whenever return is pressed in on of the text entries in the range fr...
virtual UInt_t GetCHdrWidth() const
Get the current width of the column header frame.
virtual Pixel_t GetHeaderBackground() const
Get the background color of headers.
TGHorizontalFrame * fRangeFrame
TGTextButton * fGotoButton
virtual UInt_t GetRHdrHeight() const
Get the current height of the row header frame.
virtual TGCanvas * GetCanvas()
virtual void Init()
Initialise the TGTable.
TGHorizontalFrame * fTopExtraFrame
virtual const TGTableCell * GetCell(UInt_t i, UInt_t j) const
Const version of GetCell().
TGTextEntry * fRangeEntry
virtual void ResizeTable(UInt_t nrows, UInt_t ncolumns)
Resize the table to newnrows and newncolumns and add all the frames to their parent frames...