#include <Fireworks/TableWidget/interface/FWCheckedTextTableCellRenderer.h>
Public Member Functions | |
virtual void | buttonEvent (Event_t *iClickEvent, int iRelClickX, int iRelClickY) |
void | checkBoxClicked () |
ClassDef (FWCheckedTextTableCellRenderer, 0) | |
virtual void | draw (Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) |
FWCheckedTextTableCellRenderer (const TGGC *iContext=&(getDefaultGC())) | |
bool | isChecked () const |
void | setChecked (bool) |
virtual UInt_t | width () const |
returns the minimum width of the cell to which the renderer is representing More... | |
virtual | ~FWCheckedTextTableCellRenderer () |
Public Member Functions inherited from FWTextTableCellRenderer | |
const std::string & | data () |
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 | ~FWTextTableCellRenderer () |
Public Member Functions inherited from FWTableCellRendererBase | |
FWTableCellRendererBase () | |
virtual | ~FWTableCellRendererBase () |
Private Attributes | |
bool | m_isChecked |
Static Private Attributes | |
static const UInt_t | kGap = 2 |
Additional Inherited Members | |
Public Types inherited from FWTextTableCellRenderer | |
enum | Justify { kJustifyLeft, kJustifyRight, kJustifyCenter } |
Static Public Member Functions inherited from FWTextTableCellRenderer | |
static const TGGC & | getDefaultGC () |
static const TGGC & | getDefaultHighlightGC () |
Description: A Cell renderer which shows both a check box and text
Usage: <usage>
Definition at line 29 of file FWCheckedTextTableCellRenderer.h.
FWCheckedTextTableCellRenderer::FWCheckedTextTableCellRenderer | ( | const TGGC * | iContext = &(getDefaultGC()) | ) |
Definition at line 31 of file FWCheckedTextTableCellRenderer.cc.
|
virtual |
Definition at line 40 of file FWCheckedTextTableCellRenderer.cc.
|
virtual |
Called when a mouse button event occurs when the cursor is over a particular cell: arguments
iClickEvent: the ROOT GUI event caused by the mouse button iRelClickX: the x position of the cursor click relative to the start of the cell drawing area iRelClickY: the y position of the cursor click relative to the start of the cell drawing area
Reimplemented from FWTableCellRendererBase.
Definition at line 83 of file FWCheckedTextTableCellRenderer.cc.
References checkBoxClicked(), h, and FWTextTableCellRenderer::height().
void FWCheckedTextTableCellRenderer::checkBoxClicked | ( | ) |
Definition at line 99 of file FWCheckedTextTableCellRenderer.cc.
Referenced by buttonEvent().
FWCheckedTextTableCellRenderer::ClassDef | ( | FWCheckedTextTableCellRenderer | , |
0 | |||
) |
|
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()
Reimplemented from FWTextTableCellRenderer.
Definition at line 64 of file FWCheckedTextTableCellRenderer.cc.
References EnergyCorrector::c, FWTextTableCellRenderer::draw(), FWTextTableCellRenderer::graphicsContext(), h, FWTextTableCellRenderer::height(), kGap, and m_isChecked.
Referenced by Vispa.Gui.PortConnection.PointToPointConnection::paintEvent().
bool FWCheckedTextTableCellRenderer::isChecked | ( | ) | const |
Definition at line 107 of file FWCheckedTextTableCellRenderer.cc.
References m_isChecked.
Referenced by Vispa.Views.PropertyView.BooleanProperty::value().
void FWCheckedTextTableCellRenderer::setChecked | ( | bool | iChecked | ) |
Definition at line 59 of file FWCheckedTextTableCellRenderer.cc.
References m_isChecked.
|
virtual |
returns the minimum width of the cell to which the renderer is representing
Reimplemented from FWTextTableCellRenderer.
Definition at line 112 of file FWCheckedTextTableCellRenderer.cc.
References h, FWTextTableCellRenderer::height(), kGap, and FWTextTableCellRenderer::width().
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(), 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(), and Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().
|
staticprivate |
Definition at line 60 of file FWCheckedTextTableCellRenderer.h.
|
private |
Definition at line 61 of file FWCheckedTextTableCellRenderer.h.
Referenced by draw(), isChecked(), and setChecked().