Lines Matching refs:ValueT
68 template< typename PosT, typename ValueT >
73 typedef ValueT ValueType;
74 typedef PosValueMapper< PosT, ValueT > MapperType;
80 ValueT mnValue; /// Corresponding value.
95 ValueT GetValueFromPos( PosT nPos ) const;
98 PosT GetPosFromValue( ValueT nValue ) const;
193 template< typename ControlT, typename ValueT >
198 typedef ValueT ControlValueType;
199 typedef SingleControlWrapper< ControlT, ValueT > SingleControlWrapperType;
213 virtual ValueT GetControlValue() const = 0;
215 virtual void SetControlValue( ValueT aValue ) = 0;
300 template< typename ValueT >
301 class NumericFieldWrapper : public SingleControlWrapper< NumericField, ValueT >
305 SingleControlWrapper< NumericField, ValueT >( rField ) {} in NumericFieldWrapper()
310 virtual ValueT GetControlValue() const;
311 virtual void SetControlValue( ValueT nValue );
332 template< typename ValueT >
333 class MetricFieldWrapper : public SingleControlWrapper< MetricField, ValueT >
337 … SingleControlWrapper< MetricField, ValueT >( rField ), meUnit( eUnit ) {} in MetricFieldWrapper()
342 virtual ValueT GetControlValue() const;
343 virtual void SetControlValue( ValueT nValue );
367 template< typename ValueT >
369 public SingleControlWrapper< ListBox, ValueT >,
370 public PosValueMapper< ListBoxPosType, ValueT >
372 typedef PosValueMapper< ListBoxPosType, ValueT > MapperType;
380 … SingleControlWrapper< ListBox, ValueT >( rListBox ), MapperType( LISTBOX_ENTRY_NOTFOUND, pMap ) {} in ListBoxWrapper()
387 virtual ValueT GetControlValue() const;
388 virtual void SetControlValue( ValueT nValue );
409 template< typename ValueT >
411 public SingleControlWrapper< ValueSet, ValueT >,
412 public PosValueMapper< ValueSetPosType, ValueT >
414 typedef PosValueMapper< ValueSetPosType, ValueT > MapperType;
422 …SingleControlWrapper< ValueSet, ValueT >( rValueSet ), MapperType( VALUESET_ITEM_NOTFOUND, pMap ) … in ValueSetWrapper()
429 virtual ValueT GetControlValue() const;
430 virtual void SetControlValue( ValueT nValue );
491 template< typename ValueT >
496 typedef ValueT ControlValueType;
497 typedef MultiControlWrapper< ValueT > MultiControlWrapperType;
502 inline const ValueT& GetDefaultValue() const { return maDefValue; } in GetDefaultValue()
504 inline void SetDefaultValue( const ValueT& rDefValue ) { maDefValue = rDefValue; } in SetDefaultValue()
507 virtual ValueT GetControlValue() const = 0;
509 virtual void SetControlValue( ValueT aValue ) = 0;
512 ValueT maDefValue;
526 template< typename PosT, typename ValueT >
527 ValueT PosValueMapper< PosT, ValueT >::GetValueFromPos( PosT nPos ) const in GetValueFromPos()
529 ValueT nValue; in GetValueFromPos()
540 nValue = static_cast< ValueT >( nPos ); in GetValueFromPos()
546 template< typename PosT, typename ValueT >
547 PosT PosValueMapper< PosT, ValueT >::GetPosFromValue( ValueT nValue ) const in GetPosFromValue()
566 template< typename ControlT, typename ValueT >
567 inline void SingleControlWrapper< ControlT, ValueT >::ModifyControl( TriState eEnable, TriState eSh… in ModifyControl()
577 template< typename ValueT >
578 bool NumericFieldWrapper< ValueT >::IsControlDontKnow() const in IsControlDontKnow()
583 template< typename ValueT >
584 void NumericFieldWrapper< ValueT >::SetControlDontKnow( bool bSet ) in SetControlDontKnow()
590 template< typename ValueT >
591 ValueT NumericFieldWrapper< ValueT >::GetControlValue() const in GetControlValue()
593 return static_cast< ValueT >( this->GetControl().Denormalize( this->GetControl().GetValue() ) ); in GetControlValue()
596 template< typename ValueT >
597 void NumericFieldWrapper< ValueT >::SetControlValue( ValueT nValue ) in SetControlValue()
604 template< typename ValueT >
605 bool MetricFieldWrapper< ValueT >::IsControlDontKnow() const in IsControlDontKnow()
610 template< typename ValueT >
611 void MetricFieldWrapper< ValueT >::SetControlDontKnow( bool bSet ) in SetControlDontKnow()
617 template< typename ValueT >
618 ValueT MetricFieldWrapper< ValueT >::GetControlValue() const in GetControlValue()
620 …return static_cast< ValueT >( this->GetControl().Denormalize( this->GetControl().GetValue( meUnit … in GetControlValue()
623 template< typename ValueT >
624 void MetricFieldWrapper< ValueT >::SetControlValue( ValueT nValue ) in SetControlValue()
631 template< typename ValueT >
632 ValueT ListBoxWrapper< ValueT >::GetControlValue() const in GetControlValue()
637 template< typename ValueT >
638 void ListBoxWrapper< ValueT >::SetControlValue( ValueT nValue ) in SetControlValue()
647 template< typename ValueT >
648 ValueT ValueSetWrapper< ValueT >::GetControlValue() const in GetControlValue()
653 template< typename ValueT >
654 void ValueSetWrapper< ValueT >::SetControlValue( ValueT nValue ) in SetControlValue()