CMS 3D CMS Logo

FWTriggerTableView.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWTriggerTableView_h
3 #define Fireworks_Core_FWTriggerTableView_h
4 //
5 // Package: Core
6 // Class : FWTriggerTableView
7 //
8 
9 // system include files
10 #include "Rtypes.h"
11 
12 // user include files
15 
16 #include <boost/unordered_map.hpp>
17 
18 // forward declarations
19 class TGFrame;
20 class TGCompositeFrame;
21 class FWTableWidget;
22 class TGComboBox;
23 class TEveWindowFrame;
24 class TEveWindowSlot;
28 
29 namespace fwlite {
30  class Event;
31 }
32 
35 
36 public:
37  struct Column {
39  std::vector<std::string> values;
40  Column(const std::string& s) : title(s) {}
41  };
42 
43  FWTriggerTableView(TEveWindowSlot*, FWViewType::EType);
44  ~FWTriggerTableView(void) override;
45 
46  // ---------- const member functions ---------------------
47  void addTo(FWConfiguration&) const override;
48  void saveImageTo(const std::string& iName) const override;
49  Color_t backgroundColor() const { return m_backgroundColor; }
50 
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54  void setFrom(const FWConfiguration&) override;
55  void setBackgroundColor(Color_t);
56  //void resetColors( const class FWColorManager& );
57  void dataChanged(void);
58  void columnSelected(Int_t iCol, Int_t iButton, Int_t iKeyMod);
59 
60  void setProcessList(std::vector<std::string>* x) { m_processList = x; }
61  void resetCombo() const;
62  // void processChanged(Int_t);
63  void processChanged(const char*);
64 
65 protected:
68 
69  std::vector<Column> m_columns;
71 
72  virtual void fillTable(fwlite::Event* event) = 0;
73 
74 private:
75  FWTriggerTableView(const FWTriggerTableView&) = delete; // stop default
76  const FWTriggerTableView& operator=(const FWTriggerTableView&) = delete; // stop default
77 
78  bool isProcessValid() const;
79  void populateController(ViewerParameterGUI&) const override;
80 
81  mutable TGComboBox* m_combo;
82 
83  // destruction
84  TEveWindowFrame* m_eveWindow;
85  TGCompositeFrame* m_vert;
86 
88 
90 
91  std::vector<std::string>* m_processList;
92 };
93 
94 #endif
std::vector< std::string > values
std::vector< Column > m_columns
FWStringParameter m_regex
TGCompositeFrame * m_vert
FWTableWidget * m_tableWidget
TEveWindowFrame * m_eveWindow
void setProcessList(std::vector< std::string > *x)
Color_t backgroundColor() const
Column(const std::string &s)
FWStringParameter m_process
std::vector< std::string > * m_processList
static std::array< std::string_view, 255 > fillTable()
Definition: Entry.cc:129
FWTriggerTableViewTableManager * m_tableManager
Definition: event.py:1