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  , public CSGActionSupervisor, public sigc::trackable
59 #endif
60 {
61  friend class FWGUIManager;
62 public:
63  CmsShowMainFrame(const TGWindow *p = nullptr,UInt_t w = 1,UInt_t h = 1,FWGUIManager *m = nullptr);
64  ~CmsShowMainFrame() override;
65 
66  // ---------- const member functions ---------------------
67 
68  // ---------- static member functions --------------------
69 
70  // ---------- member functions ---------------------------
71  void CloseWindow() override;
72 
73  void loadEvent(const edm::EventBase& event);
74  void enableNavigatorControls();
75  void quit();
76  void enableActions(bool enable = true) override;
77  void enablePrevious(bool enable = true);
78  void enableNext(bool enable = true);
79  void enableComplexNavigation(bool enable = true);
80  bool previousIsEnabled();
81  bool nextIsEnabled();
82  void updateStatusBar(const char* status);
83  void clearStatusBar();
84  void setPlayDelayGUI(Float_t val, Bool_t sliderChanged);
85  void HandleMenu(Int_t id) override;
86  Bool_t HandleKey(Event_t *event) override;
88  return m_playEvents;
89  }
91  return m_loopAction;
92  }
93 
95  return m_playEventsBack;
96  }
97 
98  CSGAction* createNewViewerAction(const std::string& iActionName, bool seaprator);
99 
100  void showFWorksInfo();
101 
102  void bindCSGActionKeys(const TGMainFrame* f) const;
103 
104  void setSummaryViewWeight(float);
105  float getSummaryViewWeight() const;
106 
107  ClassDefOverride(CmsShowMainFrame, 0);
108 
109 protected:
111  TGTextButton* m_filterShowGUIBtn;
116 
117  const TGPicture* m_filterIcons[9];
118 
119 private:
120  CmsShowMainFrame(const CmsShowMainFrame&); // stop default
121  const CmsShowMainFrame& operator=(const CmsShowMainFrame&); // stop default
122 
123  void makeFixedSizeLabel(TGHorizontalFrame* p, const char* txt,
124  UInt_t bgCol, UInt_t txtCol,
125  Int_t width, Int_t height);
126 
127  // ---------- member data --------------------------------
128 
131  TGLabel* m_timeText;
141 
142  TGMainFrame* m_fworksAbout;
143 
144  TGSlider* m_delaySlider;
145  TGLabel* m_delayLabel;
146 
147  TGStatusBar* m_statBar;
148 
149  TGPopupMenu *m_newViewerMenu;
150 };
151 
152 
153 #endif
FWNumberEntryField * m_lumiEntry
const double w
Definition: UKUtility.cc:23
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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