lafpublc.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : lafpublc.h
00004 *  Part of     : 
00005 *  Description : 
00006 *  Version     : 
00007 *
00008 *  Copyright © 2002-2007 Nokia. All rights reserved.
00009 *  This material, including documentation and any related 
00010 *  computer programs, is protected by copyright controlled by 
00011 *  Nokia. All rights are reserved. Copying, including 
00012 *  reproducing, storing, adapting or translating, any 
00013 *  or all of this material requires the prior written consent of 
00014 *  Nokia. This material also contains confidential 
00015 *  information which may not be disclosed to others without the 
00016 *  prior written consent of Nokia.
00017 * ==============================================================================
00018 */
00019 
00020 #ifndef __LAFPUBLC_H__
00021 #define __LAFPUBLC_H__
00022 
00023 #include <e32std.h>
00024 
00026 const TInt KLafScrollBarButtonPositionMask = 0x00C0;
00027 
00029 struct SLafScrollButton
00030         {
00031         enum TType
00032                 {
00033                 ENudgeLeft,
00034                 ENudgeUp,
00035                 ENudgeRight,
00036                 ENudgeDown,
00037                 EPageLeft,
00038                 EPageUp,
00039                 EPageRight,
00040                 EPageDown,
00041                 EHome,
00042                 ETop,
00043                 EEnd,
00044                 EBottom
00045                 };
00046         };
00047 
00048 struct SLafScrollBar
00049         {
00054         enum TEikScrollBarFlags
00055                 {
00057                 EEikScrollBarDefaultBehaviour   =0x0000,
00059                 EEikScrollBarNoNudgeButtons             =0x0001,
00061                 EEikScrollBarHasPageButtons             =0x0002,
00063                 EEikScrollBarHasHomeEndButtons  =0x0004,
00065                 EEikScrollBarNoShaftOrThumb     =0x0008,
00067                 EEikScrollBarShaftButNoThumb    =0x0010,
00069                 EButtonsAtStartOfShaft                  =0x0040,
00071                 EButtonsAtEndOfShaft                    =0x0080,
00076                 EButtonsEitherSideOfShaft               =EButtonsAtStartOfShaft|EButtonsAtEndOfShaft,
00081                 ENoAutoDimming                                  =0x0100
00082                 };
00083 
00085         enum TOrientation
00086                 {
00088                 EVertical,
00090                 EHorizontal
00091                 };
00092 
00093         };
00094 
00096 struct SLafListBox
00097         {
00101     enum TFlags
00102                 {
00107                 EMultipleSelection                      = 0x0001,
00113                 ENoExtendedSelection            = 0x0002,
00118                 EIncrementalMatching            = 0x0004,
00123                 EPopout                                         = 0x0008,
00128                 ELeftDownInViewRect                     = 0x0010,
00133                 EItemDoubleClicked                      = 0x0020,
00139                 EKeepModel                                      = 0x0040,
00145                 EScrollBarSizeExcluded          = 0x0080,
00149                 EStateChanged                           = 0x0100,
00154                 ECreateOwnWindow                        = 0x0200,
00158         ENoFirstLetterMatching      = 0x0400,
00162                 EPaintedSelection                       = 0x0800,
00167                 ES60StyleMultiselection     = 0x00010000, //32 bits
00171                 ES60StyleMarkable           = 0x00020000  //32 bits             
00172                 };
00174     enum TListItemAttribute
00175         {
00176                 ECurrent    = 0x0001,           // may be drawn with a frame
00178                 EEmphasized = 0x0002,           // special highlight (not selected)
00180                 ESelected   = 0x0004,           // usually different than emphasized
00181                 // This last attribute is used to control that one can use only
00182                 // valid attributes above. So do not use it at all.     
00184                 EMask           = 0x0007
00185         };
00187         enum TListItemFlags
00188                 {
00190                 EItemDrawMarkSelection                  = 0x0001,
00192                 EItemPaintedSelection                   = 0x0002,
00194                 EItemDrawOnlyActiveSelection    = 0x0004
00195                 };
00196         };
00197 
00199 struct SLafScrollThumb
00200         {
00201         enum TOrientation
00202                 {
00204                 EVertical,
00206                 EHorizontal
00207                 };
00208         };
00209 
00210 struct SLafScrollBarFrame
00211         {
00213         enum TScrollBarVisibility
00214                 {
00216                 EOff,
00218                 EOn,
00220                 EAuto
00221                 };
00222 
00224         enum TScrollBarSide
00225                 {
00230                 EBottomOrRight,
00235                 ETopOrLeft
00236                 };
00237 
00239     enum TScrollBarManagement
00240                 {
00247                 EComponent,
00256                 EFloating,
00262                 EApplicationScrollBar
00263                 };
00264         };
00265 
00267 struct SLafControlGroup
00268         {
00269         enum TStartCorner
00270                 {
00271                 EFromTopLeft=0x1,
00272                 EFromTopRight=0x2,
00273                 EFromBottomLeft=0x3,
00274                 EFromBottomRight=0x4
00275                 };
00276         enum TOrientation
00277                 {
00278                 ELayHorizontally=0x10,
00279                 ELayVertically=0x20
00280                 };
00281         };
00282 
00284 struct SLafButtonGroupContainer
00285         {
00287         enum TUse
00288                 {
00290                 EView,
00292                 EDialog,
00294                 EToolbar,
00296                 ECba,
00298                 EDialogButtons
00299                 };
00301         enum TOrientation
00302                 {
00304                 EVertical,
00306                 EHorizontal
00307                 };
00308         enum TLocation
00309                 {
00311                 EInternal,
00315                 EExternal
00316                 };
00317         };
00318 
00319 struct SLafMenuBar
00320         {
00321         enum { ENominalTextLength = 40 };
00322         };
00323 
00325 struct SLafMenuPane
00326         {
00327         enum THighlightType
00328                 {
00329                 ENoHighlight,
00330                 EDrawHighlight,
00331                 ERemoveHighlight
00332                 };
00333         };
00334 
00335 struct SLafButtonBase
00336         {
00338         enum TDrawState
00339                 {
00340                 EDrawClear                                      =0x00,
00341                 EDrawSet                                        =0x01,
00342                 EDrawIndeterminate                      =0x02,
00343                 EDrawClearPressed                       =0x10,
00344                 EDrawSetPressed                         =0x11,
00345                 EDrawIndeterminatePressed       =0x12
00346                 };
00347         };
00348 
00349 
00350 // __LAFPUBLC_H__
00351 #endif

Copyright © Nokia Corporation 2001-2008
Back to top