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);
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;
92 
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 
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
void CloseWindow() override
FWNumberEntryField * m_lumiEntry
void loadEvent(const edm::EventBase &event)
T w() const
~CmsShowMainFrame() override
void HandleMenu(Int_t id) override
FWGUIManager * m_manager
FWCustomIconsButton * m_filterEnableBtn
void enableNext(bool enable=true)
FWIntValueListener * m_delaySliderListener
CSGContinuousAction * m_playEventsBack
CSGAction * m_fworksInfo
CSGAction * m_nextEvent
TGSlider * m_delaySlider
CSGContinuousAction * playEventsBackwardsAction() const
CSGContinuousAction * loopAction() const
Bool_t HandleKey(Event_t *event) override
const TGPicture * m_filterIcons[9]
CSGContinuousAction * m_loopAction
TGMainFrame * m_fworksAbout
CSGAction * createNewViewerAction(const std::string &iActionName, bool seaprator)
FWNumberEntryField * m_eventEntry
void updateStatusBar(const char *status)
double f[11][100]
TGPopupMenu * m_newViewerMenu
enable
Messages.
Definition: DiMuonV_cfg.py:93
FWNumberEntryField * m_runEntry
CSGAction * m_playDelay
void enableActions(bool enable=true) override
float getSummaryViewWeight() const
CSGAction * m_previousEvent
ClassDefOverride(CmsShowMainFrame, 0)
CmsShowMainFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, FWGUIManager *m=nullptr)
CSGAction * m_goToLast
const CmsShowMainFrame & operator=(const CmsShowMainFrame &)
void setSummaryViewWeight(float)
void enablePrevious(bool enable=true)
CSGContinuousAction * m_playEvents
HLT enums.
CSGAction * m_goToFirst
CSGContinuousAction * playEventsAction() const
void makeFixedSizeLabel(TGHorizontalFrame *p, const char *txt, UInt_t bgCol, UInt_t txtCol, Int_t width, Int_t height)
void bindCSGActionKeys(const TGMainFrame *f) const
void enableComplexNavigation(bool enable=true)
TGTextButton * m_filterShowGUIBtn
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void setPlayDelayGUI(Float_t val, Bool_t sliderChanged)
Definition: event.py:1
TGStatusBar * m_statBar