#include <Fireworks/Core/interface/FWBoolParameterSetter.h>
Public Member Functions | |
virtual void | attach (FWParameterBase *) |
virtual TGFrame * | build (TGFrame *iParent, bool labelBack=true) |
void | doUpdate () |
FWBoolParameterSetter () | |
virtual void | setEnabled (bool) |
virtual | ~FWBoolParameterSetter () |
Private Member Functions | |
FWBoolParameterSetter (const FWBoolParameterSetter &) | |
const FWBoolParameterSetter & | operator= (const FWBoolParameterSetter &) |
Private Attributes | |
FWBoolParameter * | m_param |
TGCheckButton * | m_widget |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 32 of file FWBoolParameterSetter.h.
FWBoolParameterSetter::FWBoolParameterSetter | ( | ) |
Definition at line 34 of file FWBoolParameterSetter.cc.
FWBoolParameterSetter::~FWBoolParameterSetter | ( | ) | [virtual] |
Definition at line 45 of file FWBoolParameterSetter.cc.
{ }
FWBoolParameterSetter::FWBoolParameterSetter | ( | const FWBoolParameterSetter & | ) | [private] |
void FWBoolParameterSetter::attach | ( | FWParameterBase * | iParam | ) | [virtual] |
Implements FWParameterSetterBase.
Definition at line 66 of file FWBoolParameterSetter.cc.
References m_param.
{ m_param = dynamic_cast<FWBoolParameter*>(iParam); assert(0!=m_param); }
TGFrame * FWBoolParameterSetter::build | ( | TGFrame * | iParent, |
bool | labelBack = true |
||
) | [virtual] |
Implements FWParameterSetterBase.
Definition at line 73 of file FWBoolParameterSetter.cc.
References FWParameterSetterBase::frame(), m_param, m_widget, FWParameterBase::name(), and FWGenericParameter< T >::value().
{ TGCompositeFrame* frame = new TGHorizontalFrame(iParent); m_widget = new TGCheckButton(frame, m_param->name().c_str(), 0); m_widget->SetState( m_param->value() ? kButtonDown : kButtonUp ); m_widget->Connect("Clicked()", "FWBoolParameterSetter", this, "doUpdate()"); frame->AddFrame(m_widget, new TGLayoutHints(kLHintsLeft|kLHintsCenterY,2,0,1,1)); return frame; }
void FWBoolParameterSetter::doUpdate | ( | ) |
Definition at line 91 of file FWBoolParameterSetter.cc.
References m_param, m_widget, FWGenericParameter< T >::set(), and FWParameterSetterBase::update().
const FWBoolParameterSetter& FWBoolParameterSetter::operator= | ( | const FWBoolParameterSetter & | ) | [private] |
void FWBoolParameterSetter::setEnabled | ( | bool | x | ) | [virtual] |
Reimplemented from FWParameterSetterBase.
Definition at line 85 of file FWBoolParameterSetter.cc.
References m_widget.
FWBoolParameter* FWBoolParameterSetter::m_param [private] |
Definition at line 55 of file FWBoolParameterSetter.h.
Referenced by attach(), build(), and doUpdate().
TGCheckButton* FWBoolParameterSetter::m_widget [private] |
Definition at line 56 of file FWBoolParameterSetter.h.
Referenced by build(), doUpdate(), and setEnabled().