1 #ifndef Fireworks_TableWidget_FWTableManagerBase_h 2 #define Fireworks_TableWidget_FWTableManagerBase_h 56 virtual std::vector<std::string>
getTitles()
const = 0;
91 void sort(
int iCol,
bool iSortOrder);
109 virtual void implSort(
int iCol,
bool iSortOrder) = 0;
virtual int numberOfColumns() const =0
Number of columns in the table.
bool sortOrder(void)
The current sort order for the table.
virtual bool cellDataIsSortable() const
virtual std::vector< unsigned int > maxWidthForColumns() const
for each column in the table this returns the present maximum width for that column ...
virtual void implSort(int iCol, bool iSortOrder)=0
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'...
void sort(int iCol, bool iSortOrder)
Call to have table sorted on values in column iCol with the sort order being descending if iSortOrder...
virtual std::vector< std::string > getTitles() const =0
returns the title names for each column
void dataChanged()
Classes which inherit from FWTableManagerBase must call this when their underlying data changes...
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
virtual int numberOfRows() const =0
Number of rows in the table.
virtual int unsortedRowNumber(int iSortedRowNumber) const =0
when passed the index to the sorted order of the rows it returns the original row number from the und...
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const =0
virtual bool hasRowHeaders() const
Returns 'true' if this table has row headers. Defaults return value is false.
virtual void buttonReleasedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY)
virtual bool hasLabelHeaders() const
virtual unsigned int cellHeight() const
require all cells to be the same height
virtual void buttonPressedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY)
Called if mouse button pressed in Row Header, defaults is to do nothing.
ClassDefOverride(FWTableManagerBase, 0)
~FWTableManagerBase() override
void visualPropertiesChanged()
Classes which inherit from FWTableManagerBase must call this when how the data is shown (e...
int sortColumn(void)
The current sort column.