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.6.8.1 2011/02/11 19:42:15 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;
29 class TGFrame;
30 //class TGedFrame;
32 
34 {
35 
36 public:
38  virtual ~FWParameterSetterBase();
39 
40  // ---------- const member functions ---------------------
41 
42  // ---------- static member functions --------------------
43 
44  static boost::shared_ptr<FWParameterSetterBase> makeSetterFor(FWParameterBase*);
45  // ---------- member functions ---------------------------
47  virtual TGFrame* build(TGFrame* iParent, bool labelBack = true) = 0;
48 
49  virtual void setEnabled(bool);
50 
51 protected:
52  void update() const;
54  return m_frame;
55  }
56 private:
57  virtual void attach(FWParameterBase*) = 0;
58 
59  FWParameterSetterBase(const FWParameterSetterBase&); // stop default
60 
61  const FWParameterSetterBase& operator=(const FWParameterSetterBase&); // stop default
62 
63  // ---------- member data --------------------------------
65 };
66 
67 
68 #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 &)