#include <Fireworks/Core/interface/FWTableViewTableManager.h>
Public Member Functions | |
virtual FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const |
void | dataChanged () |
Called if mouse button pressed in Row Header, defaults is to do nothing. More... | |
FWTableViewTableManager (const FWTableView *) | |
virtual std::vector< std::string > | getTitles () const |
returns the title names for each column More... | |
virtual bool | hasRowHeaders () const |
require all cells to be the same height More... | |
virtual int | numberOfColumns () const |
Number of columns in the table. More... | |
virtual int | numberOfRows () const |
Number of rows in the table. More... | |
virtual FWTableCellRendererBase * | rowHeader (int iSortedRowNumber) const |
Returns the renderer for the row header for the sorted row number iSortedRowNumber. More... | |
virtual int | unsortedRowNumber (int iSortedRowNumber) const |
void | updateEvaluators () |
virtual | ~FWTableViewTableManager () |
Public Member Functions inherited from FWTableManagerBase | |
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. More... | |
virtual void | buttonReleasedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY) |
virtual bool | cellDataIsSortable () const |
virtual unsigned int | cellHeight () const |
require all cells to be the same height More... | |
ClassDef (FWTableManagerBase, 0) | |
void | dataChanged () |
Classes which inherit from FWTableManagerBase must call this when their underlying data changes. More... | |
FWTableManagerBase () | |
virtual bool | hasLabelHeaders () const |
virtual std::vector< unsigned int > | maxWidthForColumns () const |
for each column in the table this returns the present maximum width for that column More... | |
void | sort (int iCol, bool iSortOrder) |
Call to have table sorted on values in column iCol with the sort order being descending if iSortOrder is 'true'. More... | |
int | sortColumn (void) |
The current sort column. More... | |
bool | sortOrder (void) |
The current sort order for the table. More... | |
void | visualPropertiesChanged () |
Classes which inherit from FWTableManagerBase must call this when how the data is shown (e.g. color) changes. More... | |
virtual | ~FWTableManagerBase () |
Protected Member Functions | |
virtual void | implSort (int iCol, bool iSortOrder) |
Protected Attributes | |
bool | m_caughtExceptionInCellRender |
std::vector < FWExpressionEvaluator > | m_evaluators |
TGGC * | m_graphicsContext |
TGGC * | m_highlightContext |
FWTextTableCellRenderer * | m_renderer |
TGGC * | m_rowContext |
TGGC * | m_rowFillContext |
FWFramedTextTableCellRenderer * | m_rowRenderer |
std::vector< int > | m_sortedToUnsortedIndices |
std::vector < FWTableViewManager::TableEntry > * | m_tableFormats |
const FWTableView * | m_view |
Private Member Functions | |
FWTableViewTableManager (const FWTableViewTableManager &) | |
const FWTableViewTableManager & | operator= (const FWTableViewTableManager &) |
Friends | |
class | FWTableView |
Definition at line 33 of file FWTableViewTableManager.h.
FWTableViewTableManager::FWTableViewTableManager | ( | const FWTableView * | view | ) |
Definition at line 19 of file FWTableViewTableManager.cc.
References FWTextTableCellRenderer::kJustifyRight, FWFramedTextTableCellRenderer::kJustifyRight, m_graphicsContext, m_highlightContext, m_renderer, m_rowFillContext, m_rowRenderer, FWTableView::m_tableWidget, and m_view.
|
virtual |
Definition at line 46 of file FWTableViewTableManager.cc.
References m_renderer, and m_rowRenderer.
|
private |
|
virtual |
Returns the particular renderer used to handle the requested
cell. Arguments: iSortedRowNumber: the row number from the present sort (i.e. the cell number of the view) iCol: the column number of the cell. The returned value must be used immediately and not held onto since the same Renderer can be used for subsequent calls
Implements FWTableManagerBase.
Definition at line 83 of file FWTableViewTableManager.cc.
References FWColorManager::background(), FWTableViewManager::TableEntry::BOOL, FWViewManagerBase::colorManager(), FWEventItem::ModelInfo::displayProperties(), fwLog, FWTableViewManager::TableEntry::INT, FWTableViewManager::TableEntry::INT_HEX, FWEventItem::ModelInfo::isSelected(), FWDisplayProperties::isVisible(), FWTableView::item(), fwlog::kError, m_caughtExceptionInCellRender, m_evaluators, m_graphicsContext, FWTableView::m_manager, m_renderer, m_tableFormats, m_view, FWEventItem::modelData(), FWEventItem::modelInfo(), run_regression::ret, alignCSCRings::s, FWTextTableCellRenderer::setData(), FWTextTableCellRenderer::setGraphicsContext(), FWEventItem::size(), and unsortedRowNumber().
Referenced by FWTableView::saveImageTo().
void FWTableViewTableManager::dataChanged | ( | ) |
Called if mouse button pressed in Row Header, defaults is to do nothing.
Call to have table sorted on values in column iCol with the sort order being descending if iSortOrder is 'true' Classes which inherit from FWTableViewTableManager must call this when their underlying data changes
Definition at line 226 of file FWTableViewTableManager.cc.
References FWTableManagerBase::dataChanged(), FWEventItem::ModelInfo::displayProperties(), i, FWDisplayProperties::isVisible(), FWTableView::item(), m_sortedToUnsortedIndices, m_view, FWEventItem::modelInfo(), and FWEventItem::size().
Referenced by FWTableView::dataChanged().
|
virtual |
returns the title names for each column
Implements FWTableManagerBase.
Definition at line 64 of file FWTableViewTableManager.cc.
References i, m_tableFormats, n, numberOfColumns(), and run_regression::ret.
|
virtual |
require all cells to be the same height
for each column in the table this returns the present maximum width for that column Returns 'true' if this table has row headers. Defaults return value is false.
Reimplemented from FWTableManagerBase.
Definition at line 276 of file FWTableViewTableManager.cc.
|
protectedvirtual |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'
Implements FWTableManagerBase.
Definition at line 207 of file FWTableViewTableManager.cc.
References FWTableWidget::dataChanged(), FWTableView::item(), m_evaluators, m_sortedToUnsortedIndices, FWTableView::m_tableWidget, m_view, and alignCSCRings::s.
|
virtual |
Number of columns in the table.
Implements FWTableManagerBase.
Definition at line 59 of file FWTableViewTableManager.cc.
References m_evaluators.
Referenced by getTitles(), FWTableView::saveImageTo(), and FWTableView::setFrom().
|
virtual |
Number of rows in the table.
Implements FWTableManagerBase.
Definition at line 52 of file FWTableViewTableManager.cc.
References FWTableView::item(), m_view, and FWEventItem::size().
Referenced by FWTableView::saveImageTo().
|
private |
|
virtual |
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
Reimplemented from FWTableManagerBase.
Definition at line 280 of file FWTableViewTableManager.cc.
References FWColorManager::background(), FWViewManagerBase::colorManager(), FWEventItem::ModelInfo::displayProperties(), FWDisplayProperties::isVisible(), FWTableView::item(), m_graphicsContext, FWTableView::m_manager, m_rowFillContext, m_rowRenderer, m_view, FWEventItem::modelData(), FWEventItem::modelInfo(), alignCSCRings::s, FWFramedTextTableCellRenderer::setData(), FWEventItem::size(), and unsortedRowNumber().
|
virtual |
when passed the index to the sorted order of the rows it returns the original row number from the underlying data
Implements FWTableManagerBase.
Definition at line 76 of file FWTableViewTableManager.cc.
References m_sortedToUnsortedIndices.
Referenced by cellRenderer(), rowHeader(), and FWTableView::saveImageTo().
void FWTableViewTableManager::updateEvaluators | ( | ) |
Classes which inherit from FWTableViewTableManager must call this when how the data is shown (e.g. color) changes
Definition at line 251 of file FWTableViewTableManager.cc.
References end, fwLog, i, FWTableViewManager::items(), fwlog::kError, m_evaluators, FWTableView::m_iColl, FWTableView::m_manager, m_tableFormats, m_view, and FWEventItem::modelType().
Referenced by FWTableView::updateEvaluators().
|
friend |
Definition at line 34 of file FWTableViewTableManager.h.
|
mutableprotected |
Definition at line 115 of file FWTableViewTableManager.h.
Referenced by cellRenderer().
|
protected |
Definition at line 109 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), implSort(), numberOfColumns(), and updateEvaluators().
|
protected |
Definition at line 101 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), FWTableViewTableManager(), and rowHeader().
|
protected |
Definition at line 102 of file FWTableViewTableManager.h.
Referenced by FWTableViewTableManager().
|
protected |
Definition at line 103 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), FWTableViewTableManager(), and ~FWTableViewTableManager().
|
protected |
Definition at line 105 of file FWTableViewTableManager.h.
|
protected |
Definition at line 106 of file FWTableViewTableManager.h.
Referenced by FWTableViewTableManager(), and rowHeader().
|
protected |
Definition at line 107 of file FWTableViewTableManager.h.
Referenced by FWTableViewTableManager(), rowHeader(), and ~FWTableViewTableManager().
|
protected |
Definition at line 98 of file FWTableViewTableManager.h.
Referenced by dataChanged(), implSort(), and unsortedRowNumber().
|
protected |
Definition at line 110 of file FWTableViewTableManager.h.
Referenced by FWTableView::addColumn(), cellRenderer(), FWTableView::columnSelected(), FWTableView::deleteColumn(), getTitles(), FWTableView::modifyColumn(), FWTableView::saveImageTo(), FWTableView::selectCollection(), and updateEvaluators().
|
protected |
Definition at line 100 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), dataChanged(), FWTableViewTableManager(), implSort(), numberOfRows(), rowHeader(), and updateEvaluators().