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 // forward declarations
30 class TGFrame;
32 class ViewerParameterGUI;
33 
35 {
36 public:
37  FWViewBase(FWViewType::EType, unsigned int iVersion = 1);
38 
39  // ---------- const member functions ---------------------
40  const std::string& typeName() const;
41  FWViewType::EType typeId() const { return m_type.id(); }
42 
43  virtual void saveImageTo(const std::string& iName) const = 0;
44  void promptForSaveImageTo(TGFrame*) const;
45 
47 
48  virtual void populateController(ViewerParameterGUI&) const {}
49 
50  // ---------- static member functions --------------------
51 
52  // ---------- member functions ---------------------------
53  void destroy();
54 
55  sigc::signal<void,const FWViewBase*> beingDestroyed_;
56  sigc::signal<void,Int_t,Int_t> openSelectedModelContextMenu_;
57 
58 protected:
59  virtual ~FWViewBase();
61 
62 private:
63  FWViewBase(const FWViewBase&); // stop default
64 
65  const FWViewBase& operator=(const FWViewBase&); // stop default
66 
67  // ---------- member data --------------------------------
68 
69 };
70 
71 
72 #endif
const FWViewBase & operator=(const FWViewBase &)
sigc::signal< void, const FWViewBase * > beingDestroyed_
Definition: FWViewBase.h:55
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:60
virtual ~FWViewBase()
Definition: FWViewBase.cc:44
virtual void saveImageTo(const std::string &iName) const =0
virtual void populateController(ViewerParameterGUI &) const
Definition: FWViewBase.h:48
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:56
FWViewBase(FWViewType::EType, unsigned int iVersion=1)
Definition: FWViewBase.cc:33
FWViewType::EType typeId() const
Definition: FWViewBase.h:41