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 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  ~FWViewBase() override;
62 
63 public:
64  FWViewBase(const FWViewBase&) = delete; // stop default
65 
66  const FWViewBase& operator=(const FWViewBase&) = delete; // stop default
67 
68  // ---------- member data --------------------------------
69 };
70 
71 #endif
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
Definition: FWViewBase.cc:102
EType id() const
Definition: FWViewType.cc:68
~FWViewBase() override
Definition: FWViewBase.cc:40
sigc::signal< void(Int_t, Int_t)> openSelectedModelContextMenu_
Definition: FWViewBase.h:57
sigc::signal< void(const FWViewBase *)> beingDestroyed_
Definition: FWViewBase.h:56
FWViewType m_type
Definition: FWViewBase.h:61
virtual void populateController(ViewerParameterGUI &) const
Definition: FWViewBase.h:49
virtual void saveImageTo(const std::string &iName) const =0
void promptForSaveImageTo(TGFrame *) const
Definition: FWViewBase.cc:62
const FWViewBase & operator=(const FWViewBase &)=delete
void destroy()
Definition: FWViewBase.cc:57
FWViewType::EType typeId() const
Definition: FWViewBase.h:42
const std::string & typeName() const
Definition: FWViewBase.cc:107
FWViewBase(FWViewType::EType, unsigned int iVersion=1)
Definition: FWViewBase.cc:32