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>
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
FWCollectionSummaryModelCellRenderer m_renderer
const FWItemValueGetter & valueGetter() const
one value from the model which is normally used for the popup
const FWDisplayProperties & displayProperties() const
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'...
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
void dataChanged()
Classes which inherit from FWTableManagerBase must call this when their underlying data changes...
virtual bool hasRowHeaders() const
Returns 'true' if this table has row headers. Defaults return value is false.
virtual std::vector< std::string > getTitles() const
returns the title names for each column
virtual int numberOfRows() const
Number of rows in the table.
virtual ~FWCollectionSummaryTableManager()
FWItemChangeSignal itemChanged_
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 und...
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
virtual void buttonReleasedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY)
FWModelChangeSignal changed_
virtual int numberOfColumns() const
Number of columns in the table.
const TClass * modelType() const
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
UInt_t precision(int idx) const
void setIsVisible(bool iSet)
std::vector< int > m_sortedToUnsortedIndicies
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
ClickHit clickHit(int iX, int iY) const