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 28 of file FWCheckBoxIcon.h.

Constructor & Destructor Documentation

FWCheckBoxIcon::FWCheckBoxIcon ( unsigned int  iEdgeLength)

Definition at line 39 of file FWCheckBoxIcon.cc.

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

Definition at line 50 of file FWCheckBoxIcon.cc.

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

Member Function Documentation

const TString & FWCheckBoxIcon::coreIcondir ( )
static

Definition at line 86 of file FWCheckBoxIcon.cc.

References cmsHarvester::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().

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

Implements FWBoxIconBase.

Definition at line 74 of file FWCheckBoxIcon.cc.

References checkImage(), and m_checked.

75 {
76  if(m_checked) {
77  int xOffset = (iSize - checkImage()->GetWidth()) /2;
78  int yOffset = (iSize - checkImage()->GetHeight())/2;
79  checkImage()->Draw(iID,iContext,iX+xOffset,iY+yOffset);
80  }
81 }
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 53 of file FWCheckBoxIcon.h.

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