#include <Fireworks/TableWidget/interface/FWTableWidget.h>
Public Member Functions | |
FWTabularWidget * | body () |
void | buttonPressedInRowHeader (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY) |
void | buttonReleasedInBody (Int_t row, Int_t column, Event_t *event, Int_t, Int_t) |
void | buttonReleasedInHeader (Int_t row, Int_t column, Event_t *event, Int_t, Int_t) |
void | buttonReleasedInRowHeader (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY) |
void | cellClicked (Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY) |
void | childrenEvent (Event_t *) |
ClassDef (FWTableWidget, 0) | |
void | Clicked () |
void | columnClicked (Int_t iColumn, Int_t iButton, Int_t iKeyMod) |
void | dataChanged () |
bool | descendingSort () const |
void | disableGrowInWidth () |
void | forceLayout () |
FWTableWidget (FWTableManagerBase *iManager, const TGWindow *p=0) | |
TGDimension | GetDefaultSize () const |
virtual void | MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) |
virtual Bool_t | ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2) |
virtual void | Resize (UInt_t w, UInt_t h) |
void | rowClicked (Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY) |
void | SetBackgroundColor (Pixel_t) |
void | SetHeaderBackgroundColor (Pixel_t) |
void | SetHeaderForegroundColor (Pixel_t) |
void | SetLineSeparatorColor (Pixel_t) |
void | sort (UInt_t iColumn, bool iDescendingSort) |
int | sortedColumn () const |
virtual | ~FWTableWidget () |
Protected Member Functions | |
virtual void | DoRedraw () |
Private Member Functions | |
bool | handleResize (UInt_t w, UInt_t h) |
Private Attributes | |
FWTabularWidget * | m_body |
FWTableManagerBase * | m_bodyTable |
bool | m_descendingSort |
bool | m_forceLayout |
FWTabularWidget * | m_header |
TGGC * | m_headerBackground |
TGGC * | m_headerForeground |
FWTableManagerBase * | m_headerTable |
TGHScrollBar * | m_hSlider |
TGGC * | m_lineSeparator |
FWTabularWidget * | m_rowHeader |
FWTableManagerBase * | m_rowHeaderTable |
bool | m_showingHSlider |
bool | m_showingVSlider |
int | m_sortedColumn |
TGVScrollBar * | m_vSlider |
Description: ROOT widget for representing data in a tabular form where the data is accessed via a FWTableManagerBase
Usage: This widget creates a table made up of cells where the representation of the cells is controlled by the FWTableManagerBase instance passed to the FWTableWidget's constructor. If the data for the FWTableManagerBase changes, the view is automatically updated. See the documentation for FWTableManagerBase for further details.
Definition at line 35 of file FWTableWidget.h.
FWTableWidget::FWTableWidget | ( | FWTableManagerBase * | iManager, |
const TGWindow * | p = 0 |
||
) |
Definition at line 40 of file FWTableWidget.cc.
References FWTableManagerBase::cellDataIsSortable(), kColOptions, kRowOptions, m_body, m_bodyTable, m_header, m_headerTable, m_hSlider, m_rowHeader, m_rowHeaderTable, m_vSlider, FWTabularWidget::setWidthOfTextInColumns(), and FWTabularWidget::widthOfTextInColumns().
|
virtual |
Definition at line 118 of file FWTableWidget.cc.
References m_headerBackground, m_headerForeground, and m_lineSeparator.
|
inline |
Definition at line 92 of file FWTableWidget.h.
References m_body.
Referenced by FWPathsPopup::FWPathsPopup(), FWGeometryTableViewBase::postConst(), and FWPathsPopup::postEvent().
void FWTableWidget::buttonPressedInRowHeader | ( | Int_t | row, |
Int_t | column, | ||
Event_t * | event, | ||
Int_t | relX, | ||
Int_t | relY | ||
) |
Definition at line 484 of file FWTableWidget.cc.
References FWTableManagerBase::buttonReleasedInRowHeader(), and m_bodyTable.
void FWTableWidget::buttonReleasedInBody | ( | Int_t | row, |
Int_t | column, | ||
Event_t * | event, | ||
Int_t | iRelX, | ||
Int_t | iRelY | ||
) |
Definition at line 354 of file FWTableWidget.cc.
References cellClicked(), column, m_body, m_bodyTable, m_vSlider, AlCaHLTBitMon_ParallelJobs::p, rowClicked(), and FWTableManagerBase::unsortedRowNumber().
void FWTableWidget::buttonReleasedInHeader | ( | Int_t | row, |
Int_t | column, | ||
Event_t * | event, | ||
Int_t | , | ||
Int_t | |||
) |
Definition at line 338 of file FWTableWidget.cc.
References columnClicked(), m_descendingSort, m_sortedColumn, and sort().
void FWTableWidget::buttonReleasedInRowHeader | ( | Int_t | row, |
Int_t | column, | ||
Event_t * | event, | ||
Int_t | relX, | ||
Int_t | relY | ||
) |
Definition at line 491 of file FWTableWidget.cc.
References FWTableManagerBase::buttonReleasedInRowHeader(), and m_bodyTable.
void FWTableWidget::cellClicked | ( | Int_t | iRow, |
Int_t | iColumn, | ||
Int_t | iButton, | ||
Int_t | iKeyMod, | ||
Int_t | iGlobalX, | ||
Int_t | iGlobalY | ||
) |
Definition at line 392 of file FWTableWidget.cc.
References ExtractAppInfoFromXML::args.
Referenced by buttonReleasedInBody().
void FWTableWidget::childrenEvent | ( | Event_t * | ) |
Definition at line 407 of file FWTableWidget.cc.
References Clicked().
FWTableWidget::ClassDef | ( | FWTableWidget | , |
0 | |||
) |
void FWTableWidget::Clicked | ( | ) |
Definition at line 413 of file FWTableWidget.cc.
Referenced by childrenEvent().
void FWTableWidget::columnClicked | ( | Int_t | iColumn, |
Int_t | iButton, | ||
Int_t | iKeyMod | ||
) |
Definition at line 433 of file FWTableWidget.cc.
References ExtractAppInfoFromXML::args.
Referenced by buttonReleasedInHeader().
void FWTableWidget::dataChanged | ( | void | ) |
Definition at line 445 of file FWTableWidget.cc.
References FWTabularWidget::dataChanged(), handleResize(), m_body, m_forceLayout, m_header, m_rowHeader, FWTabularWidget::setWidthOfTextInColumns(), and FWTabularWidget::widthOfTextInColumns().
Referenced by FWTableViewTableManager::implSort().
|
inline |
Definition at line 90 of file FWTableWidget.h.
References m_descendingSort.
Referenced by FWTriggerTableView::addTo(), and FWTableView::addTo().
void FWTableWidget::disableGrowInWidth | ( | ) |
Definition at line 519 of file FWTableWidget.cc.
References FWTabularWidget::disableGrowInWidth(), m_body, m_header, and m_rowHeader.
Referenced by FWGUIEventDataAdder::createWindow(), FWPathsPopup::FWPathsPopup(), and FWGeometryTableViewBase::postConst().
|
protectedvirtual |
Definition at line 527 of file FWTableWidget.cc.
|
inline |
Definition at line 83 of file FWTableWidget.h.
References m_forceLayout.
Referenced by FWTableView::addColumn(), FWTableView::deleteColumn(), FWTableView::modifyColumn(), and FWTableView::selectCollection().
TGDimension FWTableWidget::GetDefaultSize | ( | ) | const |
Definition at line 502 of file FWTableWidget.cc.
References FWTabularWidget::GetDefaultSize(), m_body, m_header, m_hSlider, m_rowHeader, and m_vSlider.
|
private |
Definition at line 227 of file FWTableWidget.cc.
References def, FWTabularWidget::GetDefaultSize(), m_body, m_header, m_hSlider, m_rowHeader, m_showingHSlider, m_showingVSlider, and m_vSlider.
Referenced by dataChanged(), MoveResize(), and Resize().
|
virtual |
Definition at line 292 of file FWTableWidget.cc.
References handleResize().
|
virtual |
Definition at line 302 of file FWTableWidget.cc.
References m_body, m_header, m_rowHeader, FWTabularWidget::setHorizontalOffset(), and FWTabularWidget::setVerticalOffset().
|
virtual |
Definition at line 220 of file FWTableWidget.cc.
References handleResize().
Referenced by FWCollectionSummaryWidget::toggleShowHide().
void FWTableWidget::rowClicked | ( | Int_t | iRow, |
Int_t | iButton, | ||
Int_t | iKeyMod, | ||
Int_t | iGlobalX, | ||
Int_t | iGlobalY | ||
) |
This signal is emitted if the mouse button is 'clicked' while the cursor was over a row. Arguments: iRow: the unsorted row number (natural ordering) of the row clicked iButton: the ROOT button value for the click event (e.g. says which button used) iKeyMod: the ROOT key modifier value for the click event (e.g. says if a keyboard key was being held) iGlobalX: the X coordinate of the click in global coordinates iGlobalY: the Y coordinate of the click in global coordinates
Definition at line 419 of file FWTableWidget.cc.
References ExtractAppInfoFromXML::args.
Referenced by buttonReleasedInBody().
void FWTableWidget::SetBackgroundColor | ( | Pixel_t | iColor | ) |
Definition at line 163 of file FWTableWidget.cc.
References m_body, m_header, m_rowHeader, and m_rowHeaderTable.
Referenced by FWCollectionSummaryWidget::colorTable(), FWGUIEventDataAdder::createWindow(), FWPathsPopup::FWPathsPopup(), FWGeometryTableViewBase::postConst(), FWTableView::resetColors(), FWTriggerTableView::setBackgroundColor(), FWTableView::setBackgroundColor(), and FWGeometryTableViewBase::setBackgroundColor().
void FWTableWidget::SetHeaderBackgroundColor | ( | Pixel_t | iColor | ) |
Definition at line 180 of file FWTableWidget.cc.
References m_header, m_headerBackground, FWTabularWidget::setBackgroundAreaContext(), and edmStreamStallGrapher::t.
Referenced by FWGUIEventDataAdder::createWindow(), FWPathsPopup::FWPathsPopup(), FWTableView::FWTableView(), FWTriggerTableView::FWTriggerTableView(), FWGeometryTableViewBase::postConst(), and FWCollectionSummaryWidget::toggleShowHide().
void FWTableWidget::SetHeaderForegroundColor | ( | Pixel_t | iColor | ) |
Definition at line 192 of file FWTableWidget.cc.
References m_header, m_headerForeground, FWTabularWidget::setLineContext(), and edmStreamStallGrapher::t.
void FWTableWidget::SetLineSeparatorColor | ( | Pixel_t | iColor | ) |
Definition at line 205 of file FWTableWidget.cc.
References m_body, m_lineSeparator, m_rowHeader, FWTabularWidget::setLineContext(), and edmStreamStallGrapher::t.
Referenced by FWCollectionSummaryWidget::colorTable(), FWGUIEventDataAdder::createWindow(), FWPathsPopup::FWPathsPopup(), FWGeometryTableViewBase::postConst(), FWTableView::resetColors(), FWTriggerTableView::setBackgroundColor(), and FWGeometryTableViewBase::setBackgroundColor().
void FWTableWidget::sort | ( | UInt_t | iColumn, |
bool | iDescendingSort | ||
) |
Sorts the rows of data in the table based on values in column iColumn. If iDescendingSort is 'true' then the rows are sorted in descending order of the values.
Definition at line 149 of file FWTableWidget.cc.
References m_bodyTable, m_descendingSort, m_headerTable, m_sortedColumn, and FWTableManagerBase::sort().
Referenced by buttonReleasedInHeader(), FWTriggerTableView::setFrom(), and FWTableView::setFrom().
|
inline |
Definition at line 89 of file FWTableWidget.h.
References m_sortedColumn.
Referenced by FWTriggerTableView::addTo(), and FWTableView::addTo().
|
private |
Definition at line 110 of file FWTableWidget.h.
Referenced by body(), buttonReleasedInBody(), dataChanged(), disableGrowInWidth(), FWTableWidget(), GetDefaultSize(), handleResize(), ProcessMessage(), SetBackgroundColor(), and SetLineSeparatorColor().
|
private |
Definition at line 106 of file FWTableWidget.h.
Referenced by buttonPressedInRowHeader(), buttonReleasedInBody(), buttonReleasedInRowHeader(), FWTableWidget(), and sort().
|
private |
Definition at line 118 of file FWTableWidget.h.
Referenced by buttonReleasedInHeader(), descendingSort(), and sort().
|
private |
Definition at line 119 of file FWTableWidget.h.
Referenced by dataChanged(), and forceLayout().
|
private |
Definition at line 109 of file FWTableWidget.h.
Referenced by dataChanged(), disableGrowInWidth(), FWTableWidget(), GetDefaultSize(), handleResize(), ProcessMessage(), SetBackgroundColor(), SetHeaderBackgroundColor(), and SetHeaderForegroundColor().
|
private |
Definition at line 121 of file FWTableWidget.h.
Referenced by SetHeaderBackgroundColor(), and ~FWTableWidget().
|
private |
Definition at line 122 of file FWTableWidget.h.
Referenced by SetHeaderForegroundColor(), and ~FWTableWidget().
|
private |
Definition at line 107 of file FWTableWidget.h.
Referenced by FWTableWidget(), and sort().
|
private |
Definition at line 113 of file FWTableWidget.h.
Referenced by FWTableWidget(), GetDefaultSize(), and handleResize().
|
private |
Definition at line 123 of file FWTableWidget.h.
Referenced by SetLineSeparatorColor(), and ~FWTableWidget().
|
private |
Definition at line 111 of file FWTableWidget.h.
Referenced by dataChanged(), disableGrowInWidth(), FWTableWidget(), GetDefaultSize(), handleResize(), ProcessMessage(), SetBackgroundColor(), and SetLineSeparatorColor().
|
private |
Definition at line 108 of file FWTableWidget.h.
Referenced by FWTableWidget(), and SetBackgroundColor().
|
private |
Definition at line 115 of file FWTableWidget.h.
Referenced by handleResize().
|
private |
Definition at line 114 of file FWTableWidget.h.
Referenced by handleResize().
|
private |
Definition at line 117 of file FWTableWidget.h.
Referenced by buttonReleasedInHeader(), sort(), and sortedColumn().
|
private |
Definition at line 112 of file FWTableWidget.h.
Referenced by buttonReleasedInBody(), FWTableWidget(), GetDefaultSize(), and handleResize().