#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 *) | |
FWTableViewTableManager (const FWTableViewTableManager &)=delete | |
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... | |
const FWTableViewTableManager & | operator= (const FWTableViewTableManager &)=delete |
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 |
Friends | |
class | FWTableView |
Definition at line 32 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.
|
override |
Definition at line 42 of file FWTableViewTableManager.cc.
References m_renderer, and m_rowRenderer.
|
delete |
|
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 73 of file FWTableViewTableManager.cc.
References FWColorManager::background(), FWTableViewManager::TableEntry::BOOL, FWViewManagerBase::colorManager(), FWEventItem::ModelInfo::displayProperties(), compareTotals::fs, 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(), hcalRecHitTable_cff::precision, runTheMatrix::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 201 of file FWTableViewTableManager.cc.
References cms::cuda::assert(), 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 56 of file FWTableViewTableManager.cc.
References mps_fire::i, m_tableFormats, dqmiodumpmetadata::n, numberOfColumns(), and runTheMatrix::ret.
|
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 250 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 184 of file FWTableViewTableManager.cc.
References FWTableWidget::dataChanged(), HLT_2024v10_cff::doSort, 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 54 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 47 of file FWTableViewTableManager.cc.
References FWTableView::item(), m_view, and FWEventItem::size().
Referenced by FWTableView::saveImageTo().
|
delete |
|
overridevirtual |
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
Reimplemented from FWTableManagerBase.
Definition at line 251 of file FWTableViewTableManager.cc.
References FWColorManager::background(), FWDisplayProperties::color(), 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 67 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 224 of file FWTableViewTableManager.cc.
References mps_fire::end, makeMEIFBenchmarkPlots::ev, fwLog, mps_fire::i, B2GTnPMonitor_cfi::item, FWTableViewManager::items(), fwlog::kError, m_evaluators, FWTableView::m_iColl, FWTableView::m_manager, m_tableFormats, and m_view.
Referenced by FWTableView::updateEvaluators().
|
friend |
Definition at line 33 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().