#include <Fireworks/Core/interface/FWCollectionSummaryTableManager.h>
Public Member Functions | |
virtual void | buttonReleasedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY) |
virtual FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const |
FWCollectionSummaryTableManager (FWEventItem *iCollection, const TGGC *iContext, const TGGC *iHighlightContext, FWCollectionSummaryWidget *) | |
virtual std::vector< std::string > | getTitles () const |
returns the title names for each column More... | |
virtual bool | hasRowHeaders () const |
Returns 'true' if this table has row headers. Defaults return value is false. 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 |
when passed the index to the sorted order of the rows it returns the original row number from the underlying data More... | |
virtual | ~FWCollectionSummaryTableManager () |
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 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) |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'. More... | |
Private Member Functions | |
void | dataChanged () |
FWCollectionSummaryTableManager (const FWCollectionSummaryTableManager &) | |
const FWCollectionSummaryTableManager & | operator= (const FWCollectionSummaryTableManager &) |
Private Attributes | |
FWTextTableCellRenderer | m_bodyRenderer |
FWEventItem * | m_collection |
FWCollectionSummaryModelCellRenderer | m_renderer |
std::vector< int > | m_sortedToUnsortedIndicies |
std::vector< boost::shared_ptr < FWItemValueGetter > > | m_valueGetters |
FWCollectionSummaryWidget * | m_widget |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 36 of file FWCollectionSummaryTableManager.h.
FWCollectionSummaryTableManager::FWCollectionSummaryTableManager | ( | FWEventItem * | iCollection, |
const TGGC * | iContext, | ||
const TGGC * | iHighlightContext, | ||
FWCollectionSummaryWidget * | iWidget | ||
) |
Definition at line 36 of file FWCollectionSummaryTableManager.cc.
References FWEventItem::changed_, dataChanged(), FWTableManagerBase::dataChanged(), eta(), FWEventItem::itemChanged_, m_collection, m_valueGetters, FWEventItem::modelType(), phi, pos, and FWEventItem::purpose().
|
virtual |
Definition at line 116 of file FWCollectionSummaryTableManager.cc.
|
private |
|
virtual |
Reimplemented from FWTableManagerBase.
Definition at line 168 of file FWCollectionSummaryTableManager.cc.
References FWCollectionSummaryModelCellRenderer::clickHit(), FWEventItem::ModelInfo::displayProperties(), FWDisplayProperties::isVisible(), FWCollectionSummaryWidget::itemColorClicked(), FWCollectionSummaryModelCellRenderer::kHitCheck, FWCollectionSummaryModelCellRenderer::kHitColor, FWCollectionSummaryModelCellRenderer::kMiss, m_collection, m_renderer, m_widget, FWEventItem::modelInfo(), FWEventItem::setDisplayProperties(), FWDisplayProperties::setIsVisible(), and unsortedRowNumber().
|
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 220 of file FWCollectionSummaryTableManager.cc.
References getHLTprescales::index, FWEventItem::ModelInfo::isSelected(), m_bodyRenderer, m_collection, m_sortedToUnsortedIndicies, m_valueGetters, FWEventItem::modelData(), FWEventItem::modelInfo(), asciidump::s, FWTextTableCellRenderer::setData(), FWEventItem::size(), and v.
|
private |
Definition at line 259 of file FWCollectionSummaryTableManager.cc.
References FWTableManagerBase::dataChanged(), i, m_collection, m_sortedToUnsortedIndicies, and FWEventItem::size().
Referenced by FWCollectionSummaryTableManager().
|
virtual |
returns the title names for each column
Implements FWTableManagerBase.
Definition at line 202 of file FWCollectionSummaryTableManager.cc.
References m_valueGetters.
|
virtual |
Returns 'true' if this table has row headers. Defaults return value is false.
Reimplemented from FWTableManagerBase.
Definition at line 241 of file FWCollectionSummaryTableManager.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 156 of file FWCollectionSummaryTableManager.cc.
References m_collection, m_sortedToUnsortedIndicies, m_valueGetters, and asciidump::s.
|
virtual |
Number of columns in the table.
Implements FWTableManagerBase.
Definition at line 197 of file FWCollectionSummaryTableManager.cc.
References m_valueGetters.
|
virtual |
Number of rows in the table.
Implements FWTableManagerBase.
Definition at line 191 of file FWCollectionSummaryTableManager.cc.
References m_collection, and FWEventItem::size().
|
private |
|
virtual |
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
Reimplemented from FWTableManagerBase.
Definition at line 247 of file FWCollectionSummaryTableManager.cc.
References getHLTprescales::index, m_collection, m_renderer, m_sortedToUnsortedIndicies, FWCollectionSummaryModelCellRenderer::setData(), and FWEventItem::size().
|
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 214 of file FWCollectionSummaryTableManager.cc.
References m_sortedToUnsortedIndicies.
Referenced by buttonReleasedInRowHeader().
|
mutableprivate |
Definition at line 72 of file FWCollectionSummaryTableManager.h.
Referenced by cellRenderer().
|
private |
Definition at line 67 of file FWCollectionSummaryTableManager.h.
Referenced by buttonReleasedInRowHeader(), cellRenderer(), dataChanged(), FWCollectionSummaryTableManager(), implSort(), numberOfRows(), and rowHeader().
|
mutableprivate |
Definition at line 71 of file FWCollectionSummaryTableManager.h.
Referenced by buttonReleasedInRowHeader(), and rowHeader().
|
private |
Definition at line 68 of file FWCollectionSummaryTableManager.h.
Referenced by cellRenderer(), dataChanged(), implSort(), rowHeader(), and unsortedRowNumber().
|
private |
Definition at line 69 of file FWCollectionSummaryTableManager.h.
Referenced by cellRenderer(), FWCollectionSummaryTableManager(), getTitles(), implSort(), and numberOfColumns().
|
private |
Definition at line 73 of file FWCollectionSummaryTableManager.h.
Referenced by buttonReleasedInRowHeader().