CMS 3D CMS Logo

FWGUIEventFilter.h
Go to the documentation of this file.
1 
2 #ifndef Fireworks_Core_GUIEventFilter_h
3 #define Fireworks_Core_GUIEventFilter_h
4 
5 #include <list>
6 
7 #include "TGFrame.h"
8 
10 #ifndef __CINT__
11 //#include "Fireworks/Core/interface/FWHLTValidator.h"
13 #endif
14 
15 class TGLabel;
16 class TGRadioButton;
17 class TGTextButton;
18 class CSGAction;
20 class FWGUIEventSelector;
21 //class FWJobMetadataManager;
22 class CmsShowNavigator;
23 class FWConfiguration;
24 
25 namespace fireworks
26 {
27 class Context;
28 }
29 
30 class FWGUIEventFilter: public TGMainFrame
31 {
32 public:
34  ~FWGUIEventFilter() override;
35  void CloseWindow() override;
36 
37  void show(std::list<FWEventSelector*>* sels, int filterMode, int state);
38  void reset();
39 
40  std::list<FWGUIEventSelector*>& guiSelectors() { return m_guiSelectors; }
41 
42  void newEventEntry();
43  void newTriggerEntry();
44  void addSelector(FWEventSelector* sel);
45  void deleteEntry(FWGUIEventSelector*);
46  bool isOpen() { return m_isOpen; }
47  void apply();
48  void disableFilters();
49  void setupDisableFilteringButton(bool);
50  void checkApplyButton();
51  void changeFilterMode();
52  int getFilterMode();
53  void updateFilterStateLabel(int);
54  /*
55  void addTo(FWConfiguration&) const;
56  void setFrom(const FWConfiguration&);
57  */
58  Bool_t HandleKey(Event_t *event) override;
59  ClassDefOverride(FWGUIEventFilter, 0);
60 
61 private:
62  static const int s_entryHeight = 21;
63 
65  bool m_isOpen;
67 
68  std::list<FWGUIEventSelector*> m_guiSelectors;
69 
70  TGCompositeFrame* m_eventSelectionFrameParent;
71  TGCompositeFrame* m_eventSelectionFrame;
72 
73  TGCompositeFrame* m_triggerSelectionFrameParent;
74  TGCompositeFrame* m_triggerSelectionFrame;
75 
76  TGRadioButton* m_rad1;
77  TGRadioButton* m_rad2;
78  TGLabel* m_stateLabel;
79  TGTextButton* m_applyBtn;
80  TGTextButton* m_disableFilteringBtn;
82 
84 };
85 
86 #endif
TGTextButton * m_applyBtn
TGRadioButton * m_rad1
TGCompositeFrame * m_eventSelectionFrameParent
TGCompositeFrame * m_triggerSelectionFrameParent
CmsShowNavigator * m_navigator
TGCompositeFrame * m_triggerSelectionFrame
TGLabel * m_stateLabel
TGRadioButton * m_rad2
std::list< FWGUIEventSelector * > & guiSelectors()
FWCustomIconsButton * m_addBtn
TGCompositeFrame * m_eventSelectionFrame
TGTextButton * m_disableFilteringBtn
std::list< FWGUIEventSelector * > m_guiSelectors
void reset(double vett[256])
Definition: TPedValues.cc:11
Vec apply(Vec v, F f)
Definition: ExtVec.h:83
Definition: event.py:1