#include <Fireworks/Core/interface/FWTableViewTableManager.h>
Public Member Functions | |
FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const override |
void | dataChanged () |
Called if mouse button pressed in Row Header, defaults is to do nothing. More... | |
FWTableViewTableManager (const FWTableView *) | |
std::vector< std::string > | getTitles () const override |
returns the title names for each column More... | |
bool | hasRowHeaders () const override |
require all cells to be the same height More... | |
int | numberOfColumns () const override |
Number of columns in the table. More... | |
int | numberOfRows () const override |
Number of rows in the table. More... | |
FWTableCellRendererBase * | rowHeader (int iSortedRowNumber) const override |
Returns the renderer for the row header for the sorted row number iSortedRowNumber. More... | |
int | unsortedRowNumber (int iSortedRowNumber) const override |
void | updateEvaluators () |
~FWTableViewTableManager () override | |
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... | |
ClassDefOverride (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... | |
~FWTableManagerBase () override | |
Protected Member Functions | |
void | implSort (int iCol, bool iSortOrder) override |
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 &)=delete | |
const FWTableViewTableManager & | operator= (const FWTableViewTableManager &)=delete |
Friends | |
class | FWTableView |
Definition at line 32 of file FWTableViewTableManager.h.
FWTableViewTableManager::FWTableViewTableManager | ( | const FWTableView * | view | ) |
Definition at line 18 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.
|
override |
Definition at line 45 of file FWTableViewTableManager.cc.
References m_renderer, and m_rowRenderer.
|
privatedelete |
|
overridevirtual |
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 82 of file FWTableViewTableManager.cc.
References FWColorManager::background(), FWTableViewManager::TableEntry::BOOL, FWViewManagerBase::colorManager(), FWEventItem::ModelInfo::displayProperties(), fwLog, createfilelist::int, 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(), common_cff::precision, alignCSCRings::s, FWTextTableCellRenderer::setData(), FWTextTableCellRenderer::setGraphicsContext(), FWEventItem::size(), findQualityFiles::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 225 of file FWTableViewTableManager.cc.
References FWTableManagerBase::dataChanged(), FWEventItem::ModelInfo::displayProperties(), mps_fire::i, FWDisplayProperties::isVisible(), FWTableView::item(), m_sortedToUnsortedIndices, m_view, FWEventItem::modelInfo(), and FWEventItem::size().
Referenced by FWTableView::dataChanged().
|
overridevirtual |
returns the title names for each column
Implements FWTableManagerBase.
Definition at line 63 of file FWTableViewTableManager.cc.
References mps_fire::i, m_tableFormats, gen::n, and numberOfColumns().
|
overridevirtual |
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 275 of file FWTableViewTableManager.cc.
|
overrideprotectedvirtual |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'
Implements FWTableManagerBase.
Definition at line 206 of file FWTableViewTableManager.cc.
References FWTableWidget::dataChanged(), createfilelist::int, FWTableView::item(), m_evaluators, m_sortedToUnsortedIndices, FWTableView::m_tableWidget, m_view, and alignCSCRings::s.
|
overridevirtual |
Number of columns in the table.
Implements FWTableManagerBase.
Definition at line 58 of file FWTableViewTableManager.cc.
References m_evaluators.
Referenced by getTitles(), FWTableView::saveImageTo(), and FWTableView::setFrom().
|
overridevirtual |
Number of rows in the table.
Implements FWTableManagerBase.
Definition at line 51 of file FWTableViewTableManager.cc.
References FWTableView::item(), m_view, and FWEventItem::size().
Referenced by FWTableView::saveImageTo().
|
privatedelete |
|
overridevirtual |
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
Reimplemented from FWTableManagerBase.
Definition at line 279 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().
|
overridevirtual |
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 75 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 250 of file FWTableViewTableManager.cc.
References end, ev, fwLog, mps_fire::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 33 of file FWTableViewTableManager.h.
|
mutableprotected |
Definition at line 114 of file FWTableViewTableManager.h.
Referenced by cellRenderer().
|
protected |
Definition at line 108 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), implSort(), numberOfColumns(), and updateEvaluators().
|
protected |
Definition at line 100 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), FWTableViewTableManager(), and rowHeader().
|
protected |
Definition at line 101 of file FWTableViewTableManager.h.
Referenced by FWTableViewTableManager().
|
protected |
Definition at line 102 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), FWTableViewTableManager(), and ~FWTableViewTableManager().
|
protected |
Definition at line 104 of file FWTableViewTableManager.h.
|
protected |
Definition at line 105 of file FWTableViewTableManager.h.
Referenced by FWTableViewTableManager(), and rowHeader().
|
protected |
Definition at line 106 of file FWTableViewTableManager.h.
Referenced by FWTableViewTableManager(), rowHeader(), and ~FWTableViewTableManager().
|
protected |
Definition at line 97 of file FWTableViewTableManager.h.
Referenced by dataChanged(), implSort(), and unsortedRowNumber().
|
protected |
Definition at line 109 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 99 of file FWTableViewTableManager.h.
Referenced by cellRenderer(), dataChanged(), FWTableViewTableManager(), implSort(), numberOfRows(), rowHeader(), and updateEvaluators().