CMS 3D CMS Logo

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 //
12 
13 // system include files
14 
15 // user include files
17 
18 
19 //
20 // constants, enums and typedefs
21 //
22 
23 //
24 // static data member definitions
25 //
26 
27 //
28 // constructors and destructor
29 //
31 m_table(iTable)
32  {
33  iTable->Connect("dataChanged()","FWTableManagerBase",static_cast<FWTableManagerBase*>(this),"dataChanged()");
34  iTable->Connect("visualPropertiesChanged()","FWTableManagerBase",static_cast<FWTableManagerBase*>(this),"visualPropertiesChanged()");
35 }
36 
37 // FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(const FWAdapterRowHeaderTableManager& rhs)
38 // {
39 // // do actual copying here;
40 // }
41 
43 {
44 }
45 
46 //
47 // assignment operators
48 //
49 // const FWAdapterRowHeaderTableManager& FWAdapterRowHeaderTableManager::operator=(const FWAdapterRowHeaderTableManager& rhs)
50 // {
51 // //An exception safe implementation is
52 // FWAdapterRowHeaderTableManager temp(rhs);
53 // swap(rhs);
54 //
55 // return *this;
56 // }
57 
58 //
59 // member functions
60 //
61 void
63 {
64 }
65 
66 //
67 // const member functions
68 //
69 int
71 
72 int
74 
75 int
77 {
78  return m_table->unsortedRowNumber(iRow);
79 }
80 
81 
82 std::vector<std::string>
84  std::vector<std::string> names(1,std::string("labels"));
85  return names;
86 }
87 
89 FWAdapterRowHeaderTableManager::cellRenderer(int iRow, int /*iCol*/) const
90 {
91  return m_table->rowHeader(iRow);
92 }
93 
94 //
95 // static member functions
96 //
std::vector< std::string > getTitles() const override
returns the title names for each column
int numberOfRows() const override
Number of rows in the table.
bool sortOrder(void)
The current sort order for the table.
virtual int numberOfRows() const =0
Number of rows in the table.
static const HistoName names[]
FWTableCellRendererBase * cellRenderer(int iRow, int iCol) const override
int unsortedRowNumber(int) const override
when passed the index to the sorted order of the rows it returns the original row number from the und...
void implSort(int col, bool sortOrder) override
Called by &#39;sort&#39; method to actually handle the sorting of the rows. Arguments are the same as &#39;sort&#39;...
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...
col
Definition: cuy.py:1008
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
int numberOfColumns() const override
Number of columns in the table.