|
|
#include <FWTriggerTableView.h>
Definition at line 31 of file FWTriggerTableView.h.
◆ FWTriggerTableView() [1/2]
FWTriggerTableView::FWTriggerTableView |
( |
TEveWindowSlot * |
iParent, |
|
|
FWViewType::EType |
id |
|
) |
| |
Definition at line 44 of file FWTriggerTableView.cc.
60 frame->AddFrame(
m_vert,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
69 "columnClicked(Int_t,Int_t,Int_t)",
"FWTriggerTableView",
this,
"columnSelected(Int_t,Int_t,Int_t)");
72 frame->MapSubwindows();
References FWGenericParameter< T >::changed_, dataChanged(), amptDefault_cfi::frame, m_columns, m_eveWindow, m_regex, m_tableManager, m_tableWidget, m_vert, and FWTableWidget::SetHeaderBackgroundColor().
◆ ~FWTriggerTableView()
FWTriggerTableView::~FWTriggerTableView |
( |
void |
| ) |
|
|
override |
◆ FWTriggerTableView() [2/2]
◆ addTo()
◆ backgroundColor()
Color_t FWTriggerTableView::backgroundColor |
( |
| ) |
const |
|
inline |
◆ columnSelected()
void FWTriggerTableView::columnSelected |
( |
Int_t |
iCol, |
|
|
Int_t |
iButton, |
|
|
Int_t |
iKeyMod |
|
) |
| |
◆ dataChanged()
void FWTriggerTableView::dataChanged |
( |
void |
| ) |
|
◆ fillTable()
virtual void FWTriggerTableView::fillTable |
( |
fwlite::Event * |
event | ) |
|
|
protectedpure virtual |
◆ isProcessValid()
bool FWTriggerTableView::isProcessValid |
( |
| ) |
const |
|
private |
◆ operator=()
◆ populateController()
Reimplemented from FWViewBase.
Definition at line 206 of file FWTriggerTableView.cc.
211 TGFrameElement* el = (TGFrameElement*)
parent->GetList()->Last();
212 el->fLayout->SetLayoutHints(kLHintsNormal);
213 el->fFrame->Resize(180);
218 gui.
getTabContainer()->AddFrame(
f,
new TGLayoutHints(kLHintsNormal, 2, 2, 2, 2));
223 f->AddFrame(
new TGLabel(
f,
"Process"),
new TGLayoutHints(kLHintsLeft, 8, 2, 2, 2));
227 m_combo->Connect(
"Selected(const char*)",
"FWTriggerTableView",
tt,
"processChanged(const char*)");
References ViewerParameterGUI::addParam(), f, ViewerParameterGUI::getTabContainer(), FWViewType::kTableHLT, m_combo, m_regex, class-composition::parent, ViewerParameterGUI::requestTab(), resetCombo(), groupFilesInBlocks::tt, and FWViewBase::typeId().
◆ processChanged()
void FWTriggerTableView::processChanged |
( |
const char * |
x | ) |
|
◆ resetCombo()
void FWTriggerTableView::resetCombo |
( |
| ) |
const |
◆ saveImageTo()
void FWTriggerTableView::saveImageTo |
( |
const std::string & |
iName | ) |
const |
|
overridevirtual |
Implements FWViewBase.
Definition at line 231 of file FWTriggerTableView.cc.
245 size_t ss = textRenderer->
data().size();
261 format.Form(
"%%%ds", (
int)widths[
c]);
264 printf(
"%s",
data.Data());
266 printf(
"%s | ",
data.Data());
275 format.Form(
"%%%ds", (
int)widths[
c]);
279 printf(
"%s",
data.Data());
281 printf(
"%s | ",
data.Data());
References HltBtagPostValidation_cff::c, FWTriggerTableViewTableManager::cellRenderer(), gather_cfg::cout, FWTextTableCellRenderer::data(), data, dqm-mbProfile::format, m_columns, m_tableManager, FWTriggerTableViewTableManager::numberOfColumns(), FWTriggerTableViewTableManager::numberOfRows(), alignCSCRings::r, confdb::splitter(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.
◆ setBackgroundColor()
void FWTriggerTableView::setBackgroundColor |
( |
Color_t |
iColor | ) |
|
◆ setFrom()
Reimplemented from FWConfigurableParameterizable.
Definition at line 134 of file FWTriggerTableView.cc.
147 if (sortColumn !=
nullptr && descendingSort !=
nullptr) {
148 unsigned int sort = sortColumn->
version();
149 bool descending = descendingSort->
version();
References kDescendingSort, kSortColumn, FWViewType::kTableHLT, m_process, m_regex, m_tableManager, m_tableWidget, FWTriggerTableViewTableManager::numberOfColumns(), FWGenericParameter< T >::setFrom(), FWTableWidget::sort(), FWViewBase::typeId(), FWConfiguration::value(), FWGenericParameter< T >::value(), FWConfiguration::valueForKey(), FWConfigurableParameterizable::version(), and FWConfiguration::version().
◆ setProcessList()
void FWTriggerTableView::setProcessList |
( |
std::vector< std::string > * |
x | ) |
|
|
inline |
◆ FWTriggerTableViewTableManager
◆ m_backgroundColor
Color_t FWTriggerTableView::m_backgroundColor |
|
private |
◆ m_columns
std::vector<Column> FWTriggerTableView::m_columns |
|
protected |
Definition at line 67 of file FWTriggerTableView.h.
Referenced by FWTriggerTableViewTableManager::cellRenderer(), dataChanged(), FWL1TriggerTableView::fillTable(), FWHLTTriggerTableView::fillTable(), FWHLTTriggerTableView::FWHLTTriggerTableView(), FWL1TriggerTableView::FWL1TriggerTableView(), FWTriggerTableView(), FWTriggerTableViewTableManager::getTitles(), FWTriggerTableViewTableManager::implSort(), FWTriggerTableViewTableManager::numberOfColumns(), FWTriggerTableViewTableManager::numberOfRows(), and saveImageTo().
◆ m_combo
TGComboBox* FWTriggerTableView::m_combo |
|
mutableprivate |
◆ m_eveWindow
TEveWindowFrame* FWTriggerTableView::m_eveWindow |
|
private |
◆ m_process
◆ m_processList
std::vector<std::string>* FWTriggerTableView::m_processList |
|
private |
◆ m_regex
◆ m_tableManager
◆ m_tableWidget
◆ m_vert
TGCompositeFrame* FWTriggerTableView::m_vert |
|
private |
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
TEveWindowFrame * m_eveWindow
FWStringParameter m_regex
Color_t m_backgroundColor
FWViewType::EType typeId() const
sigc::signal< void, T > changed_
FWStringParameter m_process
FWTableWidget * m_tableWidget
friend class FWTriggerTableViewTableManager
int numberOfColumns() const override
Number of columns in the table.
const FWConfiguration * valueForKey(const std::string &iKey) const
def splitter(iterator, n)
static const std::string kSortColumn
const std::string & value(unsigned int iIndex=0) const
static const std::string kDescendingSort
TGCompositeFrame * getTabContainer()
void setFrom(const FWConfiguration &iFrom) override
std::vector< Column > m_columns
const std::string & data()
std::vector< std::string > * m_processList
TGCompositeFrame * m_vert
unsigned int version() const
static FWGUIManager * getGUIManager()
int numberOfRows() const override
Number of rows in the table.
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
void addTo(FWConfiguration &) const override
unsigned int version() const
FWViewBase(FWViewType::EType, unsigned int iVersion=1)
virtual void fillTable(fwlite::Event *event)=0
char data[epos_bytes_allocation]
FWTriggerTableViewTableManager * m_tableManager
ViewerParameterGUI & addParam(const FWParameterBase *)
ViewerParameterGUI & requestTab(const char *)