CMS 3D CMS Logo

FWCollectionSummaryTableManager.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWCollectionSummaryTableManager_h
2 #define Fireworks_Core_FWCollectionSummaryTableManager_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWCollectionSummaryTableManager
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sun Feb 22 10:13:37 CST 2009
19 //
20 
21 // system include files
22 #include <vector>
23 #include <memory>
24 
25 // user include files
29 
30 // forward declarations
31 class FWEventItem;
32 //class FWItemValueGetter;
34 
36 public:
38  const TGGC* iContext,
39  const TGGC* iHighlightContext,
42 
43  // ---------- const member functions ---------------------
44  int numberOfRows() const override;
45  int numberOfColumns() const override;
46  std::vector<std::string> getTitles() const override;
47  int unsortedRowNumber(int iSortedRowNumber) const override;
48 
49  FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const override;
50 
51  bool hasRowHeaders() const override;
52  FWTableCellRendererBase* rowHeader(int iSortedRowNumber) const override;
53 
54  // ---------- static member functions --------------------
55 
56  // ---------- member functions ---------------------------
57  void buttonReleasedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY) override;
58 
59 protected:
60  void implSort(int iCol, bool iSortOrder) override;
61 
62 private:
64 
65  const FWCollectionSummaryTableManager& operator=(const FWCollectionSummaryTableManager&) = delete; // stop default
66 
67  void dataChanged();
68  // ---------- member data --------------------------------
70  std::vector<int> m_sortedToUnsortedIndicies;
71 
75 };
76 
77 #endif
FWCollectionSummaryModelCellRenderer m_renderer
std::vector< std::string > getTitles() const override
returns the title names for each column
const FWCollectionSummaryTableManager & operator=(const FWCollectionSummaryTableManager &)=delete
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.
void implSort(int iCol, bool iSortOrder) override
Called by &#39;sort&#39; method to actually handle the sorting of the rows. Arguments are the same as &#39;sort&#39;...
int numberOfColumns() const override
Number of columns in the table.
FWCollectionSummaryTableManager(FWEventItem *iCollection, const TGGC *iContext, const TGGC *iHighlightContext, FWCollectionSummaryWidget *)
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
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...
Definition: event.py:1
bool hasRowHeaders() const override
Returns &#39;true&#39; if this table has row headers. Defaults return value is false.