CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
FWCheckBoxIcon Class Reference

#include <Fireworks/Core/interface/FWCheckBoxIcon.h>

Inheritance diagram for FWCheckBoxIcon:
FWBoxIconBase

Public Member Functions

 FWCheckBoxIcon (unsigned int iEdgeLength)
 
bool isChecked () const
 
void setChecked (bool iChecked)
 
virtual ~FWCheckBoxIcon ()
 
- Public Member Functions inherited from FWBoxIconBase
void draw (Drawable_t iID, GContext_t iContext, int iX, int iY) const
 
unsigned int edgeLength () const
 
 FWBoxIconBase (unsigned int iEdgeLength)
 
virtual ~FWBoxIconBase ()
 

Static Public Member Functions

static const TString & coreIcondir ()
 

Private Member Functions

void drawInsideBox (Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const
 
 FWCheckBoxIcon (const FWCheckBoxIcon &)
 
const FWCheckBoxIconoperator= (const FWCheckBoxIcon &)
 

Private Attributes

bool m_checked
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 29 of file FWCheckBoxIcon.h.

Constructor & Destructor Documentation

FWCheckBoxIcon::FWCheckBoxIcon ( unsigned int  iEdgeLength)

Definition at line 40 of file FWCheckBoxIcon.cc.

40  :
41 FWBoxIconBase(iEdgeLength),
42 m_checked(false)
43 {
44 }
FWBoxIconBase(unsigned int iEdgeLength)
FWCheckBoxIcon::~FWCheckBoxIcon ( )
virtual

Definition at line 51 of file FWCheckBoxIcon.cc.

52 {
53 }
FWCheckBoxIcon::FWCheckBoxIcon ( const FWCheckBoxIcon )
private

Member Function Documentation

const TString & FWCheckBoxIcon::coreIcondir ( )
static

Definition at line 87 of file FWCheckBoxIcon.cc.

References scaleCards::path.

Referenced by alert(), alert_over(), arrow_down(), arrow_down_disabled(), arrow_right(), arrow_right_disabled(), checkImage(), FWGUISubviewArea::closeDisabledIcon(), FWGUISubviewArea::closeIcon(), CmsShowMainFrame::CmsShowMainFrame(), FWGUISubviewArea::dockIcon(), filtered(), filtered_over(), FWGUIEventFilter::FWGUIEventFilter(), FWGUIEventSelector::FWGUIEventSelector(), info(), info_disabled(), info_over(), FWGUISubviewArea::infoDisabledIcon(), FWGUISubviewArea::infoIcon(), CmsAnnotation::Render(), CmsShowMainFrame::showFWorksInfo(), FWGUISubviewArea::swapDisabledIcon(), FWGUISubviewArea::swapIcon(), FWGUISubviewArea::undockDisabledIcon(), FWGUISubviewArea::undockIcon(), unfiltered(), and unfiltered_over().

87  {
88  static TString path = Form("%s/src/Fireworks/Core/icons/",gSystem->Getenv("CMSSW_BASE"));
89  if ( gSystem->AccessPathName(path.Data()) ){ // cannot find directory
90  assert(gSystem->Getenv("CMSSW_RELEASE_BASE"));
91  path = Form("%s/src/Fireworks/Core/icons/",gSystem->Getenv("CMSSW_RELEASE_BASE"));
92  }
93 
94  return path;
95 }
list path
Definition: scaleCards.py:51
void FWCheckBoxIcon::drawInsideBox ( Drawable_t  iID,
GContext_t  iContext,
int  iX,
int  iY,
unsigned int  iSize 
) const
privatevirtual

Implements FWBoxIconBase.

Definition at line 75 of file FWCheckBoxIcon.cc.

References checkImage(), and m_checked.

76 {
77  if(m_checked) {
78  int xOffset = (iSize - checkImage()->GetWidth()) /2;
79  int yOffset = (iSize - checkImage()->GetHeight())/2;
80  checkImage()->Draw(iID,iContext,iX+xOffset,iY+yOffset);
81  }
82 }
static const TGPicture * checkImage()
bool FWCheckBoxIcon::isChecked ( ) const
inline
const FWCheckBoxIcon& FWCheckBoxIcon::operator= ( const FWCheckBoxIcon )
private
void FWCheckBoxIcon::setChecked ( bool  iChecked)
inline

Member Data Documentation

bool FWCheckBoxIcon::m_checked
private

Definition at line 54 of file FWCheckBoxIcon.h.

Referenced by drawInsideBox(), isChecked(), and setChecked().