phoneuis/BubbleManager/laf/BMLayout.h
branchRCL_3
changeset 62 5266b1f337bd
parent 0 5f000ab63145
child 19 544e34b3255a
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  Layout definitions from Application LAF
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef BMLAYOUT_H
       
    21 #define BMLAYOUT_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <calslbs.h>
       
    25 #include <bldvariant.hrh> 
       
    26 #include <AknLayoutDef.h>
       
    27 
       
    28 /**
       
    29 * Layout coordinates from Application LAF
       
    30 * 
       
    31 * @lib      bubblemanager.lib
       
    32 * @since    2.0
       
    33 */
       
    34 class BubbleLayout
       
    35     { 
       
    36     public: // Helper functions
       
    37 
       
    38         /**
       
    39         * Get background image colour
       
    40         * @return White colour
       
    41         */ 
       
    42         static TInt LayoutColourWhite();
       
    43 
       
    44         /**
       
    45         * Get main pane rect
       
    46         * @return the main pane rect
       
    47         * since   Series60_2.8
       
    48         */ 
       
    49         static const TRect MainPaneRect();
       
    50 
       
    51     public: // Layout coordinates
       
    52 
       
    53         /**
       
    54         * Popup window coordinates.
       
    55         * One function returns one line of coordinates is Application LAF.
       
    56         * @since 2.0
       
    57         * @param aLine Line number from the same item. From 1-n
       
    58         * @param aParentWidth Parent control's width
       
    59         * @param aParentHeight Parent control's height
       
    60         * @param aImageWidth Thumbnail image's width
       
    61         * @param aImageHeight Thumbnail image's height
       
    62         * @return Layout for current item.
       
    63         */
       
    64 
       
    65         // Table 78. Pop up windows (main pane as parent)
       
    66         static const TAknWindowLineLayout 
       
    67             popup_number_entry_window( TInt aIndex = 0 );
       
    68         static const TAknWindowLineLayout 
       
    69             popup_call_audio_in_window( TInt aLine );
       
    70         static const TAknWindowLineLayout 
       
    71             popup_call_audio_out_window( TInt aLine );
       
    72         static const TAknWindowLineLayout 
       
    73             popup_call_audio_first_window( TInt aLine );
       
    74         static const TAknWindowLineLayout 
       
    75             popup_call_audio_wait_window( TInt aLine );
       
    76         static const TAknWindowLineLayout 
       
    77             popup_call_audio_second_window( TInt aLine );
       
    78         static const TAknWindowLineLayout 
       
    79             popup_call_audio_conf_window( TInt aLine );
       
    80 
       
    81         // Table 80. Pop up window list pane descendants (call, conf)
       
    82         static const TAknWindowLineLayout 
       
    83             list_single_graphic_popup_conf_pane( TInt aLine );
       
    84 
       
    85         // Table 81. List pane elements (conf, single, graphic)
       
    86         static const TAknWindowLineLayout
       
    87             list_single_graphic_popup_conf_pane_elements_1();
       
    88         static const TAknWindowLineLayout 
       
    89             list_single_graphic_popup_conf_pane_elements_2();
       
    90 
       
    91         // Table 82. List pane texts (conf, single, graphic)
       
    92         static const TAknTextLineLayout 
       
    93             list_single_graphic_popup_conf_pane_texts_1();
       
    94 
       
    95         // Table 85. Highlight graphics 
       
    96         static const TAknWindowLineLayout 
       
    97             list_single_graphic_popup_conf_pane_graphics_1( const TRect& aParentRect ); // shadow
       
    98         static const TAknWindowLineLayout 
       
    99             list_single_graphic_popup_conf_pane_graphics_2( const TRect& aParentRect ); // highlight
       
   100 
       
   101         // Table 91. Number entry pop up window texts
       
   102         static const TAknTextLineLayout 
       
   103             popup_number_entry_window_texts_1( TInt aIndex );
       
   104         static const TAknTextLineLayout 
       
   105             popup_number_entry_window_texts_2( TInt aIndex, TInt aLine );
       
   106         static const TAknTextLineLayout 
       
   107             popup_number_entry_window_texts_3( TInt aLine );            
       
   108 
       
   109         // Table 92. Number entry pop up window graphics
       
   110         static const TAknWindowLineLayout 
       
   111             popup_number_entry_window_graphics_1( TInt aIndex );
       
   112 
       
   113         // Table 119. Incoming call pop up window elements
       
   114         static const TAknWindowLineLayout 
       
   115             popup_call_audio_in_window_1_elements_1();
       
   116         static const TAknWindowLineLayout 
       
   117             popup_call_audio_in_window_1_elements_2();
       
   118         static const TAknWindowLineLayout 
       
   119             popup_call_audio_in_window_1_elements_15();
       
   120 
       
   121         // Table 120. Incoming call pop up window texts
       
   122         // Use line 1 or 2 (or 3 CNAP). Right and Width values are calculated 
       
   123         // from the image width.
       
   124         static const TAknTextLineLayout 
       
   125             popup_call_audio_in_window_1_texts_1( TInt aLine, TInt aImageWidth );
       
   126         static const TAknTextLineLayout 
       
   127             popup_call_audio_in_window_1_texts_2( TInt aLine, TInt aImageWidth );
       
   128 
       
   129         // Table 121. Incoming call pop up window graphics
       
   130         static const TAknWindowLineLayout 
       
   131             popup_call_audio_in_window_1_graphics_1( TInt aLine );
       
   132 
       
   133         // Table 122. Incoming call pop-up window elements (ne)
       
   134         static const TAknWindowLineLayout 
       
   135             popup_call_audio_in_window_2_elements_1();
       
   136         static const TAknWindowLineLayout 
       
   137             popup_call_audio_in_window_2_elements_2();
       
   138         static const TAknWindowLineLayout 
       
   139             popup_call_audio_in_window_2_elements_15();
       
   140 
       
   141         // Table 123. Incoming call pop up window texts (ne)
       
   142         static const TAknTextLineLayout 
       
   143             popup_call_audio_in_window_2_texts_1( TInt aLine, 
       
   144                                                   TInt aImageWidth );
       
   145         static const TAknTextLineLayout 
       
   146             popup_call_audio_in_window_2_texts_2( TInt aLine, TInt aImageWidth );
       
   147 
       
   148         // Table 124. Incoming call pop up window graphics (ne) 
       
   149         static const TAknWindowLineLayout 
       
   150             popup_call_audio_in_window_2_graphics_1();
       
   151 
       
   152         // Table 125. Outgoing call pop up window elements (held)
       
   153         static const TAknWindowLineLayout 
       
   154             popup_call_audio_out_window_1_elements_1();
       
   155         static const TAknWindowLineLayout 
       
   156             popup_call_audio_out_window_1_elements_2();
       
   157         static const TAknWindowLineLayout 
       
   158             popup_call_audio_out_window_1_elements_15();
       
   159 
       
   160         // Table 126. Outgoing call pop up window texts (held)
       
   161         static const TAknTextLineLayout 
       
   162             popup_call_audio_out_window_1_texts_1( TInt aLine, 
       
   163                                                    TInt aImageWidth );
       
   164 
       
   165         // Table 127. Outgoing call pop up window graphics (held)
       
   166         static const TAknWindowLineLayout 
       
   167             popup_call_audio_out_window_1_graphics_1();
       
   168 
       
   169         // Table 128. Outgoing call pop up window elements (held, ne)
       
   170         static const TAknWindowLineLayout 
       
   171             popup_call_audio_out_window_2_elements_1();
       
   172         static const TAknWindowLineLayout 
       
   173             popup_call_audio_out_window_2_elements_2();
       
   174         static const TAknWindowLineLayout 
       
   175             popup_call_audio_out_window_2_elements_3();
       
   176         static const TAknWindowLineLayout 
       
   177             popup_call_audio_out_window_2_elements_15();
       
   178 
       
   179         // Table 129. Outgoing call pop up window texts (held, ne)
       
   180         static const TAknTextLineLayout 
       
   181             popup_call_audio_out_window_2_texts_1();
       
   182 
       
   183         // Table 130. Outgoing call pop up window graphics (held, ne)
       
   184         static const TAknWindowLineLayout 
       
   185             popup_call_audio_out_window_2_graphics_1();
       
   186 
       
   187         // Table 131. First call pop up window elements (one call)
       
   188         static const TAknWindowLineLayout 
       
   189             popup_call_audio_first_window_1_elements_1();
       
   190         static const TAknWindowLineLayout 
       
   191             popup_call_audio_first_window_1_elements_2();
       
   192         static const TAknWindowLineLayout 
       
   193             popup_call_audio_first_window_1_elements_3();
       
   194         
       
   195         // Table 132. First call pop up window texts (one call)
       
   196         static const TAknTextLineLayout 
       
   197             popup_call_audio_first_window_1_texts_1( TInt aLine, 
       
   198                             TInt aImageWidth );
       
   199         static const TAknTextLineLayout 
       
   200             popup_call_audio_first_window_1_texts_2( TInt aLine, 
       
   201                             TInt aImageWidth );
       
   202 
       
   203         static const TAknTextLineLayout 
       
   204             popup_call_audio_first_window_1_texts_3();
       
   205 
       
   206         // Table 133. First call pop up window graphics (one call)
       
   207         static const TAknWindowLineLayout 
       
   208             popup_call_audio_first_window_1_graphics_1();
       
   209 
       
   210         // Table 134. First call pop up window elements (two calls)
       
   211         static const TAknWindowLineLayout 
       
   212             popup_call_audio_first_window_2_elements_1();
       
   213         static const TAknWindowLineLayout 
       
   214             popup_call_audio_first_window_2_elements_2();
       
   215         static const TAknWindowLineLayout 
       
   216             popup_call_audio_first_window_2_elements_15();
       
   217 
       
   218         // Table 135. First call pop up window texts (two calls)
       
   219         static const TAknTextLineLayout 
       
   220             popup_call_audio_first_window_2_texts_1( TInt aLine , 
       
   221                                                      TInt aImageWidth );
       
   222         static const TAknTextLineLayout 
       
   223             popup_call_audio_first_window_2_texts_2( TInt aLine, 
       
   224                                                      TInt aImageWidth );
       
   225         static const TAknTextLineLayout 
       
   226             popup_call_audio_first_window_2_texts_3();
       
   227 
       
   228         // Table 136. First call pop up window graphics (two calls)
       
   229         static const TAknWindowLineLayout 
       
   230             popup_call_audio_first_window_2_graphics_1();
       
   231 
       
   232         // Table 137. First call pop up window elements (two calls, a waiting call)
       
   233         static const TAknWindowLineLayout 
       
   234             popup_call_audio_first_window_4_elements_1();
       
   235         static const TAknWindowLineLayout 
       
   236             popup_call_audio_first_window_4_elements_2();
       
   237         static const TAknWindowLineLayout 
       
   238             popup_call_audio_first_window_4_elements_3();
       
   239 
       
   240         // Table 138. First call pop up window texts (two calls, a waiting call)
       
   241         static const TAknTextLineLayout 
       
   242             popup_call_audio_first_window_4_texts_1();
       
   243 
       
   244         // Table 139. First call pop up window graphics (two calls, a waiting call)
       
   245         static const TAknWindowLineLayout 
       
   246             popup_call_audio_first_window_4_graphics_1();
       
   247 
       
   248         // Table 140. First call pop up window graphics (two, wait, ne)
       
   249         static const TAknWindowLineLayout 
       
   250             popup_call_audio_first_window_6_graphics_1();
       
   251 
       
   252         // Table 5.1. First call pop up window graphics (emergency call)
       
   253         static const AknLayoutUtils::SAknLayoutControl
       
   254             popup_call_audio_first_window_7_graphics_1();
       
   255 
       
   256         // Table 141. Waiting call pop up window elements (held, out, ne)
       
   257         static const TAknWindowLineLayout 
       
   258             popup_call_audio_wait_window_3_elements_1();
       
   259         static const TAknWindowLineLayout 
       
   260             popup_call_audio_wait_window_3_elements_2();
       
   261         static const TAknWindowLineLayout 
       
   262             popup_call_audio_wait_window_3_elements_3();
       
   263 
       
   264         // Table 142. Waiting call pop up window texts (held, out, ne)
       
   265         static const TAknTextLineLayout 
       
   266             popup_call_audio_wait_window_3_texts_1();
       
   267 
       
   268         // Table 143. Waiting call pop up window graphics (held, out, ne)
       
   269         static const TAknWindowLineLayout 
       
   270             popup_call_audio_wait_window_3_graphics_1();
       
   271 
       
   272         // Table 144. Waiting call pop up window graphics (out)
       
   273         static const TAknWindowLineLayout 
       
   274             popup_call_audio_wait_window_4_graphics_1();
       
   275 
       
   276         // Table 145. Second call pop up window elements (two)
       
   277         static const TAknWindowLineLayout 
       
   278             popup_call_audio_second_window_1_elements_1();
       
   279         static const TAknWindowLineLayout 
       
   280             popup_call_audio_second_window_1_elements_2();
       
   281         static const TAknWindowLineLayout 
       
   282             popup_call_audio_second_window_1_elements_3();
       
   283 
       
   284         // Table 146. Second call pop up window texts (two calls)
       
   285         static const TAknTextLineLayout 
       
   286             popup_call_audio_second_window_1_texts_1( TInt aLine , 
       
   287                                                       TInt aImageWidth );
       
   288         static const TAknTextLineLayout 
       
   289             popup_call_audio_second_window_1_texts_2( TInt aImageWidth );
       
   290 
       
   291         // Table 147. Second call pop up window graphics (two calls)
       
   292         static const TAknWindowLineLayout 
       
   293             popup_call_audio_second_window_1_graphics_1();
       
   294 
       
   295         // Table 148. Second call pop up window elements (two calls, waiting call)
       
   296         static const TAknWindowLineLayout 
       
   297             popup_call_audio_second_window_3_elements_1();
       
   298         static const TAknWindowLineLayout 
       
   299             popup_call_audio_second_window_3_elements_2();
       
   300         static const TAknWindowLineLayout 
       
   301             popup_call_audio_second_window_3_elements_3();
       
   302 
       
   303         // Table 149. Second call pop up window texts (two calls, waiting call)
       
   304         static const TAknTextLineLayout 
       
   305             popup_call_audio_second_window_3_texts_1();
       
   306 
       
   307         // Table 150. Second call pop up window graphics (two calls, waiting call)
       
   308         static const TAknWindowLineLayout 
       
   309             popup_call_audio_second_window_3_graphics_1();
       
   310 
       
   311         // Table 151. Conference call pop up window descendant and element
       
   312         static const TAknWindowLineLayout 
       
   313             popup_call_audio_conf_window_elements_1( const TRect& aParentRect );
       
   314         static const TAknWindowLineLayout 
       
   315             popup_call_audio_conf_window_elements_2( TInt aLine );
       
   316 
       
   317         // Non-specified
       
   318         static const TAknWindowLineLayout
       
   319             ConferencePane();
       
   320 
       
   321         // Table 152. Conference call pop up window texts
       
   322         static const TAknTextLineLayout 
       
   323             popup_call_audio_cont_window_texts_1( TInt aLine );
       
   324 
       
   325         // Table 153. Muted state elements
       
   326         static const TAknWindowLineLayout 
       
   327             main_pane_elements_muted( TBool aNumberEditorActive );
       
   328 
       
   329         // Non-specified
       
   330         static const TAknWindowLineLayout 
       
   331             call_type_pane_elements_1();
       
   332         static const TAknWindowLineLayout 
       
   333             call_type_pane_elements_2();
       
   334 
       
   335     };
       
   336 
       
   337 #endif      // BMLAYOUT_H
       
   338             
       
   339 // End of File