CMS 3D CMS Logo

FWCheckedTextTableCellRenderer.h
Go to the documentation of this file.
1 #ifndef Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
2 #define Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
3 // -*- C++ -*-
4 //
5 // Package: TableWidget
6 // Class : FWCheckedTextTableCellRenderer
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Feb 3 14:29:48 EST 2009
19 //
20 
21 // system include files
22 #include "TQObject.h"
23 
24 // user include files
26 
27 // forward declarations
28 
30 public:
31  FWCheckedTextTableCellRenderer(const TGGC* iContext = &(getDefaultGC()));
33 
34  // ---------- const member functions ---------------------
35  bool isChecked() const;
36 
37  UInt_t width() const override;
38 
39  // ---------- static member functions --------------------
40 
41  // ---------- member functions ---------------------------
42  void setChecked(bool);
43 
44  void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override;
45 
46  void buttonEvent(Event_t* iClickEvent, int iRelClickX, int iRelClickY) override;
47 
48  void checkBoxClicked(); //*SIGNAL*
49 
51 
52 private:
53  //FWCheckedTextTableCellRenderer(const FWCheckedTextTableCellRenderer&); // stop default
54 
55  //const FWCheckedTextTableCellRenderer& operator=(const FWCheckedTextTableCellRenderer&); // stop default
56 
57  // ---------- member data --------------------------------
58  static const UInt_t kGap = 2;
60 };
61 
62 #endif
FWCheckedTextTableCellRenderer(const TGGC *iContext=&(getDefaultGC()))
ClassDefOverride(FWCheckedTextTableCellRenderer, 0)
UInt_t width() const override
returns the minimum width of the cell to which the renderer is representing
static const TGGC & getDefaultGC()
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