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
FWCollectionSummaryTableManager::m_collection
FWEventItem * m_collection
Definition: FWCollectionSummaryTableManager.h:69
FWCollectionSummaryTableManager::getTitles
std::vector< std::string > getTitles() const override
returns the title names for each column
Definition: FWCollectionSummaryTableManager.cc:129
FWCollectionSummaryTableManager::numberOfColumns
int numberOfColumns() const override
Number of columns in the table.
Definition: FWCollectionSummaryTableManager.cc:127
FWCollectionSummaryTableManager::m_bodyRenderer
FWTextTableCellRenderer m_bodyRenderer
Definition: FWCollectionSummaryTableManager.h:73
FWTextTableCellRenderer.h
FWCollectionSummaryTableManager
Definition: FWCollectionSummaryTableManager.h:35
FWCollectionSummaryTableManager::implSort
void implSort(int iCol, bool iSortOrder) override
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'.
Definition: FWCollectionSummaryTableManager.cc:94
FWCollectionSummaryTableManager::m_widget
FWCollectionSummaryWidget * m_widget
Definition: FWCollectionSummaryTableManager.h:74
FWCollectionSummaryTableManager::operator=
const FWCollectionSummaryTableManager & operator=(const FWCollectionSummaryTableManager &)=delete
FWTextTableCellRenderer
Definition: FWTextTableCellRenderer.h:32
FWCollectionSummaryTableManager::cellRenderer
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
Definition: FWCollectionSummaryTableManager.cc:138
FWCollectionSummaryModelCellRenderer.h
FWCollectionSummaryTableManager::rowHeader
FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const override
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
Definition: FWCollectionSummaryTableManager.cc:158
FWCollectionSummaryTableManager::m_sortedToUnsortedIndicies
std::vector< int > m_sortedToUnsortedIndicies
Definition: FWCollectionSummaryTableManager.h:70
FWTableManagerBase
Definition: FWTableManagerBase.h:44
FWCollectionSummaryTableManager::m_renderer
FWCollectionSummaryModelCellRenderer m_renderer
Definition: FWCollectionSummaryTableManager.h:72
FWTableCellRendererBase
Definition: FWTableCellRendererBase.h:44
FWCollectionSummaryTableManager::unsortedRowNumber
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: FWCollectionSummaryTableManager.cc:134
FWCollectionSummaryTableManager::hasRowHeaders
bool hasRowHeaders() const override
Returns 'true' if this table has row headers. Defaults return value is false.
Definition: FWCollectionSummaryTableManager.cc:156
FWCollectionSummaryTableManager::buttonReleasedInRowHeader
void buttonReleasedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY) override
Definition: FWCollectionSummaryTableManager.cc:104
FWEventItem
Definition: FWEventItem.h:56
FWCollectionSummaryWidget
Definition: FWCollectionSummaryWidget.h:49
FWCollectionSummaryTableManager::dataChanged
void dataChanged()
Definition: FWCollectionSummaryTableManager.cc:167
FWCollectionSummaryTableManager::FWCollectionSummaryTableManager
FWCollectionSummaryTableManager(FWEventItem *iCollection, const TGGC *iContext, const TGGC *iHighlightContext, FWCollectionSummaryWidget *)
Definition: FWCollectionSummaryTableManager.cc:35
event
Definition: event.py:1
FWCollectionSummaryModelCellRenderer
Definition: FWCollectionSummaryModelCellRenderer.h:31
FWCollectionSummaryTableManager::~FWCollectionSummaryTableManager
~FWCollectionSummaryTableManager() override
Definition: FWCollectionSummaryTableManager.cc:58
FWCollectionSummaryTableManager::numberOfRows
int numberOfRows() const override
Number of rows in the table.
Definition: FWCollectionSummaryTableManager.cc:125
FWTableManagerBase.h