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 public:
34  virtual ~FWParameterSetterBase();
35 
36  // ---------- const member functions ---------------------
37 
38  // ---------- static member functions --------------------
39 
40  static std::shared_ptr<FWParameterSetterBase> makeSetterFor(FWParameterBase*);
41 
42  // ---------- member functions ---------------------------
43 
45  virtual TGFrame* build(TGFrame* iParent, bool labelBack = true) = 0;
46 
47  virtual void setEnabled(bool);
48 
49 protected:
50  void update() const;
52 
53 private:
54  virtual void attach(FWParameterBase*) = 0;
55 
56  FWParameterSetterBase(const FWParameterSetterBase&) = delete; // stop default
57  const FWParameterSetterBase& operator=(const FWParameterSetterBase&) = delete; // stop default
58 
59  // ---------- member data --------------------------------
60 
62 };
63 
64 #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