40 std::vector<std::string>
44 std::vector<std::string>
ret;
46 for (
unsigned int i = 0;
i <
n; ++
i) {
65 const int acceptColumn = 1;
91 template <
typename TMap>
93 const std::vector<FWTriggerTableView::Column>& iData,
95 std::vector<int>& oRowToIndex)
98 for(std::vector<std::string>::const_iterator it = iData.at(col).values.begin(),
99 itEnd = iData.at(col).values.end(); it!=itEnd; ++it,++
index) {
100 iOrdered.insert(std::make_pair(*it,index));
102 unsigned int row = 0;
103 for(
typename TMap::iterator it = iOrdered.begin(),
104 itEnd = iOrdered.end();
107 oRowToIndex[row]=it->second;
116 std::multimap<std::string,int,std::greater<std::string> > ordered;
119 std::multimap<std::string,int> ordered;
FWTextTableCellRenderer * m_renderer
const FWTriggerTableView * m_view
virtual void implSort(int iCol, bool iSortOrder)
std::vector< Column > m_columns
void dataChanged()
Classes which inherit from FWTableManagerBase must call this when their underlying data changes...
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...
virtual int numberOfColumns() const
Number of columns in the table.
FWTableWidget * m_tableWidget
FWTriggerTableViewTableManager(const FWTriggerTableView *)
std::vector< int > m_sortedToUnsortedIndices
Color_t backgroundColor() const
void setData(const std::string &, bool isSelected)
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
virtual int numberOfRows() const
Number of rows in the table.
virtual ~FWTriggerTableViewTableManager()
virtual std::vector< std::string > getTitles() const
returns the title names for each column