CMS 3D CMS Logo

FWParameterSetterBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWParameterSetterBase_h
2 #define Fireworks_Core_FWParameterSetterBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWParameterSetterBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Mar 7 14:16:14 EST 2008
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
25 
26 // forward declarations
27 class FWParameterBase;
29 class TGFrame;
30 
32 {
33 public:
35  virtual ~FWParameterSetterBase();
36 
37  // ---------- const member functions ---------------------
38 
39  // ---------- static member functions --------------------
40 
41  static std::shared_ptr<FWParameterSetterBase> makeSetterFor(FWParameterBase*);
42 
43  // ---------- member functions ---------------------------
44 
46  virtual TGFrame* build(TGFrame* iParent, bool labelBack = true) = 0;
47 
48  virtual void setEnabled(bool);
49 
50 protected:
51  void update() const;
53 
54 private:
55  virtual void attach(FWParameterBase*) = 0;
56 
57  FWParameterSetterBase(const FWParameterSetterBase&) = delete; // stop default
58  const FWParameterSetterBase& operator=(const FWParameterSetterBase&) = delete; // stop default
59 
60  // ---------- member data --------------------------------
61 
63 };
64 
65 #endif
FWParameterSetterEditorBase * frame() const
void attach(FWParameterBase *, FWParameterSetterEditorBase *)
virtual TGFrame * build(TGFrame *iParent, bool labelBack=true)=0
virtual void setEnabled(bool)
FWParameterSetterEditorBase * m_frame
static std::shared_ptr< FWParameterSetterBase > makeSetterFor(FWParameterBase *)
const FWParameterSetterBase & operator=(const FWParameterSetterBase &)=delete