CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWTriggerTableViewTableManager.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWTriggerTableViewTableManager_h
3 #define Fireworks_Core_FWTriggerTableViewTableManager_h
4 //
5 // Package: Core
6 // Class : FWTriggerTableViewTableManager
7 //
11 //
12 // Original Author:
13 // Created: Mon Feb 2 16:40:52 EST 2009
14 // $Id: FWTriggerTableViewTableManager.h,v 1.3 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 FWTriggerTableView;
31 
33  friend class FWTriggerTableView;
34 public:
37 
38  // ---------- const member functions ---------------------
40  virtual int numberOfRows() const;
41  virtual int numberOfColumns() const;
42  virtual std::vector<std::string> getTitles() const;
43  virtual int unsortedRowNumber(int iSortedRowNumber) const;
44 
45  virtual FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const;
46  void dataChanged(); //*SIGNAL*
47 
48 protected:
51  virtual void implSort(int iCol, bool iSortOrder);
52  std::vector<int> m_sortedToUnsortedIndices;
53 
57 
58 private:
61 };
62 
63 
64 #endif
const FWTriggerTableViewTableManager & operator=(const FWTriggerTableViewTableManager &)
virtual void implSort(int iCol, bool iSortOrder)
virtual int unsortedRowNumber(int iSortedRowNumber) const
when passed the index to the sorted order of the rows it returns the original row number from the und...
virtual int numberOfColumns() const
Number of columns in the table.
FWTriggerTableViewTableManager(const FWTriggerTableView *)
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
virtual int numberOfRows() const
Number of rows in the table.
virtual std::vector< std::string > getTitles() const
returns the title names for each column