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 
17 #define BOOST_NO_INITIALIZER_LISTS
18 // without this #define, genreflex chokes on std::initializer_list
19 // at least when buildig from tarball in SLC5 with the default gcc4.1.2
20 #include <boost/unordered_map.hpp>
21 #undef BOOST_NO_INITIALIZER_LISTS
22 
23 // forward declarations
24 class TGFrame;
25 class TGCompositeFrame;
26 class FWTableWidget;
27 class TGComboBox;
28 class TEveWindowFrame;
29 class TEveWindowSlot;
33 
34 namespace fwlite {
35  class Event;
36 }
37 
39 {
41 public:
42  struct Column {
44  std::vector<std::string> values;
45  Column( const std::string& s ) : title( s )
46  {}
47  };
48 
49  FWTriggerTableView(TEveWindowSlot *, FWViewType::EType );
50  ~FWTriggerTableView( void ) override;
51 
52  // ---------- const member functions ---------------------
53  void addTo( FWConfiguration& ) const override;
54  void saveImageTo( const std::string& iName ) const override;
55  Color_t backgroundColor() const { return m_backgroundColor; }
56 
57  // ---------- static member functions --------------------
58 
59  // ---------- member functions ---------------------------
60  void setFrom( const FWConfiguration& ) override;
61  void setBackgroundColor( Color_t );
62  //void resetColors( const class FWColorManager& );
63  void dataChanged( void );
64  void columnSelected( Int_t iCol, Int_t iButton, Int_t iKeyMod );
65 
66  void setProcessList( std::vector<std::string>* x) { m_processList = x; }
67  void resetCombo() const;
68  // void processChanged(Int_t);
69  void processChanged(const char*);
70 protected:
73 
74  std::vector<Column> m_columns;
76 
77  virtual void fillTable(fwlite::Event* event) = 0;
78 
79 private:
80  FWTriggerTableView( const FWTriggerTableView& ) = delete; // stop default
81  const FWTriggerTableView& operator=( const FWTriggerTableView& ) = delete; // stop default
82 
83  bool isProcessValid()const;
84  void populateController(ViewerParameterGUI&) const override;
85 
86  mutable TGComboBox* m_combo;
87 
88  // destruction
89  TEveWindowFrame* m_eveWindow;
90  TGCompositeFrame* m_vert;
91 
92 
94 
96 
97  std::vector<std::string>* m_processList;
98 
99 };
100 
101 
102 #endif
std::vector< std::string > values
std::vector< Column > m_columns
def fillTable(order, branch=[])
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
FWTriggerTableViewTableManager * m_tableManager
Definition: event.py:1