equal
deleted
inserted
replaced
1884 // |
1884 // |
1885 void CVtUiAppUi::ProcessCommandL( |
1885 void CVtUiAppUi::ProcessCommandL( |
1886 TInt aCommand ) |
1886 TInt aCommand ) |
1887 { |
1887 { |
1888 __VTPRINTENTER( "VtUi.ProcessCommandL" ) |
1888 __VTPRINTENTER( "VtUi.ProcessCommandL" ) |
|
1889 |
|
1890 // delay mute cmd received during layout change |
|
1891 if ( aCommand == EAknSoftkeyOptions ) |
|
1892 { |
|
1893 if ( iLayoutChg ) |
|
1894 { |
|
1895 iDelayedCmd = EAknSoftkeyOptions; |
|
1896 __VTPRINTEXIT( "VtUi.ProcessCommandL mute delayed due to LayoutChange" ) |
|
1897 return; |
|
1898 } |
|
1899 } |
|
1900 |
1889 MVtEngCommandHandler& command = Model().CommandHandler(); |
1901 MVtEngCommandHandler& command = Model().CommandHandler(); |
1890 command.ExecuteL( KVtEngRequestLastRemoteFrame, NULL ); |
1902 command.ExecuteL( KVtEngRequestLastRemoteFrame, NULL ); |
1891 |
1903 |
1892 // only with fixed toolbar |
1904 // only with fixed toolbar |
1893 if ( AknLayoutUtils::PenEnabled() ) |
1905 if ( AknLayoutUtils::PenEnabled() ) |
2184 case EVtUiCmdSwapImagesPlaces: |
2196 case EVtUiCmdSwapImagesPlaces: |
2185 refresh = ETrue; |
2197 refresh = ETrue; |
2186 CleanupPushEnableBlindL(); |
2198 CleanupPushEnableBlindL(); |
2187 iUiStates->SetDisableBlindSetting( ETrue ); |
2199 iUiStates->SetDisableBlindSetting( ETrue ); |
2188 CmdSwapImagesPlacesL(); |
2200 CmdSwapImagesPlacesL(); |
|
2201 |
|
2202 |
|
2203 MVtEngMedia& media = Model().Media(); |
|
2204 if ( VtUiUtility::GetFreezeState( media ) ) |
|
2205 { |
|
2206 TBool isViewFinderInContextPane = IsViewFinderInContextPane(); |
|
2207 iUiStates->SetViewFindersInitialPlaceContextPane( isViewFinderInContextPane ); |
|
2208 } |
|
2209 |
2189 CleanupStack::PopAndDestroy(); // CleanupPushEnableBlindL |
2210 CleanupStack::PopAndDestroy(); // CleanupPushEnableBlindL |
2190 break; |
2211 break; |
2191 |
2212 |
2192 case EVtUiCmdZoom: |
2213 case EVtUiCmdZoom: |
2193 refresh = ETrue; |
2214 refresh = ETrue; |
4889 |
4910 |
4890 |
4911 |
4891 if ( iDelayedCmd != 0 ) |
4912 if ( iDelayedCmd != 0 ) |
4892 { |
4913 { |
4893 __VTPRINT2( DEBUG_GEN, "VtUi.DoLayoutChg reexecute the delayed cmd=%d", iDelayedCmd); |
4914 __VTPRINT2( DEBUG_GEN, "VtUi.DoLayoutChg reexecute the delayed cmd=%d", iDelayedCmd); |
4894 HandleCommandL( iDelayedCmd ); |
4915 if( iDelayedCmd == EAknSoftkeyOptions ) |
|
4916 { |
|
4917 ProcessCommandL( iDelayedCmd ); |
|
4918 } |
|
4919 else |
|
4920 { |
|
4921 HandleCommandL( iDelayedCmd ); |
|
4922 } |
4895 iDelayedCmd = 0; |
4923 iDelayedCmd = 0; |
4896 } |
4924 } |
4897 __VTPRINTEXIT( "VtUi.DoLayoutChg" ) |
4925 __VTPRINTEXIT( "VtUi.DoLayoutChg" ) |
4898 } |
4926 } |
4899 |
4927 |