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 // $Id: FWCheckedTextTableCellRenderer.h,v 1.2 2009/03/04 15:31:20 chrjones Exp $
20 //
21 
22 // system include files
23 #include "TQObject.h"
24 
25 // user include files
27 
28 // forward declarations
29 
31 {
32 
33  public:
34  FWCheckedTextTableCellRenderer(const TGGC* iContext=&(getDefaultGC()));
36 
37  // ---------- const member functions ---------------------
38  bool isChecked() const;
39 
40  virtual UInt_t width() const;
41 
42  // ---------- static member functions --------------------
43 
44  // ---------- member functions ---------------------------
45  void setChecked( bool);
46 
47  virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight);
48 
49  virtual void buttonEvent(Event_t* iClickEvent, int iRelClickX, int iRelClickY);
50 
51  void checkBoxClicked(); //*SIGNAL*
52 
54 
55  private:
56  //FWCheckedTextTableCellRenderer(const FWCheckedTextTableCellRenderer&); // stop default
57 
58  //const FWCheckedTextTableCellRenderer& operator=(const FWCheckedTextTableCellRenderer&); // stop default
59 
60  // ---------- member data --------------------------------
61  static const UInt_t kGap = 2;
63 
64 };
65 
66 
67 #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()
unsigned int UInt_t
Definition: FUTypes.h:12