39 std::vector<std::string>
43 std::vector<std::string> ret;
45 for (
unsigned int i = 0;
i <
n; ++
i) {
64 const int acceptColumn = 1;
90 template <
typename TMap>
92 const std::vector<FWTriggerTableView::Column>& iData,
94 std::vector<int>& oRowToIndex)
97 for(std::vector<std::string>::const_iterator it = iData.at(col).values.begin(),
98 itEnd = iData.at(col).values.end(); it!=itEnd; ++it,++
index) {
99 iOrdered.insert(std::make_pair(*it,index));
101 unsigned int row = 0;
102 for(
typename TMap::iterator it = iOrdered.begin(),
103 itEnd = iOrdered.end();
106 oRowToIndex[row]=it->second;
115 std::multimap<std::string,int,std::greater<std::string> > ordered;
118 std::multimap<std::string,int> ordered;
int numberOfRows() const override
Number of rows in the table.
FWTextTableCellRenderer * m_renderer
const FWTriggerTableView * m_view
bool sortOrder(void)
The current sort order for the table.
std::vector< Column > m_columns
int numberOfColumns() const override
Number of columns in the table.
void implSort(int iCol, bool iSortOrder) override
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
void dataChanged()
Classes which inherit from FWTableManagerBase must call this when their underlying data changes...
FWTableWidget * m_tableWidget
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...
FWTriggerTableViewTableManager(const FWTriggerTableView *)
std::vector< int > m_sortedToUnsortedIndices
Color_t backgroundColor() const
void setData(const std::string &, bool isSelected)
bool accepted(std::vector< std::string_view > const &, std::string_view)
~FWTriggerTableViewTableManager() override
std::vector< std::string > getTitles() const override
returns the title names for each column