CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWAdapterRowHeaderTableManager.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TableWidget
4 // Class : FWAdapterRowHeaderTableManager
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Mon Feb 2 16:45:01 EST 2009
11 // $Id: FWAdapterRowHeaderTableManager.cc,v 1.1 2009/02/03 20:33:03 chrjones Exp $
12 //
13 
14 // system include files
15 
16 // user include files
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32 m_table(iTable)
33  {
34  iTable->Connect("dataChanged()","FWTableManagerBase",static_cast<FWTableManagerBase*>(this),"dataChanged()");
35  iTable->Connect("visualPropertiesChanged()","FWTableManagerBase",static_cast<FWTableManagerBase*>(this),"visualPropertiesChanged()");
36 }
37 
38 // FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(const FWAdapterRowHeaderTableManager& rhs)
39 // {
40 // // do actual copying here;
41 // }
42 
44 {
45 }
46 
47 //
48 // assignment operators
49 //
50 // const FWAdapterRowHeaderTableManager& FWAdapterRowHeaderTableManager::operator=(const FWAdapterRowHeaderTableManager& rhs)
51 // {
52 // //An exception safe implementation is
53 // FWAdapterRowHeaderTableManager temp(rhs);
54 // swap(rhs);
55 //
56 // return *this;
57 // }
58 
59 //
60 // member functions
61 //
62 void
64 {
65 }
66 
67 //
68 // const member functions
69 //
70 int
72 
73 int
75 
76 int
78 {
79  return m_table->unsortedRowNumber(iRow);
80 }
81 
82 
83 std::vector<std::string>
85  std::vector<std::string> names(1,std::string("labels"));
86  return names;
87 }
88 
90 FWAdapterRowHeaderTableManager::cellRenderer(int iRow, int /*iCol*/) const
91 {
92  return m_table->rowHeader(iRow);
93 }
94 
95 //
96 // static member functions
97 //
static const HistoName names[]
virtual void implSort(int col, bool sortOrder)
Called by &#39;sort&#39; method to actually handle the sorting of the rows. Arguments are the same as &#39;sort&#39;...
int unsortedRowNumber(int) const
when passed the index to the sorted order of the rows it returns the original row number from the und...
virtual int numberOfRows() const =0
Number of rows in the table.
virtual int unsortedRowNumber(int iSortedRowNumber) const =0
when passed the index to the sorted order of the rows it returns the original row number from the und...
virtual std::vector< std::string > getTitles() const
returns the title names for each column
virtual int numberOfColumns() const
Number of columns in the table.
virtual FWTableCellRendererBase * cellRenderer(int iRow, int iCol) const
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
virtual int numberOfRows() const
Number of rows in the table.