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 // $Id: CmsShowMainFrame.h,v 1.45 2011/07/14 02:21:31 amraktad Exp $
20 //
21 
22 // system include files
23 #include <TQObject.h>
24 #include <RQ_OBJECT.h>
25 #include <vector>
26 #include <TGFrame.h>
27 
28 #ifndef __CINT__
29 #include <sigc++/sigc++.h>
31 #endif
32 
33 // user include files
34 
35 // forward declarations
36 class TGWindow;
37 class TGTextButton;
38 class TGPictureButton;
39 class TGPopupMenu;
40 class TGStatusBar;
41 class TTimer;
42 class CSGAction;
44 class FWGUIManager;
45 class TGPopupMenu;
46 class TGTextEntry;
47 class TGLabel;
48 class TGSlider;
49 class FWIntValueListener;
51 class FWNumberEntryField;
52 
53 namespace edm {
54  class EventBase;
55 }
56 
57 class CmsShowMainFrame : public TGMainFrame
58 #ifndef __CINT__
59  , public CSGActionSupervisor, public sigc::trackable
60 #endif
61 {
62  friend class FWGUIManager;
63 public:
64  CmsShowMainFrame(const TGWindow *p = 0,UInt_t w = 1,UInt_t h = 1,FWGUIManager *m = 0);
65  virtual ~CmsShowMainFrame();
66 
67  // ---------- const member functions ---------------------
68 
69  // ---------- static member functions --------------------
70 
71  // ---------- member functions ---------------------------
72  virtual void CloseWindow();
73 
74  void loadEvent(const edm::EventBase& event);
76  void quit();
77  virtual void enableActions(bool enable = true);
78  void enablePrevious(bool enable = true);
79  void enableNext(bool enable = true);
80  void enableComplexNavigation(bool enable = true);
81  bool previousIsEnabled();
82  bool nextIsEnabled();
83  void updateStatusBar(const char* status);
84  void clearStatusBar();
85  void setPlayDelayGUI(Float_t val, Bool_t sliderChanged);
86  virtual void HandleMenu(Int_t id);
87  Bool_t HandleKey(Event_t *event);
89  return m_playEvents;
90  }
92  return m_loopAction;
93  }
94 
96  return m_playEventsBack;
97  }
98 
99  CSGAction* createNewViewerAction(const std::string& iActionName, bool seaprator);
100 
101  void showFWorksInfo();
102 
103  void bindCSGActionKeys(const TGMainFrame* f) const;
104 
105  void setSummaryViewWeight(float);
106  float getSummaryViewWeight() const;
107 
109 
110 protected:
112  TGTextButton* m_filterShowGUIBtn;
117 
118  const TGPicture* m_filterIcons[9];
119 
120 private:
121  CmsShowMainFrame(const CmsShowMainFrame&); // stop default
122  const CmsShowMainFrame& operator=(const CmsShowMainFrame&); // stop default
123 
124  void makeFixedSizeLabel(TGHorizontalFrame* p, const char* txt,
125  UInt_t bgCol, UInt_t txtCol,
126  Int_t width, Int_t height);
127 
128  // ---------- member data --------------------------------
129 
132  TGLabel* m_timeText;
142 
143  TGMainFrame* m_fworksAbout;
144 
145  TGSlider* m_delaySlider;
146  TGLabel* m_delayLabel;
147 
148  TGStatusBar* m_statBar;
149 
150  TGPopupMenu *m_newViewerMenu;
151 };
152 
153 
154 #endif
FWNumberEntryField * m_lumiEntry
void bindCSGActionKeys(const TGMainFrame *f) const
void loadEvent(const edm::EventBase &event)
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]
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
unsigned int UInt_t
Definition: FUTypes.h:12
virtual void enableActions(bool enable=true)
CSGAction * m_playDelay
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
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
T w() const