textinput/peninputcommonlayout/inc/peninputcommonlayout.rh
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2002-2006 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 headers for project peninputcommonlayout
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PENINPUTCOMMONLAYOUT_RH
       
    20 #define PENINPUTCOMMONLAYOUT_RH
       
    21 
       
    22 // system includes
       
    23 #include <uikon.rh>
       
    24 #include <peninputcommonctrls.rh>
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // Layout base window
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 STRUCT PENINPUT_LAYOUT_BASE_WINDOW
       
    31     {
       
    32     WORD supportskin = 0xffff;
       
    33     LLINK moveimage = 0;
       
    34     LLINK closeimage;
       
    35     LLINK icfimage;
       
    36     LLINK optionimage;
       
    37     LLINK keymapping = 0;
       
    38     LLINK shadow;
       
    39     LLINK arrowleftimage = 0;
       
    40     LLINK arrowrightimage = 0;
       
    41     LLINK bgimage = 0;
       
    42     }
       
    43 // ---------------------------------------------------------------------------
       
    44 // Layout base window
       
    45 // ---------------------------------------------------------------------------
       
    46 //
       
    47 STRUCT PENINPUT_LAYOUT_BASE_WINDOW_INFO
       
    48     {
       
    49     WORD supportskin = 0xffff;
       
    50     LLINK shadow;
       
    51     LLINK bgimage = 0;
       
    52     STRUCT controls[];
       
    53     }
       
    54 // ---------------------------------------------------------------------------
       
    55 // Window input context field
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 STRUCT PENINPUT_LAYOUT_ICF
       
    59     {
       
    60     LTEXT bmpfile="";   
       
    61     LONG imgmajorskinid=0xffff;
       
    62     
       
    63     WORD icfbgimg=0xffff;
       
    64     WORD icfbgimgmask=0xffff;
       
    65     WORD icfbgimgskinid=0xffff;
       
    66     
       
    67     LONG colormajorskinid = 0xffff;
       
    68     WORD textcolorgrp = 0xffff;
       
    69     WORD textcoloridx = 0xffff;
       
    70     }
       
    71 
       
    72 
       
    73 STRUCT PENINPUT_LAYOUT_MULTILINE_ICF
       
    74     {
       
    75     LONG colormajorskinid = 0xffff;
       
    76     WORD textcolorgrp = 0xffff;
       
    77     WORD textcoloridx = 0xffff;
       
    78     WORD bordercolorgrp = 0xffff;
       
    79     WORD bordercoloridx = 0xffff;
       
    80     }
       
    81     
       
    82 // ---------------------------------------------------------------------------
       
    83 // Window shadow
       
    84 // ---------------------------------------------------------------------------
       
    85 //
       
    86 STRUCT PENINPUT_LAYOUT_WINDOW_SHADOW
       
    87     {
       
    88     LTEXT bmpfile="";    
       
    89     LONG imgmajorskinid=0xffff;
       
    90     
       
    91     WORD shadowimgtl=0xffff;
       
    92     WORD shadowimgtlmask=0xffff;
       
    93     WORD shadowimgtlskinid=0xffff;
       
    94     
       
    95     WORD shadowimgt=0xffff;
       
    96     WORD shadowimgtmask=0xffff;
       
    97     WORD shadowimgtskinid=0xffff;
       
    98 
       
    99     WORD shadowimgtr=0xffff;
       
   100     WORD shadowimgtrmask=0xffff;
       
   101     WORD shadowimgtrskinid=0xffff;
       
   102 
       
   103     WORD shadowimgl=0xffff;
       
   104     WORD shadowimglmask=0xffff;
       
   105     WORD shadowimglskinid=0xffff;
       
   106 
       
   107     WORD shadowimgr=0xffff;
       
   108     WORD shadowimgrmask=0xffff;
       
   109     WORD shadowimgrskinid=0xffff;
       
   110 
       
   111     WORD shadowimgbl=0xffff;
       
   112     WORD shadowimgblmask=0xffff;
       
   113     WORD shadowimgblskinid=0xffff;
       
   114 
       
   115     WORD shadowimgb=0xffff;
       
   116     WORD shadowimgbmask=0xffff;
       
   117     WORD shadowimgbskinid=0xffff;
       
   118 
       
   119     WORD shadowimgbr=0xffff;
       
   120     WORD shadowimgbrmask=0xffff;  
       
   121     WORD shadowimgbrskinid=0xffff;
       
   122     }
       
   123 
       
   124 // ---------------------------------------------------------------------------
       
   125 // Layout numeric key mapping string list
       
   126 // ---------------------------------------------------------------------------
       
   127 //
       
   128 STRUCT PENINPUT_LAYOUT_NUMERIC_KEY_MAPPING_STRING_LIST
       
   129     {
       
   130     STRUCT items[];
       
   131     }
       
   132 
       
   133 // ---------------------------------------------------------------------------
       
   134 // Layout numeric key mapping string 
       
   135 // ---------------------------------------------------------------------------
       
   136 //
       
   137 STRUCT PENINPUT_LAYOUT_NUMERIC_KEY_MAPPING_STRING
       
   138     {
       
   139     WORD numerickeymapping=0;
       
   140 
       
   141     LTEXT PermittedString="";
       
   142     }
       
   143 
       
   144 // ---------------------------------------------------------------------------
       
   145 // Layout config information
       
   146 // ---------------------------------------------------------------------------
       
   147 //
       
   148 STRUCT PENINPUT_LAYOUT_CONFIG_INFO
       
   149     {
       
   150     WORD language=0;          // TLanguage in symbian
       
   151 
       
   152     LTEXT languagestring="";  // such as "En",
       
   153 
       
   154     WORD casesensitive=0;     // 0:case not sensitive 1:case sensitive
       
   155 
       
   156     WORD guideline=0;         // TPeninputGuideLineStyle   
       
   157     
       
   158     WORD positiontopline=0;            // The position percent of bottom line 
       
   159 
       
   160     WORD positionbottomline=0;         // The position percent of bottom line 
       
   161 
       
   162     LLINK clientlayoutlist;   // PENINPUT_LAYOUT_CLIENT_LAYOUT_LIST
       
   163 
       
   164     LLINK vkblayoutlist;      // PENINPUT_LAYOUT_VKB _LAYOUT_LIST
       
   165 
       
   166     LLINK rangebarinfo;       // PENINPUT_LAYOUT_RANGE_BAR_INFO
       
   167 
       
   168     LLINK shiftcapsinfo;      // PENINPUT_LAYOUT_SHIFT_CAPS_INFO
       
   169 
       
   170     LLINK rangebarresource;   // Range bar resource   
       
   171     }
       
   172 
       
   173 // ---------------------------------------------------------------------------
       
   174 // Client layout list
       
   175 // ---------------------------------------------------------------------------
       
   176 //
       
   177 STRUCT PENINPUT_LAYOUT_CLIENT_LAYOUT_LIST
       
   178     {
       
   179     STRUCT items[];
       
   180     }
       
   181 
       
   182 // ---------------------------------------------------------------------------
       
   183 // Client layout 
       
   184 // ---------------------------------------------------------------------------
       
   185 //
       
   186 STRUCT PENINPUT_LAYOUT_CLIENT_LAYOUT
       
   187     {
       
   188     // Client layout id
       
   189     WORD id=0;
       
   190 
       
   191     // column counts
       
   192     WORD colcount=0;
       
   193 
       
   194     // row counts
       
   195     WORD rowcount=0;
       
   196     
       
   197     // the bg mask bmp of the layout
       
   198     STRUCT controls[];
       
   199     }
       
   200 
       
   201 // ---------------------------------------------------------------------------
       
   202 // Layout control
       
   203 // ---------------------------------------------------------------------------
       
   204 //
       
   205 STRUCT PENINPUT_LAYOUT_CONTROL
       
   206     {
       
   207     // Control ID
       
   208     WORD id=0;
       
   209 
       
   210     // the control type
       
   211     WORD controltype=0;
       
   212 
       
   213     // the begin row of the control
       
   214     WORD beginrow=0;
       
   215 
       
   216     // the begin column of the control
       
   217     WORD begincolumn=0;
       
   218 
       
   219     // the end row of the control
       
   220     WORD endrow=0;
       
   221 
       
   222     // the end column of the control
       
   223     WORD endcolumn=0;
       
   224     }
       
   225 
       
   226 // start by vv
       
   227 STRUCT PENINPUT_LAYOUT_CONTROL_INFO
       
   228     {
       
   229     // Control ID TPeninputCommonCtrlID
       
   230     WORD id=0;
       
   231    
       
   232     //the control type, new define TResourceCtrlType
       
   233     //WORD controltype=-1; 
       
   234     
       
   235     // the control event id TPeninputLayoutEvent
       
   236     //WORD controleventid=-1;
       
   237  
       
   238     // TKeyCode
       
   239     //WORD  controleventkeycode = -1; 
       
   240 
       
   241     // the begin column of the control
       
   242     LLINK image; 
       
   243     }
       
   244 // end by vv
       
   245 	
       
   246 // ---------------------------------------------------------------------------
       
   247 // Vkb layout list
       
   248 // ---------------------------------------------------------------------------
       
   249 //
       
   250 STRUCT PENINPUT_LAYOUT_VKB_LAYOUT_LIST
       
   251     {
       
   252     STRUCT items[];
       
   253     }
       
   254 
       
   255 // ---------------------------------------------------------------------------
       
   256 // Vkb layout 
       
   257 // ---------------------------------------------------------------------------
       
   258 //
       
   259 STRUCT PENINPUT_LAYOUT_VKB_LAYOUT
       
   260     {
       
   261     // Vkb layout type id
       
   262     WORD id=0; 
       
   263     
       
   264     // Mbm file name which store the bg bmp of the layout and all controls
       
   265     LTEXT mbmfile="";
       
   266     LONG imgmajorskinid=0xffff;
       
   267     
       
   268     // the bg, bg mask and bg skin bmp of the layout
       
   269     WORD bgbmp=0xffff;
       
   270     WORD bgbmpmask=0xffff;
       
   271     WORD bgbmpskinid=0xffff;
       
   272 
       
   273     // the bg, bg mask and bg skin bmp for dimmed key
       
   274     WORD dimbmp=0xffff;
       
   275     WORD dimmask=0xffff;
       
   276     WORD dimbmpskinid=0xffff;
       
   277 
       
   278     // column counts
       
   279     WORD colcount=0;
       
   280 
       
   281     // row counts
       
   282     WORD rowcount=0;
       
   283 
       
   284     STRUCT highlightbmps[];   // list of PENINPUT_LAYOUT_BITMAP_ID
       
   285 
       
   286     STRUCT highlightmaskbmps[]; // list of PENINPUT_LAYOUT_BITMAP_ID   
       
   287 
       
   288     // keys
       
   289     STRUCT keys[];
       
   290     }
       
   291 
       
   292 // ---------------------------------------------------------------------------
       
   293 // Bitmap id
       
   294 // ---------------------------------------------------------------------------
       
   295 //
       
   296 STRUCT PENINPUT_LAYOUT_BITMAP_ID
       
   297     {
       
   298     // id of bitmap
       
   299     WORD bmpid=0;
       
   300     }
       
   301 
       
   302 // ---------------------------------------------------------------------------
       
   303 // Unit key
       
   304 // ---------------------------------------------------------------------------
       
   305 //
       
   306 STRUCT PENINPUT_LAYOUT_UNIT_KEY
       
   307     {
       
   308     LTEXT unicode="";    
       
   309 
       
   310     WORD scancode=0;
       
   311 
       
   312     WORD beginrow=0;
       
   313 
       
   314     WORD begincolumn=0;
       
   315 
       
   316     WORD endrow=0;
       
   317 
       
   318     WORD endcolumn=0;
       
   319 
       
   320     WORD highlightbmpindex=-1;
       
   321 
       
   322     WORD highlightmaskbmpindex=-1;
       
   323 		
       
   324 		// add this item because some special characters need additional unicode to display
       
   325 		LTEXT displayunicode="";
       
   326     }
       
   327 
       
   328 // ---------------------------------------------------------------------------
       
   329 // Popup window
       
   330 // ---------------------------------------------------------------------------
       
   331 //
       
   332 STRUCT PENINPUT_LAYOUT_POPUP_WINDOW
       
   333     {
       
   334     LTEXT bmpfile="";
       
   335     LONG imgmajorskinid=0xffff;
       
   336 
       
   337     WORD bgbmp=0xffff;
       
   338     WORD bgmaskbmp=0xffff;
       
   339     WORD bgbmpskinid=0xffff;
       
   340     
       
   341     WORD focusbmp=0xffff;
       
   342     WORD focusmaskbmp=0xffff;
       
   343     WORD focusbmpskinid=0xffff;
       
   344     }
       
   345 
       
   346 // ---------------------------------------------------------------------------
       
   347 // Shift&caps info list
       
   348 // ---------------------------------------------------------------------------
       
   349 //
       
   350 STRUCT PENINPUT_LAYOUT_SHIFT_CAPS_INFO_LIST
       
   351     {
       
   352     STRUCT items[];
       
   353     }
       
   354 
       
   355 // ---------------------------------------------------------------------------
       
   356 // Shift&caps info 
       
   357 // ---------------------------------------------------------------------------
       
   358 //
       
   359 STRUCT PENINPUT_LAYOUT_SHIFT_CAPS_INFO
       
   360     {
       
   361     WORD range = 0;
       
   362     STRUCT items[];
       
   363     }
       
   364 
       
   365 // ---------------------------------------------------------------------------
       
   366 // Shift&caps info single
       
   367 // ---------------------------------------------------------------------------
       
   368 //
       
   369 STRUCT PENINPUT_LAYOUT_SHIFT_CAPS_INFO_SINGLE
       
   370     {
       
   371     WORD id=0;
       
   372     WORD vkblayoutid=0;
       
   373     WORD caseused=0;
       
   374     }
       
   375 
       
   376 // ---------------------------------------------------------------------------
       
   377 // Range bar info
       
   378 // ---------------------------------------------------------------------------
       
   379 //
       
   380 STRUCT PENINPUT_LAYOUT_RANGE_BAR_INFO
       
   381     {
       
   382     WORD style=0;          // 0:hide-style 1:highlight-style
       
   383 
       
   384     STRUCT ranges[];       // PENINPUT_LAYOUT_RANGE_INFO
       
   385     }
       
   386 
       
   387 // ---------------------------------------------------------------------------
       
   388 // Range info
       
   389 // ---------------------------------------------------------------------------
       
   390 //
       
   391 STRUCT PENINPUT_LAYOUT_RANGE_INFO
       
   392     {
       
   393     WORD rangeid=0;
       
   394 
       
   395     WORD responsestyle=0; // 0:No action 1: change range directory 2: pop choice item
       
   396 
       
   397     WORD clientlayoutid=0; 
       
   398 
       
   399     WORD vkblayoutid=0;  
       
   400 
       
   401     }
       
   402 
       
   403 // ---------------------------------------------------------------------------
       
   404 // Switch text info
       
   405 // ---------------------------------------------------------------------------
       
   406 //
       
   407 STRUCT PENINPUT_LAYOUT_SWITCH_TEXT
       
   408     {
       
   409     LONG colormajorskinid=0xffff;
       
   410     WORD textcolorgrp=0xffff;
       
   411     WORD textcoloridx=0xffff;
       
   412     WORD shadowtextcoloridx=0xffff;
       
   413     }
       
   414     
       
   415 // ---------------------------------------------------------------------------
       
   416 // Base window background
       
   417 // ---------------------------------------------------------------------------
       
   418 //   
       
   419 STRUCT PENINPUT_LAYOUT_WINDOW_BG
       
   420     {
       
   421     LTEXT bmpfile="";   
       
   422     LONG imgmajorskinid=0xffff;
       
   423     
       
   424     WORD bgimg=0xffff;
       
   425     WORD bgimgmask=0xffff;
       
   426     WORD bgimgskinid=0xffff; 
       
   427     }
       
   428     
       
   429 // ---------------------------------------------------------------------------
       
   430 // Vkb keyboard 
       
   431 // ---------------------------------------------------------------------------
       
   432 //      
       
   433 STRUCT PENINPUT_LAYOUT_VKB_KEYBOARD
       
   434 		{
       
   435     LTEXT bmpfile="";   
       
   436     LONG imgmajorskinid=0xffff;
       
   437     
       
   438     WORD bgimg=0xffff;
       
   439     WORD bgimgmask=0xffff;
       
   440     WORD bgimgskinid=0xffff;
       
   441 		}
       
   442 #endif // PENINPUTCOMMONLAYOUT_RH