classicui_pub/dialogs_api/tsrc/data/testsdkdialogs.rss
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Resource definitions for project testsdkdialogs
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 NAME    DILG
       
    20 
       
    21 #include <avkon.rsg>
       
    22 #include <avkon.rh>
       
    23 #include <eikon.rh>
       
    24 
       
    25 #include "testsdkdialogs.hrh"
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 //    Define the resource file signature
       
    30 //    This resource should be empty.
       
    31 //
       
    32 // -----------------------------------------------------------------------------
       
    33 RESOURCE RSS_SIGNATURE
       
    34     {
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 //    Default Document Name
       
    40 //
       
    41 // -----------------------------------------------------------------------------
       
    42 RESOURCE TBUF
       
    43     {
       
    44     buf = "";
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // r_testsdk_dialog
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 RESOURCE DIALOG r_testsdk_dialog
       
    52     {   
       
    53     title = TESTSDK_DIALOGS_TITLE;
       
    54     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
    55     items =
       
    56         {
       
    57         DLG_LINE
       
    58             {
       
    59             type = EEikCtEdwin;
       
    60             id = EDialogLine;
       
    61             control = EDWIN
       
    62                 {
       
    63                 maxlength = 20; 
       
    64                 width = 10;
       
    65                 };
       
    66             }
       
    67         };
       
    68     }
       
    69 
       
    70 // ---------------------------------------------------------------------------
       
    71 // r_testsdk_line
       
    72 // ---------------------------------------------------------------------------
       
    73 //
       
    74 RESOURCE DLG_LINE r_testsdk_line
       
    75     {
       
    76     type = EEikCtEdwin;
       
    77     id = EEdwinLine;
       
    78     control = EDWIN
       
    79         {
       
    80         maxlength = 20; 
       
    81         width = 10;
       
    82         };
       
    83     }
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // r_testsdk_line2
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 RESOURCE DLG_LINE r_testsdk_line2
       
    90     {
       
    91     type = EEikCtEdwin;
       
    92     id = EEdwinLine2;
       
    93     itemflags = EEikDlgItemLatent;
       
    94     control = EDWIN
       
    95         {
       
    96         maxlength = 20; 
       
    97         width = 10;
       
    98         };
       
    99     }
       
   100 
       
   101 // ---------------------------------------------------------------------------
       
   102 // r_testsdk_caption
       
   103 // ---------------------------------------------------------------------------
       
   104 //
       
   105 RESOURCE TBUF r_testsdk_caption
       
   106     { 
       
   107     buf = TESTSDK_DIALOGS_CAPTIONRESOURCE; 
       
   108     }
       
   109 
       
   110 // ---------------------------------------------------------------------------
       
   111 // r_testsdk_title
       
   112 // ---------------------------------------------------------------------------
       
   113 //
       
   114 RESOURCE TBUF r_testsdk_title
       
   115     { 
       
   116     buf = TESTSDK_DIALOGS_DIALOGTITLE; 
       
   117     }
       
   118 
       
   119 // ---------------------------------------------------------------------------
       
   120 // r_testsdk_dialogeditor
       
   121 // ---------------------------------------------------------------------------
       
   122 //
       
   123 RESOURCE DIALOG r_testsdk_dialogeditor
       
   124     {   
       
   125     title = TESTSDK_DIALOGS_EDITOR;
       
   126     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   127     items =
       
   128         {
       
   129         DLG_LINE
       
   130             {
       
   131             type = EEikCtEdwin;
       
   132             id = ETESTSDKTextEditor;
       
   133             control = EDWIN
       
   134                 {
       
   135                 maxlength = 20; 
       
   136                 width = 10;
       
   137                 };
       
   138             },
       
   139         DLG_LINE
       
   140             {
       
   141             type = EEikCtNumberEditor;
       
   142             id = ETESTSDKNumberEditor;
       
   143             control = NUMBER_EDITOR
       
   144                 {
       
   145                 min = 0;
       
   146                 max = 100;
       
   147                 };
       
   148             },
       
   149         DLG_LINE
       
   150             {
       
   151             type = EEikCtRangeEditor;
       
   152             id = ETESTSDKRangeEditor;
       
   153             control = RANGE_EDITOR
       
   154                 {
       
   155                 min = 0;
       
   156                 max = 100;
       
   157                 };
       
   158             },
       
   159         DLG_LINE
       
   160             {
       
   161             type = EEikCtTimeEditor;
       
   162             id = ETESTSDKTimeEditor;
       
   163             control = TIME_EDITOR
       
   164                 {
       
   165                 minTime = TIME
       
   166                     {
       
   167                     second = 0;
       
   168                     minute = 0;
       
   169                     hour = 0;
       
   170                     };
       
   171                 maxTime = TIME
       
   172                     {
       
   173                     second = 59;
       
   174                     minute = 59;
       
   175                     hour = 23;
       
   176                     };
       
   177                 };
       
   178             },
       
   179         DLG_LINE
       
   180             {
       
   181             type = EEikCtDateEditor;
       
   182             id = ETESTSDKDateEditor;
       
   183             control = DATE_EDITOR
       
   184                 {
       
   185                 minDate = DATE
       
   186                     {
       
   187                     year = 1900;
       
   188                     };
       
   189                 maxDate = DATE
       
   190                     {
       
   191                     year = 2100;
       
   192                     };
       
   193                 };
       
   194             },
       
   195         DLG_LINE
       
   196             {
       
   197             type = EEikCtTimeAndDateEditor;
       
   198             id = ETESTSDKTimeAndDateEditor;
       
   199             control = TIME_AND_DATE_EDITOR
       
   200                 {
       
   201                 minTimeAndDate = TIME_AND_DATE
       
   202                     {
       
   203                     year = 1900;
       
   204                     second = 0;
       
   205                     minute = 0;
       
   206                     hour = 0;
       
   207                     };
       
   208                 maxTimeAndDate = TIME_AND_DATE
       
   209                     {
       
   210                     year = 2100;
       
   211                     second = 59;
       
   212                     minute = 59;
       
   213                     hour = 23;
       
   214                     };
       
   215                 };
       
   216             },
       
   217         DLG_LINE
       
   218             {
       
   219             type = EEikCtDurationEditor;
       
   220             id = ETESTSDKDurationEditor;
       
   221             control = DURATION_EDITOR
       
   222                 {
       
   223                 minDuration = DURATION
       
   224                     {
       
   225                     seconds = 0;
       
   226                     };
       
   227                 maxDuration = DURATION
       
   228                     {
       
   229                     seconds = 1000000;
       
   230                     };
       
   231                 };
       
   232             },
       
   233         DLG_LINE
       
   234             {
       
   235             type = EEikCtTimeOffsetEditor;
       
   236             id = ETESTSDKTimeOffsetEditor;
       
   237             control = TIME_OFFSET_EDITOR
       
   238                 {
       
   239                 minTimeOffset = TIME_OFFSET
       
   240                     {
       
   241                     seconds = 0;
       
   242                     };
       
   243                 maxTimeOffset = TIME_OFFSET
       
   244                     {
       
   245                     seconds = 1000000;
       
   246                     };
       
   247                 };
       
   248             },
       
   249         DLG_LINE
       
   250             {
       
   251             type = EEikCtFxPtEd;
       
   252             id = ETESTSDKFixPointedEditor;
       
   253             control = FIXPTED
       
   254                 {
       
   255                 min = 0;
       
   256                 max = 9999;
       
   257                 decimalplaces = 2;
       
   258                 };
       
   259             },
       
   260         DLG_LINE
       
   261             {
       
   262             type = EEikCtSecretEd;
       
   263             id = ETESTSDKSecretEditor;
       
   264             control = SECRETED
       
   265                 {
       
   266                 num_letters = 8;
       
   267                 };
       
   268             }
       
   269         };
       
   270     }
       
   271 
       
   272 // ---------------------------------------------------------------------------
       
   273 // r_testsdk_dialogaddeditor
       
   274 // ---------------------------------------------------------------------------
       
   275 //
       
   276 RESOURCE DIALOG r_testsdk_dialogaddeditor
       
   277     {   
       
   278     title = TESTSDK_DIALOGS_ADDEDITOR;
       
   279     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   280     }
       
   281 
       
   282 // ---------------------------------------------------------------------------
       
   283 // r_testsdk_dialogsgfunction
       
   284 // ---------------------------------------------------------------------------
       
   285 //
       
   286 RESOURCE DIALOG r_testsdk_dialogsgfunction
       
   287     {   
       
   288     title = TESTSDK_DIALOGS_SGFUNC;
       
   289     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   290     items =
       
   291         {
       
   292         DLG_LINE
       
   293             {
       
   294             type = EEikCtLabel;
       
   295             id = ETESTSDKSGLabel;
       
   296             control = LABEL
       
   297                 {
       
   298                 txt = TESTSDK_DIALOGS_LABEL;
       
   299                 };
       
   300             },
       
   301         DLG_LINE
       
   302             {
       
   303             type = EEikCtEdwin;
       
   304             id = ETESTSDKSGEdwin;
       
   305             control = EDWIN
       
   306                 {
       
   307                 maxlength = 20; 
       
   308                 width = 10;
       
   309                 };
       
   310             },
       
   311         DLG_LINE
       
   312             {
       
   313             type = EEikCtGlobalTextEditor;
       
   314             id = ETESTSDKSGTextEditor;
       
   315             control = GTXTED
       
   316                 {
       
   317                 numlines = 1; 
       
   318                 width = 10;
       
   319                 };
       
   320             },
       
   321         DLG_LINE
       
   322             {
       
   323             type = EEikCtSecretEd;
       
   324             id = ETESTSDKSGSecretEditor;
       
   325             control = SECRETED
       
   326                {
       
   327                num_letters = 8;
       
   328                };
       
   329            },
       
   330         DLG_LINE
       
   331             {
       
   332             type = EEikCtFlPtEd;
       
   333             id = ETESTSDKSGFloatPointEditor;
       
   334             control = FLPTED
       
   335                {
       
   336                maxlength = 18;
       
   337                };
       
   338             },
       
   339         DLG_LINE
       
   340             {
       
   341             type = EEikCtFxPtEd;
       
   342             id = ETESTSDKSGFixPointedEditor;
       
   343             control = FIXPTED
       
   344                 {
       
   345                 min = 0;
       
   346                 max = 9999;
       
   347                 decimalplaces = 2;
       
   348                 };
       
   349             },
       
   350         DLG_LINE
       
   351             {
       
   352             type = EEikCtNumberEditor;
       
   353             id = ETESTSDKSGNumberEditor;
       
   354             control = NUMBER_EDITOR
       
   355                 {
       
   356                 min = 0;
       
   357                 max = 100;
       
   358                 };
       
   359             },
       
   360         DLG_LINE
       
   361             {
       
   362             type = EEikCtNumberEditor;
       
   363             id = ETESTSDKSGNumberEditor;
       
   364             control = NUMBER_EDITOR
       
   365                 {
       
   366                 min = 0;
       
   367                 max = 100;
       
   368                 };
       
   369             },
       
   370         DLG_LINE
       
   371             {
       
   372             type = EEikCtRangeEditor;
       
   373             id = ETESTSDKSGRangeEditor;
       
   374             control = RANGE_EDITOR
       
   375                 {
       
   376                 min = 0;
       
   377                 max = 100;
       
   378                 };
       
   379             },
       
   380         DLG_LINE
       
   381             {
       
   382             type = EEikCtTimeEditor;
       
   383             id = ETESTSDKSGTimeEditor;
       
   384             control = TIME_EDITOR
       
   385                 {
       
   386                 minTime = TIME
       
   387                     {
       
   388                     second = 1;
       
   389                     minute = 1;
       
   390                     hour = 1;
       
   391                     };
       
   392                 maxTime = TIME
       
   393                     {
       
   394                     second = 12;
       
   395                     minute = 54;
       
   396                     hour = 12;
       
   397                     };
       
   398                 };
       
   399             },
       
   400         DLG_LINE
       
   401             {
       
   402             type = EEikCtDurationEditor;
       
   403             id = ETESTSDKSGDurationEditor;
       
   404             control = DURATION_EDITOR
       
   405                 {
       
   406                 minDuration = DURATION
       
   407                     {
       
   408                     seconds = 0;
       
   409                     };
       
   410                 maxDuration = DURATION
       
   411                     {
       
   412                     seconds = 1000000;
       
   413                     };
       
   414                 };
       
   415             },
       
   416         DLG_LINE
       
   417             {
       
   418             type = EEikCtTimeOffsetEditor;
       
   419             id = ETESTSDKSGTimeOffsetEditor;
       
   420             control = TIME_OFFSET_EDITOR
       
   421                 {
       
   422                 minTimeOffset = TIME_OFFSET
       
   423                     {
       
   424                     seconds = 10;
       
   425                     };
       
   426                 maxTimeOffset = TIME_OFFSET
       
   427                     {
       
   428                     seconds = 2000000;
       
   429                     };
       
   430                 };
       
   431             }
       
   432         };
       
   433     }
       
   434 
       
   435 // ---------------------------------------------------------------------------
       
   436 // r_testsdk_label
       
   437 // ---------------------------------------------------------------------------
       
   438 //
       
   439 RESOURCE TBUF r_testsdk_label
       
   440     {
       
   441     buf = TESTSDK_DIALOGS_LABELRESOURCE;
       
   442     }
       
   443 
       
   444 // ---------------------------------------------------------------------------
       
   445 // r_secret
       
   446 // ---------------------------------------------------------------------------
       
   447 //
       
   448 RESOURCE SECRETED r_secret
       
   449     {
       
   450     num_letters = 8;
       
   451     }
       
   452 
       
   453 // ---------------------------------------------------------------------------
       
   454 // r_testsdk_page
       
   455 // ---------------------------------------------------------------------------
       
   456 //
       
   457 RESOURCE DIALOG r_testsdk_page
       
   458     {   
       
   459     title = TESTSDK_DIALOGS_PAGE;
       
   460     buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
   461     pages = r_testsdk_pages;
       
   462     }
       
   463 
       
   464 // ---------------------------------------------------------------------------
       
   465 // r_testsdk_pages
       
   466 // ---------------------------------------------------------------------------
       
   467 //
       
   468 RESOURCE ARRAY r_testsdk_pages
       
   469     {
       
   470     items=
       
   471         {
       
   472         PAGE 
       
   473             { 
       
   474             text = TESTSDK_DIALOGS_PAGE1;
       
   475             id = 0;
       
   476             lines = r_testsdk_pageline1;
       
   477             },
       
   478         PAGE 
       
   479             { 
       
   480             text = TESTSDK_DIALOGS_PAGE2;
       
   481             id = 1;
       
   482             lines = r_testsdk_pageline2;
       
   483             }
       
   484         };
       
   485     }
       
   486 
       
   487 // ---------------------------------------------------------------------------
       
   488 // r_testsdk_pageline1
       
   489 // ---------------------------------------------------------------------------
       
   490 //
       
   491 RESOURCE ARRAY r_testsdk_pageline1
       
   492     {
       
   493     items=
       
   494         {
       
   495         DLG_LINE
       
   496             {
       
   497             type = EEikCtEdwin;
       
   498             id = ETESTSDKPageLine1Editor;
       
   499             control = EDWIN
       
   500                 {
       
   501                 maxlength = 20; 
       
   502                 width = 10;
       
   503                 };
       
   504             }
       
   505         };
       
   506     }
       
   507 
       
   508 // ---------------------------------------------------------------------------
       
   509 // r_testsdk_pageline2
       
   510 // ---------------------------------------------------------------------------
       
   511 //
       
   512 RESOURCE ARRAY r_testsdk_pageline2
       
   513     {
       
   514     items=
       
   515         {
       
   516         DLG_LINE
       
   517             {
       
   518             type = EEikCtEdwin;
       
   519             id = ETESTSDKPageLine2Editor;
       
   520             control = EDWIN
       
   521                 {
       
   522                 maxlength = 20; 
       
   523                 width = 10;
       
   524                 };
       
   525             }
       
   526         };
       
   527     }
       
   528 
       
   529 // ---------------------------------------------------------------------------
       
   530 // r_testsdk_listbox
       
   531 // ---------------------------------------------------------------------------
       
   532 //
       
   533 RESOURCE DIALOG r_testsdk_listbox
       
   534     {   
       
   535     title = TESTSDK_DIALOGS_LISTBOX;
       
   536     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   537     items =
       
   538         {
       
   539         DLG_LINE
       
   540             {
       
   541             type = EEikCtListBox;
       
   542             id = EDialogListBox;
       
   543             control = LISTBOX
       
   544                 {
       
   545                 height = 5;
       
   546                 width = 10;
       
   547                 };
       
   548             }
       
   549         };
       
   550     }