test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsShowViewPopup.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowViewPopup_h
2 #define Fireworks_Core_CmsShowViewPopup_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowViewPopup
7 //
16 //
17 // Original Author:
18 // Created: Wed Jun 25 15:15:12 EDT 2008
19 //
20 
21 // system include files
22 #include <vector>
23 #ifndef __CINT__
24 #include <boost/shared_ptr.hpp>
25 #include <sigc++/sigc++.h>
26 #endif
27 #include "TGFrame.h"
28 
29 // user include files
31 
32 // forward declarations
33 class TGLabel;
34 class TGTextButton;
35 class TGButton;
36 class TGFrame;
37 class TGTab;
38 class TGCompositeFrame;
39 class TEveWindow;
40 
41 class FWParameterBase;
43 class FWViewBase;
44 class FWColorManager;
45 class FWDialogBuilder;
46 
47 /* Helper class to organise parameters in view controller */
48 
49 class ViewerParameterGUI : public TGCompositeFrame,
51 {
52 public:
53  ViewerParameterGUI(const TGFrame*);
54  virtual ~ViewerParameterGUI(){}
55 
56  ViewerParameterGUI& requestTab(const char*);
59  void reset();
60  void populateComplete();
61 
62  TGCompositeFrame* getTabContainer();
63  void addFrameToContainer(TGCompositeFrame*);
64 
65 private:
66  TGTab* m_tab;
68 #ifndef __CINT__
69  std::vector<boost::shared_ptr<FWParameterSetterBase> > m_setters;
70 #endif
71 };
72 
73 //==============================================================================
74 
75 class CmsShowViewPopup : public TGTransientFrame
76 {
77 public:
78  CmsShowViewPopup(const TGWindow* p = 0, UInt_t w = 200, UInt_t h = 200, FWColorManager* cm=0, FWViewBase* wb=0, TEveWindow* ew = 0);
79  virtual ~CmsShowViewPopup();
80 
81  // ---------- const member functions ---------------------
82 
83  // ---------- static member functions --------------------
84 
85  // ---------- member functions ---------------------------
86 
87  virtual void CloseWindow();
88  virtual void MapWindow();
89  virtual void UnmapWindow();
90 
91  bool mapped() { return m_mapped; }
92 
93  void reset(FWViewBase*, TEveWindow* ew);
94 
95  void saveImage();
96  void changeBackground();
98  TEveWindow* getEveWindow() const { return m_eveWindow; }
99 #ifndef __CINT__
100  sigc::signal<void> closed_;
101 #endif
102 
104 
105 private:
106  CmsShowViewPopup(const CmsShowViewPopup&); // stop default
107  const CmsShowViewPopup& operator=(const CmsShowViewPopup&); // stop default
108 
109  // ---------- member data --------------------------------
110 
111  bool m_mapped;
112 
113  TGLabel* m_viewLabel;
115  TGTextButton* m_saveImageButton;
116  TGTextButton* m_changeBackground;
117 
120  TEveWindow* m_eveWindow;
121 };
122 
123 #endif
ViewerParameterGUI(const TGFrame *)
std::string m_selectedTabName
std::vector< boost::shared_ptr< FWParameterSetterBase > > m_setters
const double w
Definition: UKUtility.cc:23
virtual void MapWindow()
sigc::signal< void > closed_
ViewerParameterGUI & requestTab(const char *)
ViewerParameterGUI & separator()
virtual void UnmapWindow()
void addFrameToContainer(TGCompositeFrame *)
virtual ~ViewerParameterGUI()
TEveWindow * getEveWindow() const
TGTextButton * m_changeBackground
TGTextButton * m_saveImageButton
void reset(FWViewBase *, TEveWindow *ew)
FWColorManager * m_colorManager
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
CmsShowViewPopup(const TGWindow *p=0, UInt_t w=200, UInt_t h=200, FWColorManager *cm=0, FWViewBase *wb=0, TEveWindow *ew=0)
ClassDef(CmsShowViewPopup, 0)
virtual void CloseWindow()
virtual ~CmsShowViewPopup()
FWViewBase * m_viewBase
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
const CmsShowViewPopup & operator=(const CmsShowViewPopup &)
void backgroundColorWasChanged()
ViewerParameterGUI * m_paramGUI
TEveWindow * m_eveWindow