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 // $Id: FWTableViewTableManager.h,v 1.7 2011/11/18 02:57:07 amraktad Exp $
15 //
16 
17 // system include files
18 #include <vector>
19 #include <string>
20 #include "TQObject.h"
21 #include "GuiTypes.h"
22 
23 // user include files
28 
29 // forward declarations
30 class FWTableView;
32 
34  friend class FWTableView;
35 public:
37  virtual ~FWTableViewTableManager();
38 
39  // ---------- const member functions ---------------------
41  virtual int numberOfRows() const;
43  virtual int numberOfColumns() const;
44 
46  virtual std::vector<std::string> getTitles() const;
47 
50  virtual int unsortedRowNumber(int iSortedRowNumber) const;
51 
59  virtual FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const;
60 
62  // virtual unsigned int cellHeight() const;
63 
65  // virtual std::vector<unsigned int> maxWidthForColumns() const;
66 
68  virtual bool hasRowHeaders() const ;
70  virtual FWTableCellRendererBase* rowHeader(int iSortedRowNumber) const ;
71 
73  //virtual void buttonPressedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY);
74  //virtual void buttonReleasedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY);
75 
76  // ---------- static member functions --------------------
77 
78  // ---------- member functions ---------------------------
81  // void sort(int iCol, bool iSortOrder);
82 
85  void dataChanged(); //*SIGNAL*
86 
89  // void visualPropertiesChanged(); //*SIGNAL*
90 
91  // ClassDef(FWTableViewTableManager,0);
92  void updateEvaluators ();
93 
94 protected:
97  virtual void implSort(int iCol, bool iSortOrder);
98  std::vector<int> m_sortedToUnsortedIndices;
99 
104 
108 
109  std::vector<FWExpressionEvaluator> m_evaluators;
110  std::vector<FWTableViewManager::TableEntry> *m_tableFormats;
111 
112  // ---------- member data --------------------------------
113  // int m_sortColumn;
114  // bool m_sortOrder;
116 
117 private:
118  FWTableViewTableManager(const FWTableViewTableManager&); // stop default
119  const FWTableViewTableManager& operator=(const FWTableViewTableManager&); // stop default
120 };
121 
122 
123 #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