Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:32

0001 #ifndef Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
0002 #define Fireworks_TableWidget_FWCheckedTextTableCellRenderer_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     TableWidget
0006 // Class  :     FWCheckedTextTableCellRenderer
0007 //
0008 /**\class FWCheckedTextTableCellRenderer FWCheckedTextTableCellRenderer.h Fireworks/TableWidget/interface/FWCheckedTextTableCellRenderer.h
0009 
0010  Description: A Cell renderer which shows both a check box and text
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Tue Feb  3 14:29:48 EST 2009
0019 //
0020 
0021 // system include files
0022 #include "TQObject.h"
0023 
0024 // user include files
0025 #include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
0026 
0027 // forward declarations
0028 
0029 class FWCheckedTextTableCellRenderer : public FWTextTableCellRenderer, public TQObject {
0030 public:
0031   FWCheckedTextTableCellRenderer(const TGGC* iContext = &(getDefaultGC()));
0032   ~FWCheckedTextTableCellRenderer() override;
0033 
0034   // ---------- const member functions ---------------------
0035   bool isChecked() const;
0036 
0037   UInt_t width() const override;
0038 
0039   // ---------- static member functions --------------------
0040 
0041   // ---------- member functions ---------------------------
0042   void setChecked(bool);
0043 
0044   void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override;
0045 
0046   void buttonEvent(Event_t* iClickEvent, int iRelClickX, int iRelClickY) override;
0047 
0048   void checkBoxClicked();  //*SIGNAL*
0049 
0050   ClassDefOverride(FWCheckedTextTableCellRenderer, 0);
0051 
0052 private:
0053   //FWCheckedTextTableCellRenderer(const FWCheckedTextTableCellRenderer&); // stop default
0054 
0055   //const FWCheckedTextTableCellRenderer& operator=(const FWCheckedTextTableCellRenderer&); // stop default
0056 
0057   // ---------- member data --------------------------------
0058   static const UInt_t kGap = 2;
0059   bool m_isChecked;
0060 };
0061 
0062 #endif