#include <Fireworks/TableWidget/interface/FWFramedTextTableCellRenderer.h>
Public Types | |
enum | Justify { kJustifyLeft, kJustifyRight, kJustifyCenter } |
Public Member Functions | |
virtual void | draw (Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) |
const TGFont * | font () const |
FWFramedTextTableCellRenderer (const TGGC *iTextContext=&(getDefaultGC()), const TGGC *iFillContext=&(getFillGC()), 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... | |
void | setData (const std::string &) |
void | setGraphicsContext (const TGGC *iContext) |
void | setJustify (Justify) |
virtual UInt_t | width () const |
returns the minimum width of the cell to which the renderer is representing More... | |
virtual | ~FWFramedTextTableCellRenderer () |
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 & | getFillGC () |
Private Member Functions | |
FWFramedTextTableCellRenderer (const FWFramedTextTableCellRenderer &) | |
const FWFramedTextTableCellRenderer & | operator= (const FWFramedTextTableCellRenderer &) |
Private Attributes | |
const TGGC * | m_context |
std::string | m_data |
TGFont * | m_font |
const TGGC * | m_frameContext |
Justify | m_justify |
Description: A Cell Renderer who draws text with an outline and fills in the background
Usage: The background color of the text graphics context will be used to draw an outline around the regular text and the color of the regular text is set by the foreground color of the text graphics context.
Definition at line 33 of file FWFramedTextTableCellRenderer.h.
Enumerator | |
---|---|
kJustifyLeft | |
kJustifyRight | |
kJustifyCenter |
Definition at line 39 of file FWFramedTextTableCellRenderer.h.
FWFramedTextTableCellRenderer::FWFramedTextTableCellRenderer | ( | const TGGC * | iTextContext = &(getDefaultGC()) , |
const TGGC * | iFillContext = &(getFillGC()) , |
||
Justify | iJustify = kJustifyLeft |
||
) |
Definition at line 34 of file FWFramedTextTableCellRenderer.cc.
References m_context, and m_font.
Referenced by setGraphicsContext().
|
virtual |
Definition at line 49 of file FWFramedTextTableCellRenderer.cc.
|
private |
|
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.
Definition at line 69 of file FWFramedTextTableCellRenderer.cc.
References kJustifyCenter, kJustifyRight, m_context, m_data, m_font, m_frameContext, m_justify, w, and width().
Referenced by Vispa.Gui.PortConnection.PointToPointConnection::paintEvent(), and setGraphicsContext().
const TGFont * FWFramedTextTableCellRenderer::font | ( | ) | const |
Definition at line 123 of file FWFramedTextTableCellRenderer.cc.
References m_font.
Referenced by Vispa.Gui.MenuWidget.MenuWidget::addEntry(), graphicsContext(), Vispa.Gui.VispaWidget.VispaWidget::setText(), and Vispa.Gui.VispaWidget.VispaWidget::setTitle().
|
static |
Definition at line 132 of file FWFramedTextTableCellRenderer.cc.
|
static |
Definition at line 139 of file FWFramedTextTableCellRenderer.cc.
|
inline |
Definition at line 51 of file FWFramedTextTableCellRenderer.h.
References font(), height(), m_context, setData(), AlCaHLTBitMon_QueryRunRegistry::string, and width().
|
virtual |
returns the minimum height of the cell to which the renderer is representing
Implements FWTableCellRendererBase.
Definition at line 117 of file FWFramedTextTableCellRenderer.cc.
References m_font.
Referenced by Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), 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(), graphicsContext(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.VispaWidget.VispaWidget::paint(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().
|
private |
Referenced by setGraphicsContext().
void FWFramedTextTableCellRenderer::setData | ( | const std::string & | iData | ) |
Definition at line 95 of file FWFramedTextTableCellRenderer.cc.
References m_data.
Referenced by graphicsContext(), and FWTableViewTableManager::rowHeader().
|
inline |
Definition at line 60 of file FWFramedTextTableCellRenderer.h.
References draw(), FWFramedTextTableCellRenderer(), m_context, operator=(), and setJustify().
void FWFramedTextTableCellRenderer::setJustify | ( | Justify | iJustify | ) |
Definition at line 100 of file FWFramedTextTableCellRenderer.cc.
References m_justify.
Referenced by setGraphicsContext().
|
virtual |
returns the minimum width of the cell to which the renderer is representing
Implements FWTableCellRendererBase.
Definition at line 109 of file FWFramedTextTableCellRenderer.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(), graphicsContext(), 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(), and Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().
|
private |
Definition at line 72 of file FWFramedTextTableCellRenderer.h.
Referenced by draw(), FWFramedTextTableCellRenderer(), graphicsContext(), and setGraphicsContext().
|
private |
Definition at line 75 of file FWFramedTextTableCellRenderer.h.
|
private |
Definition at line 74 of file FWFramedTextTableCellRenderer.h.
Referenced by draw(), font(), FWFramedTextTableCellRenderer(), height(), and width().
|
private |
Definition at line 73 of file FWFramedTextTableCellRenderer.h.
Referenced by draw().
|
private |
Definition at line 76 of file FWFramedTextTableCellRenderer.h.
Referenced by draw(), and setJustify().