equal
deleted
inserted
replaced
46 #include "xnviewadapter.h" |
46 #include "xnviewadapter.h" |
47 #include "xnmenu.h" |
47 #include "xnmenu.h" |
48 #include "xneditmode.h" |
48 #include "xneditmode.h" |
49 #include "xnrootdata.h" |
49 #include "xnrootdata.h" |
50 |
50 |
|
51 #include "xnpopupcontroladapter.h" |
|
52 |
51 #include "debug.h" |
53 #include "debug.h" |
52 |
54 |
53 // Constants |
55 // Constants |
54 const TUid KXmlViewUid = { 1 }; |
56 const TUid KXmlViewUid = { 1 }; |
55 |
57 |
582 if( aEffect != TUid::Null() ) |
584 if( aEffect != TUid::Null() ) |
583 { |
585 { |
584 started = mgr->BeginActivateViewEffect( active, aContainer, aEffect ); |
586 started = mgr->BeginActivateViewEffect( active, aContainer, aEffect ); |
585 } |
587 } |
586 |
588 |
587 DeactivateContainerL( EFalse ); |
589 DeactivateContainerL(); |
588 |
590 |
589 // Update |
591 // Update |
590 iContainer = &aContainer; |
592 iContainer = &aContainer; |
591 |
593 |
592 // Disable layout and redraw until container activation is done |
594 // Disable layout and redraw until container activation is done |
749 |
751 |
750 // Run controls to powersave mode |
752 // Run controls to powersave mode |
751 ChangeControlsStateL( EFalse ); |
753 ChangeControlsStateL( EFalse ); |
752 |
754 |
753 CXnNode* node( iContainer->Node()->LayoutNode() ); |
755 CXnNode* node( iContainer->Node()->LayoutNode() ); |
754 |
756 |
755 CXnDomStringPool* sp( node->DomNode()->StringPool() ); |
|
756 |
|
757 CXnProperty* prop = CXnProperty::NewL( |
|
758 XnPropertyNames::style::common::KDisplay, |
|
759 XnPropertyNames::style::common::display::KNone, |
|
760 CXnDomPropertyValue::EString, *sp ); |
|
761 CleanupStack::PushL( prop ); |
|
762 |
|
763 node->SetPropertyWithoutNotificationL( prop ); |
|
764 CleanupStack::Pop( prop ); |
|
765 |
|
766 if ( !iDeactivate ) |
757 if ( !iDeactivate ) |
767 { |
758 { |
768 iDeactivate = BuildDeactivateTriggerL( iAppUiAdapter.UiEngine() ); |
759 iDeactivate = BuildDeactivateTriggerL( iAppUiAdapter.UiEngine() ); |
769 } |
760 } |
770 |
761 |
1016 |
1007 |
1017 RPointerArray< CXnNode > popups; |
1008 RPointerArray< CXnNode > popups; |
1018 CleanupClosePushL( popups ); |
1009 CleanupClosePushL( popups ); |
1019 |
1010 |
1020 iContainer->PopupNodesL( popups ); |
1011 iContainer->PopupNodesL( popups ); |
1021 |
1012 |
1022 for ( TInt i = 0; i < popups.Count(); i++ ) |
1013 for ( TInt i = 0; i < popups.Count(); i++ ) |
1023 { |
1014 { |
1024 CXnProperty* display = CXnProperty::NewL( |
1015 CXnProperty* display = CXnProperty::NewL( |
1025 XnPropertyNames::style::common::KDisplay, |
1016 XnPropertyNames::style::common::KDisplay, |
1026 XnPropertyNames::style::common::display::KNone, |
1017 XnPropertyNames::style::common::display::KNone, |
1033 } |
1024 } |
1034 |
1025 |
1035 CleanupStack::PopAndDestroy( &popups ); |
1026 CleanupStack::PopAndDestroy( &popups ); |
1036 |
1027 |
1037 iEventDispatcher->SetTextEditorActive( NULL, EFalse ); |
1028 iEventDispatcher->SetTextEditorActive( NULL, EFalse ); |
1038 } |
1029 |
1039 |
1030 CXnNode* popup( iAppUiAdapter.UiEngine().StylusPopupNode() ); |
|
1031 if ( popup ) |
|
1032 { |
|
1033 CXnPopupControlAdapter* control = |
|
1034 static_cast< CXnPopupControlAdapter* >( |
|
1035 popup->Control() ); |
|
1036 |
|
1037 if ( control ) |
|
1038 { |
|
1039 control->HideMenuL(); |
|
1040 } |
|
1041 } |
|
1042 } |
|
1043 |
|
1044 TBool CXnViewAdapter::IsForegroundAdapter() const |
|
1045 { |
|
1046 return ( iContainer != NULL ); |
|
1047 } |
1040 |
1048 |
1041 // End of file |
1049 // End of file |