uiaccelerator_plat/alf_core_toolkit_api/tsrc/src/testuiaifctkitblockshuigridlayout.cpp
branchRCL_3
changeset 52 31fccae4f8a7
parent 22 7c5dd702d6d3
equal deleted inserted replaced
51:e5af45d51884 52:31fccae4f8a7
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  for testing the method of the CHuiTextVisual
       
    15 *
       
    16 */
       
    17 
       
    18 #include <uiacceltk\huigridlayout.h>
       
    19 #include <alf\alfgridlayout.h>
       
    20 #include <uiacceltk\huiskin.h>
       
    21 
       
    22 #include "testuiaifcoretoolkit.h"
       
    23 
       
    24 const TInt KRow = 20;
       
    25 const TInt KColumn = 20;
       
    26 const TInt KWidth = 10;
       
    27 const TInt KLength = 20;
       
    28 const TInt KChildIndex = 5;
       
    29 const TInt KPointX = 10;
       
    30 const TInt KPointY = 20;
       
    31 const TInt KCount = 10;
       
    32 const TInt KPosition = 0;
       
    33 const TInt KBufLength = 50;
       
    34 const TInt KSessionId = 0x2001CB80;
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // Ctestplatalfcoretoolkit::TestHuiGridLayoutAddNewL
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutAddNewL( CStifItemParser& /*aItem*/ )
       
    41     {
       
    42 
       
    43     // Print to UI
       
    44     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
    45     _LIT( KTestHuiGridLayoutAddNewL, "In TestHuiGridLayoutAddNewL" );
       
    46     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutAddNewL );
       
    47     // Print to log file
       
    48     iLog->Log( KTestHuiGridLayoutAddNewL );
       
    49     
       
    50     TRAPD( error, iHuiGridLayout = iHuiGridLayout->AddNewL( *iHuiControl, KRow, KColumn ) );
       
    51 
       
    52     return error;
       
    53 
       
    54     }
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // Ctestplatalfcoretoolkit::TestHuiGridLayoutConstructor
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutConstructor( CStifItemParser& /*aItem*/ )
       
    61     {
       
    62 
       
    63     // Print to UI
       
    64     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
    65     _LIT( KTestHuiGridLayoutConstructor, "In TestHuiGridLayoutConstructor" );
       
    66     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutConstructor );
       
    67     // Print to log file
       
    68     iLog->Log( KTestHuiGridLayoutConstructor );
       
    69     
       
    70     TRAPD( error, iHuiGridLayout = new( ELeave ) CHuiGridLayout( *iHuiControl ) );
       
    71 
       
    72     return error;
       
    73 
       
    74     }
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // Ctestplatalfcoretoolkit::TestHuiGridLayoutConstructL
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutConstructL( CStifItemParser& /*aItem*/ )
       
    81     {
       
    82 
       
    83     // Print to UI
       
    84     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
    85     _LIT( KTestHuiGridLayoutConstructL, "In TestHuiGridLayoutConstructL" );
       
    86     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutConstructL );
       
    87     // Print to log file
       
    88     iLog->Log( KTestHuiGridLayoutConstructL );
       
    89     
       
    90     TRAPD( error, iHuiGridLayout->ConstructL() );
       
    91 
       
    92     return error;
       
    93 
       
    94     }
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // Ctestplatalfcoretoolkit::TestHuiGridLayoutDelete
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutDelete( CStifItemParser& /*aItem*/ )
       
   101     {
       
   102 
       
   103     // Print to UI
       
   104     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   105     _LIT( KTestHuiGridLayoutDelete, "In TestHuiGridLayoutDelete" );
       
   106     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutDelete );
       
   107     // Print to log file
       
   108     iLog->Log( KTestHuiGridLayoutDelete );
       
   109     
       
   110     delete iHuiGridLayout;
       
   111     iHuiGridLayout = NULL;
       
   112 
       
   113     return KErrNone;
       
   114 
       
   115     }
       
   116 
       
   117 // -----------------------------------------------------------------------------
       
   118 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetSize
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetSize( CStifItemParser& /*aItem*/ )
       
   122     {
       
   123 
       
   124     // Print to UI
       
   125     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   126     _LIT( KTestHuiGridLayoutSetSize, "In TestHuiGridLayoutSetSize" );
       
   127     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetSize );
       
   128     // Print to log file
       
   129     iLog->Log( KTestHuiGridLayoutSetSize );
       
   130     
       
   131     TSize size( KWidth, KLength );
       
   132     THuiRealSize huiRelSize( size );
       
   133     
       
   134     iHuiGridLayout->SetSize( huiRelSize );
       
   135 
       
   136     return KErrNone;
       
   137 
       
   138     }
       
   139 
       
   140 // -----------------------------------------------------------------------------
       
   141 // Ctestplatalfcoretoolkit::TestHuiGridLayoutChildOrdinal
       
   142 // -----------------------------------------------------------------------------
       
   143 //
       
   144 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutChildOrdinalL( CStifItemParser& /*aItem*/ )
       
   145     {
       
   146 
       
   147     // Print to UI
       
   148     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   149     _LIT( KTestHuiGridLayoutChildOrdinal, "In TestHuiGridLayoutChildOrdinal" );
       
   150     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutChildOrdinal );
       
   151     // Print to log file
       
   152     iLog->Log( KTestHuiGridLayoutChildOrdinal );
       
   153 
       
   154     iHuiVisual = new( ELeave ) CHuiVisual( *iHuiControl );
       
   155     
       
   156     iHuiGridLayout->AppendL( iHuiVisual );
       
   157     
       
   158     iHuiGridLayout->ChildOrdinal( 0 );
       
   159 
       
   160     return KErrNone;
       
   161 
       
   162     }
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 // Ctestplatalfcoretoolkit::TestHuiGridLayoutChildPos
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutChildPos( CStifItemParser& /*aItem*/ )
       
   169     {
       
   170 
       
   171     // Print to UI
       
   172     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   173     _LIT( KTestHuiGridLayoutChildPos, "In TestHuiGridLayoutChildPos" );
       
   174     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutChildPos );
       
   175     // Print to log file
       
   176     iLog->Log( KTestHuiGridLayoutChildPos );
       
   177     
       
   178     TPoint childpos;
       
   179     
       
   180     iHuiGridLayout->ChildPos( KChildIndex, childpos );
       
   181 
       
   182     return KErrNone;
       
   183 
       
   184     }
       
   185 
       
   186 // -----------------------------------------------------------------------------
       
   187 // Ctestplatalfcoretoolkit::TestHuiGridLayoutChildSize
       
   188 // -----------------------------------------------------------------------------
       
   189 //
       
   190 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutChildSize( CStifItemParser& /*aItem*/ )
       
   191     {
       
   192 
       
   193     // Print to UI
       
   194     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   195     _LIT( KTestHuiGridLayoutChildSize, "In TestHuiGridLayoutChildSize" );
       
   196     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutChildSize );
       
   197     // Print to log file
       
   198     iLog->Log( KTestHuiGridLayoutChildSize );
       
   199     
       
   200     TSize size;
       
   201     
       
   202     iHuiGridLayout->ChildSize( KChildIndex, size );
       
   203 
       
   204     return KErrNone;
       
   205 
       
   206     }
       
   207 
       
   208 // -----------------------------------------------------------------------------
       
   209 // Ctestplatalfcoretoolkit::TestHuiGridLayoutChildRect
       
   210 // -----------------------------------------------------------------------------
       
   211 //
       
   212 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutChildRect( CStifItemParser& /*aItem*/ )
       
   213     {
       
   214 
       
   215     // Print to UI
       
   216     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   217     _LIT( KTestHuiGridLayoutChildRect, "In TestHuiGridLayoutChildRect" );
       
   218     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutChildRect );
       
   219     // Print to log file
       
   220     iLog->Log( KTestHuiGridLayoutChildRect );
       
   221     
       
   222     THuiRealRect rect;
       
   223     
       
   224     iHuiGridLayout->ChildRect( KChildIndex, rect );
       
   225 
       
   226     return KErrNone;
       
   227 
       
   228     }
       
   229 
       
   230 // -----------------------------------------------------------------------------
       
   231 // Ctestplatalfcoretoolkit::TestHuiGridLayoutBaseUnit
       
   232 // -----------------------------------------------------------------------------
       
   233 //
       
   234 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutBaseUnit( CStifItemParser& /*aItem*/ )
       
   235     {
       
   236 
       
   237     // Print to UI
       
   238     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   239     _LIT( KTestHuiGridLayoutBaseUnit, "In TestHuiGridLayoutBaseUnit" );
       
   240     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutBaseUnit );
       
   241     // Print to log file
       
   242     iLog->Log( KTestHuiGridLayoutBaseUnit );
       
   243     
       
   244     iHuiGridLayout->BaseUnit();
       
   245 
       
   246     return KErrNone;
       
   247 
       
   248     }
       
   249 
       
   250 // -----------------------------------------------------------------------------
       
   251 // Ctestplatalfcoretoolkit::TestHuiGridLayoutRemoveAndDestroyAllD
       
   252 // -----------------------------------------------------------------------------
       
   253 //
       
   254 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutRemoveAndDestroyAllD( CStifItemParser& /*aItem*/ )
       
   255     {
       
   256 
       
   257     // Print to UI
       
   258     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   259     _LIT( KTestHuiGridLayoutRemoveAndDestroyAllD, "In TestHuiGridLayoutRemoveAndDestroyAllD" );
       
   260     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutRemoveAndDestroyAllD );
       
   261     // Print to log file
       
   262     iLog->Log( KTestHuiGridLayoutRemoveAndDestroyAllD );
       
   263     
       
   264     iHuiGridLayout->RemoveAndDestroyAllD();
       
   265 
       
   266     return KErrNone;
       
   267 
       
   268     }
       
   269 
       
   270 // -----------------------------------------------------------------------------
       
   271 // Ctestplatalfcoretoolkit::TestHuiGridLayoutFindTag
       
   272 // -----------------------------------------------------------------------------
       
   273 //
       
   274 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutFindTagL( CStifItemParser& /*aItem*/ )
       
   275     {
       
   276 
       
   277     // Print to UI
       
   278     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   279     _LIT( KTestHuiGridLayoutFindTag, "In TestHuiGridLayoutFindTag" );
       
   280     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutFindTag );
       
   281     // Print to log file
       
   282     iLog->Log( KTestHuiGridLayoutFindTag );
       
   283     
       
   284     iHuiVisual = new( ELeave ) CHuiVisual( *iHuiControl );
       
   285     
       
   286     iHuiGridLayout->AppendL( iHuiVisual );
       
   287     
       
   288     iHuiVisual->SetTagL( _L8( "huidisplaystring" ) );
       
   289     
       
   290     CHuiVisual* visual = iHuiGridLayout->FindTag( _L8("huidisplaystring") );
       
   291     
       
   292     STIF_ASSERT_NOT_NULL( visual );
       
   293 
       
   294     return KErrNone;
       
   295 
       
   296     }
       
   297 
       
   298 // -----------------------------------------------------------------------------
       
   299 // Ctestplatalfcoretoolkit::TestHuiGridLayoutCount
       
   300 // -----------------------------------------------------------------------------
       
   301 //
       
   302 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutCount( CStifItemParser& /*aItem*/ )
       
   303     {
       
   304 
       
   305     // Print to UI
       
   306     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   307     _LIT( KTestHuiGridLayoutCount, "In TestHuiGridLayoutCount" );
       
   308     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutCount );
       
   309     // Print to log file
       
   310     iLog->Log( KTestHuiGridLayoutCount );
       
   311     
       
   312     iHuiGridLayout->Count();
       
   313 
       
   314     return KErrNone;
       
   315 
       
   316     }
       
   317 
       
   318 // -----------------------------------------------------------------------------
       
   319 // Ctestplatalfcoretoolkit::TestHuiGridLayoutVisual
       
   320 // -----------------------------------------------------------------------------
       
   321 //
       
   322 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutVisualL( CStifItemParser& /*aItem*/ )
       
   323     {
       
   324 
       
   325     // Print to UI
       
   326     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   327     _LIT( KTestHuiGridLayoutVisual, "In TestHuiGridLayoutVisual" );
       
   328     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutVisual );
       
   329     // Print to log file
       
   330     iLog->Log( KTestHuiGridLayoutVisual );
       
   331 
       
   332     iHuiVisual = new( ELeave ) CHuiVisual( *iHuiControl );
       
   333     
       
   334     iHuiGridLayout->AppendL( iHuiVisual );
       
   335     
       
   336     CHuiVisual* visual = &( iHuiGridLayout->Visual( 0 ) );
       
   337     
       
   338     STIF_ASSERT_NOT_NULL( visual );
       
   339 
       
   340     return KErrNone;
       
   341 
       
   342     }
       
   343 
       
   344 // -----------------------------------------------------------------------------
       
   345 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetPos
       
   346 // -----------------------------------------------------------------------------
       
   347 //
       
   348 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetPos( CStifItemParser& /*aItem*/ )
       
   349     {
       
   350 
       
   351     // Print to UI
       
   352     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   353     _LIT( KTestHuiGridLayoutSetPos, "In TestHuiGridLayoutSetPos" );
       
   354     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetPos );
       
   355     // Print to log file
       
   356     iLog->Log( KTestHuiGridLayoutSetPos );
       
   357     
       
   358     THuiRealPoint point( KPointX, KPointY );
       
   359     
       
   360     iHuiGridLayout->SetPos( point );
       
   361 
       
   362     return KErrNone;
       
   363 
       
   364     }
       
   365 
       
   366 // -----------------------------------------------------------------------------
       
   367 // Ctestplatalfcoretoolkit::TestHuiGridLayoutUpdateChildrenLayout
       
   368 // -----------------------------------------------------------------------------
       
   369 //
       
   370 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutUpdateChildrenLayout( CStifItemParser& /*aItem*/ )
       
   371     {
       
   372 
       
   373     // Print to UI
       
   374     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   375     _LIT( KTestHuiGridLayoutUpdateChildrenLayout, "In TestHuiGridLayoutUpdateChildrenLayout" );
       
   376     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutUpdateChildrenLayout );
       
   377     // Print to log file
       
   378     iLog->Log( KTestHuiGridLayoutUpdateChildrenLayout );
       
   379     
       
   380     iHuiGridLayout->UpdateChildrenLayout();
       
   381 
       
   382     return KErrNone;
       
   383 
       
   384     }
       
   385 
       
   386 // -----------------------------------------------------------------------------
       
   387 // Ctestplatalfcoretoolkit::TestHuiGridLayoutPrepareDrawL
       
   388 // -----------------------------------------------------------------------------
       
   389 //
       
   390 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutPrepareDrawL( CStifItemParser& /*aItem*/ )
       
   391     {
       
   392 
       
   393     // Print to UI
       
   394     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   395     _LIT( KTestHuiGridLayoutPrepareDrawL, "In TestHuiGridLayoutPrepareDrawL" );
       
   396     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutPrepareDrawL );
       
   397     // Print to log file
       
   398     iLog->Log( KTestHuiGridLayoutPrepareDrawL );
       
   399     
       
   400     iHuiGridLayout->PrepareDrawL();
       
   401 
       
   402     return KErrNone;
       
   403 
       
   404     }
       
   405 
       
   406 // -----------------------------------------------------------------------------
       
   407 // Ctestplatalfcoretoolkit::TestHuiGridLayoutDraw
       
   408 // -----------------------------------------------------------------------------
       
   409 //
       
   410 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutDrawL( CStifItemParser& /*aItem*/ )
       
   411     {
       
   412 
       
   413     // Print to UI
       
   414     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   415     _LIT( KTestHuiGridLayoutDraw, "In TestHuiGridLayoutDraw" );
       
   416     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutDraw );
       
   417     // Print to log file
       
   418     iLog->Log( KTestHuiGridLayoutDraw );
       
   419 
       
   420     const TRect rect( 0, 0, 100, 100 );
       
   421     CHuiDisplayCoeControl* ctrl = CHuiDisplayCoeControl::NewL( *iHuiEnv, rect );
       
   422 
       
   423     CleanupStack::PushL( ctrl );
       
   424 
       
   425     CHuiEnv::RefreshCallBack( iHuiEnv );
       
   426 
       
   427     CHuiGc& gc = iHuiEnv->Skin().Context();
       
   428 
       
   429     iHuiGridLayout->Draw( gc );
       
   430     
       
   431     CleanupStack::PopAndDestroy( ctrl );
       
   432 
       
   433     return KErrNone;
       
   434 
       
   435     }
       
   436 
       
   437 // -----------------------------------------------------------------------------
       
   438 // Ctestplatalfcoretoolkit::TestHuiGridLayoutDrawSelf
       
   439 // -----------------------------------------------------------------------------
       
   440 //
       
   441 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutDrawSelfL( CStifItemParser& /*aItem*/ )
       
   442     {
       
   443 
       
   444     // Print to UI
       
   445     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   446     _LIT( KTestHuiGridLayoutDrawSelf, "In TestHuiGridLayoutDrawSelf" );
       
   447     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutDrawSelf );
       
   448     // Print to log file
       
   449     iLog->Log( KTestHuiGridLayoutDrawSelf );
       
   450     
       
   451     const TRect KDisplayRect( 0,0,100,100 );
       
   452 
       
   453     const TRect rect( 0, 0, 100, 100 );
       
   454     CHuiDisplayCoeControl* ctrl = CHuiDisplayCoeControl::NewL( *iHuiEnv, rect );
       
   455 
       
   456     CleanupStack::PushL( ctrl );
       
   457 
       
   458     CHuiEnv::RefreshCallBack( iHuiEnv );
       
   459 
       
   460     CHuiGc& gc = iHuiEnv->Skin().Context();
       
   461 
       
   462     iHuiGridLayout->DrawSelf( gc, KDisplayRect );
       
   463     
       
   464     CleanupStack::PopAndDestroy( ctrl );
       
   465 
       
   466     return KErrNone;
       
   467 
       
   468     }
       
   469 
       
   470 // -----------------------------------------------------------------------------
       
   471 // Ctestplatalfcoretoolkit::TestHuiGridLayoutChanged
       
   472 // -----------------------------------------------------------------------------
       
   473 //
       
   474 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutChanged( CStifItemParser& /*aItem*/ )
       
   475     {
       
   476 
       
   477     // Print to UI
       
   478     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   479     _LIT( KTestHuiGridLayoutChanged, "In TestHuiGridLayoutChanged" );
       
   480     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutChanged );
       
   481     // Print to log file
       
   482     iLog->Log( KTestHuiGridLayoutChanged );
       
   483     
       
   484     iHuiGridLayout->Changed();
       
   485 
       
   486     return KErrNone;
       
   487 
       
   488     }
       
   489 
       
   490 // -----------------------------------------------------------------------------
       
   491 // Ctestplatalfcoretoolkit::TestHuiGridLayoutReportChanged
       
   492 // -----------------------------------------------------------------------------
       
   493 //
       
   494 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutReportChanged( CStifItemParser& /*aItem*/ )
       
   495     {
       
   496 
       
   497     // Print to UI
       
   498     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   499     _LIT( KTestHuiGridLayoutReportChanged, "In TestHuiGridLayoutReportChanged" );
       
   500     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutReportChanged );
       
   501     // Print to log file
       
   502     iLog->Log( KTestHuiGridLayoutReportChanged );
       
   503     
       
   504     iHuiGridLayout->ReportChanged();
       
   505 
       
   506     return KErrNone;
       
   507 
       
   508     }
       
   509 
       
   510 // -----------------------------------------------------------------------------
       
   511 // Ctestplatalfcoretoolkit::TestHuiGridLayoutClearChanged
       
   512 // -----------------------------------------------------------------------------
       
   513 //
       
   514 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutClearChanged( CStifItemParser& /*aItem*/ )
       
   515     {
       
   516 
       
   517     // Print to UI
       
   518     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   519     _LIT( KTestHuiGridLayoutClearChanged, "In TestHuiGridLayoutClearChanged" );
       
   520     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutClearChanged );
       
   521     // Print to log file
       
   522     iLog->Log( KTestHuiGridLayoutClearChanged );
       
   523     
       
   524     iHuiGridLayout->ClearChanged();
       
   525 
       
   526     return KErrNone;
       
   527 
       
   528     }
       
   529 
       
   530 // -----------------------------------------------------------------------------
       
   531 // Ctestplatalfcoretoolkit::TestHuiGridLayoutNotifySkinChangedL
       
   532 // -----------------------------------------------------------------------------
       
   533 //
       
   534 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutNotifySkinChangedL( CStifItemParser& /*aItem*/ )
       
   535     {
       
   536 
       
   537     // Print to UI
       
   538     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   539     _LIT( KTestHuiGridLayoutNotifySkinChangedL, "In TestHuiGridLayoutNotifySkinChangedL" );
       
   540     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutNotifySkinChangedL );
       
   541     // Print to log file
       
   542     iLog->Log( KTestHuiGridLayoutNotifySkinChangedL );
       
   543     
       
   544     iHuiGridLayout->NotifySkinChangedL();
       
   545 
       
   546     return KErrNone;
       
   547 
       
   548     }
       
   549 
       
   550 // -----------------------------------------------------------------------------
       
   551 // Ctestplatalfcoretoolkit::TestHuiGridLayoutExpandRectWithContent
       
   552 // -----------------------------------------------------------------------------
       
   553 //
       
   554 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutExpandRectWithContent( CStifItemParser& /*aItem*/ )
       
   555     {
       
   556 
       
   557     // Print to UI
       
   558     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   559     _LIT( KTestHuiGridLayoutExpandRectWithContent, "In TestHuiGridLayoutExpandRectWithContent" );
       
   560     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutExpandRectWithContent );
       
   561     // Print to log file
       
   562     iLog->Log( KTestHuiGridLayoutExpandRectWithContent );
       
   563     
       
   564     TRect rect( TPoint( 0, 0 ), TPoint( KWidth, KLength ) );
       
   565     
       
   566     iHuiGridLayout->ExpandRectWithContent( rect );
       
   567 
       
   568     return KErrNone;
       
   569 
       
   570     }
       
   571 
       
   572 // -----------------------------------------------------------------------------
       
   573 // Ctestplatalfcoretoolkit::TestHuiGridLayoutVisualExtension
       
   574 // -----------------------------------------------------------------------------
       
   575 //
       
   576 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutVisualExtension( CStifItemParser& /*aItem*/ )
       
   577     {
       
   578 
       
   579     // Print to UI
       
   580     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   581     _LIT( KTestHuiGridLayoutVisualExtension, "In TestHuiGridLayoutVisualExtension" );
       
   582     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutVisualExtension );
       
   583     // Print to log file
       
   584     iLog->Log( KTestHuiGridLayoutVisualExtension );
       
   585     
       
   586     TUid uid = TUid::Null();
       
   587     
       
   588     TAny** any = NULL;
       
   589     
       
   590     iHuiGridLayout->VisualExtension( uid, any );
       
   591 
       
   592     return KErrNone;
       
   593 
       
   594     }
       
   595 
       
   596 // -----------------------------------------------------------------------------
       
   597 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetColumnsL
       
   598 // -----------------------------------------------------------------------------
       
   599 //
       
   600 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetColumnsL( CStifItemParser& /*aItem*/ )
       
   601     {
       
   602 
       
   603     // Print to UI
       
   604     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   605     _LIT( KTestHuiGridLayoutSetColumnsL, "In TestHuiGridLayoutSetColumnsL" );
       
   606     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetColumnsL );
       
   607     // Print to log file
       
   608     iLog->Log( KTestHuiGridLayoutSetColumnsL );
       
   609     
       
   610     iHuiGridLayout->SetColumnsL( KColumn );
       
   611 
       
   612     return KErrNone;
       
   613 
       
   614     }
       
   615 
       
   616 // -----------------------------------------------------------------------------
       
   617 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetRowsL
       
   618 // -----------------------------------------------------------------------------
       
   619 //
       
   620 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetRowsL( CStifItemParser& /*aItem*/ )
       
   621     {
       
   622 
       
   623     // Print to UI
       
   624     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   625     _LIT( KTestHuiGridLayoutSetRowsL, "In TestHuiGridLayoutSetRowsL" );
       
   626     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetRowsL );
       
   627     // Print to log file
       
   628     iLog->Log( KTestHuiGridLayoutSetRowsL );
       
   629     
       
   630     iHuiGridLayout->SetRowsL( KRow );
       
   631 
       
   632     return KErrNone;
       
   633 
       
   634     }
       
   635 
       
   636 // -----------------------------------------------------------------------------
       
   637 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetColumnsLWithArray
       
   638 // -----------------------------------------------------------------------------
       
   639 //
       
   640 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetColumnsLWithArray( CStifItemParser& /*aItem*/ )
       
   641     {
       
   642 
       
   643     // Print to UI
       
   644     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   645     _LIT( KTestHuiGridLayoutSetColumnsLWithArray, "In TestHuiGridLayoutSetColumnsLWithArray" );
       
   646     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetColumnsLWithArray );
       
   647     // Print to log file
       
   648     iLog->Log( KTestHuiGridLayoutSetColumnsLWithArray );
       
   649     
       
   650     RArray<TInt> weight;
       
   651     weight.Append( KWidth );
       
   652     weight.Append( KLength );
       
   653     
       
   654     TRAPD( error, iHuiGridLayout->SetColumnsL( weight ) );
       
   655 
       
   656     return error;
       
   657 
       
   658     }
       
   659 
       
   660 // -----------------------------------------------------------------------------
       
   661 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetRowsLWithArray
       
   662 // -----------------------------------------------------------------------------
       
   663 //
       
   664 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetRowsLWithArray( CStifItemParser& /*aItem*/ )
       
   665     {
       
   666 
       
   667     // Print to UI
       
   668     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   669     _LIT( KTestHuiGridLayoutSetRowsLWithArray, "In TestHuiGridLayoutSetRowsLWithArray" );
       
   670     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetRowsLWithArray );
       
   671     // Print to log file
       
   672     iLog->Log( KTestHuiGridLayoutSetRowsLWithArray );
       
   673     
       
   674     RArray<TInt> weight;
       
   675     weight.Append( KWidth );
       
   676     weight.Append( KLength );
       
   677     
       
   678     TRAPD( error, iHuiGridLayout->SetRowsL( weight ) );
       
   679 
       
   680     return error;
       
   681 
       
   682     }
       
   683 
       
   684 // -----------------------------------------------------------------------------
       
   685 // Ctestplatalfcoretoolkit::TestHuiGridLayoutFillWeightsL
       
   686 // -----------------------------------------------------------------------------
       
   687 //
       
   688 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutFillWeightsL( CStifItemParser& /*aItem*/ )
       
   689     {
       
   690 
       
   691     // Print to UI
       
   692     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   693     _LIT( KTestHuiGridLayoutFillWeightsL, "In TestHuiGridLayoutFillWeightsL" );
       
   694     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutFillWeightsL );
       
   695     // Print to log file
       
   696     iLog->Log( KTestHuiGridLayoutFillWeightsL );
       
   697     
       
   698     THuiMetric x( KLength );
       
   699     
       
   700     iHuiGridLayout->FillWeightsL( EHuiGridColumn, KCount, x );
       
   701 
       
   702     return KErrNone;
       
   703 
       
   704     }
       
   705 
       
   706 // -----------------------------------------------------------------------------
       
   707 // Ctestplatalfcoretoolkit::TestHuiGridLayoutAppendWeightL
       
   708 // -----------------------------------------------------------------------------
       
   709 //
       
   710 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutAppendWeightL( CStifItemParser& /*aItem*/ )
       
   711     {
       
   712 
       
   713     // Print to UI
       
   714     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   715     _LIT( KTestHuiGridLayoutAppendWeightL, "In TestHuiGridLayoutAppendWeightL" );
       
   716     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutAppendWeightL );
       
   717     // Print to log file
       
   718     iLog->Log( KTestHuiGridLayoutAppendWeightL );
       
   719     
       
   720     THuiMetric x( KLength );
       
   721     
       
   722     iHuiGridLayout->AppendWeightL( EHuiGridColumn, x );
       
   723 
       
   724     return KErrNone;
       
   725 
       
   726     }
       
   727 
       
   728 // -----------------------------------------------------------------------------
       
   729 // Ctestplatalfcoretoolkit::TestHuiGridLayoutInsertWeightL
       
   730 // -----------------------------------------------------------------------------
       
   731 //
       
   732 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutInsertWeightL( CStifItemParser& /*aItem*/ )
       
   733     {
       
   734 
       
   735     // Print to UI
       
   736     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   737     _LIT( KTestHuiGridLayoutInsertWeightL, "In TestHuiGridLayoutInsertWeightL" );
       
   738     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutInsertWeightL );
       
   739     // Print to log file
       
   740     iLog->Log( KTestHuiGridLayoutInsertWeightL );
       
   741     
       
   742     THuiMetric x( KLength );
       
   743     
       
   744     iHuiGridLayout->InsertWeightL( EHuiGridColumn, x, KPosition );
       
   745 
       
   746     return KErrNone;
       
   747 
       
   748     }
       
   749 
       
   750 // -----------------------------------------------------------------------------
       
   751 // Ctestplatalfcoretoolkit::TestHuiGridLayoutReplaceWeightL
       
   752 // -----------------------------------------------------------------------------
       
   753 //
       
   754 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutReplaceWeightL( CStifItemParser& /*aItem*/ )
       
   755     {
       
   756 
       
   757     // Print to UI
       
   758     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   759     _LIT( KTestHuiGridLayoutReplaceWeightL, "In TestHuiGridLayoutReplaceWeightL" );
       
   760     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutReplaceWeightL );
       
   761     // Print to log file
       
   762     iLog->Log( KTestHuiGridLayoutReplaceWeightL );
       
   763     
       
   764     THuiMetric x( KWidth );
       
   765     
       
   766     iHuiGridLayout->ReplaceWeightL( EHuiGridColumn, x, KPosition );
       
   767 
       
   768     return KErrNone;
       
   769 
       
   770     }
       
   771 
       
   772 // -----------------------------------------------------------------------------
       
   773 // Ctestplatalfcoretoolkit::TestHuiGridLayoutRemoveWeightL
       
   774 // -----------------------------------------------------------------------------
       
   775 //
       
   776 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutRemoveWeightL( CStifItemParser& /*aItem*/ )
       
   777     {
       
   778 
       
   779     // Print to UI
       
   780     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   781     _LIT( KTestHuiGridLayoutRemoveWeightL, "In TestHuiGridLayoutRemoveWeightL" );
       
   782     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutRemoveWeightL );
       
   783     // Print to log file
       
   784     iLog->Log( KTestHuiGridLayoutRemoveWeightL );
       
   785     
       
   786     iHuiGridLayout->RemoveWeightL( EHuiGridColumn, KPosition );
       
   787 
       
   788     return KErrNone;
       
   789 
       
   790     }
       
   791 
       
   792 // -----------------------------------------------------------------------------
       
   793 // Ctestplatalfcoretoolkit::TestHuiGridLayoutWeight
       
   794 // -----------------------------------------------------------------------------
       
   795 //
       
   796 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutWeight( CStifItemParser& /*aItem*/ )
       
   797     {
       
   798 
       
   799     // Print to UI
       
   800     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   801     _LIT( KTestHuiGridLayoutWeight, "In TestHuiGridLayoutWeight" );
       
   802     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutWeight );
       
   803     // Print to log file
       
   804     iLog->Log( KTestHuiGridLayoutWeight );
       
   805     
       
   806     iHuiGridLayout->Weight( EHuiGridColumn, KPosition );
       
   807 
       
   808     return KErrNone;
       
   809 
       
   810     }
       
   811 
       
   812 // -----------------------------------------------------------------------------
       
   813 // Ctestplatalfcoretoolkit::TestHuiGridLayoutDimensionCount
       
   814 // -----------------------------------------------------------------------------
       
   815 //
       
   816 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutDimensionCount( CStifItemParser& /*aItem*/ )
       
   817     {
       
   818 
       
   819     // Print to UI
       
   820     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   821     _LIT( KTestHuiGridLayoutDimensionCount, "In TestHuiGridLayoutDimensionCount" );
       
   822     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutDimensionCount );
       
   823     // Print to log file
       
   824     iLog->Log( KTestHuiGridLayoutDimensionCount );
       
   825     
       
   826     iHuiGridLayout->DimensionCount( EHuiGridColumn );
       
   827 
       
   828     return KErrNone;
       
   829 
       
   830     }
       
   831 
       
   832 // -----------------------------------------------------------------------------
       
   833 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetExpanding
       
   834 // -----------------------------------------------------------------------------
       
   835 //
       
   836 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetExpanding( CStifItemParser& /*aItem*/ )
       
   837     {
       
   838 
       
   839     // Print to UI
       
   840     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   841     _LIT( KTestHuiGridLayoutSetExpanding, "In TestHuiGridLayoutSetExpanding" );
       
   842     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetExpanding );
       
   843     // Print to log file
       
   844     iLog->Log( KTestHuiGridLayoutSetExpanding );
       
   845     
       
   846     iHuiGridLayout->SetExpanding( CHuiLayout::EExpandHorizontally );
       
   847 
       
   848     return KErrNone;
       
   849 
       
   850     }
       
   851 
       
   852 // -----------------------------------------------------------------------------
       
   853 // Ctestplatalfcoretoolkit::TestHuiGridLayoutRowCount
       
   854 // -----------------------------------------------------------------------------
       
   855 //
       
   856 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutRowCount( CStifItemParser& /*aItem*/ )
       
   857     {
       
   858 
       
   859     // Print to UI
       
   860     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   861     _LIT( KTestHuiGridLayoutRowCount, "In TestHuiGridLayoutRowCount" );
       
   862     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutRowCount );
       
   863     // Print to log file
       
   864     iLog->Log( KTestHuiGridLayoutRowCount );
       
   865     
       
   866     iHuiGridLayout->RowCount();
       
   867 
       
   868     return KErrNone;
       
   869 
       
   870     }
       
   871 
       
   872 // -----------------------------------------------------------------------------
       
   873 // Ctestplatalfcoretoolkit::TestHuiGridLayoutColumnCount
       
   874 // -----------------------------------------------------------------------------
       
   875 //
       
   876 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutColumnCount( CStifItemParser& /*aItem*/ )
       
   877     {
       
   878 
       
   879     // Print to UI
       
   880     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   881     _LIT( KTestHuiGridLayoutColumnCount, "In TestHuiGridLayoutColumnCount" );
       
   882     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutColumnCount );
       
   883     // Print to log file
       
   884     iLog->Log( KTestHuiGridLayoutColumnCount );
       
   885     
       
   886     iHuiGridLayout->ColumnCount();
       
   887 
       
   888     return KErrNone;
       
   889 
       
   890     }
       
   891 
       
   892 // -----------------------------------------------------------------------------
       
   893 // Ctestplatalfcoretoolkit::TestHuiGridLayoutOrdinalToBlock
       
   894 // -----------------------------------------------------------------------------
       
   895 //
       
   896 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutOrdinalToBlock( CStifItemParser& /*aItem*/ )
       
   897     {
       
   898 
       
   899     // Print to UI
       
   900     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   901     _LIT( KTestHuiGridLayoutOrdinalToBlock, "In TestHuiGridLayoutOrdinalToBlock" );
       
   902     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutOrdinalToBlock );
       
   903     // Print to log file
       
   904     iLog->Log( KTestHuiGridLayoutOrdinalToBlock );
       
   905     
       
   906     iHuiGridLayout->OrdinalToBlock( KChildIndex );
       
   907 
       
   908     return KErrNone;
       
   909 
       
   910     }
       
   911 
       
   912 // -----------------------------------------------------------------------------
       
   913 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetLayoutModeFlags
       
   914 // -----------------------------------------------------------------------------
       
   915 //
       
   916 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetLayoutModeFlags( CStifItemParser& /*aItem*/ )
       
   917     {
       
   918 
       
   919     // Print to UI
       
   920     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   921     _LIT( KTestHuiGridLayoutSetLayoutModeFlags, "In TestHuiGridLayoutSetLayoutModeFlags" );
       
   922     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetLayoutModeFlags );
       
   923     // Print to log file
       
   924     iLog->Log( KTestHuiGridLayoutSetLayoutModeFlags );
       
   925     
       
   926     iHuiGridLayout->SetLayoutModeFlags( EHuiGridColumn, EAlfGridIncreaseInnerPadding );
       
   927 
       
   928     return KErrNone;
       
   929 
       
   930     }
       
   931 
       
   932 // -----------------------------------------------------------------------------
       
   933 // Ctestplatalfcoretoolkit::TestHuiGridLayoutClearLayoutModeFlags
       
   934 // -----------------------------------------------------------------------------
       
   935 //
       
   936 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutClearLayoutModeFlags( CStifItemParser& /*aItem*/ )
       
   937     {
       
   938 
       
   939     // Print to UI
       
   940     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   941     _LIT( KTestHuiGridLayoutClearLayoutModeFlags, "In TestHuiGridLayoutClearLayoutModeFlags" );
       
   942     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutClearLayoutModeFlags );
       
   943     // Print to log file
       
   944     iLog->Log( KTestHuiGridLayoutClearLayoutModeFlags );
       
   945     
       
   946     iHuiGridLayout->ClearLayoutModeFlags( EHuiGridColumn, EAlfGridIncreaseInnerPadding );
       
   947 
       
   948     return KErrNone;
       
   949 
       
   950     }
       
   951 
       
   952 // -----------------------------------------------------------------------------
       
   953 // Ctestplatalfcoretoolkit::TestHuiGridLayoutLayoutModeFlags
       
   954 // -----------------------------------------------------------------------------
       
   955 //
       
   956 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutLayoutModeFlags( CStifItemParser& /*aItem*/ )
       
   957     {
       
   958 
       
   959     // Print to UI
       
   960     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   961     _LIT( KTestHuiGridLayoutLayoutModeFlags, "In TestHuiGridLayoutLayoutModeFlags" );
       
   962     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutLayoutModeFlags );
       
   963     // Print to log file
       
   964     iLog->Log( KTestHuiGridLayoutLayoutModeFlags );
       
   965     
       
   966     iHuiGridLayout->LayoutModeFlags( EHuiGridColumn );
       
   967 
       
   968     return KErrNone;
       
   969 
       
   970     }
       
   971 
       
   972 // -----------------------------------------------------------------------------
       
   973 // Ctestplatalfcoretoolkit::TestHuiGridLayoutGetClassName
       
   974 // -----------------------------------------------------------------------------
       
   975 //
       
   976 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutGetClassName( CStifItemParser& /*aItem*/ )
       
   977     {
       
   978 
       
   979     // Print to UI
       
   980     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
   981     _LIT( KTestHuiGridLayoutGetClassName, "In TestHuiGridLayoutGetClassName" );
       
   982     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutGetClassName );
       
   983     // Print to log file
       
   984     iLog->Log( KTestHuiGridLayoutGetClassName );
       
   985     
       
   986     TBuf<KBufLength> className;
       
   987     
       
   988     iHuiGridLayout->GetClassName( className );
       
   989 
       
   990     return KErrNone;
       
   991 
       
   992     }
       
   993 
       
   994 // -----------------------------------------------------------------------------
       
   995 // Ctestplatalfcoretoolkit::TestHuiGridLayoutDumpTree
       
   996 // -----------------------------------------------------------------------------
       
   997 //
       
   998 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutDumpTree( CStifItemParser& /*aItem*/ )
       
   999     {
       
  1000 
       
  1001     // Print to UI
       
  1002     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
  1003     _LIT( KTestHuiGridLayoutDumpTree, "In TestHuiGridLayoutDumpTree" );
       
  1004     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutDumpTree );
       
  1005     // Print to log file
       
  1006     iLog->Log( KTestHuiGridLayoutDumpTree );
       
  1007     
       
  1008     iHuiGridLayout->DumpTree();
       
  1009 
       
  1010     return KErrNone;
       
  1011 
       
  1012     }
       
  1013 
       
  1014 // -----------------------------------------------------------------------------
       
  1015 // Ctestplatalfcoretoolkit::TestHuiGridLayoutGetInstanceName
       
  1016 // -----------------------------------------------------------------------------
       
  1017 //
       
  1018 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutGetInstanceNameL( CStifItemParser& /*aItem*/ )
       
  1019     {
       
  1020 
       
  1021     // Print to UI
       
  1022     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
  1023     _LIT( KTestHuiGridLayoutGetInstanceName, "In TestHuiGridLayoutGetInstanceName" );
       
  1024     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutGetInstanceName );
       
  1025     // Print to log file
       
  1026     iLog->Log( KTestHuiGridLayoutGetInstanceName );
       
  1027 
       
  1028     iHuiVisual = new( ELeave ) CHuiVisual( *iHuiControl );
       
  1029     
       
  1030     iHuiGridLayout->AppendL( iHuiVisual );
       
  1031     
       
  1032     _LIT( KInstanceName, "instancename" );
       
  1033     
       
  1034     TBuf<KBufLength> instanceName( KInstanceName );
       
  1035     
       
  1036     iHuiGridLayout->GetInstanceName( instanceName );
       
  1037 
       
  1038     return KErrNone;
       
  1039 
       
  1040     }
       
  1041 
       
  1042 // -----------------------------------------------------------------------------
       
  1043 // Ctestplatalfcoretoolkit::TestHuiGridLayoutType
       
  1044 // -----------------------------------------------------------------------------
       
  1045 //
       
  1046 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutType( CStifItemParser& /*aItem*/ )
       
  1047     {
       
  1048 
       
  1049     // Print to UI
       
  1050     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
  1051     _LIT( KTestHuiGridLayoutType, "In TestHuiGridLayoutType" );
       
  1052     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutType );
       
  1053     // Print to log file
       
  1054     iLog->Log( KTestHuiGridLayoutType );
       
  1055     
       
  1056     iHuiGridLayout->Type();
       
  1057 
       
  1058     return KErrNone;
       
  1059 
       
  1060     }
       
  1061 
       
  1062 // -----------------------------------------------------------------------------
       
  1063 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSessionId
       
  1064 // -----------------------------------------------------------------------------
       
  1065 //
       
  1066 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSessionId( CStifItemParser& /*aItem*/ )
       
  1067     {
       
  1068 
       
  1069     // Print to UI
       
  1070     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
  1071     _LIT( KTestHuiGridLayoutSessionId, "In TestHuiGridLayoutSessionId" );
       
  1072     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSessionId );
       
  1073     // Print to log file
       
  1074     iLog->Log( KTestHuiGridLayoutSessionId );
       
  1075     
       
  1076     iHuiGridLayout->SessionId();
       
  1077 
       
  1078     return KErrNone;
       
  1079 
       
  1080     }
       
  1081 
       
  1082 // -----------------------------------------------------------------------------
       
  1083 // Ctestplatalfcoretoolkit::TestHuiGridLayoutSetSessionId
       
  1084 // -----------------------------------------------------------------------------
       
  1085 //
       
  1086 TInt CTestUiAifCoreToolkit::TestHuiGridLayoutSetSessionId( CStifItemParser& /*aItem*/ )
       
  1087     {
       
  1088 
       
  1089     // Print to UI
       
  1090     _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" );
       
  1091     _LIT( KTestHuiGridLayoutSetSessionId, "In TestHuiGridLayoutSetSessionId" );
       
  1092     TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiGridLayoutSetSessionId );
       
  1093     // Print to log file
       
  1094     iLog->Log( KTestHuiGridLayoutSetSessionId );
       
  1095     
       
  1096     iHuiGridLayout->SetSessionId( KSessionId );
       
  1097 
       
  1098     return KErrNone;
       
  1099 
       
  1100     }
       
  1101 
       
  1102 // End of file