CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FWTriggerTableViewTableManager.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWTriggerTableViewTableManager_h
3 #define Fireworks_Core_FWTriggerTableViewTableManager_h
4 //
5 // Package: Core
6 // Class : FWTriggerTableViewTableManager
7 //
11 //
12 // Original Author:
13 // Created: Mon Feb 2 16:40:52 EST 2009
14 //
15 
16 // system include files
17 #include <vector>
18 #include <string>
19 #include "TQObject.h"
20 #include "GuiTypes.h"
21 
22 // user include files
27 
28 // forward declarations
29 class FWTriggerTableView;
30 
32  friend class FWTriggerTableView;
33 
34 public:
37 
38  // ---------- const member functions ---------------------
40  int numberOfRows() const override;
41  int numberOfColumns() const override;
42  std::vector<std::string> getTitles() const override;
43  int unsortedRowNumber(int iSortedRowNumber) const override;
44 
45  FWTableCellRendererBase *cellRenderer(int iSortedRowNumber, int iCol) const override;
46  void dataChanged(); //*SIGNAL*
47 
48 protected:
51  void implSort(int iCol, bool iSortOrder) override;
52  std::vector<int> m_sortedToUnsortedIndices;
53 
57 
58 public:
59  FWTriggerTableViewTableManager(const FWTriggerTableViewTableManager &) = delete; // stop default
60  const FWTriggerTableViewTableManager &operator=(const FWTriggerTableViewTableManager &) = delete; // stop default
61 };
62 
63 #endif
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
int numberOfColumns() const override
Number of columns in the table.
void implSort(int iCol, bool iSortOrder) override
int numberOfRows() const override
Number of rows in the table.
FWTriggerTableViewTableManager(const FWTriggerTableView *)
std::vector< std::string > getTitles() const override
returns the title names for each column
const FWTriggerTableViewTableManager & operator=(const FWTriggerTableViewTableManager &)=delete
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...