CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWViewBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewBase_h
2 #define Fireworks_Core_FWViewBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu Feb 21 14:43:25 EST 2008
19 // $Id: FWViewBase.h,v 1.14 2010/11/04 22:38:54 amraktad Exp $
20 //
21 
22 // system include files
23 #include <string>
24 #include <sigc++/signal.h>
25 
26 // user include files
29 
30 // forward declarations
31 class TGFrame;
33 class ViewerParameterGUI;
34 
36 {
37 public:
38  FWViewBase(FWViewType::EType, unsigned int iVersion = 1);
39 
40  // ---------- const member functions ---------------------
41  const std::string& typeName() const;
42  FWViewType::EType typeId() const { return m_type.id(); }
43 
44  virtual void saveImageTo(const std::string& iName) const = 0;
45  void promptForSaveImageTo(TGFrame*) const;
46 
48 
49  virtual void populateController(ViewerParameterGUI&) const {}
50 
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54  void destroy();
55 
56  sigc::signal<void,const FWViewBase*> beingDestroyed_;
57  sigc::signal<void,Int_t,Int_t> openSelectedModelContextMenu_;
58 
59 protected:
60  virtual ~FWViewBase();
62 
63 private:
64  FWViewBase(const FWViewBase&); // stop default
65 
66  const FWViewBase& operator=(const FWViewBase&); // stop default
67 
68  // ---------- member data --------------------------------
69 
70 };
71 
72 
73 #endif
const FWViewBase & operator=(const FWViewBase &)
sigc::signal< void, const FWViewBase * > beingDestroyed_
Definition: FWViewBase.h:56
const std::string & typeName() const
Definition: FWViewBase.cc:121
EType id() const
Definition: FWViewType.cc:82
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
Definition: FWViewBase.cc:113
FWViewType m_type
Definition: FWViewBase.h:61
virtual ~FWViewBase()
Definition: FWViewBase.cc:45
virtual void saveImageTo(const std::string &iName) const =0
virtual void populateController(ViewerParameterGUI &) const
Definition: FWViewBase.h:49
void destroy()
Definition: FWViewBase.cc:65
void promptForSaveImageTo(TGFrame *) const
Definition: FWViewBase.cc:74
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
Definition: FWViewBase.h:57
FWViewBase(FWViewType::EType, unsigned int iVersion=1)
Definition: FWViewBase.cc:34
FWViewType::EType typeId() const
Definition: FWViewBase.h:42