| 49 | } |
| 50 | |
| 51 | bool Tr2ActionSetValue::OnModified( Be::Var* value ) |
| 52 | { |
| 53 | if( !m_controller ) |
| 54 | { |
| 55 | return true; |
| 56 | } |
| 57 | if( IsMatch( value, m_destination.m_path ) || IsMatch( value, m_destination.m_attribute ) || IsMatch( value, m_destination.m_object ) || IsMatch( value, m_delayBinding ) ) |
| 58 | { |
| 59 | if( !HasDelayedBinding() ) |
| 60 | { |
| 61 | LinkDestination( *m_controller ); |
| 62 | } |
| 63 | } |
| 64 | else if( IsMatch( value, m_value ) ) |
| 65 | { |
| 66 | m_evaluator.SetExpr( m_value.c_str(), *m_controller ); |
| 67 | } |
| 68 | return true; |
| 69 | } |
| 70 | |
| 71 | bool Tr2ActionSetValue::IsBindingValid() const |
| 72 | { |