CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
64 
65  const FWCollectionSummaryTableManager& operator=(const FWCollectionSummaryTableManager&) = delete; // stop default
66 
67 private:
68  void dataChanged();
69  // ---------- member data --------------------------------
71  std::vector<int> m_sortedToUnsortedIndicies;
72 
76 };
77 
78 #endif
std::vector< std::string > getTitles() const override
returns the title names for each column
FWCollectionSummaryModelCellRenderer m_renderer
const FWCollectionSummaryTableManager & operator=(const FWCollectionSummaryTableManager &)=delete
void buttonReleasedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY) override
int numberOfColumns() const override
Number of columns in the table.
int numberOfRows() const override
Number of rows in the table.
FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const override
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
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...
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;...
bool hasRowHeaders() const override
Returns &#39;true&#39; if this table has row headers. Defaults return value is false.
FWCollectionSummaryTableManager(FWEventItem *iCollection, const TGGC *iContext, const TGGC *iHighlightContext, FWCollectionSummaryWidget *)