CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
31 
32  public:
33  FWCheckedTextTableCellRenderer(const TGGC* iContext=&(getDefaultGC()));
35 
36  // ---------- const member functions ---------------------
37  bool isChecked() const;
38 
39  virtual UInt_t width() const;
40 
41  // ---------- static member functions --------------------
42 
43  // ---------- member functions ---------------------------
44  void setChecked( bool);
45 
46  virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight);
47 
48  virtual void buttonEvent(Event_t* iClickEvent, int iRelClickX, int iRelClickY);
49 
50  void checkBoxClicked(); //*SIGNAL*
51 
53 
54  private:
55  //FWCheckedTextTableCellRenderer(const FWCheckedTextTableCellRenderer&); // stop default
56 
57  //const FWCheckedTextTableCellRenderer& operator=(const FWCheckedTextTableCellRenderer&); // stop default
58 
59  // ---------- member data --------------------------------
60  static const UInt_t kGap = 2;
62 
63 };
64 
65 
66 #endif
FWCheckedTextTableCellRenderer(const TGGC *iContext=&(getDefaultGC()))
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)
virtual UInt_t width() const
returns the minimum width of the cell to which the renderer is representing
ClassDef(FWCheckedTextTableCellRenderer, 0)
virtual void buttonEvent(Event_t *iClickEvent, int iRelClickX, int iRelClickY)
static const TGGC & getDefaultGC()