CMS 3D CMS Logo

CmsShowMainFrame.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowMainFrame_h
2 #define Fireworks_Core_CmsShowMainFrame_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowMainFrame
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu May 29 18:11:16 CDT 2008
19 //
20 
21 // system include files
22 #include <TQObject.h>
23 #include <RQ_OBJECT.h>
24 #include <vector>
25 #include <TGFrame.h>
26 
27 #ifndef __CINT__
28 #include <sigc++/sigc++.h>
30 #endif
31 
32 // user include files
33 
34 // forward declarations
35 class TGWindow;
36 class TGTextButton;
37 class TGPictureButton;
38 class TGPopupMenu;
39 class TGStatusBar;
40 class TTimer;
41 class CSGAction;
43 class FWGUIManager;
44 class TGPopupMenu;
45 class TGTextEntry;
46 class TGLabel;
47 class TGSlider;
48 class FWIntValueListener;
50 class FWNumberEntryField;
51 
52 namespace edm {
53  class EventBase;
54 }
55 
56 class CmsShowMainFrame : public TGMainFrame
57 #ifndef __CINT__
58  ,
59  public CSGActionSupervisor,
60  public sigc::trackable
61 #endif
62 {
63  friend class FWGUIManager;
64 
65 public:
66  CmsShowMainFrame(const TGWindow* p = nullptr, UInt_t w = 1, UInt_t h = 1, FWGUIManager* m = nullptr);
67  ~CmsShowMainFrame() override;
68 
69  // ---------- const member functions ---------------------
70 
71  // ---------- static member functions --------------------
72 
73  // ---------- member functions ---------------------------
74  void CloseWindow() override;
75 
76  void loadEvent(const edm::EventBase& event);
77  void enableNavigatorControls();
78  void quit();
79  void enableActions(bool enable = true) override;
80  void enablePrevious(bool enable = true);
81  void enableNext(bool enable = true);
82  void enableComplexNavigation(bool enable = true);
83  bool previousIsEnabled();
84  bool nextIsEnabled();
85  void updateStatusBar(const char* status);
86  void clearStatusBar();
87  void setPlayDelayGUI(Float_t val, Bool_t sliderChanged);
88  void HandleMenu(Int_t id) override;
89  Bool_t HandleKey(Event_t* event) override;
90  CSGContinuousAction* playEventsAction() const { return m_playEvents; }
91  CSGContinuousAction* loopAction() const { return m_loopAction; }
92 
93  CSGContinuousAction* playEventsBackwardsAction() const { return m_playEventsBack; }
94 
95  CSGAction* createNewViewerAction(const std::string& iActionName, bool seaprator);
96 
97  void showFWorksInfo();
98 
99  void bindCSGActionKeys(const TGMainFrame* f) const;
100 
101  void setSummaryViewWeight(float);
102  float getSummaryViewWeight() const;
103 
104  ClassDefOverride(CmsShowMainFrame, 0);
105 
106 protected:
108  TGTextButton* m_filterShowGUIBtn;
113 
114  const TGPicture* m_filterIcons[9];
115 
116 private:
117  CmsShowMainFrame(const CmsShowMainFrame&); // stop default
118  const CmsShowMainFrame& operator=(const CmsShowMainFrame&); // stop default
119 
120  void makeFixedSizeLabel(TGHorizontalFrame* p, const char* txt, UInt_t bgCol, UInt_t txtCol, Int_t width, Int_t height);
121 
122  // ---------- member data --------------------------------
123 
126  TGLabel* m_timeText;
136 
137  TGMainFrame* m_fworksAbout;
138 
139  TGSlider* m_delaySlider;
140  TGLabel* m_delayLabel;
141 
142  TGStatusBar* m_statBar;
143 
144  TGPopupMenu* m_newViewerMenu;
145 };
146 
147 #endif
FWNumberEntryField * m_lumiEntry
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
const double w
Definition: UKUtility.cc:23
CSGContinuousAction * playEventsBackwardsAction() const
FWGUIManager * m_manager
FWCustomIconsButton * m_filterEnableBtn
CSGContinuousAction * loopAction() const
FWIntValueListener * m_delaySliderListener
CSGContinuousAction * m_playEventsBack
void enableActions(bool enable=true)
CSGAction * m_fworksInfo
CSGAction * m_nextEvent
TGSlider * m_delaySlider
const FWGUIManager & operator=(const FWGUIManager &)=delete
CSGContinuousAction * m_loopAction
TGMainFrame * m_fworksAbout
FWNumberEntryField * m_eventEntry
double f[11][100]
TGPopupMenu * m_newViewerMenu
FWNumberEntryField * m_runEntry
CSGAction * m_playDelay
CSGAction * m_previousEvent
CSGAction * m_goToLast
CSGContinuousAction * m_playEvents
HLT enums.
CSGAction * m_goToFirst
TGTextButton * m_filterShowGUIBtn
CSGContinuousAction * playEventsAction() const
Definition: event.py:1
TGStatusBar * m_statBar