idlehomescreen/xmluirendering/uiengine/src/xnuienginepluginif.cpp
branchRCL_3
changeset 34 d05a55b217df
parent 16 9674c1a575e9
equal deleted inserted replaced
30:b8fae6b8a148 34:d05a55b217df
    26 #include "xndomdocument.h"
    26 #include "xndomdocument.h"
    27 #include "xneditmode.h"
    27 #include "xneditmode.h"
    28 #include "xneditor.h"
    28 #include "xneditor.h"
    29 #include "xnviewdata.h"
    29 #include "xnviewdata.h"
    30 #include "xndomnode.h"
    30 #include "xndomnode.h"
    31 #include "xnhittest.h"
       
    32 #include "xnpanic.h"
    31 #include "xnpanic.h"
    33 
    32 
    34 // ============================ MEMBER FUNCTIONS ===============================
    33 // ============================ MEMBER FUNCTIONS ===============================
    35 
    34 
    36 // -----------------------------------------------------------------------------
    35 // -----------------------------------------------------------------------------
   180             XnPropertyNames::style::common::KFocus );        
   179             XnPropertyNames::style::common::KFocus );        
   181         );
   180         );
   182     }
   181     }
   183 
   182 
   184 // -----------------------------------------------------------------------------
   183 // -----------------------------------------------------------------------------
   185 // TXnUiEnginePluginIf::RestorePreviousFocusedNode
       
   186 // Forwards the call to the ui engine implementation
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 EXPORT_C void TXnUiEnginePluginIf::RestorePreviousFocusedNode()
       
   190     {    
       
   191     }
       
   192 
       
   193 // -----------------------------------------------------------------------------
       
   194 // TXnUiEnginePluginIf::StringPool
   184 // TXnUiEnginePluginIf::StringPool
   195 // Forwards the call to the ui engine implementation
   185 // Forwards the call to the ui engine implementation
   196 // -----------------------------------------------------------------------------
   186 // -----------------------------------------------------------------------------
   197 //
   187 //
   198 EXPORT_C CXnDomStringPool& TXnUiEnginePluginIf::StringPool()
   188 EXPORT_C CXnDomStringPool& TXnUiEnginePluginIf::StringPool()
   243     {
   233     {
   244     return iUiEngine->HorizontalTwipValueL( aValue, aReferenceValue );
   234     return iUiEngine->HorizontalTwipValueL( aValue, aReferenceValue );
   245     }
   235     }
   246 
   236 
   247 // -----------------------------------------------------------------------------
   237 // -----------------------------------------------------------------------------
   248 // TXnUiEnginePluginIf::ActivateViewL
       
   249 // Activate a view
       
   250 // -----------------------------------------------------------------------------
       
   251 //
       
   252 EXPORT_C void TXnUiEnginePluginIf::ActivateViewL( CXnNodePluginIf& aViewNode )
       
   253     {
       
   254     iUiEngine->ActivateViewL( aViewNode.Node() );
       
   255     }
       
   256 
       
   257 // -----------------------------------------------------------------------------
       
   258 // TXnUiEnginePluginIf::ScreenDeviceSize
   238 // TXnUiEnginePluginIf::ScreenDeviceSize
   259 // Get the size of the current screen device
   239 // Get the size of the current screen device
   260 // -----------------------------------------------------------------------------
   240 // -----------------------------------------------------------------------------
   261 //
   241 //
   262 EXPORT_C TSize TXnUiEnginePluginIf::ScreenDeviceSize()
   242 EXPORT_C TSize TXnUiEnginePluginIf::ScreenDeviceSize()
   328     {
   308     {
   329     return iUiEngine->Editor()->WidgetsVisible();
   309     return iUiEngine->Editor()->WidgetsVisible();
   330     }
   310     }
   331 
   311 
   332 // -----------------------------------------------------------------------------
   312 // -----------------------------------------------------------------------------
   333 // TXnUiEnginePluginIf::HitRegion
       
   334 // -----------------------------------------------------------------------------
       
   335 //
       
   336 EXPORT_C CXnControlAdapter* TXnUiEnginePluginIf::HitRegion() const
       
   337     {
       
   338     return iUiEngine->HitTest().HitRegion();
       
   339     }
       
   340 
       
   341 // -----------------------------------------------------------------------------
       
   342 // TXnUiEnginePluginIf::DeactivateFocusedNodeL
       
   343 // Deactivates focused node
       
   344 // -----------------------------------------------------------------------------
       
   345 //
       
   346 EXPORT_C void TXnUiEnginePluginIf::DeactivateFocusedNodeL()
       
   347     {    
       
   348     }
       
   349 
       
   350 // -----------------------------------------------------------------------------
       
   351 // TXnUiEnginePluginIf::ShowFocus
       
   352 // Queries wheter focus is visible
       
   353 // -----------------------------------------------------------------------------
       
   354 //
       
   355 EXPORT_C TBool TXnUiEnginePluginIf::ShowFocus()
       
   356     {
       
   357     return EFalse;
       
   358     }
       
   359 
       
   360 // -----------------------------------------------------------------------------
       
   361 // TXnUiEnginePluginIf::PluginNodeL
   313 // TXnUiEnginePluginIf::PluginNodeL
       
   314 //
   362 // -----------------------------------------------------------------------------
   315 // -----------------------------------------------------------------------------
   363 //
   316 //
   364 EXPORT_C CXnNodePluginIf& TXnUiEnginePluginIf::PluginNodeL(
   317 EXPORT_C CXnNodePluginIf& TXnUiEnginePluginIf::PluginNodeL(
   365     CXnNodePluginIf* aNode )
   318     CXnNodePluginIf* aNode )
   366     {
   319     {
   391      
   344      
   392     return node->PluginIfL();
   345     return node->PluginIfL();
   393     }
   346     }
   394 
   347 
   395 // -----------------------------------------------------------------------------
   348 // -----------------------------------------------------------------------------
   396 // TXnUiEnginePluginIf::SetFocusVisibleL
       
   397 // Sets focus visibility of active view
       
   398 // -----------------------------------------------------------------------------
       
   399 //               
       
   400 EXPORT_C void TXnUiEnginePluginIf::SetFocusVisibleL( TBool /*aVisible*/ )
       
   401     {    
       
   402     }
       
   403 
       
   404 // -----------------------------------------------------------------------------
       
   405 // TXnUiEnginePluginIf::FocusVisible
       
   406 // Gets focus visibility of active view
       
   407 // -----------------------------------------------------------------------------
       
   408 //               
       
   409 EXPORT_C TBool TXnUiEnginePluginIf::FocusVisible()
       
   410     {    
       
   411     return EFalse;    
       
   412     }
       
   413 
       
   414 // -----------------------------------------------------------------------------
       
   415 // TXnUiEnginePluginIf::EnableSwipeL
       
   416 // Sets swipe enabled or disabled
       
   417 // -----------------------------------------------------------------------------
       
   418 //               
       
   419 EXPORT_C void TXnUiEnginePluginIf::EnableSwipeL( TBool /*aEnable*/ )
       
   420     {    
       
   421     }
       
   422 
       
   423 // -----------------------------------------------------------------------------
       
   424 // TXnUiEnginePluginIf::SwipeEnabledL
       
   425 // queries whether swipe is enabled or not
       
   426 // -----------------------------------------------------------------------------
       
   427 //               
       
   428 EXPORT_C TBool TXnUiEnginePluginIf::SwipeEnabledL()
       
   429     {    
       
   430     return EFalse;    
       
   431     }
       
   432 
       
   433 // -----------------------------------------------------------------------------
       
   434 // TXnUiEnginePluginIf::DisableRenderUiLC
   349 // TXnUiEnginePluginIf::DisableRenderUiLC
   435 // 
   350 // 
   436 // -----------------------------------------------------------------------------
   351 // -----------------------------------------------------------------------------
   437 //               
   352 //               
   438 EXPORT_C void TXnUiEnginePluginIf::DisableRenderUiLC()
   353 EXPORT_C void TXnUiEnginePluginIf::DisableRenderUiLC()
   459 EXPORT_C TBool TXnUiEnginePluginIf::IsTextEditorActive()
   374 EXPORT_C TBool TXnUiEnginePluginIf::IsTextEditorActive()
   460     {
   375     {
   461     return iUiEngine->IsTextEditorActive();
   376     return iUiEngine->IsTextEditorActive();
   462     }
   377     }
   463 
   378 
   464 
       
   465 // End of file
   379 // End of file
   466 
   380