CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/Fireworks/Core/src/FWCheckBoxIcon.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWCheckBoxIcon_h
00002 #define Fireworks_Core_FWCheckBoxIcon_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWCheckBoxIcon
00007 // 
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Thu Feb 19 16:25:14 CST 2009
00019 // $Id: FWCheckBoxIcon.h,v 1.2 2009/05/01 02:01:34 dmytro Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 #include "Fireworks/Core/src/FWBoxIconBase.h"
00026 
00027 // forward declarations
00028 
00029 class FWCheckBoxIcon : public FWBoxIconBase {
00030 
00031 public:
00032    FWCheckBoxIcon(unsigned int iEdgeLength);
00033    virtual ~FWCheckBoxIcon();
00034    
00035    // ---------- const member functions ---------------------
00036    bool isChecked() const { return m_checked;}
00037    
00038    // ---------- static member functions --------------------
00039    static const TString& coreIcondir();
00040 
00041    // ---------- member functions ---------------------------
00042    void setChecked(bool iChecked) {
00043       m_checked = iChecked;
00044    }
00045    
00046 private:
00047    FWCheckBoxIcon(const FWCheckBoxIcon&); // stop default
00048    
00049    const FWCheckBoxIcon& operator=(const FWCheckBoxIcon&); // stop default
00050    
00051    void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const;
00052    
00053    // ---------- member data --------------------------------
00054    bool m_checked;
00055 };
00056 
00057 
00058 #endif