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 
37 public:
38  FWCollectionSummaryTableManager(FWEventItem* iCollection, const TGGC* iContext, const TGGC* iHighlightContext, FWCollectionSummaryWidget*);
40 
41  // ---------- const member functions ---------------------
42  int numberOfRows() const override ;
43  int numberOfColumns() const override ;
44  std::vector<std::string> getTitles() const override;
45  int unsortedRowNumber(int iSortedRowNumber) const override;
46 
47  FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const override;
48 
49  bool hasRowHeaders() const override ;
50  FWTableCellRendererBase* rowHeader(int iSortedRowNumber) const override ;
51 
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55  void buttonReleasedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY) override;
56 
57 protected:
58  void implSort(int iCol, bool iSortOrder) override;
59 private:
61 
62  const FWCollectionSummaryTableManager& operator=(const FWCollectionSummaryTableManager&) = delete; // stop default
63 
64  void dataChanged();
65  // ---------- member data --------------------------------
67  std::vector<int> m_sortedToUnsortedIndicies;
68 
72 };
73 
74 
75 #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.