37 const TGGC* iHighlightContext,
39 : m_collection(iItem),
40 m_renderer(iContext, iHighlightContext),
47 std::vector<std::pair<std::string, std::string> > s_names;
80 std::multimap<double, int, S>& iMap,
81 std::vector<int>& oNewSort) {
86 std::vector<int>::iterator itVec = oNewSort.begin();
87 for (
typename std::map<double, int, S>::iterator it = iMap.begin(), itEnd = iMap.end(); it != itEnd;
96 std::multimap<double, int, std::greater<double> >
s;
99 std::multimap<double, int, std::less<double> >
s;
117 dp.setIsVisible(!
dp.isVisible());
std::vector< std::string > getTitles() const override
returns the title names for each column
const FWItemValueGetter & valueGetter() const
one value from the model which is normally used for the popup
FWCollectionSummaryModelCellRenderer m_renderer
const void * modelData(int iIndex) const
void dataChanged()
Classes which inherit from FWTableManagerBase must call this when their underlying data changes...
const FWDisplayProperties & displayProperties() const
void buttonReleasedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY) override
int numberOfColumns() const override
Number of columns in the table.
const TClass * modelType() const
int numberOfRows() const override
Number of rows in the table.
UInt_t precision(int idx) const
FWItemChangeSignal itemChanged_
std::vector< std::string > getTitles() const
~FWCollectionSummaryTableManager() override
FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const override
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
void setData(const std::string &, bool isSelected)
FWTextTableCellRenderer m_bodyRenderer
void setData(const FWEventItem *iItem, int iIndex)
ClickHit clickHit(int iX, int iY) const
int unsortedRowNumber(int iSortedRowNumber) const override
when passed the index to the sorted order of the rows it returns the original row number from the und...
void implSort(int iCol, bool iSortOrder) override
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'...
FWModelChangeSignal changed_
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
bool hasRowHeaders() const override
Returns 'true' if this table has row headers. Defaults return value is false.
FWCollectionSummaryTableManager(FWEventItem *iCollection, const TGGC *iContext, const TGGC *iHighlightContext, FWCollectionSummaryWidget *)
double valueFor(const void *, int idx) const
FWCollectionSummaryWidget * m_widget
FWEventItem * m_collection
std::vector< int > m_sortedToUnsortedIndicies
ModelInfo modelInfo(int iIndex) const