Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:36

0001 #ifndef Fireworks_Core_FWCheckBoxIcon_h
0002 #define Fireworks_Core_FWCheckBoxIcon_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWCheckBoxIcon
0007 //
0008 /**\class FWCheckBoxIcon FWCheckBoxIcon.h Fireworks/Core/interface/FWCheckBoxIcon.h
0009 
0010  Description: <one line class summary>
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Thu Feb 19 16:25:14 CST 2009
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "Fireworks/Core/src/FWBoxIconBase.h"
0025 
0026 // forward declarations
0027 
0028 class FWCheckBoxIcon : public FWBoxIconBase {
0029 public:
0030   FWCheckBoxIcon(unsigned int iEdgeLength);
0031   ~FWCheckBoxIcon() override;
0032 
0033   // ---------- const member functions ---------------------
0034   bool isChecked() const { return m_checked; }
0035 
0036   // ---------- static member functions --------------------
0037   static const TString& coreIcondir();
0038 
0039   // ---------- member functions ---------------------------
0040   void setChecked(bool iChecked) { m_checked = iChecked; }
0041 
0042   FWCheckBoxIcon(const FWCheckBoxIcon&) = delete;  // stop default
0043 
0044   const FWCheckBoxIcon& operator=(const FWCheckBoxIcon&) = delete;  // stop default
0045 
0046 private:
0047   void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const override;
0048 
0049   // ---------- member data --------------------------------
0050   bool m_checked;
0051 };
0052 
0053 #endif