CMS 3D CMS Logo

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 //
20 
21 // system include files
22 #include <string>
23 #include <sigc++/signal.h>
24 
25 // user include files
28 
29 #include "Rtypes.h"
30 
31 // forward declarations
32 class TGFrame;
34 class ViewerParameterGUI;
35 
37 {
38 public:
39  FWViewBase(FWViewType::EType, unsigned int iVersion = 1);
40 
41  // ---------- const member functions ---------------------
42  const std::string& typeName() const;
43  FWViewType::EType typeId() const { return m_type.id(); }
44 
45  virtual void saveImageTo(const std::string& iName) const = 0;
46  void promptForSaveImageTo(TGFrame*) const;
47 
49 
50  virtual void populateController(ViewerParameterGUI&) const {}
51 
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55  void destroy();
56 
57  sigc::signal<void,const FWViewBase*> beingDestroyed_;
58  sigc::signal<void,Int_t,Int_t> openSelectedModelContextMenu_;
59 
60 protected:
61  virtual ~FWViewBase();
63 
64 private:
65  FWViewBase(const FWViewBase&); // stop default
66 
67  const FWViewBase& operator=(const FWViewBase&); // stop default
68 
69  // ---------- member data --------------------------------
70 
71 };
72 
73 
74 #endif
const FWViewBase & operator=(const FWViewBase &)
sigc::signal< void, const FWViewBase * > beingDestroyed_
Definition: FWViewBase.h:57
const std::string & typeName() const
Definition: FWViewBase.cc:120
EType id() const
Definition: FWViewType.cc:81
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
Definition: FWViewBase.cc:112
FWViewType m_type
Definition: FWViewBase.h:62
virtual ~FWViewBase()
Definition: FWViewBase.cc:44
virtual void saveImageTo(const std::string &iName) const =0
virtual void populateController(ViewerParameterGUI &) const
Definition: FWViewBase.h:50
void destroy()
Definition: FWViewBase.cc:64
void promptForSaveImageTo(TGFrame *) const
Definition: FWViewBase.cc:73
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
Definition: FWViewBase.h:58
FWViewBase(FWViewType::EType, unsigned int iVersion=1)
Definition: FWViewBase.cc:33
FWViewType::EType typeId() const
Definition: FWViewBase.h:43