CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWTableViewTableManager.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWTableViewTableManager_h
3 #define Fireworks_Core_FWTableViewTableManager_h
4 //
5 // Package: Core
6 // Class : FWTableViewTableManager
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 FWTableView;
31 
33  friend class FWTableView;
34 public:
36  virtual ~FWTableViewTableManager();
37 
38  // ---------- const member functions ---------------------
40  virtual int numberOfRows() const;
42  virtual int numberOfColumns() const;
43 
45  virtual std::vector<std::string> getTitles() const;
46 
49  virtual int unsortedRowNumber(int iSortedRowNumber) const;
50 
58  virtual FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const;
59 
61  // virtual unsigned int cellHeight() const;
62 
64  // virtual std::vector<unsigned int> maxWidthForColumns() const;
65 
67  virtual bool hasRowHeaders() const ;
69  virtual FWTableCellRendererBase* rowHeader(int iSortedRowNumber) const ;
70 
72  //virtual void buttonPressedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY);
73  //virtual void buttonReleasedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY);
74 
75  // ---------- static member functions --------------------
76 
77  // ---------- member functions ---------------------------
80  // void sort(int iCol, bool iSortOrder);
81 
84  void dataChanged(); //*SIGNAL*
85 
88  // void visualPropertiesChanged(); //*SIGNAL*
89 
90  // ClassDef(FWTableViewTableManager,0);
91  void updateEvaluators ();
92 
93 protected:
96  virtual void implSort(int iCol, bool iSortOrder);
97  std::vector<int> m_sortedToUnsortedIndices;
98 
103 
107 
108  std::vector<FWExpressionEvaluator> m_evaluators;
109  std::vector<FWTableViewManager::TableEntry> *m_tableFormats;
110 
111  // ---------- member data --------------------------------
112  // int m_sortColumn;
113  // bool m_sortOrder;
115 
116 private:
117  FWTableViewTableManager(const FWTableViewTableManager&); // stop default
118  const FWTableViewTableManager& operator=(const FWTableViewTableManager&); // stop default
119 };
120 
121 
122 #endif
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
FWTableViewTableManager(const FWTableView *)
void dataChanged()
Called if mouse button pressed in Row Header, defaults is to do nothing.
virtual int unsortedRowNumber(int iSortedRowNumber) const
virtual int numberOfRows() const
Number of rows in the table.
FWFramedTextTableCellRenderer * m_rowRenderer
std::vector< int > m_sortedToUnsortedIndices
std::vector< FWTableViewManager::TableEntry > * m_tableFormats
virtual std::vector< std::string > getTitles() const
returns the title names for each column
virtual int numberOfColumns() const
Number of columns in the table.
std::vector< FWExpressionEvaluator > m_evaluators
virtual bool hasRowHeaders() const
require all cells to be the same height
virtual void implSort(int iCol, bool iSortOrder)
const FWTableViewTableManager & operator=(const FWTableViewTableManager &)
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
FWTextTableCellRenderer * m_renderer