epoc32/include/mw/aknlists.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/aknlists.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/aknlists.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,1918 @@
     1.4 -aknlists.h
     1.5 +/*
     1.6 +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description: 
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +#ifndef __AKNLISTS_H__
    1.23 +#define __AKNLISTS_H__
    1.24 +
    1.25 +#include <eikclb.h>
    1.26 +#include <eikfrlb.h>
    1.27 +#include <eikslb.h>
    1.28 +#include <AknGrid.h>
    1.29 +#include <aknutils.h>
    1.30 +
    1.31 +#include <aknpanic.h>
    1.32 +
    1.33 +
    1.34 +class TAknTextLineLayout;
    1.35 +class MAknsSkinInstance;
    1.36 +class MAknsControlContext;
    1.37 +
    1.38 +/** THIS FILE INCLUDES:
    1.39 + *  1) All listbox layouts specified in Avkon LAF specification
    1.40 + *      a) General list pane descendants
    1.41 + *      b) Pop up window list pane descendants
    1.42 + *      c) Grid panes
    1.43 + *  2) Utilities that help building listbox layouts based on LAF specification
    1.44 + *  3) Other helper classes that handle listbox behavior
    1.45 + */
    1.46 +
    1.47 +
    1.48 +//
    1.49 +//
    1.50 +// Helper template definitions.
    1.51 +// (these are before concrete listbox classes because they're needed for inheritance)
    1.52 +//
    1.53 +
    1.54 +
    1.55 +/**
    1.56 + * This adds correct horizontal and vertival lines to the listbox and handles empty listbox!
    1.57 + *
    1.58 + * This class is only useful if you're writing your own list layout. 
    1.59 + * Please use the predefined layouts instead, for example CAknSingleStyleListBox.
    1.60 + */
    1.61 +template<class T>
    1.62 +class AknListBoxLinesTemplate : public T
    1.63 +    {
    1.64 +public:
    1.65 +    /** AknListBoxLinesTemplate
    1.66 +     *
    1.67 +     * Read AVKON_LISTBOX_LINES resources. 
    1.68 +     *
    1.69 +     * The following predefined lines are available:
    1.70 +     * R_LIST_PANE_LINES_A_COLUMN
    1.71 +     * R_LIST_PANE_LINES_AB_COLUMN
    1.72 +     * R_LIST_PANE_LINES_AB_COLUMN_X
    1.73 +     * R_LIST_PANE_LINES_AB_COLUMN_XX
    1.74 +     * R_LIST_PANE_LINES_BC_COLUMN
    1.75 +     * R_LIST_PANE_LINES_BC_COLUMN_X
    1.76 +     * R_LIST_PANE_LINES_BC_COLUMN_XX
    1.77 +     * 
    1.78 +     */
    1.79 +    IMPORT_C AknListBoxLinesTemplate(TInt aResourceId);
    1.80 +    /** SizeChanged()
    1.81 +     * 
    1.82 +     * Determines position of the lines
    1.83 +     */
    1.84 +    IMPORT_C void SizeChanged();
    1.85 +    /** Draw()
    1.86 +     * 
    1.87 +     * Draws the lines
    1.88 +     */
    1.89 +    IMPORT_C void Draw(const TRect& aRect) const;
    1.90 +    /** CountComponentControls()
    1.91 +     * 
    1.92 +     * Choose controls to use as child controls
    1.93 +     */
    1.94 +    IMPORT_C TInt CountComponentControls() const;
    1.95 +    /** CountComponentControls()
    1.96 +     * 
    1.97 +     * Choose controls to use as child controls
    1.98 +     */
    1.99 +    IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const;
   1.100 +
   1.101 +private:
   1.102 +    TInt iSpare0;                           // was iResourceId;
   1.103 +    TAknLayoutRect iVertLine1, iVertLine2;  // not used
   1.104 +    TAknLayoutRect iHoriLine;               // not used
   1.105 +    TBool iResized;
   1.106 +    TInt iSpare[2];
   1.107 +    };
   1.108 +
   1.109 +/**
   1.110 + * Empty layout for popup lists
   1.111 + */
   1.112 +
   1.113 +template<class T>
   1.114 +class AknPopupListEmpty : public T
   1.115 +    {
   1.116 +   /**
   1.117 +    * Draws empty list when needed. See AknDraw::DrawEmptyList().
   1.118 +    */
   1.119 +    IMPORT_C virtual void Draw(const TRect &aRect) const;
   1.120 +    };
   1.121 +
   1.122 +
   1.123 +	/** 
   1.124 +	* Avkon version of eikon's column listbox.
   1.125 +	* Content for list items are tab-separated strings.
   1.126 +	*
   1.127 +	* See methods 
   1.128 +	*   CEikListBox::ConstructFromResourceL()
   1.129 +	*   CEikListBox::ConstructL()
   1.130 +	*   CEikTextListBox::SetItemArray()
   1.131 +	*   CEikColumnListBoxData::SetIconArray()
   1.132 +	* 
   1.133 +	* Related flags for ConstructL() (avkon.hrh)
   1.134 +	*   EAknListBoxSelectionList
   1.135 +	*   EAknListBoxMenuList
   1.136 +	*   EAknListBoxMarkableList
   1.137 +	*   EAknListBoxMultiselectionList
   1.138 +	*   EAknListBoxViewerFlags
   1.139 +	*
   1.140 +	* Related flags for dialogs (avkon.hrh)
   1.141 +	*   EAknDialogSelectionList
   1.142 +	*   EAknDialogMenuList
   1.143 +	*   EAknDialogMultiselectionList
   1.144 +	*
   1.145 +	* @since Series 60 0.9
   1.146 +	*
   1.147 +	*/
   1.148 +class CAknColumnListBox : public CEikColumnListBox
   1.149 +    {
   1.150 +public:
   1.151 +    /** 
   1.152 +	* Creates new @c CAknColumnListBoxView object and returns pointer to it.
   1.153 +	* @return Pointer to the list box view which displays the list items which
   1.154 +	* are currently visible in a list box.
   1.155 +    */
   1.156 +    IMPORT_C virtual CListBoxView* MakeViewClassInstanceL();
   1.157 +    
   1.158 +    /** 
   1.159 +    * Creates @c CAknFilteredTextListBoxModel object.
   1.160 +    */
   1.161 +    IMPORT_C virtual void CreateModelL();
   1.162 +
   1.163 +    /** 
   1.164 +    * Listbox rectangle calculation. Rounds down the height of the rectangle
   1.165 +    * (if necessary) so that only a whole number of items can be displayed
   1.166 +    * inside the list box.
   1.167 +    * @param aRect The size of the listbox.
   1.168 +    * @return The number of pixels reduced.
   1.169 +    */
   1.170 +    IMPORT_C virtual TInt AdjustRectHeightToWholeNumberOfItems(TRect& aRect) const;
   1.171 +    
   1.172 +    /**
   1.173 +     * From CCoeControl.     
   1.174 +     * Handles pointer events
   1.175 +     */
   1.176 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
   1.177 +private:
   1.178 +    /**
   1.179 +    * From CAknControl
   1.180 +    */
   1.181 +    IMPORT_C void* ExtensionInterface( TUid aInterface );
   1.182 +private: // listbox use only
   1.183 +	IMPORT_C virtual void CEikListBox_Reserved(); 
   1.184 +    };
   1.185 +
   1.186 +
   1.187 +//
   1.188 +// These define what features are needed --> you can remove shortcuts from ALL lists by changing these..
   1.189 +// Templates available: AknListBoxLinesTemplate<> AknListBoxShortCutTemplate<>
   1.190 +typedef AknListBoxLinesTemplate<CAknColumnListBox > CEikColumnListBoxTypedef;
   1.191 +typedef AknListBoxLinesTemplate<CEikFormattedCellListBox > CEikFormattedCellListBoxTypedef;
   1.192 +typedef AknListBoxLinesTemplate<CEikSettingsListBox > CEikSettingsListBoxTypedef;
   1.193 +typedef CAknGrid CAknSelectionGridTypedef;
   1.194 +
   1.195 +// Templates available: AknListBoxShortCutTemplate<> AknListBoxLinesTemplate<>
   1.196 +#define AKNCOLUMNLISTBOXNAME(x) AknListBoxLinesTemplate<CAknColumnListBox >(x)
   1.197 +#define AKNDOUBLELISTBOXNAME(x) AknListBoxLinesTemplate<CEikFormattedCellListBox >(x)
   1.198 +#define AKNSETTINGLISTBOXNAME(x) AknListBoxLinesTemplate<CEikSettingsListBox >(x)
   1.199 +
   1.200 +// Templates available: AknListBoxLinesTemplate<>, AknListBoxShortCutTemplate<>
   1.201 +#define AKNCOLUMNLISTBOX AknListBoxLinesTemplate<CAknColumnListBox >
   1.202 +#define AKNFORMATTEDLISTBOX AknListBoxLinesTemplate<CEikFormattedCellListBox >
   1.203 +#define AKNSETTINGSLISTBOX AknListBoxLinesTemplate<CEikSettingsListBox >
   1.204 +#define AKNGRID CAknGrid
   1.205 +
   1.206 +
   1.207 +
   1.208 +
   1.209 +
   1.210 +
   1.211 +
   1.212 +//
   1.213 +//
   1.214 +// Derived listboxes (Use these in applications!)
   1.215 +// These are only for full screen lists -- the Rect() of the list must be ClientRect()
   1.216 +//
   1.217 +//
   1.218 +
   1.219 +
   1.220 +/**
   1.221 + * list_single_pane
   1.222 + *
   1.223 + * list item string format: "\tTextLabel\t0\t1"
   1.224 + * where 0 and 1 are indexes to icon array
   1.225 + */
   1.226 +
   1.227 +class CAknSingleStyleListBox : public CEikColumnListBoxTypedef
   1.228 +    {
   1.229 +public:
   1.230 +    IMPORT_C CAknSingleStyleListBox();
   1.231 +    /** SizeChanged()
   1.232 +     * 
   1.233 +     * Determines layout of the listbox
   1.234 +     */
   1.235 +    IMPORT_C void SizeChanged();
   1.236 +    /** MinimumSize()
   1.237 +     * 
   1.238 +     * Determines size of the listbox for use in dialogs.
   1.239 +     */
   1.240 +    IMPORT_C TSize MinimumSize();
   1.241 +    /**
   1.242 +     * From CCoeControl.     
   1.243 +     * Handles pointer events
   1.244 +     */
   1.245 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);  
   1.246 +private:
   1.247 +    void SizeChangedL();
   1.248 +    };
   1.249 +
   1.250 +/**
   1.251 + * list_single_number_pane
   1.252 + *
   1.253 + * list item string format: "2\tTextLabel\t0\t1"
   1.254 + * where 0 and 1 are indexes to icon array
   1.255 + */
   1.256 +
   1.257 +class CAknSingleNumberStyleListBox : public CEikColumnListBoxTypedef
   1.258 +    {
   1.259 +public:
   1.260 +    IMPORT_C CAknSingleNumberStyleListBox();
   1.261 +    /** SizeChanged()
   1.262 +     * 
   1.263 +     * Determines layout of the listbox
   1.264 +     */
   1.265 +    IMPORT_C void SizeChanged();
   1.266 +    /** MinimumSize()
   1.267 +     * 
   1.268 +     * Determines size of the listbox for use in dialogs.
   1.269 +     */
   1.270 +    IMPORT_C TSize MinimumSize();
   1.271 +    /**
   1.272 +     * From CCoeControl.     
   1.273 +     * Handles pointer events
   1.274 +     */
   1.275 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);   
   1.276 +private:
   1.277 +    void SizeChangedL();
   1.278 +    };
   1.279 +
   1.280 +/**
   1.281 + * list_single_heading_pane
   1.282 + *
   1.283 + * list item string format: "Heading\tTextLabel\t0\t1"
   1.284 + * where 0 and 1 are indexes to icon array
   1.285 + *
   1.286 + */
   1.287 +
   1.288 +class CAknSingleHeadingStyleListBox : public CEikColumnListBoxTypedef
   1.289 +    {
   1.290 +public:
   1.291 +    IMPORT_C CAknSingleHeadingStyleListBox();
   1.292 +    /** SizeChanged()
   1.293 +     * 
   1.294 +     * Determines layout of the listbox
   1.295 +     */
   1.296 +    IMPORT_C void SizeChanged();
   1.297 +    /** MinimumSize()
   1.298 +     * 
   1.299 +     * Determines size of the listbox for use in dialogs.
   1.300 +     */
   1.301 +    IMPORT_C TSize MinimumSize();
   1.302 +    /**
   1.303 +     * From CCoeControl.     
   1.304 +     * Handles pointer events
   1.305 +     */
   1.306 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.307 +
   1.308 +protected:
   1.309 +    /** CreateItemDrawerL()
   1.310 +     *
   1.311 +     * Chooses which itemdrawer to use.
   1.312 +     */
   1.313 +    IMPORT_C virtual void CreateItemDrawerL();
   1.314 +    
   1.315 +   /** MakeViewClassInstanceL()
   1.316 +    *
   1.317 +    * Chooses which listbox view class to use
   1.318 +    */
   1.319 +    IMPORT_C virtual CListBoxView* MakeViewClassInstanceL();
   1.320 +private:
   1.321 +    void SizeChangedL();
   1.322 +    };
   1.323 +
   1.324 +
   1.325 +/**
   1.326 + * list_single_graphic_pane
   1.327 + *
   1.328 + * list item string format: "0\tTextLabel\t1\t2"
   1.329 + * where 0,1,2 are index to the icon array 
   1.330 + */
   1.331 +
   1.332 +class CAknSingleGraphicStyleListBox : public CEikColumnListBoxTypedef
   1.333 +    {
   1.334 +public: 
   1.335 +    IMPORT_C CAknSingleGraphicStyleListBox();
   1.336 +    /** SizeChanged()
   1.337 +     * 
   1.338 +     * Determines layout of the listbox
   1.339 +     */
   1.340 +    IMPORT_C void SizeChanged();
   1.341 +    /** MinimumSize()
   1.342 +     * 
   1.343 +     * Determines size of the listbox for use in dialogs.
   1.344 +     */
   1.345 +    IMPORT_C TSize MinimumSize();
   1.346 +    /**
   1.347 +     * From CCoeControl.     
   1.348 +     * Handles pointer events
   1.349 +     */
   1.350 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.351 +private:
   1.352 +    void SizeChangedL();
   1.353 +    };
   1.354 +
   1.355 +/**
   1.356 + * list_single_Graphic_heading_pane
   1.357 + *
   1.358 + * list item string format: "0\tHeading\tTextLabel\t1\t2"
   1.359 + * where 0,1,2 are index to the icon array 
   1.360 + */
   1.361 +
   1.362 +class CAknSingleGraphicHeadingStyleListBox : public CEikColumnListBoxTypedef
   1.363 +    {
   1.364 +public:
   1.365 +    IMPORT_C CAknSingleGraphicHeadingStyleListBox();
   1.366 +    /** SizeChanged()
   1.367 +     * 
   1.368 +     * Determines layout of the listbox
   1.369 +     */
   1.370 +    IMPORT_C void SizeChanged();
   1.371 +    /** MinimumSize()
   1.372 +     * 
   1.373 +     * Determines size of the listbox for use in dialogs.
   1.374 +     */
   1.375 +    IMPORT_C TSize MinimumSize();
   1.376 +    /**
   1.377 +     * From CCoeControl.     
   1.378 +     * Handles pointer events
   1.379 +     */
   1.380 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);    
   1.381 +protected:
   1.382 +    IMPORT_C virtual void CreateItemDrawerL();
   1.383 +   /** MakeViewClassInstanceL()
   1.384 +    *
   1.385 +    * Chooses which listbox view class to use
   1.386 +    */
   1.387 +    IMPORT_C virtual CListBoxView* MakeViewClassInstanceL();
   1.388 +private:
   1.389 +    void SizeChangedL();
   1.390 +    };
   1.391 +
   1.392 +/**
   1.393 + * list_single_number_heading_pane
   1.394 + *
   1.395 + * list item string format: "1\tHeading\tTextLabel\t2\t3"
   1.396 + * where 2 and 3 are indexes to icon array
   1.397 + */
   1.398 +
   1.399 +class CAknSingleNumberHeadingStyleListBox : public CEikColumnListBoxTypedef
   1.400 +    {
   1.401 +public:
   1.402 +    IMPORT_C CAknSingleNumberHeadingStyleListBox();
   1.403 +    /** SizeChanged()
   1.404 +     * 
   1.405 +     * Determines layout of the listbox
   1.406 +     */
   1.407 +    IMPORT_C void SizeChanged();
   1.408 +    /** MinimumSize()
   1.409 +     * 
   1.410 +     * Determines size of the listbox for use in dialogs.
   1.411 +     */
   1.412 +    IMPORT_C TSize MinimumSize();
   1.413 +    /**
   1.414 +     * From CCoeControl.     
   1.415 +     * Handles pointer events
   1.416 +     */
   1.417 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.418 +protected:
   1.419 +    IMPORT_C virtual void CreateItemDrawerL();
   1.420 +   /** MakeViewClassInstanceL()
   1.421 +    *
   1.422 +    * Chooses which listbox view class to use
   1.423 +    */
   1.424 +    IMPORT_C virtual CListBoxView* MakeViewClassInstanceL();
   1.425 +private:
   1.426 +    void SizeChangedL();
   1.427 +    };
   1.428 +
   1.429 +/**
   1.430 + * list_single_large_pane
   1.431 + *
   1.432 + * list item string format: "1\tTextLabel\t0\t0"
   1.433 + * where 0 is an index to icon array
   1.434 + */
   1.435 +
   1.436 +class CAknSingleLargeStyleListBox : public CEikColumnListBoxTypedef
   1.437 +    {
   1.438 +public:
   1.439 +    IMPORT_C CAknSingleLargeStyleListBox();
   1.440 +    /** SizeChanged()
   1.441 +     * 
   1.442 +     * Determines layout of the listbox
   1.443 +     */
   1.444 +    IMPORT_C void SizeChanged();
   1.445 +    /** MinimumSize()
   1.446 +     * 
   1.447 +     * Determines size of the listbox for use in dialogs.
   1.448 +     */
   1.449 +    IMPORT_C TSize MinimumSize();
   1.450 +    /**
   1.451 +     * From CCoeControl.     
   1.452 +     * Handles pointer events
   1.453 +     */
   1.454 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);   
   1.455 +private:
   1.456 +    void SizeChangedL();
   1.457 +    };
   1.458 +
   1.459 +/**
   1.460 + * list_double_pane and list_big_single_pane
   1.461 + *
   1.462 + * list item string format: " \tFirstLabel\tSecondLabel\t0\t0"
   1.463 + * where 0 is an index to icon array
   1.464 + */
   1.465 +
   1.466 +class CAknDoubleStyleListBox : public CEikFormattedCellListBoxTypedef
   1.467 +    {
   1.468 +public:
   1.469 +    IMPORT_C CAknDoubleStyleListBox();
   1.470 +    /** SizeChanged()
   1.471 +     * 
   1.472 +     * Determines layout of the listbox
   1.473 +     */
   1.474 +    IMPORT_C void SizeChanged();
   1.475 +    /** MinimumSize()
   1.476 +     * 
   1.477 +     * Determines size of the listbox for use in dialogs.
   1.478 +     */
   1.479 +    IMPORT_C TSize MinimumSize();
   1.480 +    /**
   1.481 +     * From CCoeControl.     
   1.482 +     * Handles pointer events
   1.483 +     */
   1.484 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.485 +private:
   1.486 +    void SizeChangedL();
   1.487 +    };
   1.488 +
   1.489 +/**
   1.490 + * list_twoline_pane
   1.491 + *
   1.492 + * list item string format: " \tFirstLongLabel\t\t0"
   1.493 + * where 0 is an index to icon array
   1.494 + */
   1.495 +
   1.496 +class CAknDoubleStyle2ListBox : public CAknDoubleStyleListBox
   1.497 +    {
   1.498 +public:
   1.499 +    /** SizeChanged()
   1.500 +     * 
   1.501 +     * Determines layout of the listbox
   1.502 +     */
   1.503 +    IMPORT_C void SizeChanged();
   1.504 +    /** CreateItemDrawerL()
   1.505 +     *
   1.506 +     * Chooses which itemdrawer to use.
   1.507 +     */
   1.508 +    IMPORT_C void CreateItemDrawerL();
   1.509 +    /**
   1.510 +     * From CCoeControl.     
   1.511 +     * Handles pointer events
   1.512 +     */
   1.513 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
   1.514 +private:
   1.515 +    void SizeChangedL();
   1.516 +    };
   1.517 +
   1.518 + /**
   1.519 + * list_double_number_pane and list_big_single_number_pane
   1.520 + *
   1.521 + * list item string format: "1\tFirstLabel\t\t0\t0"
   1.522 + * list item string format: "1\tFirstLabel\tSecondLabel\t0\t0"
   1.523 + * where 0 is an index to icon array
   1.524 + *
   1.525 + */
   1.526 +
   1.527 +class CAknDoubleNumberStyleListBox : public CEikFormattedCellListBoxTypedef
   1.528 +    {
   1.529 +public:
   1.530 +    IMPORT_C CAknDoubleNumberStyleListBox();
   1.531 +    /** SizeChanged()
   1.532 +     * 
   1.533 +     * Determines layout of the listbox
   1.534 +     */
   1.535 +    IMPORT_C void SizeChanged();
   1.536 +    /** MinimumSize()
   1.537 +     * 
   1.538 +     * Determines size of the listbox for use in dialogs.
   1.539 +     */
   1.540 +    IMPORT_C TSize MinimumSize();
   1.541 +    /**
   1.542 +     * From CCoeControl.     
   1.543 +     * Handles pointer events
   1.544 +     */
   1.545 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.546 +private:
   1.547 +    void SizeChangedL();
   1.548 +    };
   1.549 +
   1.550 +/**
   1.551 + * list_double_time_pane
   1.552 + */
   1.553 +
   1.554 +class CAknDoubleTimeStyleListBox : public CEikFormattedCellListBoxTypedef
   1.555 +    {
   1.556 +public:
   1.557 +    IMPORT_C CAknDoubleTimeStyleListBox();
   1.558 +    /** SizeChanged()
   1.559 +     * 
   1.560 +     * Determines layout of the listbox
   1.561 +     */
   1.562 +    IMPORT_C void SizeChanged();
   1.563 +    /** MinimumSize()
   1.564 +     * 
   1.565 +     * Determines size of the listbox for use in dialogs.
   1.566 +     */
   1.567 +    IMPORT_C TSize MinimumSize();
   1.568 +    /**
   1.569 +     * From CCoeControl.     
   1.570 +     * Handles pointer events
   1.571 +     */
   1.572 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
   1.573 +private:
   1.574 +    void SizeChangedL();
   1.575 +    };
   1.576 +
   1.577 +/**
   1.578 + * list_double_large_pane
   1.579 + *
   1.580 + * list item string format: "1\tFirstLabel\tSecondLabel\t0\t0"
   1.581 + *
   1.582 + * where 0 is an index of small (13x13) icon in icon array
   1.583 + *   and 1 is an index of a thumbnail image
   1.584 + *
   1.585 + * Good thumbnail image sizes for this list are:
   1.586 + *   30x40, 36x44, 40x30, 40x48, 44x36.
   1.587 + */
   1.588 +
   1.589 +class CAknDoubleLargeStyleListBox : public CEikFormattedCellListBoxTypedef
   1.590 +    {
   1.591 +public:
   1.592 +    IMPORT_C CAknDoubleLargeStyleListBox();
   1.593 +    /** SizeChanged()
   1.594 +     * 
   1.595 +     * Determines layout of the listbox
   1.596 +     */
   1.597 +    IMPORT_C void SizeChanged();
   1.598 +    /** MinimumSize()
   1.599 +     * 
   1.600 +     * Determines size of the listbox for use in dialogs.
   1.601 +     */
   1.602 +    IMPORT_C TSize MinimumSize();
   1.603 +    /** CreateItemDrawerL()
   1.604 +     *
   1.605 +     * Chooses which itemdrawer to use.
   1.606 +     */
   1.607 +    IMPORT_C virtual void CreateItemDrawerL();
   1.608 +    /**
   1.609 +     * From CCoeControl.     
   1.610 +     * Handles pointer events
   1.611 +     */
   1.612 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.613 +private:
   1.614 +    void SizeChangedL();
   1.615 +    };
   1.616 +
   1.617 +
   1.618 +/**
   1.619 + * list_double_graphic_pane
   1.620 + *
   1.621 + * list item string format: "0\tFirstLabel\tSecondLabel\t0"
   1.622 + * where 0 is index to icon array
   1.623 + *
   1.624 + */
   1.625 +
   1.626 +class CAknDoubleGraphicStyleListBox : public CEikFormattedCellListBoxTypedef
   1.627 +    {
   1.628 +public:
   1.629 +    IMPORT_C CAknDoubleGraphicStyleListBox();
   1.630 +    /** SizeChanged()
   1.631 +     * 
   1.632 +     * Determines layout of the listbox
   1.633 +     */
   1.634 +    IMPORT_C void SizeChanged();
   1.635 +    /** MinimumSize()
   1.636 +     * 
   1.637 +     * Determines size of the listbox for use in dialogs.
   1.638 +     */
   1.639 +    IMPORT_C TSize MinimumSize();
   1.640 +    /**
   1.641 +     * From CCoeControl.     
   1.642 +     * Handles pointer events
   1.643 +     */
   1.644 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.645 +private:
   1.646 +    void SizeChangedL();
   1.647 +    };
   1.648 +
   1.649 +
   1.650 +/** 
   1.651 + * list_double2_graphic_pane
   1.652 + *
   1.653 + * list item string format: "0\tFirstLabel\tSecondLabel\t0"
   1.654 + * where 0 is index to icon array
   1.655 + *
   1.656 + */
   1.657 +
   1.658 +class CAknDouble2GraphicStyleListBox : public CEikFormattedCellListBoxTypedef
   1.659 +    {
   1.660 +public:
   1.661 +    IMPORT_C CAknDouble2GraphicStyleListBox();
   1.662 +    /** SizeChanged()
   1.663 +     * 
   1.664 +     * Determines layout of the listbox
   1.665 +     */
   1.666 +    IMPORT_C void SizeChanged();
   1.667 +    /** MinimumSize()
   1.668 +     * 
   1.669 +     * Determines size of the listbox for use in dialogs.
   1.670 +     */
   1.671 +    IMPORT_C TSize MinimumSize();
   1.672 +
   1.673 +	/** CreateItemDrawerL()
   1.674 +     *
   1.675 +     * Chooses which itemdrawer to use.
   1.676 +     */
   1.677 +    IMPORT_C void CreateItemDrawerL();
   1.678 +    /**
   1.679 +     * From CCoeControl.     
   1.680 +     * Handles pointer events
   1.681 +     */
   1.682 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.683 +private:
   1.684 +    void SizeChangedL();
   1.685 +    };
   1.686 +
   1.687 +
   1.688 +/**
   1.689 + * list_double2_large_graphic_pane
   1.690 + *
   1.691 + * list item string format: "1\tFirstLabel\tSecondLabel\t0"
   1.692 + *
   1.693 + * where 0 is an index of small (13x13) icon in icon array
   1.694 + *   and 1 is an index of a thumbnail image
   1.695 + *
   1.696 + */
   1.697 +
   1.698 +class CAknDouble2LargeStyleListBox : public CEikFormattedCellListBoxTypedef
   1.699 +    {
   1.700 +public:
   1.701 +    IMPORT_C CAknDouble2LargeStyleListBox();
   1.702 +    /** SizeChanged()
   1.703 +     * 
   1.704 +     * Determines layout of the listbox
   1.705 +     */
   1.706 +    IMPORT_C void SizeChanged();
   1.707 +    /** MinimumSize()
   1.708 +     * 
   1.709 +     * Determines size of the listbox for use in dialogs.
   1.710 +     */
   1.711 +    IMPORT_C TSize MinimumSize();
   1.712 +    /** CreateItemDrawerL()
   1.713 +     *
   1.714 +     * Chooses which itemdrawer to use.
   1.715 +     */
   1.716 +    IMPORT_C virtual void CreateItemDrawerL();
   1.717 +    /**
   1.718 +     * From CCoeControl.     
   1.719 +     * Handles pointer events
   1.720 +     */
   1.721 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.722 +private:
   1.723 +    void SizeChangedL();
   1.724 +    };
   1.725 +
   1.726 +
   1.727 +/**
   1.728 +*  list_double2_graphic_large_graphic_pane
   1.729 +*
   1.730 +*  This is similar but not identical to
   1.731 +*  java list CAknDouble2GraphicLargeStyleListBox
   1.732 +*
   1.733 +*  list item string format: "0\t1\tFirstLabel\tSecondLabel\t2\t3"
   1.734 +*
   1.735 +*  where 0 (mandatory), 2 and 3 (optional) are an index of small icon
   1.736 +*  in icon array and 1 (mandatory) is an index of a thumbnail image
   1.737 +*
   1.738 +*  @lib avkon
   1.739 +*  @since Series 60 2.8
   1.740 +*/
   1.741 +
   1.742 +class CAknDouble2GraphicLargeGraphicStyleListBox : public CEikFormattedCellListBoxTypedef
   1.743 +    {
   1.744 +public:
   1.745 +    IMPORT_C CAknDouble2GraphicLargeGraphicStyleListBox();
   1.746 +    /** SizeChanged()
   1.747 +     * 
   1.748 +     * Determines layout of the listbox
   1.749 +     */
   1.750 +    IMPORT_C void SizeChanged();
   1.751 +    /** MinimumSize()
   1.752 +     * 
   1.753 +     * Determines size of the listbox for use in dialogs.
   1.754 +     */
   1.755 +    IMPORT_C TSize MinimumSize();
   1.756 +    /** CreateItemDrawerL()
   1.757 +     *
   1.758 +     * Chooses which itemdrawer to use.
   1.759 +     */
   1.760 +    IMPORT_C virtual void CreateItemDrawerL();
   1.761 +    /**
   1.762 +     * From CCoeControl.     
   1.763 +     * Handles pointer events
   1.764 +     */
   1.765 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);   
   1.766 +private:
   1.767 +    void SizeChangedL();
   1.768 +    };
   1.769 +
   1.770 +
   1.771 +/**
   1.772 + * list_double2_graphic_pane
   1.773 + *
   1.774 + * list item string format: "1\tFirstLabel\tSecondLabel\t0"
   1.775 + * where 0 is an index to icon array
   1.776 + *
   1.777 + */
   1.778 +
   1.779 +class CAknFormDoubleGraphicStyleListBox : public CAknDoubleGraphicStyleListBox
   1.780 +    {
   1.781 +public:
   1.782 +    /** SizeChanged()
   1.783 +     * 
   1.784 +     * Determines layout of the listbox
   1.785 +     */
   1.786 +    IMPORT_C void SizeChanged();
   1.787 +    /**
   1.788 +     * From CCoeControl.     
   1.789 +     * Handles pointer events
   1.790 +     */
   1.791 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.792 +private:
   1.793 +    void SizeChangedL();
   1.794 +    };
   1.795 +typedef CAknFormDoubleGraphicStyleListBox CAknSingleBigHeadingGraphicListBox;
   1.796 +
   1.797 +/**
   1.798 + * list_double2_pane
   1.799 + *
   1.800 + * list item string format: " \tFirstLabel\tSecondLabel\t0"
   1.801 + * where 0 is an index to icon array
   1.802 + */
   1.803 +
   1.804 +class CAknFormDoubleStyleListBox : public CAknDoubleStyleListBox
   1.805 +    {
   1.806 +public:
   1.807 +    /** SizeChanged()
   1.808 +     * 
   1.809 +     * Determines layout of the listbox
   1.810 +     */
   1.811 +    IMPORT_C void SizeChanged();
   1.812 +    /**
   1.813 +     * From CCoeControl.     
   1.814 +     * Handles pointer events
   1.815 +     */
   1.816 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.817 +private:
   1.818 +    void SizeChangedL();
   1.819 +    };
   1.820 +typedef CAknFormDoubleStyleListBox CAknSingleBigHeadingListBox;
   1.821 +
   1.822 +
   1.823 +/**
   1.824 + * list_setting_pane and list_big_single_setting_pane
   1.825 + *
   1.826 + * list item string format: "\tFirstLabel\t\tValueText"
   1.827 + * list item string format: "\tFirstLabel\t0\t"
   1.828 + * list item string format: "\tFirstLabel\t\tValueText\t*"
   1.829 + * list item string format: "\tFirstLabel\t\t\t\tSecondLabel"
   1.830 + * where 0 is an index to icon array
   1.831 + */
   1.832 +
   1.833 +class CAknSettingStyleListBox : public CEikSettingsListBoxTypedef
   1.834 +    {
   1.835 +public:
   1.836 +    IMPORT_C CAknSettingStyleListBox();
   1.837 +    /** SizeChanged()
   1.838 +     * 
   1.839 +     * Determines layout of the listbox
   1.840 +     */
   1.841 +    IMPORT_C void SizeChanged();
   1.842 +    /** MinimumSize()
   1.843 +     * 
   1.844 +     * Determines size of the listbox for use in dialogs.
   1.845 +     */
   1.846 +    IMPORT_C TSize MinimumSize();
   1.847 +    /**
   1.848 +     * From CCoeControl.     
   1.849 +     * Handles pointer events
   1.850 +     */
   1.851 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.852 +private:
   1.853 +    void SizeChangedL();
   1.854 +    };
   1.855 +
   1.856 +/**
   1.857 + * list_setting_number_pane and list_big_single_setting_number_pane
   1.858 + *
   1.859 + * list item string format: "1\tFirstLabel\t\tValueText"
   1.860 + * list item string format: "2\tFirstLabel\t0\t"
   1.861 + * list item string format: "3\tFirstLabel\t\tValueText\t*"
   1.862 + * list item string format: "4\tFirstLabel\t\t\t\tSecondLabel"
   1.863 + * where 0 is an index to icon array
   1.864 + * and 1..4 is list item number shown on screen
   1.865 + */
   1.866 +class CAknSettingNumberStyleListBox : public CEikSettingsListBoxTypedef
   1.867 +    {
   1.868 +public:
   1.869 +    IMPORT_C CAknSettingNumberStyleListBox();
   1.870 +    /** SizeChanged()
   1.871 +     * 
   1.872 +     * Determines layout of the listbox
   1.873 +     */
   1.874 +    IMPORT_C void SizeChanged();
   1.875 +    /** MinimumSize()
   1.876 +     * 
   1.877 +     * Determines size of the listbox for use in dialogs.
   1.878 +     */
   1.879 +    IMPORT_C TSize MinimumSize();
   1.880 +    /**
   1.881 +     * From CCoeControl.     
   1.882 +     * Handles pointer events
   1.883 +     */
   1.884 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
   1.885 +private:
   1.886 +    void SizeChangedL();
   1.887 +    };
   1.888 +
   1.889 +
   1.890 +//
   1.891 +// Use the popup styles with CAknPopupList and CAknListQueryDialog
   1.892 +//
   1.893 +
   1.894 +/**
   1.895 + * list_single_popup_menu_pane
   1.896 + *
   1.897 + * list item string format: "FirstLabel\t0"
   1.898 + *
   1.899 + * where 0 is an index to icon array
   1.900 + */
   1.901 +
   1.902 +class CAknSinglePopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
   1.903 +    {
   1.904 +public:
   1.905 +    /** SizeChanged()
   1.906 +     * 
   1.907 +     * Determines layout of the listbox
   1.908 +     */
   1.909 +    IMPORT_C void SizeChanged();
   1.910 +    /** MinimumSize()
   1.911 +     * 
   1.912 +     * Determines size of the listbox for use in dialogs.
   1.913 +     */
   1.914 +    IMPORT_C TSize MinimumSize();
   1.915 +    protected:
   1.916 +    /** CreateItemDrawerL()
   1.917 +     *
   1.918 +     * Chooses which itemdrawer to use.
   1.919 +     */
   1.920 +    IMPORT_C virtual void CreateItemDrawerL();
   1.921 +    /**
   1.922 +     * From CCoeControl.     
   1.923 +     * Handles pointer events
   1.924 +     */
   1.925 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
   1.926 +private:
   1.927 +    void SizeChangedL();
   1.928 +    };
   1.929 +
   1.930 +/**
   1.931 + * list_single_graphic_popup_menu_pane
   1.932 + *
   1.933 + * list item string format: "0\tLabel"
   1.934 + *
   1.935 + * where 0 is an index to icon array
   1.936 + */
   1.937 +
   1.938 +class CAknSingleGraphicPopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
   1.939 +    {
   1.940 +public:
   1.941 +    /** SizeChanged()
   1.942 +     * 
   1.943 +     * Determines layout of the listbox
   1.944 +     */
   1.945 +    IMPORT_C void SizeChanged();
   1.946 +    /** MinimumSize()
   1.947 +     * 
   1.948 +     * Determines size of the listbox for use in dialogs.
   1.949 +     */
   1.950 +    IMPORT_C TSize MinimumSize();
   1.951 +    protected:
   1.952 +    /** CreateItemDrawerL()
   1.953 +     *
   1.954 +     * Chooses which itemdrawer to use.
   1.955 +     */
   1.956 +    IMPORT_C virtual void CreateItemDrawerL();
   1.957 +    /**
   1.958 +     * From CCoeControl.     
   1.959 +     * Handles pointer events
   1.960 +     */
   1.961 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);  
   1.962 +private:
   1.963 +    void SizeChangedL();
   1.964 +    };
   1.965 +
   1.966 +/**
   1.967 + * list_single_graphic_bt_popup_menu_pane
   1.968 + *
   1.969 + * list item string format: "0\tLabel"
   1.970 + *
   1.971 + * where 0 is an index to icon array
   1.972 + *
   1.973 + */
   1.974 +
   1.975 +class CAknSingleGraphicBtPopupMenuStyleListBox : public CAknSingleGraphicPopupMenuStyleListBox
   1.976 +    {
   1.977 +public:
   1.978 +    /** SizeChanged()
   1.979 +     * 
   1.980 +     * Determines layout of the listbox
   1.981 +     */
   1.982 +    IMPORT_C virtual void SizeChanged();
   1.983 +    /**
   1.984 +     * From CCoeControl.     
   1.985 +     * Handles pointer events
   1.986 +     */
   1.987 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);    
   1.988 +    };
   1.989 +
   1.990 +/**
   1.991 + * list_single_heading_popup_menu_pane
   1.992 + *
   1.993 + * list item string format: "Heading\tLabel"
   1.994 + *
   1.995 + */
   1.996 +
   1.997 +class CAknSingleHeadingPopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
   1.998 +    {
   1.999 +public:
  1.1000 +    IMPORT_C CAknSingleHeadingPopupMenuStyleListBox();
  1.1001 +    /** SizeChanged()
  1.1002 +     * 
  1.1003 +     * Determines layout of the listbox
  1.1004 +     */
  1.1005 +    IMPORT_C void SizeChanged();
  1.1006 +    /** MinimumSize()
  1.1007 +     * 
  1.1008 +     * Determines size of the listbox for use in dialogs.
  1.1009 +     */
  1.1010 +    IMPORT_C TSize MinimumSize();
  1.1011 +    /**
  1.1012 +     * From CCoeControl.     
  1.1013 +     * Handles pointer events
  1.1014 +     */
  1.1015 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);    
  1.1016 +protected:
  1.1017 +    /** CreateItemDrawerL()
  1.1018 +     *
  1.1019 +     * Chooses which itemdrawer to use.
  1.1020 +     */
  1.1021 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1022 +private:
  1.1023 +    void SizeChangedL();
  1.1024 +    };
  1.1025 +
  1.1026 +
  1.1027 +/**
  1.1028 + * list_single_graphic_heading_popup_menu_pane
  1.1029 + *
  1.1030 + * list item string format: "0\tHeading\tLabel"
  1.1031 + *
  1.1032 + * where 0 is an index to icon array
  1.1033 + *
  1.1034 + */
  1.1035 +
  1.1036 +class CAknSingleGraphicHeadingPopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1037 +
  1.1038 +    {
  1.1039 +public:
  1.1040 +    IMPORT_C CAknSingleGraphicHeadingPopupMenuStyleListBox();
  1.1041 +    /** SizeChanged()
  1.1042 +     * 
  1.1043 +     * Determines layout of the listbox
  1.1044 +     */
  1.1045 +    IMPORT_C void SizeChanged();
  1.1046 +    /** MinimumSize()
  1.1047 +     * 
  1.1048 +     * Determines size of the listbox for use in dialogs.
  1.1049 +     */
  1.1050 +    IMPORT_C TSize MinimumSize();
  1.1051 +    /**
  1.1052 +     * From CCoeControl.     
  1.1053 +     * Handles pointer events
  1.1054 +     */
  1.1055 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
  1.1056 +protected:
  1.1057 +    /** CreateItemDrawerL()
  1.1058 +     *
  1.1059 +     * Chooses which itemdrawer to use.
  1.1060 +     */
  1.1061 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1062 +private:
  1.1063 +    void SizeChangedL();
  1.1064 +    };
  1.1065 +
  1.1066 +/**
  1.1067 + * list_double_popup_menu_pane
  1.1068 + *
  1.1069 + * list item string format: "FirstLabel\tSecondLabel"
  1.1070 + *
  1.1071 + */
  1.1072 +
  1.1073 +class CAknDoublePopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1074 +    {
  1.1075 +public:
  1.1076 +    /** SizeChanged()
  1.1077 +     * 
  1.1078 +     * Determines layout of the listbox
  1.1079 +     */
  1.1080 +    IMPORT_C void SizeChanged();
  1.1081 +    /** MinimumSize()
  1.1082 +     * 
  1.1083 +     * Determines size of the listbox for use in dialogs.
  1.1084 +     */
  1.1085 +    IMPORT_C TSize MinimumSize();
  1.1086 +    /**
  1.1087 +     * From CCoeControl.     
  1.1088 +     * Handles pointer events
  1.1089 +     */
  1.1090 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
  1.1091 +protected:
  1.1092 +    /** CreateItemDrawerL()
  1.1093 +     *
  1.1094 +     * Chooses which itemdrawer to use.
  1.1095 +     */
  1.1096 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1097 +private:
  1.1098 +    void SizeChangedL();
  1.1099 +    };
  1.1100 +
  1.1101 +/**
  1.1102 + * list_single_popup_submenu_pane
  1.1103 + *
  1.1104 + * DO NOT USE
  1.1105 + *
  1.1106 + */
  1.1107 +
  1.1108 +class CAknSinglePopupSubmenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1109 +    {
  1.1110 +public:
  1.1111 +    /** SizeChanged()
  1.1112 +     * 
  1.1113 +     * Determines layout of the listbox
  1.1114 +     */
  1.1115 +    IMPORT_C void SizeChanged();
  1.1116 +    /** MinimumSize()
  1.1117 +     * 
  1.1118 +     * Determines size of the listbox for use in dialogs.
  1.1119 +     */
  1.1120 +    IMPORT_C TSize MinimumSize();
  1.1121 +    /**
  1.1122 +     * From CCoeControl.     
  1.1123 +     * Handles pointer events
  1.1124 +     */
  1.1125 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
  1.1126 +private:
  1.1127 +    void SizeChangedL();
  1.1128 +    };
  1.1129 +
  1.1130 +
  1.1131 +/**
  1.1132 + * list_double_large_graphic_popup_menu_pane
  1.1133 + *
  1.1134 + * list item string format: "0\tFirstLabel\tSecondLabel"
  1.1135 + *
  1.1136 + * where 0 is an index to icon array
  1.1137 + *
  1.1138 + */
  1.1139 +
  1.1140 +class CAknDoubleLargeGraphicPopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1141 +    {
  1.1142 +public:
  1.1143 +    /** SizeChanged()
  1.1144 +     * 
  1.1145 +     * Determines layout of the listbox
  1.1146 +     */
  1.1147 +    IMPORT_C void SizeChanged();
  1.1148 +    /** MinimumSize()
  1.1149 +     * 
  1.1150 +     * Determines size of the listbox for use in dialogs.
  1.1151 +     */
  1.1152 +    IMPORT_C TSize MinimumSize();
  1.1153 +    /**
  1.1154 +     * From CCoeControl.     
  1.1155 +     * Handles pointer events
  1.1156 +     */
  1.1157 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
  1.1158 +protected:
  1.1159 +    /** CreateItemDrawerL()
  1.1160 +     *
  1.1161 +     * Chooses which itemdrawer to use.
  1.1162 +     */
  1.1163 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1164 +private:
  1.1165 +    void SizeChangedL();
  1.1166 +    };
  1.1167 +
  1.1168 +
  1.1169 +/**
  1.1170 + * list_double2_popup_menu_pane
  1.1171 + *
  1.1172 + * list item string format: "FirstLabel\tSecondLabel"
  1.1173 + *
  1.1174 + */
  1.1175 +
  1.1176 +class CAknDouble2PopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1177 +    {
  1.1178 +public:
  1.1179 +    /** SizeChanged()
  1.1180 +     * 
  1.1181 +     * Determines layout of the listbox
  1.1182 +     */
  1.1183 +    IMPORT_C void SizeChanged();
  1.1184 +    /** MinimumSize()
  1.1185 +     * 
  1.1186 +     * Determines size of the listbox for use in dialogs.
  1.1187 +     */
  1.1188 +    IMPORT_C TSize MinimumSize();
  1.1189 +    /**
  1.1190 +     * From CCoeControl.     
  1.1191 +     * Handles pointer events
  1.1192 +     */
  1.1193 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);  
  1.1194 +protected:
  1.1195 +    /** CreateItemDrawerL()
  1.1196 +     *
  1.1197 +     * Chooses which itemdrawer to use.
  1.1198 +     */
  1.1199 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1200 +private:
  1.1201 +    void SizeChangedL();
  1.1202 +    };
  1.1203 +    
  1.1204 +    
  1.1205 +/**
  1.1206 + * list_single_2graphic_pane_cp2
  1.1207 + *
  1.1208 + * list item string format: "0\t1\tTextLabel\t2\t3"
  1.1209 + *
  1.1210 + * where 0,1,2,3 are index to the icon array 
  1.1211 + */
  1.1212 +
  1.1213 +class CAknSingle2GraphicPopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1214 +    {
  1.1215 +public:
  1.1216 +    IMPORT_C CAknSingle2GraphicPopupMenuStyleListBox();
  1.1217 +    /** SizeChanged()
  1.1218 +     * 
  1.1219 +     * Determines layout of the listbox
  1.1220 +     */
  1.1221 +    IMPORT_C void SizeChanged();
  1.1222 +    /** MinimumSize()
  1.1223 +     * 
  1.1224 +     * Determines size of the listbox for use in dialogs.
  1.1225 +     */
  1.1226 +    IMPORT_C TSize MinimumSize();
  1.1227 +    protected:
  1.1228 +    /** CreateItemDrawerL()
  1.1229 +     *
  1.1230 +     * Chooses which itemdrawer to use.
  1.1231 +     */
  1.1232 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1233 +    /**
  1.1234 +     * From CCoeControl.     
  1.1235 +     * Handles pointer events
  1.1236 +     */
  1.1237 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
  1.1238 +private:
  1.1239 +    void SizeChangedL();
  1.1240 +    };
  1.1241 +
  1.1242 +
  1.1243 +
  1.1244 +/**
  1.1245 + * list_double_graphic_pane
  1.1246 + *
  1.1247 + * list item string format: "0\tFirstLabel\tSecondLabel\t1\t2"
  1.1248 + * where 0 is index to icon array
  1.1249 + *
  1.1250 + */
  1.1251 +class CAknDoubleGraphicPopupMenuStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1252 +    {
  1.1253 +public:
  1.1254 +    IMPORT_C CAknDoubleGraphicPopupMenuStyleListBox();
  1.1255 +    /** SizeChanged()
  1.1256 +     * 
  1.1257 +     * Determines layout of the listbox
  1.1258 +     */
  1.1259 +    IMPORT_C void SizeChanged();
  1.1260 +    /** MinimumSize()
  1.1261 +     * 
  1.1262 +     * Determines size of the listbox for use in dialogs.
  1.1263 +     */
  1.1264 +    IMPORT_C TSize MinimumSize();
  1.1265 +    protected:
  1.1266 +    /** CreateItemDrawerL()
  1.1267 +     *
  1.1268 +     * Chooses which itemdrawer to use.
  1.1269 +     */
  1.1270 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1271 +    /**
  1.1272 +     * From CCoeControl.     
  1.1273 +     * Handles pointer events
  1.1274 +     */
  1.1275 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
  1.1276 +private:
  1.1277 +    void SizeChangedL();
  1.1278 +    };
  1.1279 +    
  1.1280 +// --- end of popup styles
  1.1281 +
  1.1282 +
  1.1283 +
  1.1284 +/** list_set_pane
  1.1285 + * Setting Page component uses this
  1.1286 + *
  1.1287 + * list item string format: "1\tShortLabel"
  1.1288 + * list item string format: "\t\tLongLabel"
  1.1289 + *
  1.1290 + */
  1.1291 +class CAknSetStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1292 +    {
  1.1293 +public:
  1.1294 +    IMPORT_C void ConstructWithWindowL(const CCoeControl *aParent, TInt aFlags);
  1.1295 +    /** SizeChanged()
  1.1296 +     * 
  1.1297 +     * Determines layout of the listbox
  1.1298 +     */
  1.1299 +    IMPORT_C void SizeChanged();
  1.1300 +    /** MinimumSize()
  1.1301 +     * 
  1.1302 +     * Determines size of the listbox for use in dialogs.
  1.1303 +     */
  1.1304 +    IMPORT_C TSize MinimumSize();
  1.1305 +    IMPORT_C void Draw(const TRect& aRect) const;
  1.1306 +    IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
  1.1307 +
  1.1308 +    /**
  1.1309 +     * From CCoeControl.     
  1.1310 +     * Handles pointer events
  1.1311 +     */
  1.1312 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
  1.1313 +
  1.1314 +protected:
  1.1315 +    /** CreateItemDrawerL()
  1.1316 +     *
  1.1317 +     * Chooses which itemdrawer to use.
  1.1318 +     */
  1.1319 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1320 +   /** MakeViewClassInstanceL()
  1.1321 +    *
  1.1322 +    * Chooses which listbox view class to use
  1.1323 +    */
  1.1324 +    IMPORT_C CListBoxView *MakeViewClassInstanceL();
  1.1325 +private:
  1.1326 +    void SizeChangedL();
  1.1327 +    };
  1.1328 +
  1.1329 +/** list_form_graphic_pane
  1.1330 + * Form popup field should use this
  1.1331 + *
  1.1332 + * list item string format: "1\tShortLabel"
  1.1333 + * list item string format: "\t\tLongLabel"
  1.1334 + *
  1.1335 + */
  1.1336 +class CAknFormGraphicStyleListBox : public AknPopupListEmpty<CEikFormattedCellListBox>
  1.1337 +    {
  1.1338 +public:
  1.1339 +    IMPORT_C void ConstructWithWindowL(const CCoeControl *aParent, TInt aFlags);
  1.1340 +    /** SizeChanged()
  1.1341 +     * 
  1.1342 +     * Determines layout of the listbox
  1.1343 +     */
  1.1344 +    IMPORT_C void SizeChanged();
  1.1345 +    /** MinimumSize()
  1.1346 +     * 
  1.1347 +     * Determines size of the grid for use in dialogs.
  1.1348 +     */
  1.1349 +    IMPORT_C TSize MinimumSize();
  1.1350 +    /** CreateItemDrawerL()
  1.1351 +     *
  1.1352 +     * Chooses which itemdrawer to use.
  1.1353 +     */
  1.1354 +    IMPORT_C virtual void CreateItemDrawerL();
  1.1355 +    /** Listbox rectangle calculation.
  1.1356 +     */
  1.1357 +    IMPORT_C virtual TInt AdjustRectHeightToWholeNumberOfItems(TRect &aRect) const;
  1.1358 +     /**
  1.1359 +     * From CCoeControl
  1.1360 +     * Handles pointerevents of popupfield's list
  1.1361 +     * @param aPointerEvent pointerevent to be handled
  1.1362 +     */
  1.1363 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
  1.1364 +private:
  1.1365 +    void SizeChangedL();
  1.1366 +	};
  1.1367 +
  1.1368 +class CAknFormGraphicWideStyleListBox : public CAknFormGraphicStyleListBox
  1.1369 +    {
  1.1370 +public:
  1.1371 +    IMPORT_C void SizeChanged();
  1.1372 +    IMPORT_C TSize MinimumSize();
  1.1373 +    // From CCoeControl
  1.1374 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);  
  1.1375 +private:
  1.1376 +    void SizeChangedL();
  1.1377 +    };
  1.1378 +
  1.1379 +
  1.1380 +/** grid_app_pane
  1.1381 + * Application Shell uses this (note that part of layout needs to be done
  1.1382 + * inside application -- the listbox will not be in correct position on the
  1.1383 + * screen by just using this -- see listapp)
  1.1384 + *
  1.1385 + * list item string format: "1\tLabel"
  1.1386 + * list item string format: "1\tLabel\t1"
  1.1387 + */
  1.1388 +
  1.1389 +/**
  1.1390 + * grid_pinb_pane
  1.1391 + *
  1.1392 + * list item string format: "1"
  1.1393 + * list item string format: "1\t1"
  1.1394 + * list item string format: "1\t1\t1"
  1.1395 + * list item string format: "1\t\t1"
  1.1396 + */
  1.1397 +
  1.1398 +class CAknPinbStyleGrid : public CAknSelectionGridTypedef
  1.1399 +    {
  1.1400 +public:
  1.1401 +    /** SizeChanged()
  1.1402 +     * 
  1.1403 +     * Determines layout of the grid
  1.1404 +     */
  1.1405 +    IMPORT_C void SizeChanged();
  1.1406 +    /** MinimumSize()
  1.1407 +     * 
  1.1408 +     * Determines size of the grid for use in dialogs.
  1.1409 +     */
  1.1410 +    IMPORT_C TSize MinimumSize();
  1.1411 +
  1.1412 +    /**
  1.1413 +     * From CCoeControl.     
  1.1414 +     * Handles pointer events
  1.1415 +     */
  1.1416 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
  1.1417 +
  1.1418 +private:    
  1.1419 +    void SizeChangedL();
  1.1420 +    };
  1.1421 +
  1.1422 +
  1.1423 +/**
  1.1424 + * grid_qdial_pane
  1.1425 + */
  1.1426 +
  1.1427 +class CAknQdialStyleGrid : public CAknSelectionGridTypedef
  1.1428 +    {
  1.1429 +public:
  1.1430 +    /** SizeChanged()
  1.1431 +     * 
  1.1432 +     * Determines layout of the grid
  1.1433 +     */
  1.1434 +    IMPORT_C virtual void SizeChanged();
  1.1435 +    /** MinimumSize()
  1.1436 +     * 
  1.1437 +     * Determines size of the grid for use in dialogs.
  1.1438 +     */
  1.1439 +    IMPORT_C TSize MinimumSize();
  1.1440 +
  1.1441 +    /**
  1.1442 +     * From CCoeControl.     
  1.1443 +     * Handles pointer events
  1.1444 +     */
  1.1445 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 
  1.1446 +
  1.1447 +private:
  1.1448 +    void SizeChangedL();
  1.1449 +    };
  1.1450 +
  1.1451 +/**
  1.1452 + * grid_cale_month_pane
  1.1453 + */
  1.1454 +
  1.1455 +class CAknCaleMonthStyleGrid : public CAknSelectionGridTypedef
  1.1456 +    {
  1.1457 +public:
  1.1458 +    /** SizeChanged()
  1.1459 +     * 
  1.1460 +     * Determines layout of the listbox
  1.1461 +     */
  1.1462 +    IMPORT_C void SizeChanged();
  1.1463 +    /** MinimumSize()
  1.1464 +     * 
  1.1465 +     * Determines size of the grid for use in dialogs.
  1.1466 +     */
  1.1467 +    IMPORT_C TSize MinimumSize();
  1.1468 +    /**
  1.1469 +     * From CCoeControl.     
  1.1470 +     * Handles pointer events
  1.1471 +     */
  1.1472 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);  
  1.1473 +
  1.1474 +private:
  1.1475 +    void SizeChangedL();
  1.1476 +    };
  1.1477 +
  1.1478 +
  1.1479 +
  1.1480 +//
  1.1481 +//
  1.1482 +// Here we have itemdrawer/view modifications needed by the lists
  1.1483 +//
  1.1484 +//
  1.1485 +
  1.1486 +// This class is to keep drawing routines that depend on avkon and which we cannot place to
  1.1487 +// eikstd or uikon because of that.
  1.1488 +
  1.1489 +	/**
  1.1490 + 	* A view that provides empty lists for use with find pane
  1.1491 + 	* @since Series 60 0.9
  1.1492 + 	*/
  1.1493 +class CAknColumnListBoxView : public CColumnListBoxView
  1.1494 +    {
  1.1495 +public:
  1.1496 +
  1.1497 +	/**
  1.1498 +	* Enables find in empty list. Basically same as @c SetFindEmptyListState()
  1.1499 +	* when it is set @c ETrue.
  1.1500 +	*/
  1.1501 +    IMPORT_C void EnableFindEmptyList();
  1.1502 +    
  1.1503 +    /**
  1.1504 +    * Sets find in empty list visible or hides it.
  1.1505 +    * @param aUsedWithFind Setter to set find visible or to hide it.
  1.1506 +    */
  1.1507 +    IMPORT_C void SetFindEmptyListState(TBool aUsedWithFind);
  1.1508 +    
  1.1509 +    /**
  1.1510 +    * Draws empty list with or without find depending if it has been enabled.
  1.1511 +    * @param aClientRect The client rectangle.
  1.1512 +    */
  1.1513 +    IMPORT_C void DrawEmptyList(const TRect &aClientRect) const;
  1.1514 +    
  1.1515 +    /**
  1.1516 +    * Calls @c CColumnListBoxView::CalcBottomItemIndex() and removes filtering
  1.1517 +    * from find box if new list items are added. Called by listbox control when
  1.1518 +    * either the size of the listbox or the number of items in its model has
  1.1519 +    * changed.
  1.1520 +    */
  1.1521 +    IMPORT_C virtual void CalcBottomItemIndex();
  1.1522 +    TBool GetFindEmptyListState();    
  1.1523 +private: // overridden from CListBoxView
  1.1524 +	IMPORT_C virtual TAny* Reserved_1();
  1.1525 +private:
  1.1526 +    TBool iEmptyListWithFind;
  1.1527 +    };
  1.1528 +
  1.1529 +/**
  1.1530 + * empty list for settings item editing
  1.1531 + */
  1.1532 +
  1.1533 +class CAknSetStyleListBoxView : public CFormattedCellListBoxView
  1.1534 +    {
  1.1535 +public:
  1.1536 +    IMPORT_C void DrawEmptyList(const TRect &aClientRect) const ;
  1.1537 +private: // overridden from CListBoxView
  1.1538 +	IMPORT_C virtual TAny* Reserved_1();
  1.1539 +    };
  1.1540 +
  1.1541 +
  1.1542 +/**
  1.1543 + * Horizontal lines and empty list support for views
  1.1544 + */
  1.1545 +
  1.1546 +class CSingleHeadingStyleView : public CAknColumnListBoxView
  1.1547 +    {
  1.1548 +public:
  1.1549 +    IMPORT_C void Draw(const TRect* ) const;
  1.1550 +    IMPORT_C void DrawEmptyList(const TRect& aClientRect) const;
  1.1551 +private: // overridden from CListBoxView
  1.1552 +	IMPORT_C virtual TAny* Reserved_1();
  1.1553 +    };
  1.1554 +
  1.1555 +/**
  1.1556 + * Horizontal lines support for item drawer.
  1.1557 + */
  1.1558 +class CSingleHeadingStyleItemDrawer : public CColumnListBoxItemDrawer 
  1.1559 +    {
  1.1560 +public:
  1.1561 +    IMPORT_C CSingleHeadingStyleItemDrawer(MTextListBoxModel* aTextListBoxModel, const CFont* aFont, CColumnListBoxData* aColumnData);
  1.1562 +    IMPORT_C ~CSingleHeadingStyleItemDrawer();
  1.1563 +
  1.1564 +    IMPORT_C virtual void DrawItem(TInt aItemIndex, TPoint aItemRectPos, TBool aItemIsSelected, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed) const;
  1.1565 +
  1.1566 +public:
  1.1567 +    IMPORT_C void SetTopItemIndex(TInt aTop);
  1.1568 +
  1.1569 +private:
  1.1570 +    TInt iTopItemIndex;
  1.1571 +	CCoeEnv* iCoeEnv;
  1.1572 +    };
  1.1573 +
  1.1574 +/**
  1.1575 + * Thumbnail image positioning for double large styles.
  1.1576 + */
  1.1577 +class CDoubleLargeStyleItemDrawer : public CFormattedCellListBoxItemDrawer
  1.1578 +    {
  1.1579 +public:
  1.1580 +    IMPORT_C CDoubleLargeStyleItemDrawer(MTextListBoxModel* aTextListBoxModel, const CFont* aFont, CFormattedCellListBoxData* aFormattedCellData, CEikListBox *aListBox);
  1.1581 +    IMPORT_C void DrawItem(TInt aItemIndex, TPoint aItemRectPos, TBool aItemIsSelected, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed) const;
  1.1582 +private:
  1.1583 +	IMPORT_C void CFormattedCellListBoxItemDrawer_Reserved();
  1.1584 +private:
  1.1585 +    CEikListBox *iListBox_tmp;
  1.1586 +    };
  1.1587 +
  1.1588 +
  1.1589 +/**
  1.1590 + * Word wrapping for double2 styles
  1.1591 + */
  1.1592 +class CWordWrappedFormattedCellItemDrawer : public CFormattedCellListBoxItemDrawer
  1.1593 +    {
  1.1594 +public:
  1.1595 +    IMPORT_C CWordWrappedFormattedCellItemDrawer(MTextListBoxModel* aTextListBoxModel, const CFont* aFont, CFormattedCellListBoxData* aFormattedCellData, CEikListBox *aListBox, TInt aSubCell, TInt aSubCell2);
  1.1596 +    IMPORT_C void DrawItem(TInt aItemIndex, TPoint aItemRectPos, TBool aItemIsSelected, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed) const;
  1.1597 +    IMPORT_C void DrawItemText(TInt aItemIndex,
  1.1598 +			       const TRect &aItemTextRect,
  1.1599 +			       TBool aItemIsCurrent,
  1.1600 +			       TBool,
  1.1601 +			       TBool aItemIsSelected) const;
  1.1602 +private:
  1.1603 +	IMPORT_C void CFormattedCellListBoxItemDrawer_Reserved();
  1.1604 +private:
  1.1605 +    TInt iSubCell, iSubCell2;
  1.1606 +    };
  1.1607 +
  1.1608 +//
  1.1609 +//
  1.1610 +//  here starts section for building new listboxes.
  1.1611 +//
  1.1612 +
  1.1613 +//
  1.1614 +// This is helper class that makes the conversion between European LAF and
  1.1615 +// different listbox itemdrawer implementations.
  1.1616 +//
  1.1617 +// Notice, this CEikListBox is a good friend with this class.
  1.1618 +//
  1.1619 +// 
  1.1620 +
  1.1621 +/** AknListBoxLayouts
  1.1622 + * Building listbox layouts from European Avkon LAF.
  1.1623 + *
  1.1624 + * The LAF specification has 3 kinds of tables:
  1.1625 + *   Graphics tables
  1.1626 + *   Text tables
  1.1627 + *   Pane coordinates
  1.1628 + * The graphics tables map to SetupColumnGfxCell() and SetupFormGfxCell()
  1.1629 + * The text tables map to SetupColumnTextCell() and SetupFormGfxCell()
  1.1630 + * The pane coordinates map to SetupListboxPos().
  1.1631 + *
  1.1632 + * This class is mostly useless if you don't have LAF specification available!
  1.1633 + *
  1.1634 + * You probably want to use predefined layouts; See CAknSingleStyleListBox.
  1.1635 + *
  1.1636 + * NOTE: This class is old design. You should consider looking at aknutils.h: AknLayoutUtils
  1.1637 + *       whenever you want to build things from the LAF specification. 
  1.1638 + */
  1.1639 +
  1.1640 +class AknListBoxLayouts
  1.1641 +    {
  1.1642 +public:
  1.1643 +    /**
  1.1644 +     * Setup borders etc.
  1.1645 +     */
  1.1646 +    IMPORT_C static void SetupStandardListBox(CEikListBox& aListBox);
  1.1647 +     /**
  1.1648 +     * Setup grid position
  1.1649 +     * since 2.0
  1.1650 +     */
  1.1651 +    static void SetupGridPos(CAknGrid& aGrid,
  1.1652 +                     const TAknWindowLineLayout &aLayout);
  1.1653 +   /**
  1.1654 +     * Setup grid position
  1.1655 +     */
  1.1656 +    IMPORT_C static void SetupGridPos(CAknGrid& aGrid,
  1.1657 +    			     TInt l, 
  1.1658 +    			     TInt t, 
  1.1659 +    			     TInt /*r*/, 
  1.1660 +    			     TInt /*b*/, 
  1.1661 +    			     TInt W, 
  1.1662 +    			     TInt H);
  1.1663 +    /**
  1.1664 +     * Setup list position
  1.1665 +     */
  1.1666 +    IMPORT_C static void SetupListboxPos(CEikListBox& aListBox,
  1.1667 +				TInt startx, 
  1.1668 +    				TInt starty, 
  1.1669 +    				TInt,
  1.1670 +    				TInt, 
  1.1671 +    				TInt /*width*/, 
  1.1672 +    				TInt height);
  1.1673 +
  1.1674 +    /*
  1.1675 +    * non-exported new internal version
  1.1676 +    */
  1.1677 +    static void SetupListboxPosL( CEikListBox& aListBox,
  1.1678 +                                  const TAknWindowLineLayout& aLayout ); // layout of first item
  1.1679 +        
  1.1680 +    /**
  1.1681 +     * Setup text foreground and background colors to default
  1.1682 +     */
  1.1683 +    IMPORT_C static void SetupStandardColumnListbox(CColumnListBoxItemDrawer* aItemDrawer);	
  1.1684 +    /**
  1.1685 +     * Setup text foreground and background colors to default
  1.1686 +     */
  1.1687 +    IMPORT_C static void SetupStandardFormListbox(CFormattedCellListBoxItemDrawer* aItemDrawer);
  1.1688 +    /**
  1.1689 +     * Setup text foreground and background colors to default
  1.1690 +     */
  1.1691 +    IMPORT_C static void SetupStandardGrid(CAknGrid& aGrid);
  1.1692 +    
  1.1693 +    /**
  1.1694 +     * Setup a single graphics cell of list item
  1.1695 +     */
  1.1696 +    IMPORT_C static void SetupColumnGfxCell(CEikListBox& aListBox, 
  1.1697 +				   CColumnListBoxItemDrawer* aItemDrawer, 
  1.1698 +				   TInt index,
  1.1699 +				   TInt l, 
  1.1700 +				   TInt t, 
  1.1701 +				   TInt r, 
  1.1702 +				   TInt b, 
  1.1703 +				   TInt W, 
  1.1704 +				   TInt H, 
  1.1705 +				   TInt startx, 
  1.1706 +				   TInt endx);
  1.1707 +    
  1.1708 +    /**
  1.1709 +     * Setup a single text cell of list item
  1.1710 +     */
  1.1711 +    IMPORT_C static void SetupColumnTextCell(CEikListBox& aListBox, 
  1.1712 +				    CColumnListBoxItemDrawer* aItemDrawer, 
  1.1713 +				    TInt index,
  1.1714 +				    const CFont *font, 
  1.1715 +				    TInt /*C*/, 
  1.1716 +				    TInt lm, 
  1.1717 +				    TInt rm, 
  1.1718 +				    TInt B, 
  1.1719 +				    TInt /*W*/, 
  1.1720 +				    CGraphicsContext::TTextAlign aAlign, 
  1.1721 +				    TInt startx, 
  1.1722 +				    TInt endx);
  1.1723 +    /**
  1.1724 +     * Setup a single text cell of list item
  1.1725 +     */
  1.1726 +    IMPORT_C static void SetupColumnTextCell(CEikListBox& aListBox, 
  1.1727 +				    CColumnListBoxItemDrawer* aItemDrawer, 
  1.1728 +				    TInt index,
  1.1729 +				    const TAknTextLineLayout &aLayout,
  1.1730 +				    TInt startx, 
  1.1731 +				    TInt endx); // use with aknlayoutcompiler
  1.1732 +
  1.1733 +    /**
  1.1734 +     * Setup a single graphics cell of list item
  1.1735 +     */
  1.1736 +    IMPORT_C static void SetupFormGfxCell(CEikListBox& aListBox, 
  1.1737 +				 CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1738 +				 TInt index,
  1.1739 +				 TInt l, 
  1.1740 +				 TInt t, 
  1.1741 +				 TInt /*r*/, 
  1.1742 +				 TInt /*b*/, 
  1.1743 +				 TInt W, 
  1.1744 +				 TInt H, 
  1.1745 +				 TPoint p1, 
  1.1746 +				 TPoint p2);
  1.1747 +
  1.1748 +
  1.1749 +    /**
  1.1750 +     * Setup a single graphics cell of list item
  1.1751 +     *
  1.1752 +     * This version is needed for grid cells. (the FormGfxCell works in
  1.1753 +     * most cases, but this is needed if you want exact positioning of
  1.1754 +     * the erased area..)
  1.1755 +     */
  1.1756 +    IMPORT_C static void SetupGridFormGfxCell(CAknGrid& aListBox, 
  1.1757 +				 CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1758 +				 TInt index,
  1.1759 +				 TInt l, 
  1.1760 +				 TInt t, 
  1.1761 +				 TInt /*r*/, 
  1.1762 +				 TInt /*b*/, 
  1.1763 +				 TInt W, 
  1.1764 +				 TInt H, 
  1.1765 +				 TPoint aP1, 
  1.1766 +				 TPoint aP2);
  1.1767 +    /**
  1.1768 +     * Setup a single graphics cell of list item
  1.1769 +     *
  1.1770 +     * This version is needed for grid cells. (the FormGfxCell works in
  1.1771 +     * most cases, but this is needed if you want exact positioning of
  1.1772 +     * the erased area..)
  1.1773 +     * since 2.6
  1.1774 +     */
  1.1775 +
  1.1776 +    IMPORT_C static void SetupGridFormGfxCell(CAknGrid& aGrid,
  1.1777 +                 CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1778 +                 TInt aIndex,
  1.1779 +                 const TAknWindowLineLayout& aLine,
  1.1780 +                 TPoint& aP1, 
  1.1781 +                 TPoint& aP2);         
  1.1782 +
  1.1783 +    /**
  1.1784 +     * Setup a single text cell of list item
  1.1785 +     */    
  1.1786 +    IMPORT_C static void SetupFormTextCell(CEikListBox& aListBox, 
  1.1787 +				  CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1788 +				  TInt index,
  1.1789 +				  const CFont *font, 
  1.1790 +				  TInt /*C*/, 
  1.1791 +				  TInt lm,
  1.1792 +				  TInt /*rm*/, 
  1.1793 +				  TInt B, 
  1.1794 +				  TInt W, 
  1.1795 +				  CGraphicsContext::TTextAlign aAlign, 
  1.1796 +				  TPoint p1, 
  1.1797 +				  TPoint p2);
  1.1798 +    /**
  1.1799 +     * Setup a single text cell of list item
  1.1800 +     *
  1.1801 +     * This is for removing flicker for settings
  1.1802 +     *
  1.1803 +     */
  1.1804 +    IMPORT_C static void SetupFormAntiFlickerTextCell(CEikListBox& aListBox, 
  1.1805 +				  CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1806 +				  TInt index,
  1.1807 +				  const CFont *font, 
  1.1808 +				  TInt /*C*/, 
  1.1809 +				  TInt lm,
  1.1810 +				  TInt /*rm*/, 
  1.1811 +				  TInt B, 
  1.1812 +				  TInt W, 
  1.1813 +				  CGraphicsContext::TTextAlign aAlign, 
  1.1814 +				  TPoint p1, 
  1.1815 +				  TPoint p2);
  1.1816 +
  1.1817 +    /**
  1.1818 +     * Setup a single text cell of list item
  1.1819 +     */
  1.1820 +    IMPORT_C static void SetupFormTextCell(CEikListBox& aListBox, 
  1.1821 +				  CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1822 +				  TInt index,
  1.1823 +				  const TAknTextLineLayout &aLayout,
  1.1824 +				  const TPoint &p1, 
  1.1825 +				  const TPoint &p2); // use with layout compiler
  1.1826 +    /**
  1.1827 +     * Setup a single text cell of list item
  1.1828 +     *
  1.1829 +     * This is for removing flicker for settings
  1.1830 +     */
  1.1831 +    IMPORT_C static void SetupFormAntiFlickerTextCell(CEikListBox& aListBox, 
  1.1832 +				  CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1833 +				  TInt index,
  1.1834 +				  const TAknTextLineLayout &aLayout,
  1.1835 +				  const TPoint &p1, 
  1.1836 +				  const TPoint &p2); // use with layout compiler
  1.1837 +
  1.1838 +    /**
  1.1839 +     * Setup a graphic element for a column listbox using aknlayout.dll
  1.1840 +     */
  1.1841 +    IMPORT_C static void SetupColumnGfxCell(CEikListBox& aListBox, 
  1.1842 +				   CColumnListBoxItemDrawer* aItemDrawer, 
  1.1843 +				   TInt aIndex,
  1.1844 +				   const TAknWindowLineLayout &aLayout,
  1.1845 +				   TInt startx, 
  1.1846 +				   TInt endx);
  1.1847 +
  1.1848 +    /**
  1.1849 +     * Setup a single graphics cell of list item using aknlayout.dll
  1.1850 +     */
  1.1851 +    IMPORT_C static void SetupFormGfxCell(CEikListBox& aListBox, 
  1.1852 +				 CFormattedCellListBoxItemDrawer* aItemDrawer, 
  1.1853 +				 TInt index,
  1.1854 +				 const TAknWindowLineLayout &aLayout,
  1.1855 +				 const TPoint &p1, 
  1.1856 +				 const TPoint &p2);
  1.1857 +
  1.1858 +
  1.1859 +    /**
  1.1860 +     * Setup a graphic element for a column listbox using aknlayout.dll
  1.1861 +     */
  1.1862 +    IMPORT_C static void SetupListboxPos(CEikListBox& aListBox, 
  1.1863 +				   const TAknWindowLineLayout &aLayout);
  1.1864 +				   
  1.1865 +    /**
  1.1866 +     * This function returns a correct offset to revise layout data.
  1.1867 +     *
  1.1868 +     * Attention: The function is only effective for QHD lanscape model. 
  1.1869 +     * It always return 0 in QVGA, QVGA2, VGA and VAG3. 
  1.1870 +     * A panic will take place if it is used in other models.
  1.1871 +     *
  1.1872 +     * @since S60 5.0
  1.1873 +     *
  1.1874 +     * @param aScreenRect Size of Screen.
  1.1875 +     * @return Offset of listscroll_menu_pane's layout 
  1.1876 +     */
  1.1877 +    static TInt AdjustPopupLayoutData( const TRect& aScreenRect );				   
  1.1878 +    };
  1.1879 +
  1.1880 +/**
  1.1881 +* General utilities relating to listboxes
  1.1882 +*
  1.1883 +* @since Series 60 0.9
  1.1884 +*/
  1.1885 +class AknListBoxUtils
  1.1886 +    {
  1.1887 +public:
  1.1888 +    /**
  1.1889 +    * This function is similar to @c HandleItemRemovalL(). This function has
  1.1890 +    * to call when the items should be removed. If a leave occurs the framework
  1.1891 +    * generates a Symbian Leave code.
  1.1892 +    * @param aListBox A pointer to @c CEikListBox object.
  1.1893 +    * @param aValueOfCurrentItemIndexBeforeRemoval A current item index value 
  1.1894 +    * before removal.
  1.1895 +    * @param aCurrentItemWasRemoved @c ETrue if removed @c EFalse if not.
  1.1896 +    */
  1.1897 +    IMPORT_C static void HandleItemRemovalAndPositionHighlightL(CEikListBox *aListBox, TInt aValueOfCurrentItemIndexBeforeRemoval, TBool aCurrentItemWasRemoved);
  1.1898 +    
  1.1899 +    /**
  1.1900 +    * This function should be called after one or more items have been removed.
  1.1901 +    * If a leave occurs the framework generates a Symbian Leave code. 
  1.1902 +    * @param aListBox A pointer to @c CEikListBox object.
  1.1903 +    * @param aValueOfCurrentItemIndexBeforeRemoval A current item index value 
  1.1904 +    * before removal.
  1.1905 +    * @param aIndexesToRemovedItems A thin templated base class for arrays of
  1.1906 +    * fixed length objects.
  1.1907 +    */
  1.1908 +    IMPORT_C static void HandleItemRemovalAndPositionHighlightL(CEikListBox *aListBox, TInt aValueOfCurrentItemIndexBeforeRemoval, CArrayFix<TInt> &aIndexesToRemovedItems);
  1.1909 +
  1.1910 +    /** 
  1.1911 +    * @deprecated
  1.1912 +    */
  1.1913 +    IMPORT_C static TBool ListBoxLinesShown(MAknsSkinInstance *aInstance, MAknsControlContext *aCc);
  1.1914 +    };
  1.1915 +
  1.1916 +#endif
  1.1917 +
  1.1918 +
  1.1919 +
  1.1920 +
  1.1921 +
  1.1922 +