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 private:
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
FWViewType::EType
EType
Definition: FWViewType.h:31
ViewerParameterGUI
Definition: CmsShowViewPopup.h:49
FWViewBase::typeName
const std::string & typeName() const
Definition: FWViewBase.cc:107
FWViewContextMenuHandlerBase
Definition: FWViewContextMenuHandlerBase.h:29
FWConfigurableParameterizable.h
FWViewBase::typeId
FWViewType::EType typeId() const
Definition: FWViewBase.h:42
FWViewType.h
FWViewBase::saveImageTo
virtual void saveImageTo(const std::string &iName) const =0
FWViewBase::openSelectedModelContextMenu_
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
Definition: FWViewBase.h:57
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWConfigurableParameterizable
Definition: FWConfigurableParameterizable.h:29
FWViewBase::populateController
virtual void populateController(ViewerParameterGUI &) const
Definition: FWViewBase.h:49
FWViewBase::destroy
void destroy()
Definition: FWViewBase.cc:57
FWViewBase::contextMenuHandler
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
Definition: FWViewBase.cc:102
FWViewBase::FWViewBase
FWViewBase(FWViewType::EType, unsigned int iVersion=1)
Definition: FWViewBase.cc:32
FWViewBase::operator=
const FWViewBase & operator=(const FWViewBase &)=delete
FWViewBase::~FWViewBase
~FWViewBase() override
Definition: FWViewBase.cc:40
FWViewBase::promptForSaveImageTo
void promptForSaveImageTo(TGFrame *) const
Definition: FWViewBase.cc:62
FWViewType::id
EType id() const
Definition: FWViewType.cc:68
FWViewBase::m_type
FWViewType m_type
Definition: FWViewBase.h:61
FWViewBase::beingDestroyed_
sigc::signal< void, const FWViewBase * > beingDestroyed_
Definition: FWViewBase.h:56
FWViewBase
Definition: FWViewBase.h:36
FWViewType
Definition: FWViewType.h:22