11 #include "boost/bind.hpp" 13 #include "TEveWindow.h" 14 #include "TGComboBox.h" 16 #include "TGTextEntry.h" 59 TGCompositeFrame *frame =
m_eveWindow->GetGUICompositeFrame();
61 m_vert =
new TGVerticalFrame(frame);
62 frame->AddFrame(
m_vert,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
70 m_tableWidget->Connect(
"columnClicked(Int_t,Int_t,Int_t)",
"FWTriggerTableView",
71 this,
"columnSelected(Int_t,Int_t,Int_t)");
74 frame->MapSubwindows();
82 TGCompositeFrame *frame =
m_eveWindow->GetGUICompositeFrame();
83 frame->RemoveFrame(
m_vert );
163 if( sortColumn !=
nullptr && descendingSort !=
nullptr )
166 bool descending = descendingSort->
version();
199 m_combo->AddEntry((*i).c_str(), cnt);
240 TGFrameElement* el = (TGFrameElement*) parent->GetList()->Last();
241 el->fLayout->SetLayoutHints(kLHintsNormal);
242 el->fFrame->Resize(180);
248 gui.
getTabContainer()->AddFrame(f,
new TGLayoutHints(kLHintsNormal, 2, 2,2,2 ));
253 f->AddFrame(
new TGLabel(f,
"Process"),
new TGLayoutHints(kLHintsLeft, 8,2,2,2));
257 m_combo->Connect(
"Selected(const char*)",
"FWTriggerTableView", tt,
"processChanged(const char*)");
279 size_t ss = textRenderer->
data().size();
280 if (widths[
c] < ss) widths[
c] = ss;
296 format.Form(
"%%%ds", (
int)widths[
c]);
299 printf(
"%s", data.Data());
301 printf(
"%s | ", data.Data());
312 format.Form(
"%%%ds", (
int)widths[
c]);
314 data.Form(format, textRenderer->
data().c_str());
316 printf(
"%s", data.Data());
318 printf(
"%s | ", data.Data());
int numberOfRows() const override
Number of rows in the table.
def splitter(iterator, n)
void addTo(FWConfiguration &) const override
Color_t m_backgroundColor
std::vector< Column > m_columns
int numberOfColumns() const override
Number of columns in the table.
virtual void fillTable(fwlite::Event *event)=0
FWStringParameter m_regex
ViewerParameterGUI & requestTab(const char *)
void setFrom(const FWConfiguration &iFrom) override
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const override
unsigned int version() const
~FWTriggerTableView(void) override
void addTo(FWConfiguration &) const override
FWTriggerTableView(TEveWindowSlot *, FWViewType::EType)
sigc::signal< void, T > changed_
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
static const std::string kDescendingSort
format
Some error handling for the usage.
base
Make Sure CMSSW is Setup ##.
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 populateController(ViewerParameterGUI &) 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
FWTriggerTableViewTableManager * m_tableManager
const FWConfiguration * valueForKey(const std::string &iKey) const
static const std::string kColumns
void saveImageTo(const std::string &iName) const override
FWViewType::EType typeId() const