13 #include "TEveWindow.h"
14 #include "TGComboBox.h"
16 #include "TGTextEntry.h"
17 #include "TVirtualX.h"
46 m_regex(this,
"Filter", std::
string()),
52 m_tableWidget(nullptr),
53 m_processList(nullptr) {
57 TGCompositeFrame* frame =
m_eveWindow->GetGUICompositeFrame();
59 m_vert =
new TGVerticalFrame(frame);
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();
79 TGCompositeFrame* frame =
m_eveWindow->GetGUICompositeFrame();
80 frame->RemoveFrame(
m_vert);
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]);
277 data.Form(format, textRenderer->
data().c_str());
279 printf(
"%s", data.Data());
281 printf(
"%s | ", data.Data());
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
Color_t m_backgroundColor
const edm::EventSetup & c
std::vector< Column > m_columns
virtual void fillTable(fwlite::Event *event)=0
int numberOfColumns() const override
Number of columns in the table.
FWStringParameter m_regex
ViewerParameterGUI & requestTab(const char *)
void setFrom(const FWConfiguration &iFrom) override
unsigned int version() const
~FWTriggerTableView(void) override
FWTriggerTableView(TEveWindowSlot *, FWViewType::EType)
unsigned int version() const
TGCompositeFrame * m_vert
bool isProcessValid() const
void setBackgroundColor(Color_t)
FWTableWidget * m_tableWidget
TEveWindowFrame * m_eveWindow
void setFrom(const FWConfiguration &) override
int numberOfRows() const override
Number of rows in the table.
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
static const std::string kDescendingSort
void populateController(ViewerParameterGUI &) const override
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
const std::string & value(unsigned int iIndex=0) const
const std::string & data()
const edm::EventBase * getCurrentEvent() const
static const std::string kSortColumn
void addTo(FWConfiguration &) const override
static FWGUIManager * getGUIManager()
void processChanged(const char *)
FWStringParameter m_process
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
void columnSelected(Int_t iCol, Int_t iButton, Int_t iKeyMod)
char data[epos_bytes_allocation]
std::vector< std::string > * m_processList
void saveImageTo(const std::string &iName) const override
FWTriggerTableViewTableManager * m_tableManager
const FWConfiguration * valueForKey(const std::string &iKey) const
sigc::signal< void(T)> changed_
void addTo(FWConfiguration &) const override
static const std::string kColumns
FWViewType::EType typeId() const