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 //
cuy.col
col
Definition: cuy.py:1010
FWAdapterRowHeaderTableManager::getTitles
std::vector< std::string > getTitles() const override
returns the title names for each column
Definition: FWAdapterRowHeaderTableManager.cc:70
FWTableManagerBase::numberOfRows
virtual int numberOfRows() const =0
Number of rows in the table.
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:122
FWAdapterRowHeaderTableManager::cellRenderer
FWTableCellRendererBase * cellRenderer(int iRow, int iCol) const override
Definition: FWAdapterRowHeaderTableManager.cc:75
FWAdapterRowHeaderTableManager::m_table
const FWTableManagerBase * m_table
Definition: FWAdapterRowHeaderTableManager.h:54
FWTableManagerBase
Definition: FWTableManagerBase.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWAdapterRowHeaderTableManager::numberOfRows
int numberOfRows() const override
Number of rows in the table.
Definition: FWAdapterRowHeaderTableManager.cc:64
FWAdapterRowHeaderTableManager::~FWAdapterRowHeaderTableManager
~FWAdapterRowHeaderTableManager() override
Definition: FWAdapterRowHeaderTableManager.cc:42
FWTableCellRendererBase
Definition: FWTableCellRendererBase.h:44
FWAdapterRowHeaderTableManager::unsortedRowNumber
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...
Definition: FWAdapterRowHeaderTableManager.cc:68
FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager
FWAdapterRowHeaderTableManager(FWTableManagerBase *)
Definition: FWAdapterRowHeaderTableManager.cc:29
FWAdapterRowHeaderTableManager::numberOfColumns
int numberOfColumns() const override
Number of columns in the table.
Definition: FWAdapterRowHeaderTableManager.cc:66
FWTableManagerBase::rowHeader
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
Definition: FWTableManagerBase.cc:110
FWAdapterRowHeaderTableManager::implSort
void implSort(int col, bool sortOrder) override
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'.
Definition: FWAdapterRowHeaderTableManager.cc:59
FWTableManagerBase::unsortedRowNumber
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...
FWAdapterRowHeaderTableManager.h