#include <Fireworks/Core/interface/FWCollectionSummaryModelCellRenderer.h>
Public Types | |
enum | ClickHit { kMiss, kHitCheck, kHitColor } |
Public Types inherited from FWTextTableCellRenderer | |
enum | Justify { kJustifyLeft, kJustifyRight, kJustifyCenter } |
Public Member Functions | |
ClickHit | clickHit (int iX, int iY) const |
void | draw (Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override |
FWCollectionSummaryModelCellRenderer (const TGGC *iContext, const TGGC *iSelectContext) | |
void | setData (const FWEventItem *iItem, int iIndex) |
UInt_t | width () const override |
returns the minimum width of the cell to which the renderer is representing More... | |
~FWCollectionSummaryModelCellRenderer () override | |
Public Member Functions inherited from FWTextTableCellRenderer | |
const std::string & | data () |
void | draw (Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override |
const TGFont * | font () const |
FWTextTableCellRenderer (const TGGC *iContext=&(getDefaultGC()), const TGGC *iHighlightContext=&(getDefaultHighlightGC()), Justify iJustify=kJustifyLeft) | |
const TGGC * | graphicsContext () const |
UInt_t | height () const override |
returns the minimum height of the cell to which the renderer is representing More... | |
const TGGC * | highlightContext () const |
bool | selected () |
void | setData (const char *, bool isSelected) |
void | setData (const std::string &, bool isSelected) |
void | setGraphicsContext (const TGGC *iContext) |
void | setHighlightContext (const TGGC *context) |
void | setJustify (Justify) |
UInt_t | width () const override |
returns the minimum width of the cell to which the renderer is representing More... | |
~FWTextTableCellRenderer () override | |
Public Member Functions inherited from FWTableCellRendererBase | |
virtual void | buttonEvent (Event_t *iClickEvent, int iRelClickX, int iRelClickY) |
FWTableCellRendererBase () | |
virtual | ~FWTableCellRendererBase () |
Private Member Functions | |
FWCollectionSummaryModelCellRenderer (const FWCollectionSummaryModelCellRenderer &)=delete | |
const FWCollectionSummaryModelCellRenderer & | operator= (const FWCollectionSummaryModelCellRenderer &)=delete |
Private Attributes | |
FWCheckBoxIcon * | m_checkBox |
FWColorBoxIcon * | m_colorBox |
TGGC * | m_colorContext |
Additional Inherited Members | |
Static Public Member Functions inherited from FWTextTableCellRenderer | |
static const TGGC & | getDefaultGC () |
static const TGGC & | getDefaultHighlightGC () |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 31 of file FWCollectionSummaryModelCellRenderer.h.
Enumerator | |
---|---|
kMiss | |
kHitCheck | |
kHitColor |
Definition at line 36 of file FWCollectionSummaryModelCellRenderer.h.
FWCollectionSummaryModelCellRenderer::FWCollectionSummaryModelCellRenderer | ( | const TGGC * | iContext, |
const TGGC * | iSelectContext | ||
) |
Definition at line 37 of file FWCollectionSummaryModelCellRenderer.cc.
References m_colorBox, m_colorContext, FWColorBoxIcon::setColor(), and submitPVValidationJobs::t.
|
override |
Definition at line 51 of file FWCollectionSummaryModelCellRenderer.cc.
References m_checkBox, m_colorBox, and m_colorContext.
|
privatedelete |
FWCollectionSummaryModelCellRenderer::ClickHit FWCollectionSummaryModelCellRenderer::clickHit | ( | int | iX, |
int | iY | ||
) | const |
Definition at line 100 of file FWCollectionSummaryModelCellRenderer.cc.
References kHitCheck, kHitColor, kIconSize, kMiss, and kSeparation.
Referenced by FWCollectionSummaryTableManager::buttonReleasedInRowHeader().
|
overridevirtual |
Called to draw a particular cell: arguments iID: the id for the drawable in the window. Needed in order to do calls to gVirtualX or to TGFont iX: screen x position that the cell drawing area starts iY: screen y position that the cell drawing area starts iWidth: width (x dimension) of cell drawing area. May be larger than value returned from width() iHeight: height (x dimension) of cell drawing area. May be larger than value returned from height()
Implements FWTableCellRendererBase.
Definition at line 77 of file FWCollectionSummaryModelCellRenderer.cc.
References FWBoxIconBase::draw(), FWTextTableCellRenderer::draw(), FWTextTableCellRenderer::graphicsContext(), kIconSize, kSeparation, m_checkBox, and m_colorBox.
|
privatedelete |
void FWCollectionSummaryModelCellRenderer::setData | ( | const FWEventItem * | iItem, |
int | iIndex | ||
) |
Definition at line 90 of file FWCollectionSummaryModelCellRenderer.cc.
References FWDisplayProperties::color(), FWEventItem::ModelInfo::displayProperties(), FWEventItem::ModelInfo::isSelected(), FWDisplayProperties::isVisible(), m_checkBox, m_colorContext, FWEventItem::modelInfo(), FWEventItem::modelName(), FWCheckBoxIcon::setChecked(), and FWTextTableCellRenderer::setData().
Referenced by FWCollectionSummaryTableManager::rowHeader().
|
overridevirtual |
returns the minimum width of the cell to which the renderer is representing
Implements FWTableCellRendererBase.
Definition at line 72 of file FWCollectionSummaryModelCellRenderer.cc.
References kIconSize, kSeparation, w, and FWTextTableCellRenderer::width().
|
private |
Definition at line 57 of file FWCollectionSummaryModelCellRenderer.h.
Referenced by draw(), setData(), and ~FWCollectionSummaryModelCellRenderer().
|
private |
Definition at line 56 of file FWCollectionSummaryModelCellRenderer.h.
Referenced by draw(), FWCollectionSummaryModelCellRenderer(), and ~FWCollectionSummaryModelCellRenderer().
|
private |
Definition at line 58 of file FWCollectionSummaryModelCellRenderer.h.
Referenced by FWCollectionSummaryModelCellRenderer(), setData(), and ~FWCollectionSummaryModelCellRenderer().