#include <Fireworks/TableWidget/interface/FWTextTableCellRenderer.h>
Public Types | |
enum | Justify { kJustifyLeft, kJustifyRight, kJustifyCenter } |
Public Member Functions | |
const std::string & | data () |
virtual void | draw (Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) |
const TGFont * | font () const |
FWTextTableCellRenderer (const TGGC *iContext=&(getDefaultGC()), const TGGC *iHighlightContext=&(getDefaultHighlightGC()), Justify iJustify=kJustifyLeft) | |
const TGGC * | graphicsContext () const |
virtual UInt_t | height () const |
returns the minimum height of the cell to which the renderer is representing More... | |
const TGGC * | highlightContext () const |
bool | selected () |
void | setData (const std::string &, bool isSelected) |
void | setData (const char *, bool isSelected) |
void | setGraphicsContext (const TGGC *iContext) |
void | setHighlightContext (const TGGC *context) |
void | setJustify (Justify) |
virtual UInt_t | width () const |
returns the minimum width of the cell to which the renderer is representing More... | |
virtual | ~FWTextTableCellRenderer () |
Public Member Functions inherited from FWTableCellRendererBase | |
virtual void | buttonEvent (Event_t *iClickEvent, int iRelClickX, int iRelClickY) |
FWTableCellRendererBase () | |
virtual | ~FWTableCellRendererBase () |
Static Public Member Functions | |
static const TGGC & | getDefaultGC () |
static const TGGC & | getDefaultHighlightGC () |
Private Member Functions | |
FWTextTableCellRenderer (const FWTextTableCellRenderer &) | |
const FWTextTableCellRenderer & | operator= (const FWTextTableCellRenderer &) |
Private Attributes | |
const TGGC * | m_context |
std::string | m_data |
TGFont * | m_font |
const TGGC * | m_highlightContext |
bool | m_isSelected |
Justify | m_justify |
Description: A Cell Renderer who draws text and can show selection of a cell
Usage: Use when the cells of a table are simple text and you want to be able to also show that a cell has been selected.
Definition at line 32 of file FWTextTableCellRenderer.h.
Enumerator | |
---|---|
kJustifyLeft | |
kJustifyRight | |
kJustifyCenter |
Definition at line 38 of file FWTextTableCellRenderer.h.
FWTextTableCellRenderer::FWTextTableCellRenderer | ( | const TGGC * | iContext = &(getDefaultGC()) , |
const TGGC * | iHighlightContext = &(getDefaultHighlightGC()) , |
||
Justify | iJustify = kJustifyLeft |
||
) |
Definition at line 35 of file FWTextTableCellRenderer.cc.
References m_context, and m_font.
|
virtual |
Definition at line 51 of file FWTextTableCellRenderer.cc.
|
private |
|
inline |
Definition at line 61 of file FWTextTableCellRenderer.h.
References m_data.
Referenced by cuy.FindIssue::__init__(), FWTextTreeCellRenderer::draw(), FWTriggerTableView::saveImageTo(), and FWTableView::saveImageTo().
|
virtual |
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.
Reimplemented in FWTextTreeCellRenderer, FWCollectionSummaryModelCellRenderer, FWColumnLabelCellRenderer, and FWCheckedTextTableCellRenderer.
Definition at line 71 of file FWTextTableCellRenderer.cc.
References trackerHits::c, kJustifyCenter, kJustifyRight, FWTabularWidget::kTextBuffer, m_context, m_data, m_font, m_highlightContext, m_isSelected, m_justify, w, and width().
Referenced by FWCheckedTextTableCellRenderer::draw(), FWColumnLabelCellRenderer::draw(), FWCollectionSummaryModelCellRenderer::draw(), and Vispa.Gui.PortConnection.PointToPointConnection::paintEvent().
const TGFont * FWTextTableCellRenderer::font | ( | ) | const |
Definition at line 140 of file FWTextTableCellRenderer.cc.
References m_font.
Referenced by Vispa.Gui.MenuWidget.MenuWidget::addEntry(), FWTextTreeCellRenderer::draw(), FWColumnLabelCellRenderer::FWColumnLabelCellRenderer(), Vispa.Gui.VispaWidget.VispaWidget::setText(), and Vispa.Gui.VispaWidget.VispaWidget::setTitle().
|
static |
Definition at line 149 of file FWTextTableCellRenderer.cc.
Referenced by FWPSetTableManager::cellRenderer(), and FWTextTreeCellRenderer::draw().
|
static |
Definition at line 156 of file FWTextTableCellRenderer.cc.
Referenced by FWPSetTableManager::FWPSetTableManager().
|
inline |
Definition at line 50 of file FWTextTableCellRenderer.h.
References m_context.
Referenced by FWCheckedTextTableCellRenderer::draw(), FWColumnLabelCellRenderer::draw(), FWCollectionSummaryModelCellRenderer::draw(), and FWTextTreeCellRenderer::draw().
|
virtual |
returns the minimum height of the cell to which the renderer is representing
Implements FWTableCellRendererBase.
Definition at line 134 of file FWTextTableCellRenderer.cc.
References m_font.
Referenced by Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), FWCheckedTextTableCellRenderer::buttonEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::centerSinglePortVertically(), Vispa.Gui.VispaWidget.VispaWidget::contentRect(), Vispa.Gui.VispaWidget.VispaWidget::defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineRoundRectBackgroundShape(), FWCheckedTextTableCellRenderer::draw(), FWGeometryTableManagerBase::FWGeometryTableManagerBase(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.VispaWidget.VispaWidget::paint(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry(), and FWCheckedTextTableCellRenderer::width().
|
inline |
Definition at line 51 of file FWTextTableCellRenderer.h.
References m_highlightContext.
Referenced by FWTextTreeCellRenderer::draw().
|
private |
|
inline |
Definition at line 65 of file FWTextTableCellRenderer.h.
References m_isSelected.
Referenced by FWTextTreeCellRenderer::draw().
void FWTextTableCellRenderer::setData | ( | const std::string & | iData, |
bool | isSelected | ||
) |
Definition at line 105 of file FWTextTableCellRenderer.cc.
References m_data, and m_isSelected.
Referenced by FWAdapterHeaderTableManager::cellRenderer(), FWTriggerTableViewTableManager::cellRenderer(), FWCollectionSummaryTableManager::cellRenderer(), FWTableViewTableManager::cellRenderer(), FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), FWPSetTableManager::cellRenderer(), DataAdderTableManager::cellRenderer(), and FWCollectionSummaryModelCellRenderer::setData().
void FWTextTableCellRenderer::setData | ( | const char * | iData, |
bool | isSelected | ||
) |
|
inline |
Definition at line 62 of file FWTextTableCellRenderer.h.
References m_context.
Referenced by FWTableViewTableManager::cellRenderer(), FWPSetTableManager::cellRenderer(), and FWGeometryTableManagerBase::setBackgroundToWhite().
|
inline |
Definition at line 63 of file FWTextTableCellRenderer.h.
References m_highlightContext.
Referenced by FWGeometryTableManagerBase::FWGeometryTableManagerBase(), and FWPSetTableManager::FWPSetTableManager().
void FWTextTableCellRenderer::setJustify | ( | Justify | iJustify | ) |
|
virtual |
returns the minimum width of the cell to which the renderer is representing
Implements FWTableCellRendererBase.
Reimplemented in FWTextTreeCellRenderer, FWCollectionSummaryModelCellRenderer, FWColumnLabelCellRenderer, and FWCheckedTextTableCellRenderer.
Definition at line 126 of file FWTextTableCellRenderer.cc.
References m_data, and m_font.
Referenced by Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), Vispa.Gui.VispaWidget.VispaWidget::contentRect(), Vispa.Gui.VispaWidget.VispaWidget::defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineRoundRectBackgroundShape(), draw(), Vispa.Gui.VispaWidget.VispaWidget::drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget::drawPortNames(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.PropertyView.PropertyView::resizeEvent(), Vispa.Views.PropertyView.PropertyView::sectionResized(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry(), FWCheckedTextTableCellRenderer::width(), FWColumnLabelCellRenderer::width(), FWCollectionSummaryModelCellRenderer::width(), and FWTextTreeCellRenderer::width().
|
private |
Definition at line 76 of file FWTextTableCellRenderer.h.
Referenced by draw(), FWTextTableCellRenderer(), graphicsContext(), and setGraphicsContext().
|
private |
|
private |
Definition at line 78 of file FWTextTableCellRenderer.h.
Referenced by draw(), font(), FWTextTableCellRenderer(), height(), and width().
|
private |
Definition at line 77 of file FWTextTableCellRenderer.h.
Referenced by draw(), highlightContext(), and setHighlightContext().
|
private |
Definition at line 80 of file FWTextTableCellRenderer.h.
Referenced by draw(), selected(), and setData().
|
private |
Definition at line 81 of file FWTextTableCellRenderer.h.
Referenced by draw(), and setJustify().