1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#ifndef Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
#define Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
// -*- C++ -*-
//
// Package: TableWidget
// Class : FWCheckedTextTableCellRenderer
//
/**\class FWCheckedTextTableCellRenderer FWCheckedTextTableCellRenderer.h Fireworks/TableWidget/interface/FWCheckedTextTableCellRenderer.h
Description: A Cell renderer which shows both a check box and text
Usage:
<usage>
*/
//
// Original Author: Chris Jones
// Created: Tue Feb 3 14:29:48 EST 2009
//
// system include files
#include "TQObject.h"
// user include files
#include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
// forward declarations
class FWCheckedTextTableCellRenderer : public FWTextTableCellRenderer, public TQObject {
public:
FWCheckedTextTableCellRenderer(const TGGC* iContext = &(getDefaultGC()));
~FWCheckedTextTableCellRenderer() override;
// ---------- const member functions ---------------------
bool isChecked() const;
UInt_t width() const override;
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
void setChecked(bool);
void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override;
void buttonEvent(Event_t* iClickEvent, int iRelClickX, int iRelClickY) override;
void checkBoxClicked(); //*SIGNAL*
ClassDefOverride(FWCheckedTextTableCellRenderer, 0);
private:
//FWCheckedTextTableCellRenderer(const FWCheckedTextTableCellRenderer&); // stop default
//const FWCheckedTextTableCellRenderer& operator=(const FWCheckedTextTableCellRenderer&); // stop default
// ---------- member data --------------------------------
static const UInt_t kGap = 2;
bool m_isChecked;
};
#endif
|