#include <Fireworks/TableWidget/interface/FWColumnLabelCellRenderer.h>
Public Member Functions | |
virtual void | draw (Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) |
FWColumnLabelCellRenderer (const TGGC *iContext=&(getDefaultGC()), bool isSortable=true) | |
void | setSortOrder (fireworks::table::SortOrder) |
fireworks::table::SortOrder | sortOrder () const |
virtual UInt_t | width () const |
returns the minimum width of the cell to which the renderer is representing More... | |
virtual | ~FWColumnLabelCellRenderer () |
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 | |
virtual void | buttonEvent (Event_t *iClickEvent, int iRelClickX, int iRelClickY) |
FWTableCellRendererBase () | |
virtual | ~FWTableCellRendererBase () |
Private Attributes | |
bool | m_isSortable |
int | m_sizeOfOrderIcon |
int | m_sizeOfOrderIconStartX |
fireworks::table::SortOrder | m_sortOrder |
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: Cell Renderer which handles the labels at the top of columns
Usage: This renderer will draw both the text of the column's label and if the sort order has been set to kAscendingSort or kDescendingSort it will also draw the appropriate symbol denoting the sort order of the column.
Definition at line 30 of file FWColumnLabelCellRenderer.h.
FWColumnLabelCellRenderer::FWColumnLabelCellRenderer | ( | const TGGC * | iContext = &(getDefaultGC()) , |
bool | isSortable = true |
||
) |
Definition at line 34 of file FWColumnLabelCellRenderer.cc.
References FWTextTableCellRenderer::font(), m_isSortable, m_sizeOfOrderIcon, and m_sizeOfOrderIconStartX.
|
virtual |
Definition at line 61 of file FWColumnLabelCellRenderer.cc.
|
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 88 of file FWColumnLabelCellRenderer.cc.
References trackerHits::c, FWTextTableCellRenderer::draw(), FWTextTableCellRenderer::graphicsContext(), h, fireworks::table::kAscendingSort, kDescendingSort, kGap, m_isSortable, m_sizeOfOrderIcon, m_sizeOfOrderIconStartX, m_sortOrder, and table.
Referenced by Vispa.Gui.PortConnection.PointToPointConnection::paintEvent().
void FWColumnLabelCellRenderer::setSortOrder | ( | fireworks::table::SortOrder | iOrder | ) |
Definition at line 80 of file FWColumnLabelCellRenderer.cc.
References fireworks::table::kNotSorted, m_isSortable, and m_sortOrder.
Referenced by FWAdapterHeaderTableManager::cellRenderer().
fireworks::table::SortOrder FWColumnLabelCellRenderer::sortOrder | ( | ) | const |
Definition at line 119 of file FWColumnLabelCellRenderer.cc.
References m_sortOrder.
|
virtual |
returns the minimum width of the cell to which the renderer is representing
Reimplemented from FWTextTableCellRenderer.
Definition at line 124 of file FWColumnLabelCellRenderer.cc.
References kGap, m_isSortable, m_sizeOfOrderIcon, 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 55 of file FWColumnLabelCellRenderer.h.
|
private |
Definition at line 60 of file FWColumnLabelCellRenderer.h.
Referenced by draw(), FWColumnLabelCellRenderer(), setSortOrder(), and width().
|
private |
Definition at line 57 of file FWColumnLabelCellRenderer.h.
Referenced by draw(), FWColumnLabelCellRenderer(), and width().
|
private |
Definition at line 58 of file FWColumnLabelCellRenderer.h.
Referenced by draw(), and FWColumnLabelCellRenderer().
|
private |
Definition at line 56 of file FWColumnLabelCellRenderer.h.
Referenced by draw(), setSortOrder(), and sortOrder().