equal
deleted
inserted
replaced
2329 CXnDomList& attrs = node->AttributeList(); |
2329 CXnDomList& attrs = node->AttributeList(); |
2330 CXnDomAttribute* nameAttribute = static_cast< CXnDomAttribute* >( |
2330 CXnDomAttribute* nameAttribute = static_cast< CXnDomAttribute* >( |
2331 attrs.FindByName( XnPropertyNames::action::KName ) ); |
2331 attrs.FindByName( XnPropertyNames::action::KName ) ); |
2332 CXnDomAttribute* valueAttribute = static_cast< CXnDomAttribute* >( |
2332 CXnDomAttribute* valueAttribute = static_cast< CXnDomAttribute* >( |
2333 attrs.FindByName( XnPropertyNames::action::KValue ) ); |
2333 attrs.FindByName( XnPropertyNames::action::KValue ) ); |
|
2334 if ( !nameAttribute || !valueAttribute ) |
|
2335 { |
|
2336 continue; |
|
2337 } |
2334 if ( nameAttribute->Value() == |
2338 if ( nameAttribute->Value() == |
2335 XnPropertyNames::action::trigger::name::keyevent::KEventType ) |
2339 XnPropertyNames::action::trigger::name::keyevent::KEventType ) |
2336 { |
2340 { |
2337 TLex8 lex( valueAttribute->Value() ); |
2341 TLex8 lex( valueAttribute->Value() ); |
2338 lex.Val( triggerEventType ); |
2342 lex.Val( triggerEventType ); |
2520 CXnDomList& attrs = domNode->AttributeList(); |
2524 CXnDomList& attrs = domNode->AttributeList(); |
2521 CXnDomAttribute* nameAttribute = static_cast< CXnDomAttribute* >( |
2525 CXnDomAttribute* nameAttribute = static_cast< CXnDomAttribute* >( |
2522 attrs.FindByName( XnPropertyNames::action::KName ) ); |
2526 attrs.FindByName( XnPropertyNames::action::KName ) ); |
2523 CXnDomAttribute* valueAttribute = static_cast< CXnDomAttribute* >( |
2527 CXnDomAttribute* valueAttribute = static_cast< CXnDomAttribute* >( |
2524 attrs.FindByName( XnPropertyNames::action::KValue ) ); |
2528 attrs.FindByName( XnPropertyNames::action::KValue ) ); |
|
2529 if ( !nameAttribute || !valueAttribute ) |
|
2530 { |
|
2531 continue; |
|
2532 } |
2525 if ( nameAttribute->Value() == |
2533 if ( nameAttribute->Value() == |
2526 XnPropertyNames::action::trigger::name::stylus::KStylusState ) |
2534 XnPropertyNames::action::trigger::name::stylus::KStylusState ) |
2527 { |
2535 { |
2528 TLex8 lex( valueAttribute->Value() ); |
2536 TLex8 lex( valueAttribute->Value() ); |
2529 lex.Val( treeTriggerState ); |
2537 lex.Val( treeTriggerState ); |
2675 CXnDomAttribute* nameAttribute = static_cast< CXnDomAttribute* >( |
2683 CXnDomAttribute* nameAttribute = static_cast< CXnDomAttribute* >( |
2676 attrs.FindByName( XnPropertyNames::action::KName ) ); |
2684 attrs.FindByName( XnPropertyNames::action::KName ) ); |
2677 CXnDomAttribute* valueAttribute = static_cast< CXnDomAttribute* >( |
2685 CXnDomAttribute* valueAttribute = static_cast< CXnDomAttribute* >( |
2678 attrs.FindByName( XnPropertyNames::action::KValue ) ); |
2686 attrs.FindByName( XnPropertyNames::action::KValue ) ); |
2679 |
2687 |
|
2688 if ( !nameAttribute || !valueAttribute ) |
|
2689 { |
|
2690 return EFalse; |
|
2691 } |
|
2692 |
2680 const TDesC8& name = nameAttribute->Value(); |
2693 const TDesC8& name = nameAttribute->Value(); |
2681 |
2694 |
2682 // check that eventype name matches |
2695 // check that eventype name matches |
2683 if ( name != |
2696 if ( name != |
2684 XnPropertyNames::action::trigger::name::keyevent::KEventType ) |
2697 XnPropertyNames::action::trigger::name::keyevent::KEventType ) |
7518 |
7531 |
7519 XnComponentInterface::MakeInterfaceL( popup, tooltipNode ); |
7532 XnComponentInterface::MakeInterfaceL( popup, tooltipNode ); |
7520 |
7533 |
7521 if ( popup ) |
7534 if ( popup ) |
7522 { |
7535 { |
7523 if ( aSource == XnEventSource::EStylus ) |
7536 popup->ShowPopupL( aRect ); |
7524 { |
|
7525 const TTimeIntervalMicroSeconds32 delay( 0 ); |
|
7526 const TTimeIntervalMicroSeconds32 display( 1000 * 1000 * 6 ); |
|
7527 |
|
7528 popup->ShowPopupL( aRect, delay, display ); |
|
7529 } |
|
7530 else |
|
7531 { |
|
7532 popup->ShowPopupL( aRect ); |
|
7533 } |
|
7534 } |
7537 } |
7535 } |
7538 } |
7536 } |
7539 } |
7537 } |
7540 } |
7538 } |
7541 } |