Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Fireworks
TableWidget
interface
FWColumnLabelCellRenderer.h
Go to the documentation of this file.
1
#ifndef Fireworks_TableWidget_FWColumnLabelCellRenderer_h
2
#define Fireworks_TableWidget_FWColumnLabelCellRenderer_h
3
// -*- C++ -*-
4
//
5
// Package: TableWidget
6
// Class : FWColumnLabelCellRenderer
7
//
17
//
18
// Original Author: Chris Jones
19
// Created: Mon Feb 2 16:44:11 EST 2009
20
//
21
22
// system include files
23
24
// user include files
25
#include "
Fireworks/TableWidget/interface/SortOrder.h
"
26
#include "
Fireworks/TableWidget/interface/FWTextTableCellRenderer.h
"
27
28
// forward declarations
29
30
class
FWColumnLabelCellRenderer
:
public
FWTextTableCellRenderer
31
{
32
33
public
:
34
FWColumnLabelCellRenderer
(
const
TGGC* iContext=&(
getDefaultGC
()),
bool
isSortable =
true
);
35
virtual
~FWColumnLabelCellRenderer
();
36
37
// ---------- const member functions ---------------------
38
fireworks::table::SortOrder
sortOrder
()
const
;
39
40
virtual
UInt_t
width
()
const
;
41
42
// ---------- static member functions --------------------
43
44
// ---------- member functions ---------------------------
45
void
setSortOrder
(
fireworks::table::SortOrder
);
46
47
virtual
void
draw
(Drawable_t iID,
int
iX,
int
iY,
unsigned
int
iWidth,
unsigned
int
iHeight);
48
49
private
:
50
//FWColumnLabelCellRenderer(const FWColumnLabelCellRenderer&); // stop default
51
52
//const FWColumnLabelCellRenderer& operator=(const FWColumnLabelCellRenderer&); // stop default
53
54
// ---------- member data --------------------------------
55
static
const
UInt_t
kGap
= 2;
56
fireworks::table::SortOrder
m_sortOrder
;
57
int
m_sizeOfOrderIcon
;
58
int
m_sizeOfOrderIconStartX
;
59
60
bool
m_isSortable
;
61
62
};
63
64
65
#endif
FWColumnLabelCellRenderer::FWColumnLabelCellRenderer
FWColumnLabelCellRenderer(const TGGC *iContext=&(getDefaultGC()), bool isSortable=true)
Definition:
FWColumnLabelCellRenderer.cc:34
FWColumnLabelCellRenderer::m_isSortable
bool m_isSortable
Definition:
FWColumnLabelCellRenderer.h:60
FWColumnLabelCellRenderer::setSortOrder
void setSortOrder(fireworks::table::SortOrder)
Definition:
FWColumnLabelCellRenderer.cc:80
FWColumnLabelCellRenderer
Definition:
FWColumnLabelCellRenderer.h:30
SortOrder.h
FWColumnLabelCellRenderer::m_sizeOfOrderIconStartX
int m_sizeOfOrderIconStartX
Definition:
FWColumnLabelCellRenderer.h:58
FWTextTableCellRenderer
Definition:
FWTextTableCellRenderer.h:32
FWTextTableCellRenderer::getDefaultGC
static const TGGC & getDefaultGC()
Definition:
FWTextTableCellRenderer.cc:149
FWColumnLabelCellRenderer::~FWColumnLabelCellRenderer
virtual ~FWColumnLabelCellRenderer()
Definition:
FWColumnLabelCellRenderer.cc:61
FWColumnLabelCellRenderer::sortOrder
fireworks::table::SortOrder sortOrder() const
Definition:
FWColumnLabelCellRenderer.cc:119
FWColumnLabelCellRenderer::width
virtual UInt_t width() const
returns the minimum width of the cell to which the renderer is representing
Definition:
FWColumnLabelCellRenderer.cc:124
FWColumnLabelCellRenderer::kGap
static const UInt_t kGap
Definition:
FWColumnLabelCellRenderer.h:55
FWColumnLabelCellRenderer::draw
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)
Definition:
FWColumnLabelCellRenderer.cc:88
fireworks::table::SortOrder
SortOrder
Definition:
SortOrder.h:29
FWColumnLabelCellRenderer::m_sizeOfOrderIcon
int m_sizeOfOrderIcon
Definition:
FWColumnLabelCellRenderer.h:57
FWColumnLabelCellRenderer::m_sortOrder
fireworks::table::SortOrder m_sortOrder
Definition:
FWColumnLabelCellRenderer.h:56
FWTextTableCellRenderer.h
Generated for CMSSW Reference Manual by
1.8.5