CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 = 0,UInt_t w = 1,UInt_t h = 1,FWGUIManager *m = 0);
64  virtual ~CmsShowMainFrame();
65 
66  // ---------- const member functions ---------------------
67 
68  // ---------- static member functions --------------------
69 
70  // ---------- member functions ---------------------------
71  virtual void CloseWindow();
72 
73  void loadEvent(const edm::EventBase& event);
75  void quit();
76  virtual void enableActions(bool enable = true);
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  virtual void HandleMenu(Int_t id);
86  Bool_t HandleKey(Event_t *event);
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 
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
void bindCSGActionKeys(const TGMainFrame *f) const
void loadEvent(const edm::EventBase &event)
const double w
Definition: UKUtility.cc:23
CSGContinuousAction * playEventsBackwardsAction() const
FWGUIManager * m_manager
FWCustomIconsButton * m_filterEnableBtn
CSGContinuousAction * loopAction() const
void enableNext(bool enable=true)
FWIntValueListener * m_delaySliderListener
CSGContinuousAction * m_playEventsBack
CSGAction * m_fworksInfo
CSGAction * m_nextEvent
TGSlider * m_delaySlider
const TGPicture * m_filterIcons[9]
CSGContinuousAction * m_loopAction
TGMainFrame * m_fworksAbout
CSGAction * createNewViewerAction(const std::string &iActionName, bool seaprator)
FWNumberEntryField * m_eventEntry
virtual ~CmsShowMainFrame()
void updateStatusBar(const char *status)
double f[11][100]
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
TGPopupMenu * m_newViewerMenu
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
Bool_t HandleKey(Event_t *event)
ClassDef(CmsShowMainFrame, 0)
FWNumberEntryField * m_runEntry
virtual void enableActions(bool enable=true)
CSGAction * m_playDelay
CSGAction * m_previousEvent
CSGAction * m_goToLast
virtual void CloseWindow()
const CmsShowMainFrame & operator=(const CmsShowMainFrame &)
void setSummaryViewWeight(float)
void enablePrevious(bool enable=true)
CSGContinuousAction * m_playEvents
float getSummaryViewWeight() const
CSGAction * m_goToFirst
virtual void HandleMenu(Int_t id)
void makeFixedSizeLabel(TGHorizontalFrame *p, const char *txt, UInt_t bgCol, UInt_t txtCol, Int_t width, Int_t height)
void enableComplexNavigation(bool enable=true)
tuple status
Definition: ntuplemaker.py:245
TGTextButton * m_filterShowGUIBtn
CmsShowMainFrame(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, FWGUIManager *m=0)
void setPlayDelayGUI(Float_t val, Bool_t sliderChanged)
CSGContinuousAction * playEventsAction() const
TGStatusBar * m_statBar