#include <Fireworks/Core/interface/FWCheckBoxIcon.h>
Public Member Functions | |
FWCheckBoxIcon (unsigned int iEdgeLength) | |
bool | isChecked () const |
void | setChecked (bool iChecked) |
virtual | ~FWCheckBoxIcon () |
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 FWCheckBoxIcon & | operator= (const FWCheckBoxIcon &) |
Private Attributes | |
bool | m_checked |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 29 of file FWCheckBoxIcon.h.
FWCheckBoxIcon::FWCheckBoxIcon | ( | unsigned int | iEdgeLength | ) |
Definition at line 40 of file FWCheckBoxIcon.cc.
: FWBoxIconBase(iEdgeLength), m_checked(false) { }
FWCheckBoxIcon::~FWCheckBoxIcon | ( | ) | [virtual] |
Definition at line 51 of file FWCheckBoxIcon.cc.
{ }
FWCheckBoxIcon::FWCheckBoxIcon | ( | const FWCheckBoxIcon & | ) | [private] |
const TString & FWCheckBoxIcon::coreIcondir | ( | ) | [static] |
Definition at line 87 of file FWCheckBoxIcon.cc.
References 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().
{ static TString path = Form("%s/src/Fireworks/Core/icons/",gSystem->Getenv("CMSSW_BASE")); if ( gSystem->AccessPathName(path.Data()) ){ // cannot find directory assert(gSystem->Getenv("CMSSW_RELEASE_BASE")); path = Form("%s/src/Fireworks/Core/icons/",gSystem->Getenv("CMSSW_RELEASE_BASE")); } return path; }
void FWCheckBoxIcon::drawInsideBox | ( | Drawable_t | iID, |
GContext_t | iContext, | ||
int | iX, | ||
int | iY, | ||
unsigned int | iSize | ||
) | const [private, virtual] |
Implements FWBoxIconBase.
Definition at line 75 of file FWCheckBoxIcon.cc.
References checkImage(), and m_checked.
{ if(m_checked) { int xOffset = (iSize - checkImage()->GetWidth()) /2; int yOffset = (iSize - checkImage()->GetHeight())/2; checkImage()->Draw(iID,iContext,iX+xOffset,iY+yOffset); } }
bool FWCheckBoxIcon::isChecked | ( | ) | const [inline] |
Definition at line 36 of file FWCheckBoxIcon.h.
References m_checked.
Referenced by FWCollectionSummaryWidget::toggleItemVisible().
{ return m_checked;}
const FWCheckBoxIcon& FWCheckBoxIcon::operator= | ( | const FWCheckBoxIcon & | ) | [private] |
void FWCheckBoxIcon::setChecked | ( | bool | iChecked | ) | [inline] |
Definition at line 42 of file FWCheckBoxIcon.h.
References m_checked.
Referenced by FWCollectionSummaryWidget::displayChanged(), FWCollectionSummaryModelCellRenderer::setData(), and FWCollectionSummaryWidget::toggleItemVisible().
{ m_checked = iChecked; }
bool FWCheckBoxIcon::m_checked [private] |
Definition at line 54 of file FWCheckBoxIcon.h.
Referenced by drawInsideBox(), isChecked(), and setChecked().