CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/Fireworks/TableWidget/interface/FWCheckedTextTableCellRenderer.h

Go to the documentation of this file.
00001 #ifndef Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
00002 #define Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     TableWidget
00006 // Class  :     FWCheckedTextTableCellRenderer
00007 // 
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Tue Feb  3 14:29:48 EST 2009
00019 // $Id: FWCheckedTextTableCellRenderer.h,v 1.2 2009/03/04 15:31:20 chrjones Exp $
00020 //
00021 
00022 // system include files
00023 #include "TQObject.h"
00024 
00025 // user include files
00026 #include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
00027 
00028 // forward declarations
00029 
00030 class FWCheckedTextTableCellRenderer : public FWTextTableCellRenderer, public TQObject
00031 {
00032 
00033    public:
00034       FWCheckedTextTableCellRenderer(const TGGC* iContext=&(getDefaultGC()));
00035       virtual ~FWCheckedTextTableCellRenderer();
00036 
00037       // ---------- const member functions ---------------------
00038       bool isChecked() const;
00039 
00040       virtual UInt_t width() const;
00041 
00042       // ---------- static member functions --------------------
00043 
00044       // ---------- member functions ---------------------------
00045       void setChecked( bool);
00046 
00047       virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight);
00048 
00049       virtual void buttonEvent(Event_t* iClickEvent, int iRelClickX, int iRelClickY);
00050 
00051       void checkBoxClicked(); //*SIGNAL*
00052 
00053       ClassDef(FWCheckedTextTableCellRenderer,0);
00054 
00055    private:
00056       //FWCheckedTextTableCellRenderer(const FWCheckedTextTableCellRenderer&); // stop default
00057 
00058       //const FWCheckedTextTableCellRenderer& operator=(const FWCheckedTextTableCellRenderer&); // stop default
00059 
00060       // ---------- member data --------------------------------
00061       static const UInt_t kGap = 2;
00062       bool m_isChecked;
00063 
00064 };
00065 
00066 
00067 #endif