#include <Fireworks/TableWidget/interface/FWTabularWidget.h>
Public Member Functions | |
void | buttonPressed (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY) |
void | buttonReleased (Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY) |
ClassDefOverride (FWTabularWidget, 0) | |
void | dataChanged () |
void | disableGrowInWidth () |
void | DoRedraw () override |
FWTabularWidget (FWTableManagerBase *iManager, const TGWindow *p=nullptr, GContext_t context=getDefaultGC()()) | |
TGDimension | GetDefaultSize () const override |
Bool_t | HandleButton (Event_t *event) override |
UInt_t | horizontalOffset () const |
void | needToRedraw () |
void | setBackgroundAreaContext (GContext_t iContext) |
void | setHorizontalOffset (UInt_t) |
void | setLineContext (GContext_t iContext) |
void | setVerticalOffset (UInt_t) |
void | setWidthOfTextInColumns (const std::vector< unsigned int > &) |
UInt_t | verticalOffset () const |
const std::vector< unsigned int > & | widthOfTextInColumns () const |
~FWTabularWidget () override | |
Static Public Member Functions | |
static const TGGC & | getDefaultGC () |
Static Public Attributes | |
static const int | kSeperatorWidth = 1 |
static const int | kTextBuffer = 2 |
Private Member Functions | |
void | translateToRowColumn (Int_t iX, Int_t iY, Int_t &oRow, Int_t &oCol, Int_t &oRelX, Int_t &oRelY) const |
Private Attributes | |
GContext_t | m_backgroundGC |
bool | m_growInWidth |
unsigned int | m_hOffset |
GContext_t | m_normGC |
FWTableManagerBase * | m_table |
int | m_tableWidth |
int | m_textHeight |
unsigned int | m_vOffset |
std::vector< unsigned int > | m_widthOfTextInColumns |
std::vector< unsigned int > | m_widthOfTextInColumnsMax |
Description: Widget that draws part of a table [Implementation detail of FWTableWidget]
Usage: This class is used internally by FWTableWidget.
Definition at line 30 of file FWTabularWidget.h.
FWTabularWidget::FWTabularWidget | ( | FWTableManagerBase * | iManager, |
const TGWindow * | p = nullptr , |
||
GContext_t | context = getDefaultGC()() |
||
) |
Definition at line 39 of file FWTabularWidget.cc.
References FWTableManagerBase::cellHeight(), WDecay::kNone, kSeperatorWidth, kTextBuffer, m_table, m_tableWidth, m_textHeight, m_widthOfTextInColumns, and FWTableManagerBase::maxWidthForColumns().
|
override |
void FWTabularWidget::buttonPressed | ( | Int_t | row, |
Int_t | column, | ||
Event_t * | event, | ||
Int_t | relX, | ||
Int_t | relY | ||
) |
Definition at line 221 of file FWTabularWidget.cc.
References writedatasetfile::args.
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), HandleButton(), and horizontalOffset().
void FWTabularWidget::buttonReleased | ( | Int_t | row, |
Int_t | column, | ||
Event_t * | event, | ||
Int_t | relX, | ||
Int_t | relY | ||
) |
Definition at line 233 of file FWTabularWidget.cc.
References writedatasetfile::args.
Referenced by HandleButton(), and horizontalOffset().
FWTabularWidget::ClassDefOverride | ( | FWTabularWidget | , |
0 | |||
) |
Referenced by horizontalOffset().
void FWTabularWidget::dataChanged | ( | void | ) |
Definition at line 91 of file FWTabularWidget.cc.
References FWTableManagerBase::cellHeight(), m_table, m_textHeight, FWTableManagerBase::maxWidthForColumns(), and setWidthOfTextInColumns().
Referenced by FWTableWidget::dataChanged(), and horizontalOffset().
|
inline |
Definition at line 70 of file FWTabularWidget.h.
References m_growInWidth, and translateToRowColumn().
Referenced by FWTableWidget::disableGrowInWidth().
|
override |
Definition at line 246 of file FWTabularWidget.cc.
References FWTableManagerBase::cellRenderer(), cuy::col, FWTableCellRendererBase::draw(), kSeperatorWidth, kTextBuffer, m_backgroundGC, m_hOffset, m_normGC, m_table, m_tableWidth, m_textHeight, m_vOffset, m_widthOfTextInColumns, FWTableManagerBase::numberOfRows(), translateToRowColumn(), x, and y.
Referenced by horizontalOffset(), and FWPathsPopup::postEvent().
|
static |
Definition at line 354 of file FWTabularWidget.cc.
References ClassImp().
|
override |
Definition at line 333 of file FWTabularWidget.cc.
References h, kSeperatorWidth, kTextBuffer, m_table, m_tableWidth, m_textHeight, FWTableManagerBase::numberOfRows(), and w.
Referenced by FWTableWidget::GetDefaultSize(), FWTableWidget::handleResize(), and horizontalOffset().
|
override |
Definition at line 151 of file FWTabularWidget.cc.
References FWTableCellRendererBase::buttonEvent(), buttonPressed(), buttonReleased(), FWTableManagerBase::cellRenderer(), cuy::col, m_table, and translateToRowColumn().
Referenced by horizontalOffset().
|
inline |
Definition at line 45 of file FWTabularWidget.h.
References buttonPressed(), buttonReleased(), ClassDefOverride(), dataChanged(), DoRedraw(), GetDefaultSize(), HandleButton(), m_hOffset, needToRedraw(), setBackgroundAreaContext(), setHorizontalOffset(), setLineContext(), setVerticalOffset(), and setWidthOfTextInColumns().
void FWTabularWidget::needToRedraw | ( | ) |
Definition at line 98 of file FWTabularWidget.cc.
References hcaldqm::fClient.
Referenced by horizontalOffset().
void FWTabularWidget::setBackgroundAreaContext | ( | GContext_t | iContext | ) |
Definition at line 324 of file FWTabularWidget.cc.
References m_backgroundGC.
Referenced by horizontalOffset(), and FWTableWidget::SetHeaderBackgroundColor().
void FWTabularWidget::setHorizontalOffset | ( | UInt_t | iH | ) |
Definition at line 142 of file FWTabularWidget.cc.
References hcaldqm::fClient, and m_hOffset.
Referenced by horizontalOffset(), and FWTableWidget::ProcessMessage().
void FWTabularWidget::setLineContext | ( | GContext_t | iContext | ) |
Definition at line 319 of file FWTabularWidget.cc.
References m_normGC.
Referenced by horizontalOffset(), FWTableWidget::SetHeaderForegroundColor(), and FWTableWidget::SetLineSeparatorColor().
void FWTabularWidget::setVerticalOffset | ( | UInt_t | iV | ) |
Definition at line 134 of file FWTabularWidget.cc.
References hcaldqm::fClient, and m_vOffset.
Referenced by horizontalOffset(), and FWTableWidget::ProcessMessage().
void FWTabularWidget::setWidthOfTextInColumns | ( | const std::vector< unsigned int > & | iNew | ) |
Definition at line 105 of file FWTabularWidget.cc.
References gen::k, kSeperatorWidth, kTextBuffer, m_growInWidth, m_table, m_tableWidth, m_widthOfTextInColumns, m_widthOfTextInColumnsMax, and FWTableManagerBase::numberOfColumns().
Referenced by dataChanged(), FWTableWidget::dataChanged(), FWTableWidget::FWTableWidget(), and horizontalOffset().
|
private |
Definition at line 183 of file FWTabularWidget.cc.
References createfilelist::int, kSeperatorWidth, kTextBuffer, m_hOffset, m_table, m_tableWidth, m_textHeight, m_vOffset, m_widthOfTextInColumns, and FWTableManagerBase::numberOfRows().
Referenced by disableGrowInWidth(), DoRedraw(), and HandleButton().
|
inline |
|
inline |
Definition at line 43 of file FWTabularWidget.h.
References m_widthOfTextInColumns.
Referenced by FWTableWidget::dataChanged(), and FWTableWidget::FWTableWidget().
|
static |
Definition at line 37 of file FWTabularWidget.h.
Referenced by DoRedraw(), FWTabularWidget(), GetDefaultSize(), setWidthOfTextInColumns(), and translateToRowColumn().
|
static |
Definition at line 36 of file FWTabularWidget.h.
Referenced by DoRedraw(), FWTextTableCellRenderer::draw(), FWTextTreeCellRenderer::draw(), FWGeometryTableManagerBase::ColorBoxRenderer::draw(), FWTabularWidget(), GetDefaultSize(), setWidthOfTextInColumns(), and translateToRowColumn().
|
private |
Definition at line 91 of file FWTabularWidget.h.
Referenced by DoRedraw(), and setBackgroundAreaContext().
|
private |
Definition at line 93 of file FWTabularWidget.h.
Referenced by disableGrowInWidth(), and setWidthOfTextInColumns().
|
private |
Definition at line 88 of file FWTabularWidget.h.
Referenced by DoRedraw(), horizontalOffset(), setHorizontalOffset(), and translateToRowColumn().
|
private |
Definition at line 90 of file FWTabularWidget.h.
Referenced by DoRedraw(), and setLineContext().
|
private |
Definition at line 81 of file FWTabularWidget.h.
Referenced by dataChanged(), DoRedraw(), FWTabularWidget(), GetDefaultSize(), HandleButton(), setWidthOfTextInColumns(), translateToRowColumn(), and ~FWTabularWidget().
|
private |
Definition at line 85 of file FWTabularWidget.h.
Referenced by DoRedraw(), FWTabularWidget(), GetDefaultSize(), setWidthOfTextInColumns(), and translateToRowColumn().
|
private |
Definition at line 84 of file FWTabularWidget.h.
Referenced by dataChanged(), DoRedraw(), FWTabularWidget(), GetDefaultSize(), and translateToRowColumn().
|
private |
Definition at line 87 of file FWTabularWidget.h.
Referenced by DoRedraw(), setVerticalOffset(), translateToRowColumn(), and verticalOffset().
|
private |
Definition at line 82 of file FWTabularWidget.h.
Referenced by DoRedraw(), FWTabularWidget(), setWidthOfTextInColumns(), translateToRowColumn(), and widthOfTextInColumns().
|
private |
Definition at line 83 of file FWTabularWidget.h.
Referenced by setWidthOfTextInColumns().