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
CmsShowMainFrame::bindCSGActionKeys
void bindCSGActionKeys(const TGMainFrame *f) const
Definition: CmsShowMainFrame.cc:780
CmsShowMainFrame::clearStatusBar
void clearStatusBar()
Definition: CmsShowMainFrame.cc:641
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
CmsShowMainFrame::nextIsEnabled
bool nextIsEnabled()
Definition: CmsShowMainFrame.cc:631
CmsShowMainFrame::m_delayLabel
TGLabel * m_delayLabel
Definition: CmsShowMainFrame.h:140
FWGUIManager
Definition: FWGUIManager.h:95
CmsShowMainFrame::m_timeText
TGLabel * m_timeText
Definition: CmsShowMainFrame.h:126
CSGActionSupervisor
Definition: CSGActionSupervisor.h:27
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
CmsShowMainFrame::m_loopAction
CSGContinuousAction * m_loopAction
Definition: CmsShowMainFrame.h:135
CmsShowMainFrame::m_delaySlider
TGSlider * m_delaySlider
Definition: CmsShowMainFrame.h:139
CmsShowMainFrame::enableNavigatorControls
void enableNavigatorControls()
Definition: CmsShowMainFrame.cc:567
mps_update.status
status
Definition: mps_update.py:69
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CmsShowMainFrame::playEventsAction
CSGContinuousAction * playEventsAction() const
Definition: CmsShowMainFrame.h:90
CmsShowMainFrame::quit
void quit()
Definition: CmsShowMainFrame.cc:579
CmsShowMainFrame::m_playEventsBack
CSGContinuousAction * m_playEventsBack
Definition: CmsShowMainFrame.h:134
Reconstruction_hiPF_cff.enable
enable
Definition: Reconstruction_hiPF_cff.py:87
CmsShowMainFrame::m_goToLast
CSGAction * m_goToLast
Definition: CmsShowMainFrame.h:130
CmsShowMainFrame::m_goToFirst
CSGAction * m_goToFirst
Definition: CmsShowMainFrame.h:129
CmsShowMainFrame::playEventsBackwardsAction
CSGContinuousAction * playEventsBackwardsAction() const
Definition: CmsShowMainFrame.h:93
CmsShowMainFrame::enableActions
void enableActions(bool enable=true) override
Definition: CmsShowMainFrame.cc:581
CmsShowMainFrame::m_playDelay
CSGAction * m_playDelay
Definition: CmsShowMainFrame.h:131
CmsShowMainFrame::m_eventEntry
FWNumberEntryField * m_eventEntry
Definition: CmsShowMainFrame.h:111
CSGAction
Definition: CSGAction.h:38
CmsShowMainFrame::m_filterIcons
const TGPicture * m_filterIcons[9]
Definition: CmsShowMainFrame.h:114
CmsShowMainFrame::m_playEvents
CSGContinuousAction * m_playEvents
Definition: CmsShowMainFrame.h:133
FWNumberEntryField
Definition: FWNumberEntry.h:8
CmsShowMainFrame::m_manager
FWGUIManager * m_manager
Definition: CmsShowMainFrame.h:124
CmsShowMainFrame::m_statBar
TGStatusBar * m_statBar
Definition: CmsShowMainFrame.h:142
CmsShowMainFrame::m_previousEvent
CSGAction * m_previousEvent
Definition: CmsShowMainFrame.h:128
CmsShowMainFrame::enableComplexNavigation
void enableComplexNavigation(bool enable=true)
Definition: CmsShowMainFrame.cc:624
CmsShowMainFrame::m_filterShowGUIBtn
TGTextButton * m_filterShowGUIBtn
Definition: CmsShowMainFrame.h:108
CmsShowMainFrame::m_newViewerMenu
TGPopupMenu * m_newViewerMenu
Definition: CmsShowMainFrame.h:144
CmsShowMainFrame::setSummaryViewWeight
void setSummaryViewWeight(float)
Definition: CmsShowMainFrame.cc:787
w
const double w
Definition: UKUtility.cc:23
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
CmsShowMainFrame::enableNext
void enableNext(bool enable=true)
Definition: CmsShowMainFrame.cc:606
CmsShowMainFrame::m_tooltipDelay
Long_t m_tooltipDelay
Definition: CmsShowMainFrame.h:125
CmsShowMainFrame::loadEvent
void loadEvent(const edm::EventBase &event)
Definition: CmsShowMainFrame.cc:559
CmsShowMainFrame::HandleMenu
void HandleMenu(Int_t id) override
Definition: CmsShowMainFrame.cc:647
CSGActionSupervisor.h
h
CmsShowMainFrame::m_delaySliderListener
FWIntValueListener * m_delaySliderListener
Definition: CmsShowMainFrame.h:112
CmsShowMainFrame::makeFixedSizeLabel
void makeFixedSizeLabel(TGHorizontalFrame *p, const char *txt, UInt_t bgCol, UInt_t txtCol, Int_t width, Int_t height)
Definition: CmsShowMainFrame.cc:695
CmsShowMainFrame::m_fworksInfo
CSGAction * m_fworksInfo
Definition: CmsShowMainFrame.h:132
CmsShowMainFrame::enablePrevious
void enablePrevious(bool enable=true)
Definition: CmsShowMainFrame.cc:591
CmsShowMainFrame::m_filterEnableBtn
FWCustomIconsButton * m_filterEnableBtn
Definition: CmsShowMainFrame.h:107
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CmsShowMainFrame::loopAction
CSGContinuousAction * loopAction() const
Definition: CmsShowMainFrame.h:91
CmsShowMainFrame::m_nextEvent
CSGAction * m_nextEvent
Definition: CmsShowMainFrame.h:127
FWCustomIconsButton
Definition: FWCustomIconsButton.h:29
CmsShowMainFrame::showFWorksInfo
void showFWorksInfo()
Definition: CmsShowMainFrame.cc:716
CmsShowMainFrame::~CmsShowMainFrame
~CmsShowMainFrame() override
Definition: CmsShowMainFrame.cc:533
CmsShowMainFrame::CloseWindow
void CloseWindow() override
Definition: CmsShowMainFrame.cc:577
CmsShowMainFrame::m_lumiEntry
FWNumberEntryField * m_lumiEntry
Definition: CmsShowMainFrame.h:110
CmsShowMainFrame::previousIsEnabled
bool previousIsEnabled()
Definition: CmsShowMainFrame.cc:633
CmsShowMainFrame::HandleKey
Bool_t HandleKey(Event_t *event) override
Definition: CmsShowMainFrame.cc:658
CmsShowMainFrame
Definition: CmsShowMainFrame.h:56
CSGContinuousAction
Definition: CSGContinuousAction.h:29
heppy_batch.val
val
Definition: heppy_batch.py:351
CmsShowMainFrame::updateStatusBar
void updateStatusBar(const char *status)
Definition: CmsShowMainFrame.cc:635
CmsShowMainFrame::setPlayDelayGUI
void setPlayDelayGUI(Float_t val, Bool_t sliderChanged)
Definition: CmsShowMainFrame.cc:689
edm::EventBase
Definition: EventBase.h:46
CmsShowMainFrame::m_runEntry
FWNumberEntryField * m_runEntry
Definition: CmsShowMainFrame.h:109
EventBase
CmsShowMainFrame::ClassDefOverride
ClassDefOverride(CmsShowMainFrame, 0)
CmsShowMainFrame::m_fworksAbout
TGMainFrame * m_fworksAbout
Definition: CmsShowMainFrame.h:137
CmsShowMainFrame::operator=
const CmsShowMainFrame & operator=(const CmsShowMainFrame &)
event
Definition: event.py:1
CmsShowMainFrame::createNewViewerAction
CSGAction * createNewViewerAction(const std::string &iActionName, bool seaprator)
Definition: CmsShowMainFrame.cc:551
CmsShowMainFrame::getSummaryViewWeight
float getSummaryViewWeight() const
Definition: CmsShowMainFrame.cc:802
CmsShowMainFrame::CmsShowMainFrame
CmsShowMainFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, FWGUIManager *m=nullptr)
Definition: CmsShowMainFrame.cc:75
FWIntValueListener
Definition: FWIntValueListener.h:7