CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
54  FWParameterSetterBase(const FWParameterSetterBase&) = delete; // stop default
55  const FWParameterSetterBase& operator=(const FWParameterSetterBase&) = delete; // stop default
56 
57 private:
58  virtual void attach(FWParameterBase*) = 0;
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