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 // $Id: CmsShowViewPopup.h,v 1.20 2010/11/10 20:07:07 amraktad Exp $
20 //
21 
22 // system include files
23 #include <vector>
24 #ifndef __CINT__
25 #include <boost/shared_ptr.hpp>
26 #include <sigc++/sigc++.h>
27 #endif
28 #include "TGFrame.h"
29 
30 // user include files
32 
33 // forward declarations
34 class TGLabel;
35 class TGTextButton;
36 class TGButton;
37 class TGFrame;
38 class TGTab;
39 class TGCompositeFrame;
40 class TEveWindow;
41 
42 class FWParameterBase;
44 class FWViewBase;
45 class FWColorManager;
46 class FWDialogBuilder;
47 
48 /* Helper class to organise parameters in view controller */
49 class ViewerParameterGUI : public TGCompositeFrame, public FWParameterSetterEditorBase
50 {
51 public:
52  ViewerParameterGUI(const TGFrame*);
53  virtual ~ViewerParameterGUI(){}
54 
55  ViewerParameterGUI& requestTab(const char*);
58  void reset();
59  void populateComplete();
60 
61  TGCompositeFrame* getTabContainer();
62  void addFrameToContainer(TGCompositeFrame*);
63 
64 
65 private:
66  TGTab* m_tab;
67  std::string m_selectedTabName;
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  virtual void CloseWindow();
87  virtual void MapWindow();
88  virtual void UnmapWindow();
89 
90  bool mapped() { return m_mapped; }
91 
92  void reset(FWViewBase*, TEveWindow* ew);
93 
94  void saveImage();
95  void changeBackground();
97  TEveWindow* getEveWindow() const { return m_eveWindow; }
98 #ifndef __CINT__
99  sigc::signal<void> closed_;
100 #endif
101 
103 
104 private:
105  CmsShowViewPopup(const CmsShowViewPopup&); // stop default
106 
107  const CmsShowViewPopup& operator=(const CmsShowViewPopup&); // stop default
108 
109  // ---------- member data --------------------------------
110  bool m_mapped;
111 
112  TGLabel* m_viewLabel;
114  TGButton* m_saveImageButton;
115  TGTextButton* m_changeBackground;
116 
119  TEveWindow* m_eveWindow;
120 };
121 
122 
123 #endif
ViewerParameterGUI(const TGFrame *)
std::string m_selectedTabName
std::vector< boost::shared_ptr< FWParameterSetterBase > > m_setters
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
void reset(FWViewBase *, TEveWindow *ew)
FWColorManager * m_colorManager
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()
unsigned int UInt_t
Definition: FUTypes.h:12
FWViewBase * m_viewBase
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
const CmsShowViewPopup & operator=(const CmsShowViewPopup &)
void backgroundColorWasChanged()
TGButton * m_saveImageButton
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
ViewerParameterGUI * m_paramGUI
TEveWindow * m_eveWindow