#include <Fireworks/Core/interface/FWViewEnergyScaleEditor.h>
Public Member Functions | |
ClassDef (FWViewEnergyScaleEditor, 0) | |
FWViewEnergyScaleEditor (FWViewEnergyScale *s, TGCompositeFrame *w, bool addAutoScaleControll=true) | |
void | setEnabled (bool) |
virtual | ~FWViewEnergyScaleEditor () |
Private Member Functions | |
void | addParam (FWParameterBase *, const char *title=0) |
FWViewEnergyScaleEditor (const FWViewEnergyScaleEditor &) | |
const FWViewEnergyScaleEditor & | operator= (const FWViewEnergyScaleEditor &) |
Private Attributes | |
bool | m_enabled |
FWViewEnergyScale * | m_scale |
std::vector< boost::shared_ptr < FWParameterSetterBase > > | m_setters |
Description: [one line class summary]
Usage: <usage>
Definition at line 38 of file FWViewEnergyScaleEditor.h.
FWViewEnergyScaleEditor::FWViewEnergyScaleEditor | ( | FWViewEnergyScale * | s, |
TGCompositeFrame * | w, | ||
bool | addAutoScaleControll = true |
||
) |
Definition at line 36 of file FWViewEnergyScaleEditor.cc.
References addParam(), FWViewEnergyScale::m_fixedValToHeight, FWViewEnergyScale::m_maxTowerHeight, FWViewEnergyScale::m_plotEt, m_scale, and FWViewEnergyScale::m_scaleMode.
: TGVerticalFrame(w), m_scale(s), m_enabled(true) { addParam(&m_scale->m_plotEt); addParam(&m_scale->m_scaleMode); addParam(&m_scale->m_fixedValToHeight, "FixedScaleMode"); if (addAutoScaleControll) addParam(&m_scale->m_maxTowerHeight, "AutomaticScaleMode"); }
FWViewEnergyScaleEditor::~FWViewEnergyScaleEditor | ( | ) | [virtual] |
Definition at line 49 of file FWViewEnergyScaleEditor.cc.
{ }
FWViewEnergyScaleEditor::FWViewEnergyScaleEditor | ( | const FWViewEnergyScaleEditor & | ) | [private] |
void FWViewEnergyScaleEditor::addParam | ( | FWParameterBase * | param, |
const char * | title = 0 |
||
) | [private] |
Definition at line 69 of file FWViewEnergyScaleEditor.cc.
References m_setters, and FWParameterSetterBase::makeSetterFor().
Referenced by FWViewEnergyScaleEditor().
{ int leftPad = 0; if (title) { leftPad = 10; AddFrame(new TGLabel(this, title), new TGLayoutHints(kLHintsLeft, leftPad, 0, 0, 0)); leftPad *= 2; } boost::shared_ptr<FWParameterSetterBase> ptr( FWParameterSetterBase::makeSetterFor(param) ); ptr->attach((FWParameterBase*)param, this); TGFrame* pframe = ptr->build(this); AddFrame(pframe, new TGLayoutHints(kLHintsLeft, leftPad, 0, 0, 0)); m_setters.push_back(ptr); }
FWViewEnergyScaleEditor::ClassDef | ( | FWViewEnergyScaleEditor | , |
0 | |||
) |
const FWViewEnergyScaleEditor& FWViewEnergyScaleEditor::operator= | ( | const FWViewEnergyScaleEditor & | ) | [private] |
void FWViewEnergyScaleEditor::setEnabled | ( | bool | x | ) |
Definition at line 58 of file FWViewEnergyScaleEditor.cc.
References i, m_enabled, m_setters, and x.
Referenced by FWEveView::populateController(), and FWEveView::useGlobalEnergyScaleChanged().
bool FWViewEnergyScaleEditor::m_enabled [private] |
Definition at line 62 of file FWViewEnergyScaleEditor.h.
Referenced by setEnabled().
Definition at line 61 of file FWViewEnergyScaleEditor.h.
Referenced by FWViewEnergyScaleEditor().
std::vector<boost::shared_ptr<FWParameterSetterBase> > FWViewEnergyScaleEditor::m_setters [private] |
Definition at line 65 of file FWViewEnergyScaleEditor.h.
Referenced by addParam(), and setEnabled().