|
|
Go to the documentation of this file.
11 #include "boost/bind.hpp"
13 #include "TEveWindow.h"
14 #include "TGComboBox.h"
16 #include "TGTextEntry.h"
17 #include "TVirtualX.h"
52 m_tableWidget(nullptr),
53 m_processList(nullptr) {
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();
147 if (sortColumn !=
nullptr && descendingSort !=
nullptr) {
148 unsigned int sort = sortColumn->
version();
149 bool descending = descendingSort->
version();
178 m_combo->AddEntry((*i).c_str(), cnt);
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*)");
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());
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
void addTo(FWConfiguration &) const override
TEveWindowFrame * m_eveWindow
FWStringParameter m_regex
void processChanged(const char *)
Color_t m_backgroundColor
~FWTriggerTableView(void) override
FWViewType::EType typeId() const
sigc::signal< void, T > changed_
FWStringParameter m_process
void populateController(ViewerParameterGUI &) const override
FWTableWidget * m_tableWidget
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
bool isProcessValid() const
const std::string & value(unsigned int iIndex=0) const
void setBackgroundColor(Color_t)
static const std::string kDescendingSort
TGCompositeFrame * getTabContainer()
void columnSelected(Int_t iCol, Int_t iButton, Int_t iKeyMod)
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
virtual void fillTable(fwlite::Event *event)=0
char data[epos_bytes_allocation]
void saveImageTo(const std::string &iName) const override
FWTriggerTableView(TEveWindowSlot *, FWViewType::EType)
FWTriggerTableViewTableManager * m_tableManager
void setFrom(const FWConfiguration &) override
ViewerParameterGUI & addParam(const FWParameterBase *)
static const std::string kColumns
ViewerParameterGUI & requestTab(const char *)