Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Fireworks
TableWidget
src
FWAdapterHeaderTableManager.h
Go to the documentation of this file.
1
#ifndef Fireworks_TableWidget_FWAdapterHeaderTableManager_h
2
#define Fireworks_TableWidget_FWAdapterHeaderTableManager_h
3
// -*- C++ -*-
4
//
5
// Package: TableWidget
6
// Class : FWAdapterHeaderTableManager
7
//
19
//
20
// Original Author: Chris Jones
21
// Created: Mon Feb 2 16:44:43 EST 2009
22
// $Id: FWAdapterHeaderTableManager.h,v 1.1 2009/02/03 20:33:03 chrjones Exp $
23
//
24
25
// system include files
26
27
// user include files
28
#include "
Fireworks/TableWidget/interface/FWTableManagerBase.h
"
29
30
// forward declarations
31
class
FWColumnLabelCellRenderer
;
32
33
class
FWAdapterHeaderTableManager
:
public
FWTableManagerBase
34
{
35
36
public
:
37
FWAdapterHeaderTableManager
(
const
FWTableManagerBase
*);
38
virtual
~FWAdapterHeaderTableManager
();
39
40
// ---------- const member functions ---------------------
41
virtual
int
numberOfRows
()
const
;
42
virtual
int
numberOfColumns
()
const
;
43
virtual
std::vector<std::string>
getTitles
()
const
;
44
virtual
FWTableCellRendererBase
*
cellRenderer
(
int
iRow,
int
iCol)
const
;
45
int
unsortedRowNumber
(
int
)
const
;
46
47
// ---------- static member functions --------------------
48
49
// ---------- member functions ---------------------------
50
virtual
void
implSort
(
int
col
,
bool
sortOrder
) ;
51
52
private
:
53
FWAdapterHeaderTableManager
(
const
FWAdapterHeaderTableManager
&);
// stop default
54
55
const
FWAdapterHeaderTableManager
&
operator=
(
const
FWAdapterHeaderTableManager
&);
// stop default
56
57
// ---------- member data --------------------------------
58
const
FWTableManagerBase
*
m_table
;
59
FWColumnLabelCellRenderer
*
m_renderer
;
60
int
m_sortedColumn
;
61
bool
m_descendingSort
;
62
63
};
64
65
66
#endif
FWAdapterHeaderTableManager::FWAdapterHeaderTableManager
FWAdapterHeaderTableManager(const FWTableManagerBase *)
Definition:
FWAdapterHeaderTableManager.cc:30
FWAdapterHeaderTableManager::numberOfColumns
virtual int numberOfColumns() const
Number of columns in the table.
Definition:
FWAdapterHeaderTableManager.cc:75
FWTableManagerBase::sortOrder
bool sortOrder(void)
The current sort order for the table.
Definition:
FWTableManagerBase.h:106
FWAdapterHeaderTableManager::cellRenderer
virtual FWTableCellRendererBase * cellRenderer(int iRow, int iCol) const
Definition:
FWAdapterHeaderTableManager.cc:90
FWColumnLabelCellRenderer
Definition:
FWColumnLabelCellRenderer.h:31
FWAdapterHeaderTableManager::getTitles
virtual std::vector< std::string > getTitles() const
returns the title names for each column
Definition:
FWAdapterHeaderTableManager.cc:85
FWAdapterHeaderTableManager::m_renderer
FWColumnLabelCellRenderer * m_renderer
Definition:
FWAdapterHeaderTableManager.h:59
FWTableManagerBase
Definition:
FWTableManagerBase.h:45
FWAdapterHeaderTableManager
Definition:
FWAdapterHeaderTableManager.h:33
FWAdapterHeaderTableManager::m_sortedColumn
int m_sortedColumn
Definition:
FWAdapterHeaderTableManager.h:60
FWTableManagerBase.h
FWAdapterHeaderTableManager::m_table
const FWTableManagerBase * m_table
Definition:
FWAdapterHeaderTableManager.h:58
FWTableCellRendererBase
Definition:
FWTableCellRendererBase.h:45
FWAdapterHeaderTableManager::~FWAdapterHeaderTableManager
virtual ~FWAdapterHeaderTableManager()
Definition:
FWAdapterHeaderTableManager.cc:42
FWAdapterHeaderTableManager::unsortedRowNumber
int unsortedRowNumber(int) const
when passed the index to the sorted order of the rows it returns the original row number from the und...
Definition:
FWAdapterHeaderTableManager.cc:78
FWAdapterHeaderTableManager::operator=
const FWAdapterHeaderTableManager & operator=(const FWAdapterHeaderTableManager &)
FWAdapterHeaderTableManager::implSort
virtual void implSort(int col, bool sortOrder)
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'...
Definition:
FWAdapterHeaderTableManager.cc:62
cuy.col
int col
Definition:
cuy.py:1008
FWAdapterHeaderTableManager::m_descendingSort
bool m_descendingSort
Definition:
FWAdapterHeaderTableManager.h:61
FWAdapterHeaderTableManager::numberOfRows
virtual int numberOfRows() const
Number of rows in the table.
Definition:
FWAdapterHeaderTableManager.cc:72
Generated for CMSSW Reference Manual by
1.8.5