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 // constants, enums and typedefs
20 //
21 
22 //
23 // static data member definitions
24 //
25 
26 //
27 // constructors and destructor
28 //
30  iTable->Connect("dataChanged()", "FWTableManagerBase", static_cast<FWTableManagerBase*>(this), "dataChanged()");
31  iTable->Connect("visualPropertiesChanged()",
32  "FWTableManagerBase",
33  static_cast<FWTableManagerBase*>(this),
34  "visualPropertiesChanged()");
35 }
36 
37 // FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(const FWAdapterRowHeaderTableManager& rhs)
38 // {
39 // // do actual copying here;
40 // }
41 
43 
44 //
45 // assignment operators
46 //
47 // const FWAdapterRowHeaderTableManager& FWAdapterRowHeaderTableManager::operator=(const FWAdapterRowHeaderTableManager& rhs)
48 // {
49 // //An exception safe implementation is
50 // FWAdapterRowHeaderTableManager temp(rhs);
51 // swap(rhs);
52 //
53 // return *this;
54 // }
55 
56 //
57 // member functions
58 //
59 void FWAdapterRowHeaderTableManager::implSort(int col, bool sortOrder) {}
60 
61 //
62 // const member functions
63 //
65 
67 
69 
70 std::vector<std::string> FWAdapterRowHeaderTableManager::getTitles() const {
71  std::vector<std::string> names(1, std::string("labels"));
72  return names;
73 }
74 
76  return m_table->rowHeader(iRow);
77 }
78 
79 //
80 // static member functions
81 //
int numberOfRows() const override
Number of rows in the table.
const std::string names[nVars_]
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
virtual int numberOfRows() const =0
Number of rows in the table.
int numberOfColumns() const override
Number of columns 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...
std::vector< std::string > getTitles() const override
returns the title names for each column
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;...
col
Definition: cuy.py:1009
FWTableCellRendererBase * cellRenderer(int iRow, int iCol) const override