15 #include <boost/bind.hpp> 38 m_renderer(iContext,iHighlightContext),
46 std::vector<std::pair<std::string,std::string> > s_names;
81 std::multimap<double,int,S>& iMap,
82 std::vector<int>& oNewSort) {
88 std::vector<int>::iterator itVec = oNewSort.begin();
89 for(
typename std::map<double,int,S>::iterator it = iMap.begin(), itEnd = iMap.end();
101 std::multimap<double,int, std::greater<double> >
s;
104 std::multimap<double,int, std::less<double> >
s;
143 std::vector<std::string>
FWCollectionSummaryModelCellRenderer m_renderer
const FWItemValueGetter & valueGetter() const
one value from the model which is normally used for the popup
std::vector< std::string > getTitles() const override
returns the title names for each column
const FWDisplayProperties & displayProperties() const
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
void dataChanged()
Classes which inherit from FWTableManagerBase must call this when their underlying data changes...
int numberOfRows() const override
Number of rows in the table.
void buttonReleasedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY) override
FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const override
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
FWItemChangeSignal itemChanged_
~FWCollectionSummaryTableManager() override
void setData(const std::string &, bool isSelected)
FWTextTableCellRenderer m_bodyRenderer
std::vector< std::string > getTitles() const
void setData(const FWEventItem *iItem, int iIndex)
double valueFor(const void *, int idx) const
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_
const TClass * modelType() const
int numberOfColumns() const override
Number of columns in the table.
FWCollectionSummaryTableManager(FWEventItem *iCollection, const TGGC *iContext, const TGGC *iHighlightContext, FWCollectionSummaryWidget *)
FWCollectionSummaryWidget * m_widget
FWEventItem * m_collection
const void * modelData(int iIndex) const
ModelInfo modelInfo(int iIndex) const
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
UInt_t precision(int idx) const
void setIsVisible(bool iSet)
std::vector< int > m_sortedToUnsortedIndicies
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...
ClickHit clickHit(int iX, int iY) const
bool hasRowHeaders() const override
Returns 'true' if this table has row headers. Defaults return value is false.