CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 // forward declarations
17 class TGFrame;
18 class TGCompositeFrame;
19 class FWTableWidget;
20 class TGComboBox;
21 class TEveWindowFrame;
22 class TEveWindowSlot;
26 
27 namespace fwlite {
28  class Event;
29 }
30 
33 
34 public:
35  struct Column {
37  std::vector<std::string> values;
38  Column(const std::string& s) : title(s) {}
39  };
40 
41  FWTriggerTableView(TEveWindowSlot*, FWViewType::EType);
42  ~FWTriggerTableView(void) override;
43 
44  // ---------- const member functions ---------------------
45  void addTo(FWConfiguration&) const override;
46  void saveImageTo(const std::string& iName) const override;
47  Color_t backgroundColor() const { return m_backgroundColor; }
48 
49  // ---------- static member functions --------------------
50 
51  // ---------- member functions ---------------------------
52  void setFrom(const FWConfiguration&) override;
53  void setBackgroundColor(Color_t);
54  //void resetColors( const class FWColorManager& );
55  void dataChanged(void);
56  void columnSelected(Int_t iCol, Int_t iButton, Int_t iKeyMod);
57 
58  void setProcessList(std::vector<std::string>* x) { m_processList = x; }
59  void resetCombo() const;
60  // void processChanged(Int_t);
61  void processChanged(const char*);
62 
63 protected:
66 
67  std::vector<Column> m_columns;
69 
70  virtual void fillTable(fwlite::Event* event) = 0;
71 
72 public:
73  FWTriggerTableView(const FWTriggerTableView&) = delete; // stop default
74  const FWTriggerTableView& operator=(const FWTriggerTableView&) = delete; // stop default
75 
76 private:
77  bool isProcessValid() const;
78  void populateController(ViewerParameterGUI&) const override;
79 
80  mutable TGComboBox* m_combo;
81 
82  // destruction
83  TEveWindowFrame* m_eveWindow;
84  TGCompositeFrame* m_vert;
85 
87 
89 
90  std::vector<std::string>* m_processList;
91 };
92 
93 #endif
const FWTriggerTableView & operator=(const FWTriggerTableView &)=delete
std::vector< std::string > values
std::vector< Column > m_columns
virtual void fillTable(fwlite::Event *event)=0
FWStringParameter m_regex
~FWTriggerTableView(void) override
FWTriggerTableView(TEveWindowSlot *, FWViewType::EType)
TGCompositeFrame * m_vert
bool isProcessValid() const
void setBackgroundColor(Color_t)
FWTableWidget * m_tableWidget
TEveWindowFrame * m_eveWindow
void setProcessList(std::vector< std::string > *x)
void setFrom(const FWConfiguration &) override
void populateController(ViewerParameterGUI &) const override
Color_t backgroundColor() const
void addTo(FWConfiguration &) const override
Column(const std::string &s)
void processChanged(const char *)
FWStringParameter m_process
void columnSelected(Int_t iCol, Int_t iButton, Int_t iKeyMod)
std::vector< std::string > * m_processList
void saveImageTo(const std::string &iName) const override
FWTriggerTableViewTableManager * m_tableManager