author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:31:22 +0300 | |
branch | RCL_3 |
changeset 81 | c26cc2a7c548 |
parent 62 | 5266b1f337bd |
permissions | -rw-r--r-- |
62 | 1 |
/* |
2 |
* Copyright (c) 2007 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 (Call4 layouts) |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#include "BMLayout6.h" |
|
20 |
#include "BMPanic.h" |
|
21 |
#include "BMBubbleManager.h" |
|
22 |
#include <aknenv.h> |
|
23 |
#include <applayout.cdl.h> |
|
24 |
#include <AknUtils.h> |
|
81
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
25 |
#include <aknlayout2scalabledef.h> |
62 | 26 |
#include <aknlayoutscalable_apps.cdl.h> |
27 |
#include <layoutmetadata.cdl.h> |
|
28 |
||
29 |
||
30 |
||
31 |
||
32 |
||
33 |
const TAknWindowLineLayout |
|
34 |
BubbleLayout6::call6_button_grp_pane( TInt aVariety ) |
|
35 |
{ |
|
36 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
37 |
{ |
|
38 |
// portrait 0 == landscape 1 |
|
39 |
aVariety += 1; |
|
40 |
} |
|
41 |
||
42 |
TAknLayoutScalableParameterLimits parLimits = |
|
43 |
AknLayoutScalable_Apps::call6_btn_grp_pane_ParamLimits( aVariety ); |
|
44 |
||
45 |
if ( aVariety < parLimits.FirstVariety() || |
|
46 |
aVariety > parLimits.LastVariety() ) |
|
47 |
{ |
|
48 |
Panic( EBMPanicLAF ); |
|
49 |
} |
|
50 |
||
51 |
return AknLayoutScalable_Apps::call6_btn_grp_pane( |
|
52 |
aVariety ).LayoutLine(); |
|
53 |
} |
|
54 |
||
55 |
||
56 |
// ----------------------------------------------------------------------------- |
|
57 |
// BubbleLayout6::button_grp_row_column_count |
|
58 |
// ----------------------------------------------------------------------------- |
|
59 |
// |
|
60 |
void BubbleLayout6::button_grp_row_column_count( |
|
61 |
TInt aVariety, |
|
62 |
TInt& aRows, |
|
63 |
TInt& aColumns ) |
|
64 |
{ |
|
65 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
66 |
{ |
|
67 |
// portrait 0 == landscape 1 |
|
68 |
aVariety += 1; |
|
69 |
} |
|
70 |
||
71 |
TAknLayoutScalableParameterLimits parLimits = |
|
72 |
AknLayoutScalable_Apps::cell_call6_btn_pane_ParamLimits( aVariety ); |
|
73 |
aRows = parLimits.LastRow() + 1; |
|
74 |
aColumns = parLimits.LastColumn() + 1; |
|
75 |
} |
|
76 |
||
77 |
||
78 |
// ----------------------------------------------------------------------------- |
|
79 |
// BubbleLayout6::cell_call4_button_pane |
|
80 |
// ----------------------------------------------------------------------------- |
|
81 |
// |
|
82 |
const TAknWindowLineLayout |
|
83 |
BubbleLayout6::cell_call6_button_pane( TInt aVariety, TInt aCol, TInt aRow ) |
|
84 |
{ |
|
85 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
86 |
{ |
|
87 |
// portrait 0 == landscape 1 |
|
88 |
aVariety += 1; |
|
89 |
} |
|
90 |
||
91 |
TAknLayoutScalableParameterLimits parLimits = |
|
92 |
AknLayoutScalable_Apps::cell_call6_btn_pane_ParamLimits( aVariety ); |
|
93 |
||
94 |
if ( aVariety < parLimits.FirstVariety() || |
|
95 |
aVariety > parLimits.LastVariety() ) |
|
96 |
{ |
|
97 |
Panic( EBMPanicLAF ); |
|
98 |
} |
|
99 |
||
100 |
return AknLayoutScalable_Apps::cell_call6_btn_pane( |
|
101 |
aVariety, aCol, aRow ).LayoutLine(); |
|
102 |
} |
|
103 |
||
104 |
const TAknTextLineLayout |
|
105 |
BubbleLayout6::button_call6_function_text( TInt aVariety ) |
|
106 |
{ |
|
107 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
108 |
{ |
|
109 |
// portrait 0 == landscape 1 |
|
110 |
aVariety += 1; |
|
111 |
} |
|
112 |
||
113 |
TAknLayoutScalableParameterLimits parLimits = |
|
114 |
AknLayoutScalable_Apps::cell_call6_btn_pane_ParamLimits( |
|
115 |
aVariety ); |
|
116 |
||
117 |
if ( aVariety < parLimits.FirstVariety() || |
|
118 |
aVariety > parLimits.LastVariety() ) |
|
119 |
{ |
|
120 |
Panic( EBMPanicLAF ); |
|
121 |
} |
|
122 |
||
123 |
return AknLayoutScalable_Apps::cell_call6_btn_pane_t1( aVariety ).LayoutLine(); |
|
124 |
} |
|
125 |
||
126 |
||
127 |
// ----------------------------------------------------------------------------- |
|
128 |
// BubbleLayout6::button_call6_function_graphics |
|
129 |
// ----------------------------------------------------------------------------- |
|
130 |
// |
|
131 |
const TAknWindowLineLayout |
|
132 |
BubbleLayout6::button_call6_function_graphics( TInt aVariety ) |
|
133 |
{ |
|
134 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
135 |
{ |
|
136 |
// portrait 0 == landscape 1 |
|
137 |
aVariety += 1; |
|
138 |
} |
|
139 |
||
140 |
TAknLayoutScalableParameterLimits parLimits = |
|
141 |
AknLayoutScalable_Apps::cell_call6_btn_pane_ParamLimits( |
|
142 |
aVariety ); |
|
143 |
||
144 |
if ( aVariety < parLimits.FirstVariety() || |
|
145 |
aVariety > parLimits.LastVariety() ) |
|
146 |
{ |
|
147 |
Panic( EBMPanicLAF ); |
|
148 |
} |
|
149 |
||
150 |
return AknLayoutScalable_Apps::cell_call6_btn_pane_g1( |
|
151 |
aVariety ).LayoutLine(); |
|
152 |
} |
|
153 |
||
154 |
const TAknWindowLineLayout |
|
155 |
BubbleLayout6::call6_windows_pane( TInt aVariety ) |
|
156 |
{ |
|
157 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
158 |
{ |
|
159 |
// portrait 0 == landscape 1 |
|
160 |
aVariety += 1; |
|
161 |
} |
|
162 |
||
163 |
TAknLayoutScalableParameterLimits parLimits = |
|
164 |
AknLayoutScalable_Apps::call6_pane_g1_ParamLimits( aVariety ); |
|
165 |
||
166 |
if ( aVariety < parLimits.FirstVariety() || |
|
167 |
aVariety > parLimits.LastVariety() ) |
|
168 |
{ |
|
169 |
Panic( EBMPanicLAF ); |
|
170 |
} |
|
171 |
||
172 |
return AknLayoutScalable_Apps::call6_pane_g1( |
|
173 |
aVariety ).LayoutLine(); |
|
174 |
} |
|
175 |
||
176 |
// ----------------------------------------------------------------------------- |
|
177 |
// BubbleLayout6::button_call6_background_graphics |
|
178 |
// ----------------------------------------------------------------------------- |
|
179 |
// |
|
180 |
const TAknWindowLineLayout |
|
181 |
BubbleLayout6::button_call6_background_graphics( TInt aVariety ) |
|
182 |
{ |
|
183 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
184 |
{ |
|
185 |
// portrait 0 == landscape 1 |
|
186 |
aVariety += 1; |
|
187 |
} |
|
188 |
||
189 |
return AknLayoutScalable_Apps::bg_button_pane_cp15( |
|
190 |
aVariety ).LayoutLine(); |
|
191 |
} |
|
192 |
||
193 |
// ----------------------------------------------------------------------------- |
|
194 |
// BubbleLayout6::popup_call6_audio_first_window |
|
195 |
// ----------------------------------------------------------------------------- |
|
196 |
// |
|
197 |
const TAknWindowLineLayout |
|
198 |
BubbleLayout6::popup_call6_audio_first_window( TInt aVariety ) |
|
199 |
{ |
|
200 |
||
201 |
if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
|
202 |
{ |
|
203 |
// portrait 0 == landscape 1 |
|
204 |
aVariety += 1; |
|
205 |
} |
|
206 |
||
207 |
TAknLayoutScalableParameterLimits parLimits = |
|
208 |
AknLayoutScalable_Apps::popup_call6_1st_window_ParamLimits( |
|
209 |
aVariety ); |
|
210 |
||
211 |
if ( aVariety < parLimits.FirstVariety() || |
|
212 |
aVariety > parLimits.LastVariety() ) |
|
213 |
{ |
|
214 |
Panic( EBMPanicLAF ); |
|
215 |
} |
|
216 |
||
217 |
return AknLayoutScalable_Apps::popup_call6_1st_window( |
|
218 |
aVariety ).LayoutLine(); |
|
219 |
} |
|
220 |
||
221 |
||
222 |