CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 // $Id: FWParameterSetterBase.h,v 1.8 2012/02/22 03:45:57 amraktad Exp $
20 //
21 
22 // system include files
23 #include <boost/shared_ptr.hpp>
24 
25 // user include files
26 
27 // forward declarations
28 class FWParameterBase;
30 class TGFrame;
31 
33 {
34 public:
36  virtual ~FWParameterSetterBase();
37 
38  // ---------- const member functions ---------------------
39 
40  // ---------- static member functions --------------------
41 
42  static boost::shared_ptr<FWParameterSetterBase> makeSetterFor(FWParameterBase*);
43 
44  // ---------- member functions ---------------------------
45 
47  virtual TGFrame* build(TGFrame* iParent, bool labelBack = true) = 0;
48 
49  virtual void setEnabled(bool);
50 
51 protected:
52  void update() const;
54 
55 private:
56  virtual void attach(FWParameterBase*) = 0;
57 
58  FWParameterSetterBase(const FWParameterSetterBase&); // stop default
59  const FWParameterSetterBase& operator=(const FWParameterSetterBase&); // stop default
60 
61  // ---------- member data --------------------------------
62 
64 };
65 
66 #endif
FWParameterSetterEditorBase * frame() const
void attach(FWParameterBase *, FWParameterSetterEditorBase *)
virtual TGFrame * build(TGFrame *iParent, bool labelBack=true)=0
static boost::shared_ptr< FWParameterSetterBase > makeSetterFor(FWParameterBase *)
virtual void setEnabled(bool)
FWParameterSetterEditorBase * m_frame
const FWParameterSetterBase & operator=(const FWParameterSetterBase &)