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.23 2013/04/05 21:06:57 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 
50 class ViewerParameterGUI : public TGCompositeFrame,
52 {
53 public:
54  ViewerParameterGUI(const TGFrame*);
55  virtual ~ViewerParameterGUI(){}
56 
57  ViewerParameterGUI& requestTab(const char*);
60  void reset();
61  void populateComplete();
62 
63  TGCompositeFrame* getTabContainer();
64  void addFrameToContainer(TGCompositeFrame*);
65 
66 private:
67  TGTab* m_tab;
69 #ifndef __CINT__
70  std::vector<boost::shared_ptr<FWParameterSetterBase> > m_setters;
71 #endif
72 };
73 
74 //==============================================================================
75 
76 class CmsShowViewPopup : public TGTransientFrame
77 {
78 public:
79  CmsShowViewPopup(const TGWindow* p = 0, UInt_t w = 200, UInt_t h = 200, FWColorManager* cm=0, FWViewBase* wb=0, TEveWindow* ew = 0);
80  virtual ~CmsShowViewPopup();
81 
82  // ---------- const member functions ---------------------
83 
84  // ---------- static member functions --------------------
85 
86  // ---------- member functions ---------------------------
87 
88  virtual void CloseWindow();
89  virtual void MapWindow();
90  virtual void UnmapWindow();
91 
92  bool mapped() { return m_mapped; }
93 
94  void reset(FWViewBase*, TEveWindow* ew);
95 
96  void saveImage();
97  void changeBackground();
99  TEveWindow* getEveWindow() const { return m_eveWindow; }
100 #ifndef __CINT__
101  sigc::signal<void> closed_;
102 #endif
103 
105 
106 private:
107  CmsShowViewPopup(const CmsShowViewPopup&); // stop default
108  const CmsShowViewPopup& operator=(const CmsShowViewPopup&); // stop default
109 
110  // ---------- member data --------------------------------
111 
112  bool m_mapped;
113 
114  TGLabel* m_viewLabel;
116  TGTextButton* m_saveImageButton;
117  TGTextButton* m_changeBackground;
118 
121  TEveWindow* m_eveWindow;
122 };
123 
124 #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
TGTextButton * m_saveImageButton
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
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
FWViewBase * m_viewBase
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
const CmsShowViewPopup & operator=(const CmsShowViewPopup &)
void backgroundColorWasChanged()
T w() const
ViewerParameterGUI * m_paramGUI
TEveWindow * m_eveWindow