#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 *) |
ClassDefOverride (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=nullptr) | |
TGDimension | GetDefaultSize () const override |
void | MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override |
Bool_t | ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2) override |
void | Resize (UInt_t w, UInt_t h) override |
void | rowClicked (Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY) |
void | SetBackgroundColor (Pixel_t) override |
void | SetHeaderBackgroundColor (Pixel_t) |
void | SetHeaderForegroundColor (Pixel_t) |
void | SetLineSeparatorColor (Pixel_t) |
void | sort (UInt_t iColumn, bool iDescendingSort) |
int | sortedColumn () const |
~FWTableWidget () override | |
Protected Member Functions | |
void | DoRedraw () override |
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 = nullptr |
||
) |
Definition at line 39 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().
|
override |
Definition at line 133 of file FWTableWidget.cc.
References m_headerBackground, m_headerForeground, and m_lineSeparator.
|
inline |
Definition at line 90 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 465 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 345 of file FWTableWidget.cc.
References cellClicked(), 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 331 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 472 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 386 of file FWTableWidget.cc.
References writedatasetfile::args.
Referenced by buttonReleasedInBody().
void FWTableWidget::childrenEvent | ( | Event_t * | ) |
FWTableWidget::ClassDefOverride | ( | FWTableWidget | , |
0 | |||
) |
void FWTableWidget::Clicked | ( | ) |
Definition at line 401 of file FWTableWidget.cc.
Referenced by childrenEvent().
void FWTableWidget::columnClicked | ( | Int_t | iColumn, |
Int_t | iButton, | ||
Int_t | iKeyMod | ||
) |
Definition at line 415 of file FWTableWidget.cc.
References writedatasetfile::args.
Referenced by buttonReleasedInHeader().
void FWTableWidget::dataChanged | ( | void | ) |
Definition at line 425 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 88 of file FWTableWidget.h.
References m_descendingSort.
Referenced by FWTriggerTableView::addTo(), and FWTableView::addTo().
void FWTableWidget::disableGrowInWidth | ( | ) |
Definition at line 498 of file FWTableWidget.cc.
References FWTabularWidget::disableGrowInWidth(), m_body, m_header, and m_rowHeader.
Referenced by FWGUIEventDataAdder::createWindow(), FWPathsPopup::FWPathsPopup(), FWTableView::FWTableView(), and FWGeometryTableViewBase::postConst().
|
overrideprotected |
Definition at line 506 of file FWTableWidget.cc.
|
inline |
Definition at line 81 of file FWTableWidget.h.
References m_forceLayout.
Referenced by FWTableView::addColumn(), FWTableView::deleteColumn(), FWTableView::modifyColumn(), and FWTableView::selectCollection().
|
override |
Definition at line 483 of file FWTableWidget.cc.
References FWTabularWidget::GetDefaultSize(), m_body, m_header, m_hSlider, m_rowHeader, and m_vSlider.
|
private |
Definition at line 226 of file FWTableWidget.cc.
References spu::def(), FWTabularWidget::GetDefaultSize(), m_body, m_header, m_hSlider, m_rowHeader, m_showingHSlider, m_showingVSlider, m_vSlider, and w.
Referenced by dataChanged(), MoveResize(), and Resize().
|
override |
|
override |
Definition at line 297 of file FWTableWidget.cc.
References m_body, m_header, m_rowHeader, mps_check::msg, FWTabularWidget::setHorizontalOffset(), and FWTabularWidget::setVerticalOffset().
|
override |
Definition at line 221 of file FWTableWidget.cc.
References handleResize(), and w.
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 403 of file FWTableWidget.cc.
References writedatasetfile::args.
Referenced by buttonReleasedInBody().
|
override |
Definition at line 173 of file FWTableWidget.cc.
References hcaldqm::fClient, 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 188 of file FWTableWidget.cc.
References m_header, m_headerBackground, FWTabularWidget::setBackgroundAreaContext(), and submitPVValidationJobs::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 198 of file FWTableWidget.cc.
References m_header, m_headerForeground, FWTabularWidget::setLineContext(), and submitPVValidationJobs::t.
void FWTableWidget::SetLineSeparatorColor | ( | Pixel_t | iColor | ) |
Definition at line 209 of file FWTableWidget.cc.
References m_body, m_lineSeparator, m_rowHeader, FWTabularWidget::setLineContext(), and submitPVValidationJobs::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 161 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 87 of file FWTableWidget.h.
References m_sortedColumn.
Referenced by FWTriggerTableView::addTo(), and FWTableView::addTo().
|
private |
Definition at line 108 of file FWTableWidget.h.
Referenced by body(), buttonReleasedInBody(), dataChanged(), disableGrowInWidth(), FWTableWidget(), GetDefaultSize(), handleResize(), ProcessMessage(), SetBackgroundColor(), and SetLineSeparatorColor().
|
private |
Definition at line 104 of file FWTableWidget.h.
Referenced by buttonPressedInRowHeader(), buttonReleasedInBody(), buttonReleasedInRowHeader(), FWTableWidget(), and sort().
|
private |
Definition at line 116 of file FWTableWidget.h.
Referenced by buttonReleasedInHeader(), descendingSort(), and sort().
|
private |
Definition at line 117 of file FWTableWidget.h.
Referenced by dataChanged(), and forceLayout().
|
private |
Definition at line 107 of file FWTableWidget.h.
Referenced by dataChanged(), disableGrowInWidth(), FWTableWidget(), GetDefaultSize(), handleResize(), ProcessMessage(), SetBackgroundColor(), SetHeaderBackgroundColor(), and SetHeaderForegroundColor().
|
private |
Definition at line 119 of file FWTableWidget.h.
Referenced by SetHeaderBackgroundColor(), and ~FWTableWidget().
|
private |
Definition at line 120 of file FWTableWidget.h.
Referenced by SetHeaderForegroundColor(), and ~FWTableWidget().
|
private |
Definition at line 105 of file FWTableWidget.h.
Referenced by FWTableWidget(), and sort().
|
private |
Definition at line 111 of file FWTableWidget.h.
Referenced by FWTableWidget(), GetDefaultSize(), and handleResize().
|
private |
Definition at line 121 of file FWTableWidget.h.
Referenced by SetLineSeparatorColor(), and ~FWTableWidget().
|
private |
Definition at line 109 of file FWTableWidget.h.
Referenced by dataChanged(), disableGrowInWidth(), FWTableWidget(), GetDefaultSize(), handleResize(), ProcessMessage(), SetBackgroundColor(), and SetLineSeparatorColor().
|
private |
Definition at line 106 of file FWTableWidget.h.
Referenced by FWTableWidget(), and SetBackgroundColor().
|
private |
Definition at line 113 of file FWTableWidget.h.
Referenced by handleResize().
|
private |
Definition at line 112 of file FWTableWidget.h.
Referenced by handleResize().
|
private |
Definition at line 115 of file FWTableWidget.h.
Referenced by buttonReleasedInHeader(), sort(), and sortedColumn().
|
private |
Definition at line 110 of file FWTableWidget.h.
Referenced by buttonReleasedInBody(), FWTableWidget(), GetDefaultSize(), and handleResize().