25
|
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: FreestyleEmailUi generic texturemanager implementation
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
// SYSTEM INCLUDES
|
|
21 |
// <cmail> SF
|
|
22 |
#include "emailtrace.h"
|
|
23 |
#include <alf/alfstatic.h>
|
|
24 |
// </cmail>
|
|
25 |
#include <freestyleemailui.mbg>
|
|
26 |
#include <AknUtils.h>
|
|
27 |
// <cmail>
|
|
28 |
#include <alf/alfframebrush.h>
|
|
29 |
// </cmail>
|
|
30 |
#include <AknsConstants.h>
|
|
31 |
// <cmail>
|
|
32 |
#include <alf/alfimageloaderutil.h>
|
|
33 |
// </cmail>
|
|
34 |
#include <avkon.mbg>
|
|
35 |
#include <gulicon.h>
|
|
36 |
// <cmail> S60 Skin support
|
|
37 |
#include <AknsDrawUtils.h>
|
|
38 |
// </cmail>
|
|
39 |
|
|
40 |
// INTERNAL INCLUDES
|
|
41 |
#include "FreestyleEmailUi.hrh"
|
|
42 |
#include "FreestyleEmailUiTextureManager.h"
|
|
43 |
#include "FreestyleEmailUiAppui.h"
|
|
44 |
#include "FreestyleEmailUiLayoutHandler.h"
|
|
45 |
#include "FreestyleEmailUiUtilities.h"
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
// -----------------------------------------------------------------------------
|
|
50 |
// CFreestyleEmailUiTextureManager::NewL
|
|
51 |
// -----------------------------------------------------------------------------
|
|
52 |
//
|
|
53 |
CFreestyleEmailUiTextureManager* CFreestyleEmailUiTextureManager::NewL( CAlfEnv& aEnv, CFreestyleEmailUiAppUi* aAppUi )
|
|
54 |
{
|
|
55 |
FUNC_LOG;
|
|
56 |
CFreestyleEmailUiTextureManager* self = new (ELeave) CFreestyleEmailUiTextureManager( aEnv, aAppUi );
|
|
57 |
CleanupStack::PushL(self);
|
|
58 |
self->ConstructL(aEnv);
|
|
59 |
CleanupStack::Pop( self );
|
|
60 |
return self;
|
|
61 |
}
|
|
62 |
|
|
63 |
// -----------------------------------------------------------------------------
|
|
64 |
// CFreestyleEmailUiTextureManager::CFreestyleEmailUiTextureManager
|
|
65 |
// -----------------------------------------------------------------------------
|
|
66 |
//
|
|
67 |
CFreestyleEmailUiTextureManager::CFreestyleEmailUiTextureManager( CAlfEnv& aEnv, CFreestyleEmailUiAppUi* aAppUi )
|
|
68 |
: CAlfControl(),
|
|
69 |
iAppUi(aAppUi)
|
|
70 |
{
|
|
71 |
FUNC_LOG;
|
|
72 |
// CHECKLATER - aEnv not used in CAlfControl anymore, but in this case its needed elsewhere, is this fine?
|
|
73 |
iEnv = &aEnv;
|
|
74 |
}
|
|
75 |
|
|
76 |
// -----------------------------------------------------------------------------
|
|
77 |
// CFreestyleEmailUiTextureManager::~CFreestyleEmailUiTextureManager
|
|
78 |
// -----------------------------------------------------------------------------
|
|
79 |
//
|
|
80 |
CFreestyleEmailUiTextureManager::~CFreestyleEmailUiTextureManager()
|
|
81 |
{
|
|
82 |
FUNC_LOG;
|
|
83 |
iTextures.Reset();
|
|
84 |
|
|
85 |
iBrandedMailboxIcons.Reset();
|
|
86 |
iPluginId.Reset();
|
|
87 |
iMailboxId.Reset();
|
|
88 |
iSize.Reset();
|
|
89 |
delete iTmpBitmap;
|
|
90 |
delete iTmpMaskBitmap;
|
|
91 |
|
|
92 |
delete iFrameBrush;
|
|
93 |
iFrameBrush = NULL;
|
|
94 |
|
|
95 |
//<cmail>
|
|
96 |
delete iNewFrameBrush;
|
|
97 |
iNewFrameBrush = NULL;
|
|
98 |
|
|
99 |
delete iTitleDividerBgBrush;
|
|
100 |
//</cmail>
|
|
101 |
}
|
|
102 |
|
|
103 |
|
|
104 |
// -----------------------------------------------------------------------------
|
|
105 |
// CFreestyleEmailUiTextureManager::ConstructL
|
|
106 |
// -----------------------------------------------------------------------------
|
|
107 |
//
|
|
108 |
void CFreestyleEmailUiTextureManager::ConstructL(CAlfEnv& aEnv)
|
|
109 |
{
|
|
110 |
FUNC_LOG;
|
|
111 |
CAlfControl::ConstructL(aEnv);
|
|
112 |
iDelayLoadIndex = ETextureFirst;
|
|
113 |
InitTextureArray();
|
|
114 |
//CreateTexturesL();
|
|
115 |
iTmpBitmap = NULL;
|
|
116 |
iTmpMaskBitmap = NULL;
|
|
117 |
}
|
|
118 |
|
|
119 |
|
|
120 |
// -----------------------------------------------------------------------------
|
|
121 |
// CFreestyleEmailUiTextureManager::TextureByIndex
|
|
122 |
// -----------------------------------------------------------------------------
|
|
123 |
//
|
|
124 |
CAlfTexture& CFreestyleEmailUiTextureManager::TextureByIndex( TFSEmailUiTextures aIndex )
|
|
125 |
{
|
|
126 |
FUNC_LOG;
|
|
127 |
// load the texture if it is not yet loaded
|
|
128 |
if ( iTextures[aIndex] == &CAlfStatic::Env().TextureManager().BlankTexture() )
|
|
129 |
{
|
|
130 |
TRAPD( error, LoadTextureL( aIndex ) );
|
|
131 |
if ( KErrNone != error )
|
|
132 |
{
|
|
133 |
}
|
|
134 |
}
|
|
135 |
return *iTextures[aIndex];
|
|
136 |
}
|
|
137 |
|
|
138 |
// -----------------------------------------------------------------------------
|
|
139 |
// CFreestyleEmailUiTextureManager::ClearTextureByIndex
|
|
140 |
// -----------------------------------------------------------------------------
|
|
141 |
//
|
|
142 |
void CFreestyleEmailUiTextureManager::ClearTextureByIndex( TFSEmailUiTextures aIndex )
|
|
143 |
{
|
|
144 |
FUNC_LOG;
|
|
145 |
// unload the texture
|
|
146 |
CAlfStatic::Env().TextureManager().UnloadTexture( aIndex );
|
|
147 |
iTextures[aIndex] = &CAlfStatic::Env().TextureManager().BlankTexture();
|
|
148 |
}
|
|
149 |
// -----------------------------------------------------------------------------
|
|
150 |
// CFreestyleEmailUiTextureManager::TextureByMailboxIdL
|
|
151 |
// Returns branded mailbox icon texture based on PluginId, MailboxId and IconSize.
|
|
152 |
// If not found. Will call LoadTexture to create new textures based on temporary
|
|
153 |
// variables which were set by CreateBrandedMailboxTexture call.
|
|
154 |
// Size(0,0) is used to get original size icon
|
|
155 |
// -----------------------------------------------------------------------------
|
|
156 |
CAlfTexture& CFreestyleEmailUiTextureManager::TextureByMailboxIdL( const TUid aPluginId, const TUint aMailboxId, const TSize& aSize )
|
|
157 |
{
|
|
158 |
FUNC_LOG;
|
|
159 |
TInt foundIndex = 0;
|
|
160 |
TBool found = EFalse;
|
|
161 |
|
|
162 |
// Go through icon array and check if requested icon already exists
|
|
163 |
for ( TInt i = 0; i < iBrandedMailboxIcons.Count(); i++ )
|
|
164 |
{
|
|
165 |
if ( iPluginId[i] == aPluginId && iMailboxId[i] == aMailboxId && iSize[i] == aSize )
|
|
166 |
{
|
|
167 |
foundIndex = i;
|
|
168 |
found = ETrue;
|
|
169 |
break;
|
|
170 |
}
|
|
171 |
}
|
|
172 |
if ( !found )
|
|
173 |
{
|
|
174 |
// Did not find icon -> add new
|
|
175 |
foundIndex = iBrandedMailboxIcons.Count();
|
|
176 |
TRAPD( error, LoadTextureL( TFSEmailUiTextures( EBrandedIconStart + foundIndex ) ) ); // Will add new
|
|
177 |
if ( KErrNone != error )
|
|
178 |
{
|
|
179 |
return TextureByIndex( EFolderListEmailAccountTexture );
|
|
180 |
}
|
|
181 |
}
|
|
182 |
return *iBrandedMailboxIcons[foundIndex];
|
|
183 |
}
|
|
184 |
|
|
185 |
|
|
186 |
// -----------------------------------------------------------------------------
|
|
187 |
// CFreestyleEmailUiTextureManager::ListSelectorBrushL
|
|
188 |
// NOTE: Gen UI list doesn't get ownership of the selector brush, so we can
|
|
189 |
// use the same selector brush for all views.
|
|
190 |
// -----------------------------------------------------------------------------
|
|
191 |
//
|
|
192 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::ListSelectorBrushL()
|
|
193 |
{
|
|
194 |
FUNC_LOG;
|
|
195 |
|
|
196 |
if ( !iFrameBrush )
|
|
197 |
{
|
|
198 |
iFrameBrush = NewCtrlBarSelectorBrushLC();
|
|
199 |
CleanupStack::Pop( iFrameBrush );
|
|
200 |
}
|
|
201 |
|
|
202 |
return iFrameBrush;
|
|
203 |
}
|
|
204 |
|
|
205 |
// -----------------------------------------------------------------------------
|
|
206 |
// CFreestyleEmailUiTextureManager::NewCtrlBarSelectorBrushLC
|
|
207 |
// NOTE: Gen UI list gets the ownership of the selector brush and deletes it
|
|
208 |
// when the selector is reset, so we need to construct new brush every time.
|
|
209 |
// -----------------------------------------------------------------------------
|
|
210 |
//
|
|
211 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::NewCtrlBarSelectorBrushLC()
|
|
212 |
{
|
|
213 |
FUNC_LOG;
|
|
214 |
|
|
215 |
// Use FS specific skin ID if it's found, otherwise use general list
|
|
216 |
// highlight. This need to be checked before CHuiFrameBrush::NewL as it
|
|
217 |
// never leaves even if the skin ID is not found. Another option would be
|
|
218 |
// to try first with FS specific skin ID, TRAP SetFrameRectsL-function
|
|
219 |
// call, and if it leaves, then recreate frame brush with general skin ID
|
|
220 |
// and recall SetFrameRectsL.
|
|
221 |
TAknsItemID skinId = KAknsIIDQgnFsList;
|
|
222 |
CAknsItemData* temp =
|
|
223 |
AknsUtils::SkinInstance()->GetCachedItemData( skinId );
|
|
224 |
|
|
225 |
if( !temp )
|
|
226 |
{
|
|
227 |
skinId = KAknsIIDQsnFrList;
|
|
228 |
}
|
|
229 |
|
|
230 |
CAlfFrameBrush* frameBrush( 0 );
|
|
231 |
frameBrush = CAlfFrameBrush::NewLC( *iEnv, skinId );
|
|
232 |
|
|
233 |
TRect outerRect( 0, 0, 300, 80 );
|
|
234 |
TRect innerRect( outerRect );
|
|
235 |
innerRect.Shrink( KSelectorBorderWidth, KSelectorBorderWidth );
|
|
236 |
|
|
237 |
frameBrush->SetFrameRectsL( innerRect, outerRect );
|
|
238 |
|
|
239 |
return frameBrush;
|
|
240 |
}
|
|
241 |
|
|
242 |
// <cmail>
|
|
243 |
// -----------------------------------------------------------------------------
|
|
244 |
// CFreestyleEmailUiTextureManager::NewListSelectorBrushL
|
|
245 |
// NOTE: Gen UI list gets the ownership of the selector brush and deletes it
|
|
246 |
// when the selector is reset, so we need to construct new brush every time.
|
|
247 |
// Note: now its is changed to have ownership in texturemanager
|
|
248 |
// -----------------------------------------------------------------------------
|
|
249 |
//
|
|
250 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::NewListSelectorBrushL()
|
|
251 |
{
|
|
252 |
FUNC_LOG;
|
|
253 |
|
|
254 |
if ( iNewFrameBrush )
|
|
255 |
{
|
|
256 |
// A brush is already constructed. Do return it.
|
|
257 |
return iNewFrameBrush;
|
|
258 |
}
|
|
259 |
|
|
260 |
iNewFrameBrush = CAlfFrameBrush::NewL( *iEnv, KAknsIIDQsnFrList,
|
|
261 |
/* aEdgeOffsetX */ -2,
|
|
262 |
/* aEdgeOffsetY */ -1 );
|
|
263 |
|
|
264 |
const TRect outerRect( 0, 0, 300, 80 );
|
|
265 |
TRect innerRect( outerRect );
|
|
266 |
innerRect.Shrink( 10, 10 );
|
|
267 |
|
|
268 |
iNewFrameBrush->SetFrameRectsL( innerRect, outerRect);
|
|
269 |
|
|
270 |
return iNewFrameBrush;
|
|
271 |
}
|
|
272 |
// </cmail>
|
|
273 |
|
|
274 |
|
|
275 |
// -----------------------------------------------------------------------------
|
|
276 |
// CFreestyleEmailUiTextureManager::GridSelectorBrushL
|
|
277 |
// -----------------------------------------------------------------------------
|
|
278 |
//
|
|
279 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::GridSelectorBrushL()
|
|
280 |
{
|
|
281 |
FUNC_LOG;
|
|
282 |
return ListSelectorBrushL();
|
|
283 |
}
|
|
284 |
|
|
285 |
|
|
286 |
// -----------------------------------------------------------------------------
|
|
287 |
// CFreestyleEmailUiTextureManager::NewScrollBarTopBgBrushLC
|
|
288 |
// -----------------------------------------------------------------------------
|
|
289 |
//
|
|
290 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::NewScrollBarTopBgBrushLC()
|
|
291 |
{
|
|
292 |
FUNC_LOG;
|
|
293 |
CAlfFrameBrush* frameBrush = CAlfFrameBrush::NewLC( *iEnv, KAknsIIDQsnCpScrollBgTop );
|
|
294 |
// Fix these
|
|
295 |
TRect testOuterRect(10,10,57,57);
|
|
296 |
TRect testInnerRect(12,12,56,56);
|
|
297 |
frameBrush->SetFrameRectsL(testInnerRect, testOuterRect);
|
|
298 |
return frameBrush;
|
|
299 |
}
|
|
300 |
|
|
301 |
// -----------------------------------------------------------------------------
|
|
302 |
// CFreestyleEmailUiTextureManager::NewScrollBarBottomBgBrushLC
|
|
303 |
// -----------------------------------------------------------------------------
|
|
304 |
//
|
|
305 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::NewScrollBarBottomBgBrushLC()
|
|
306 |
{
|
|
307 |
FUNC_LOG;
|
|
308 |
CAlfFrameBrush* frameBrush = CAlfFrameBrush::NewLC( *iEnv, KAknsIIDQsnCpScrollBgBottom );
|
|
309 |
// Fix these
|
|
310 |
TRect testOuterRect(10,10,57,57);
|
|
311 |
TRect testInnerRect(12,12,56,56);
|
|
312 |
frameBrush->SetFrameRectsL(testInnerRect, testOuterRect);
|
|
313 |
return frameBrush;
|
|
314 |
}
|
|
315 |
|
|
316 |
// -----------------------------------------------------------------------------
|
|
317 |
// CFreestyleEmailUiTextureManager::NewScrollBarCenterBgBrushLC
|
|
318 |
// -----------------------------------------------------------------------------
|
|
319 |
//
|
|
320 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::NewScrollBarCenterBgBrushLC()
|
|
321 |
{
|
|
322 |
FUNC_LOG;
|
|
323 |
CAlfFrameBrush* frameBrush = CAlfFrameBrush::NewLC( *iEnv, KAknsIIDQsnCpScrollBgMiddle );
|
|
324 |
// Fix these
|
|
325 |
TRect testOuterRect(10,10,57,57);
|
|
326 |
TRect testInnerRect(12,12,56,56);
|
|
327 |
frameBrush->SetFrameRectsL(testInnerRect, testOuterRect);
|
|
328 |
return frameBrush;
|
|
329 |
}
|
|
330 |
|
|
331 |
// -----------------------------------------------------------------------------
|
|
332 |
// CFreestyleEmailUiTextureManager::NewScrollBarThumbBrushLC
|
|
333 |
// -----------------------------------------------------------------------------
|
|
334 |
//
|
|
335 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::NewScrollBarThumbBrushLC()
|
|
336 |
{
|
|
337 |
FUNC_LOG;
|
|
338 |
CAlfFrameBrush* frameBrush = CAlfFrameBrush::NewLC( *iEnv, KAknsIIDQsnCpScrollHandleMiddle );
|
|
339 |
// Fix these
|
|
340 |
TRect testOuterRect(10,10,57,57);
|
|
341 |
TRect testInnerRect(12,12,56,56);
|
|
342 |
frameBrush->SetFrameRectsL(testInnerRect, testOuterRect);
|
|
343 |
return frameBrush;
|
|
344 |
}
|
|
345 |
|
|
346 |
// -----------------------------------------------------------------------------
|
|
347 |
// CFreestyleEmailUiTextureManager::NewMailListSeparatorBgBrushLC
|
|
348 |
// -----------------------------------------------------------------------------
|
|
349 |
//
|
|
350 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::NewMailListSeparatorBgBrushLC()
|
|
351 |
{
|
|
352 |
FUNC_LOG;
|
|
353 |
CAlfFrameBrush* frameBrush = CAlfFrameBrush::NewLC( *iEnv, KAknsIIDQsnFrStatusFlat );
|
|
354 |
// Fix these
|
|
355 |
TRect testOuterRect(10,10,57,57);
|
|
356 |
TRect testInnerRect(12,12,56,56);
|
|
357 |
frameBrush->SetFrameRectsL(testInnerRect, testOuterRect);
|
|
358 |
return frameBrush;
|
|
359 |
}
|
|
360 |
|
|
361 |
// -----------------------------------------------------------------------------
|
|
362 |
// CFreestyleEmailUiTextureManager::NewMailListMarkingModeBgBrushLC
|
|
363 |
// -----------------------------------------------------------------------------
|
|
364 |
//
|
|
365 |
CAlfImageBrush* CFreestyleEmailUiTextureManager::NewMailListMarkingModeBgBrushLC()
|
|
366 |
{
|
|
367 |
FUNC_LOG;
|
|
368 |
CAlfTexture& circle = TextureByIndex( EMarkingModeBackgroundIcon );
|
|
369 |
CAlfImageBrush* bgBrush = CAlfImageBrush::NewLC( *iEnv, TAlfImage(circle) );
|
|
370 |
bgBrush->SetLayer( EAlfBrushLayerBackground );
|
|
371 |
bgBrush->SetScaleMode( CAlfImageVisual::EScaleNormal );
|
|
372 |
return bgBrush;
|
|
373 |
}
|
|
374 |
|
|
375 |
// -----------------------------------------------------------------------------
|
|
376 |
// CFreestyleEmailUiTextureManager::NewControlBarListBgBrushLC
|
|
377 |
// -----------------------------------------------------------------------------
|
|
378 |
//
|
|
379 |
CAlfImageBrush* CFreestyleEmailUiTextureManager::NewControlBarListBgBrushLC()
|
|
380 |
{
|
|
381 |
FUNC_LOG;
|
|
382 |
CAlfTexture& circle = TextureByIndex( EControlBarListBackgroundTexture );
|
|
383 |
TInt borderSize = iAppUi->LayoutHandler()->ControlBarListBorderRoundingSize();
|
|
384 |
CAlfImageBrush* bgBrush = CAlfImageBrush::NewLC( *iEnv, TAlfImage(circle) );
|
|
385 |
bgBrush->SetBorders(-borderSize, -borderSize, -borderSize, -borderSize);
|
|
386 |
bgBrush->SetLayer(EAlfBrushLayerBackground);
|
|
387 |
return bgBrush;
|
|
388 |
}
|
|
389 |
|
|
390 |
// -----------------------------------------------------------------------------
|
|
391 |
// CFreestyleEmailUiTextureManager::NewControlBarButtonBgBrushLC
|
|
392 |
// -----------------------------------------------------------------------------
|
|
393 |
//
|
|
394 |
CAlfImageBrush* CFreestyleEmailUiTextureManager::NewControlBarButtonBgBrushLC()
|
|
395 |
{
|
|
396 |
FUNC_LOG;
|
|
397 |
CAlfTexture& circle = TextureByIndex( EControlBarButtonBackgroundTexture );
|
|
398 |
TInt borderSize = iAppUi->LayoutHandler()->ControlBarButtonBgRoundingSize();
|
|
399 |
CAlfImageBrush* bgBrush = CAlfImageBrush::NewLC( *iEnv, TAlfImage(circle) );
|
|
400 |
bgBrush->SetBorders(-borderSize, -borderSize, -borderSize, -borderSize);
|
|
401 |
bgBrush->SetLayer(EAlfBrushLayerBackground);
|
|
402 |
return bgBrush;
|
|
403 |
}
|
|
404 |
|
|
405 |
// -----------------------------------------------------------------------------
|
|
406 |
// CFreestyleEmailUiTextureManager::TitleDividerBgBrushL
|
|
407 |
// -----------------------------------------------------------------------------
|
|
408 |
//
|
|
409 |
CAlfFrameBrush* CFreestyleEmailUiTextureManager::TitleDividerBgBrushL()
|
|
410 |
{
|
|
411 |
FUNC_LOG;
|
|
412 |
|
|
413 |
if ( !iTitleDividerBgBrush )
|
|
414 |
{
|
|
415 |
MAknsSkinInstance* skin = AknsUtils::SkinInstance();
|
|
416 |
|
|
417 |
TAknsItemID skinId = KAknsIIDQsnFrTitleDivider;
|
|
418 |
|
|
419 |
CAknsItemData* temp = skin->GetCachedItemData( skinId );
|
|
420 |
|
|
421 |
if ( !temp )
|
|
422 |
{
|
|
423 |
User::Leave( KErrNotFound );
|
|
424 |
}
|
|
425 |
|
|
426 |
CAlfFrameBrush* frameBrush = CAlfFrameBrush::NewLC( *iEnv, skinId );
|
|
427 |
|
|
428 |
TRect testOuterRect( 0, 0, 300, 80 );
|
|
429 |
TRect testInnerRect( 4, 4, 296, 76 );
|
|
430 |
|
|
431 |
frameBrush->SetFrameRectsL( testInnerRect, testOuterRect );
|
|
432 |
|
|
433 |
CleanupStack::Pop( frameBrush );
|
|
434 |
|
|
435 |
iTitleDividerBgBrush = frameBrush;
|
|
436 |
}
|
|
437 |
|
|
438 |
return iTitleDividerBgBrush;
|
|
439 |
}
|
|
440 |
|
|
441 |
// -----------------------------------------------------------------------------
|
|
442 |
// CFreestyleEmailUiTextureManager::BackgroundForThisResolutionL
|
|
443 |
// -----------------------------------------------------------------------------
|
|
444 |
//
|
|
445 |
CAlfTexture& CFreestyleEmailUiTextureManager::BackgroundForThisResolutionL()
|
|
446 |
{
|
|
447 |
FUNC_LOG;
|
|
448 |
return CAlfStatic::Env().TextureManager().BlankTexture();
|
|
449 |
}
|
|
450 |
|
|
451 |
// -----------------------------------------------------------------------------
|
|
452 |
// CFreestyleEmailUiTextureManager::WatermarkBackgroundForThisResolutionL
|
|
453 |
// -----------------------------------------------------------------------------
|
|
454 |
//
|
|
455 |
CAlfTexture& CFreestyleEmailUiTextureManager::WatermarkBackgroundForThisResolutionL()
|
|
456 |
{
|
|
457 |
FUNC_LOG;
|
|
458 |
return CAlfStatic::Env().TextureManager().BlankTexture();
|
|
459 |
}
|
|
460 |
|
|
461 |
// -----------------------------------------------------------------------------
|
|
462 |
// CFreestyleEmailUiTextureManager::CreateTexturesL
|
|
463 |
// Textures loaded here are loaded on AppUi ConstructL
|
|
464 |
// I.e. they make application startup slower
|
|
465 |
// -----------------------------------------------------------------------------
|
|
466 |
//
|
|
467 |
void CFreestyleEmailUiTextureManager::CreateTexturesL()
|
|
468 |
{
|
|
469 |
FUNC_LOG;
|
|
470 |
|
|
471 |
// for ( TInt i=ETextureGridFirst; i<ETextureFlagFirst; i++ )
|
|
472 |
for ( TInt i=ETextureFirst; i<ETextureCount; i++ )
|
|
473 |
{
|
|
474 |
TFSEmailUiTextures idx = (TFSEmailUiTextures)i;
|
|
475 |
LoadTextureL( idx );
|
|
476 |
}
|
|
477 |
}
|
|
478 |
|
|
479 |
// -----------------------------------------------------------------------------
|
|
480 |
// CFreestyleEmailUiTextureManager::CreateBrandedMailboxTexture
|
|
481 |
// This function must be called from UI before TextureByMailboxIdL call.
|
|
482 |
// This function takes temporary copy of mailbox icon into TextureManager
|
|
483 |
// Caller has got the aIcon from the BrandingManager.
|
|
484 |
// TSize information is used because Alfred does not support SetSize for
|
|
485 |
// textures. Size(0,0) is used for original size
|
|
486 |
// -----------------------------------------------------------------------------
|
|
487 |
void CFreestyleEmailUiTextureManager::CreateBrandedMailboxTexture(
|
|
488 |
CGulIcon* aIcon, const TUid aPluginId, const TUint aMailboxId, const TSize& aSize )
|
|
489 |
{
|
|
490 |
FUNC_LOG;
|
|
491 |
if ( iTmpBitmap || iTmpMaskBitmap )
|
|
492 |
{
|
|
493 |
iTmpBitmap = NULL;
|
|
494 |
iTmpMaskBitmap = NULL;
|
|
495 |
}
|
|
496 |
TBool found = EFalse;
|
|
497 |
// Check if icon already axcist
|
|
498 |
for ( TInt i = 0; i < iBrandedMailboxIcons.Count(); i++ )
|
|
499 |
{
|
|
500 |
if ( iPluginId[i] == aPluginId && iMailboxId[i] == aMailboxId && iSize[i] == aSize )
|
|
501 |
{
|
|
502 |
found = ETrue;
|
|
503 |
}
|
|
504 |
}
|
|
505 |
if ( !found )
|
|
506 |
{
|
|
507 |
// Take ownership of the icon which is originally got from the BrandingManager
|
|
508 |
// Store bitmap and mask into temporary variables
|
|
509 |
aIcon->SetBitmapsOwnedExternally( ETrue );
|
|
510 |
iTmpBitmap = aIcon->Bitmap();
|
|
511 |
iTmpMaskBitmap = aIcon->Mask();
|
|
512 |
iTmpPluginId = aPluginId;
|
|
513 |
iTmpMailboxId = aMailboxId;
|
|
514 |
iTmpSize = aSize;
|
|
515 |
}
|
|
516 |
}
|
|
517 |
|
|
518 |
// -----------------------------------------------------------------------------
|
|
519 |
// CFreestyleEmailUiTextureManager::ProvideBitmapL
|
|
520 |
// -----------------------------------------------------------------------------
|
|
521 |
//
|
|
522 |
void CFreestyleEmailUiTextureManager::ProvideBitmapL(TInt aId, CFbsBitmap*& aBitmap, CFbsBitmap*& aMaskBitmap)
|
|
523 |
{
|
|
524 |
FUNC_LOG;
|
|
525 |
MAknsSkinInstance* skin = AknsUtils::SkinInstance();
|
|
526 |
TRect screenRect;
|
|
527 |
AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EScreen, screenRect );
|
|
528 |
TSize iconSize;
|
|
529 |
if ( aId >= EBrandedIconStart && aId <= EBrandedIconEnd )
|
|
530 |
{
|
|
531 |
// Do not set size
|
|
532 |
}
|
|
533 |
else if ( aId >= ETextureGridFirst ) // GRID ICONS
|
|
534 |
{
|
|
535 |
// <cmail> Platform layout change
|
|
536 |
//TInt gridIconSize = iAppUi->LayoutHandler()->GridIconSize();
|
|
537 |
//iconSize.SetSize( gridIconSize, gridIconSize );
|
|
538 |
iconSize = iAppUi->LayoutHandler()->GridIconSize();
|
|
539 |
// </cmail>
|
|
540 |
}
|
|
541 |
else if ( aId >= ETextureMessageFirst /*&& aId < ETextureCalendarFirst*/ ) // MESSAGE ICONS
|
|
542 |
{
|
|
543 |
iconSize.SetSize( iAppUi->LayoutHandler()->MailIconSizeInThisResolution().iWidth,
|
|
544 |
iAppUi->LayoutHandler()->MailIconSizeInThisResolution().iHeight );
|
|
545 |
}
|
|
546 |
|
|
547 |
TFileName iconFileName;
|
|
548 |
TFsEmailUiUtility::GetFullIconFileNameL( iconFileName );
|
|
549 |
|
|
550 |
CFbsBitmap* bitmap(0);
|
|
551 |
CFbsBitmap* mask(0);
|
|
552 |
TScaleMode scalemode = EAspectRatioPreserved;
|
|
553 |
|
|
554 |
// <cmaill> icons changed
|
|
555 |
switch ( aId )
|
|
556 |
{
|
|
557 |
// LIST TEXTURE READING STARTS HERE
|
|
558 |
//
|
|
559 |
case ESearchLookingGlassIcon:
|
|
560 |
{
|
|
561 |
TInt tempsize = iAppUi->LayoutHandler()->SearchLookingGlassIconSize();
|
|
562 |
iconSize.SetSize( tempsize, tempsize );
|
|
563 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
564 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_search,
|
|
565 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_search_mask);
|
|
566 |
}
|
|
567 |
break;
|
|
568 |
case EMailListBarBgIcon:
|
|
569 |
{
|
|
570 |
TInt tempsize = iAppUi->LayoutHandler()->EMailListBarBgIconSize();
|
|
571 |
// Get control bar grafix from skin, otherwise use default.
|
|
572 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
573 |
KAknsIIDQgnFsGrafEmailCtrlbar, bitmap, mask, iconFileName,
|
|
574 |
EMbmFreestyleemailuiQgn_graf_cmail_email_ctrlbar,
|
|
575 |
EMbmFreestyleemailuiQgn_graf_cmail_email_ctrlbar_mask );
|
|
576 |
iconSize.SetSize( screenRect.Width(), tempsize );
|
|
577 |
scalemode = EAspectRatioNotPreserved;
|
|
578 |
}
|
|
579 |
break;
|
|
580 |
case EListControlBarMailboxDefaultIcon:
|
|
581 |
{
|
|
582 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
583 |
iconSize.SetSize( tempsize, tempsize );
|
|
584 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
585 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_email_account,
|
|
586 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_email_account_mask);
|
|
587 |
}
|
|
588 |
break;
|
|
589 |
// Same than previous, but needed in two places at same screen
|
|
590 |
case EListTextureMailboxDefaultIcon:
|
|
591 |
{
|
|
592 |
TInt tempsize = iAppUi->LayoutHandler()->ListTextureMailboxDefaultIconSize();
|
|
593 |
iconSize.SetSize( tempsize, tempsize );
|
|
594 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
595 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_inbox,
|
|
596 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_inbox_mask);
|
|
597 |
}
|
|
598 |
break;
|
|
599 |
case EListTextureNodeExpanded:
|
|
600 |
{
|
|
601 |
TInt tempsize = iAppUi->LayoutHandler()->ListTextureNodeExpandedSize();
|
|
602 |
iconSize.SetSize( tempsize, tempsize );
|
|
603 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
604 |
KAknsIIDQgnFsIndiMinusSign, bitmap, mask, iconFileName,
|
|
605 |
EMbmFreestyleemailuiQgn_indi_cmail_collapse,
|
|
606 |
EMbmFreestyleemailuiQgn_indi_cmail_collapse_mask );
|
|
607 |
}
|
|
608 |
break;
|
|
609 |
case EListTextureNodeCollapsed:
|
|
610 |
{
|
|
611 |
TInt tempsize = iAppUi->LayoutHandler()->ListTextureNodeExpandedSize();
|
|
612 |
iconSize.SetSize( tempsize, tempsize );
|
|
613 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
614 |
KAknsIIDQgnFsIndiPlusSign, bitmap, mask, iconFileName,
|
|
615 |
EMbmFreestyleemailuiQgn_indi_cmail_expand,
|
|
616 |
EMbmFreestyleemailuiQgn_indi_cmail_expand_mask );
|
|
617 |
}
|
|
618 |
break;
|
|
619 |
case EListTextureSelector:
|
|
620 |
{
|
|
621 |
TInt tempsize = iAppUi->LayoutHandler()->EListTextureSelectorSize();
|
|
622 |
iconSize.SetSize( tempsize, tempsize );
|
|
623 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
624 |
EMbmFreestyleemailuiQgn_graf_cmail_list_selector,
|
|
625 |
EMbmFreestyleemailuiQgn_graf_cmail_list_selector_mask);
|
|
626 |
}
|
|
627 |
break;
|
|
628 |
case EListControlMarkIcon:
|
|
629 |
{
|
|
630 |
// <cmail> Platform layout change
|
|
631 |
// Get mark icon from the skin, otherwise use default
|
|
632 |
AknsUtils::CreateColorIconL(
|
|
633 |
AknsUtils::SkinInstance(),
|
|
634 |
KAknsIIDQgnFsListItemSelected,
|
|
635 |
KAknsIIDQsnIconColors,
|
|
636 |
EAknsCIQsnIconColorsCG13,
|
|
637 |
bitmap,
|
|
638 |
mask,
|
|
639 |
//KAvkonBitmapFile,
|
|
640 |
iconFileName,
|
|
641 |
EMbmFreestyleemailuiQgn_indi_marked_add,
|
|
642 |
EMbmFreestyleemailuiQgn_indi_marked_add_mask,
|
|
643 |
KRgbBlack );
|
|
644 |
TInt tempsize = iAppUi->LayoutHandler()->SearchLookingGlassIconSize();
|
|
645 |
iconSize.SetSize( tempsize, tempsize );
|
|
646 |
scalemode = EAspectRatioNotPreserved;
|
|
647 |
// </cmail> Platform layout change
|
|
648 |
}
|
|
649 |
break;
|
|
650 |
case EListControlMenuIcon:
|
|
651 |
{
|
|
652 |
// Use mirrored version of the icon on Arabic/Hebrew layout
|
|
653 |
if ( AknLayoutUtils::LayoutMirrored() )
|
|
654 |
{
|
|
655 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
656 |
KAknsIIDQgnFsHscrActionArrowLeft, bitmap, mask, iconFileName,
|
|
657 |
EMbmFreestyleemailuiQgn_indi_cmail_arrow_left,
|
|
658 |
EMbmFreestyleemailuiQgn_indi_cmail_arrow_left_mask );
|
|
659 |
}
|
|
660 |
else
|
|
661 |
{
|
|
662 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
663 |
KAknsIIDQgnFsHscrActionArrowRight, bitmap, mask, iconFileName,
|
|
664 |
EMbmFreestyleemailuiQgn_indi_cmail_arrow_right,
|
|
665 |
EMbmFreestyleemailuiQgn_indi_cmail_arrow_right_mask );
|
|
666 |
}
|
|
667 |
|
|
668 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlMenuIconSize();
|
|
669 |
iconSize.SetSize( tempsize, tempsize );
|
|
670 |
scalemode = EAspectRatioNotPreserved;
|
|
671 |
}
|
|
672 |
break;
|
|
673 |
case EListTextureNewEmailDefaultIcon:
|
|
674 |
{
|
|
675 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
676 |
iconSize.SetSize( tempsize, tempsize );
|
|
677 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
678 |
EMbmFreestyleemailuiQgn_indi_tb_email_new,
|
|
679 |
EMbmFreestyleemailuiQgn_indi_tb_email_new_mask );
|
|
680 |
}
|
|
681 |
break;
|
|
682 |
|
|
683 |
case EListTextureCreateNewMessageIcon:
|
|
684 |
{
|
|
685 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
686 |
iconSize.SetSize( tempsize, tempsize );
|
|
687 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
688 |
EMbmFreestyleemailuiQgn_prop_cmail_action_create_msg,
|
|
689 |
EMbmFreestyleemailuiQgn_prop_cmail_action_create_msg_mask );
|
|
690 |
}
|
|
691 |
break;
|
|
692 |
|
|
693 |
// MESSAGE TEXTURE READING STARTS HERE
|
|
694 |
//
|
|
695 |
case EMessageReadIcon:
|
|
696 |
{
|
|
697 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
698 |
EMbmFreestyleemailuiQgn_indi_cmail_read,
|
|
699 |
EMbmFreestyleemailuiQgn_indi_cmail_read_mask);
|
|
700 |
}
|
|
701 |
break;
|
|
702 |
case EMessageReadIconAttachment:
|
|
703 |
{
|
|
704 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
705 |
EMbmFreestyleemailuiQgn_indi_cmail_read_attach,
|
|
706 |
EMbmFreestyleemailuiQgn_indi_cmail_read_attach_mask);
|
|
707 |
}
|
|
708 |
break;
|
|
709 |
case EMessageUnreadIcon:
|
|
710 |
{
|
|
711 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
712 |
EMbmFreestyleemailuiQgn_indi_cmail_unread,
|
|
713 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_mask);
|
|
714 |
}
|
|
715 |
break;
|
|
716 |
case EMessageLowPrioReadIcon:
|
|
717 |
{
|
|
718 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
719 |
EMbmFreestyleemailuiQgn_indi_cmail_read_low_prio,
|
|
720 |
EMbmFreestyleemailuiQgn_indi_cmail_read_low_prio_mask);
|
|
721 |
}
|
|
722 |
break;
|
|
723 |
case EMessageLowPrioReadIconAttachment:
|
|
724 |
{
|
|
725 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
726 |
EMbmFreestyleemailuiQgn_indi_cmail_read_attach_low_prio,
|
|
727 |
EMbmFreestyleemailuiQgn_indi_cmail_read_attach_low_prio_mask);
|
|
728 |
}
|
|
729 |
break;
|
|
730 |
case EMessageHighPrioReadIconAttachment:
|
|
731 |
{
|
|
732 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
733 |
EMbmFreestyleemailuiQgn_indi_cmail_read_attach_high_prio,
|
|
734 |
EMbmFreestyleemailuiQgn_indi_cmail_read_attach_high_prio_mask);
|
|
735 |
}
|
|
736 |
break;
|
|
737 |
case EMessageUnreadIconAttachment:
|
|
738 |
{
|
|
739 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
740 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_attach,
|
|
741 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_attach_mask);
|
|
742 |
}
|
|
743 |
break;
|
|
744 |
case EMessageHighPrioUnreadIconAttachment:
|
|
745 |
{
|
|
746 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
747 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_attach_high_prio,
|
|
748 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_attach_high_prio_mask);
|
|
749 |
}
|
|
750 |
break;
|
|
751 |
case EMessageLowPrioUnreadIcon:
|
|
752 |
{
|
|
753 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
754 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_low_prio,
|
|
755 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_low_prio_mask);
|
|
756 |
}
|
|
757 |
break;
|
|
758 |
case EMessageLowPrioUnreadIconAttachment:
|
|
759 |
{
|
|
760 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
761 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_attach_low_prio,
|
|
762 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_attach_low_prio_mask);
|
|
763 |
}
|
|
764 |
break;
|
|
765 |
case EMessageHighPrioReadIcon:
|
|
766 |
{
|
|
767 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
768 |
EMbmFreestyleemailuiQgn_indi_cmail_read_high_prio,
|
|
769 |
EMbmFreestyleemailuiQgn_indi_cmail_read_high_prio_mask);
|
|
770 |
}
|
|
771 |
break;
|
|
772 |
case EMessageHighPrioUnreadIcon:
|
|
773 |
{
|
|
774 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
775 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_high_prio,
|
|
776 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_high_prio_mask);
|
|
777 |
}
|
|
778 |
break;
|
|
779 |
case EMessageReadRepliedIcon:
|
|
780 |
{
|
|
781 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
782 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied,
|
|
783 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_mask);
|
|
784 |
}
|
|
785 |
break;
|
|
786 |
case EMessageReadRepliedIconAttachment:
|
|
787 |
{
|
|
788 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
789 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_attach,
|
|
790 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_attach_mask);
|
|
791 |
}
|
|
792 |
break;
|
|
793 |
case EMessageReadRepliedHighPrioIcon:
|
|
794 |
{
|
|
795 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
796 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_high_prio,
|
|
797 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_high_prio_mask);
|
|
798 |
}
|
|
799 |
break;
|
|
800 |
case EMessageReadRepliedHighPrioIconAttachment:
|
|
801 |
{
|
|
802 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
803 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_attach_high_prio,
|
|
804 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_attach_high_prio_mask);
|
|
805 |
}
|
|
806 |
break;
|
|
807 |
case EMessageReadRepliedLowPrioIcon:
|
|
808 |
{
|
|
809 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
810 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_low_prio,
|
|
811 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_low_prio_mask);
|
|
812 |
}
|
|
813 |
break;
|
|
814 |
case EMessageReadRepliedLowPrioIconAttachment:
|
|
815 |
{
|
|
816 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
817 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_attach_low_prio,
|
|
818 |
EMbmFreestyleemailuiQgn_indi_cmail_read_replied_attach_low_prio_mask);
|
|
819 |
}
|
|
820 |
break;
|
|
821 |
case EMessageReadForwardedIcon:
|
|
822 |
{
|
|
823 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
824 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded,
|
|
825 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_mask);
|
|
826 |
}
|
|
827 |
break;
|
|
828 |
case EMessageReadForwardedIconAttachment:
|
|
829 |
{
|
|
830 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
831 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_attach,
|
|
832 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_attach_mask);
|
|
833 |
}
|
|
834 |
break;
|
|
835 |
case EMessageReadForwardedHighPrioIcon:
|
|
836 |
{
|
|
837 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
838 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_high_prio,
|
|
839 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_high_prio_mask);
|
|
840 |
}
|
|
841 |
break;
|
|
842 |
case EMessageReadForwardedHighPrioIconAttachment:
|
|
843 |
{
|
|
844 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
845 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_attach_high_prio,
|
|
846 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_attach_high_prio_mask);
|
|
847 |
}
|
|
848 |
break;
|
|
849 |
case EMessageReadForwardedLowPrioIcon:
|
|
850 |
{
|
|
851 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
852 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_low_prio,
|
|
853 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_low_prio_mask);
|
|
854 |
}
|
|
855 |
break;
|
|
856 |
case EMessageReadForwardedLowPrioIconAttachment:
|
|
857 |
{
|
|
858 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
859 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_attach_low_prio,
|
|
860 |
EMbmFreestyleemailuiQgn_indi_cmail_read_forwarded_attach_low_prio_mask);
|
|
861 |
}
|
|
862 |
break;
|
|
863 |
case EMessageUnreadForwardedIcon:
|
|
864 |
{
|
|
865 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
866 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded,
|
|
867 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_mask);
|
|
868 |
}
|
|
869 |
break;
|
|
870 |
case EMessageUnreadForwardedHighPrioIcon:
|
|
871 |
{
|
|
872 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
873 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_high_prio,
|
|
874 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_high_prio);
|
|
875 |
}
|
|
876 |
break;
|
|
877 |
case EMessageUnreadForwardedLowPrioIcon:
|
|
878 |
{
|
|
879 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
880 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_low_prio,
|
|
881 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_low_prio_mask);
|
|
882 |
}
|
|
883 |
break;
|
|
884 |
case EMessageUnreadForwardedIconAttachment:
|
|
885 |
{
|
|
886 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
887 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_attach,
|
|
888 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_attach_mask);
|
|
889 |
}
|
|
890 |
break;
|
|
891 |
case EMessageUnreadForwardedHighPrioIconAttachment:
|
|
892 |
{
|
|
893 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
894 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_attach_high_prio,
|
|
895 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_attach_high_prio_mask);
|
|
896 |
}
|
|
897 |
break;
|
|
898 |
case EMessageUnreadForwardedLowPrioIconAttachment:
|
|
899 |
{
|
|
900 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
901 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_attach_low_prio,
|
|
902 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_forwarded_attach_low_prio_mask);
|
|
903 |
}
|
|
904 |
break;
|
|
905 |
case EMessageUnreadRepliedIcon:
|
|
906 |
{
|
|
907 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
908 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied,
|
|
909 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_mask);
|
|
910 |
}
|
|
911 |
break;
|
|
912 |
|
|
913 |
case EMessageUnreadRepliedIconAttachment:
|
|
914 |
{
|
|
915 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
916 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_attach,
|
|
917 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_attach_mask);
|
|
918 |
}
|
|
919 |
break;
|
|
920 |
case EMessageUnreadRepliedHighPrioIcon:
|
|
921 |
{
|
|
922 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
923 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_high_prio,
|
|
924 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_high_prio_mask);
|
|
925 |
}
|
|
926 |
break;
|
|
927 |
case EMessageUnreadRepliedHighPrioIconAttachment:
|
|
928 |
{
|
|
929 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
930 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_attach_high_prio,
|
|
931 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_attach_high_prio_mask);
|
|
932 |
}
|
|
933 |
break;
|
|
934 |
case EMessageUnreadRepliedLowPrioIcon:
|
|
935 |
{
|
|
936 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
937 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_low_prio,
|
|
938 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_low_prio_mask);
|
|
939 |
}
|
|
940 |
break;
|
|
941 |
case EMessageUnreadRepliedLowPrioIconAttachment:
|
|
942 |
{
|
|
943 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
944 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_attach_low_prio,
|
|
945 |
EMbmFreestyleemailuiQgn_indi_cmail_unread_replied_attach_low_prio_mask);
|
|
946 |
}
|
|
947 |
break;
|
|
948 |
case EAttachmentIcon:
|
|
949 |
{
|
|
950 |
//<cmail>
|
|
951 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
952 |
//iconSize.SetSize( tempsize, tempsize );
|
|
953 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
954 |
//</cmail>
|
|
955 |
|
|
956 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
957 |
EMbmFreestyleemailuiQgn_indi_cmail_attachment,
|
|
958 |
EMbmFreestyleemailuiQgn_indi_cmail_attachment_mask );
|
|
959 |
}
|
|
960 |
break;
|
|
961 |
//
|
|
962 |
// MESSAGE ICON READING STOPS HERE
|
|
963 |
|
|
964 |
|
|
965 |
// CALENDAR EVENT READING STARTS HERE
|
|
966 |
case EMessageCalInvitationRead:
|
|
967 |
{
|
|
968 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
969 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read,
|
|
970 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_mask);
|
|
971 |
}
|
|
972 |
break;
|
|
973 |
case EMessageCalInvitation:
|
|
974 |
{
|
|
975 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
976 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread,
|
|
977 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_mask);
|
|
978 |
}
|
|
979 |
break;
|
|
980 |
case EMessageCalInvitationAttachments:
|
|
981 |
{
|
|
982 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
983 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_attachments,
|
|
984 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_attachments_mask);
|
|
985 |
}
|
|
986 |
break;
|
|
987 |
case EMessageCalInvitationReadAttachments:
|
|
988 |
{
|
|
989 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
990 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_attachments,
|
|
991 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_attachments_mask);
|
|
992 |
}
|
|
993 |
break;
|
|
994 |
case EMessageCalInvitationHighPrio:
|
|
995 |
{
|
|
996 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
997 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_high_prio,
|
|
998 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_high_prio_mask);
|
|
999 |
}
|
|
1000 |
break;
|
|
1001 |
case EMessageCalInvitationReadHighPrio:
|
|
1002 |
{
|
|
1003 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1004 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_high_prio,
|
|
1005 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_high_prio_mask);
|
|
1006 |
}
|
|
1007 |
break;
|
|
1008 |
case EMessageCalInvitationAttachmentsHighPrio:
|
|
1009 |
{
|
|
1010 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1011 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_attachments_high_prio,
|
|
1012 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_attachments_high_prio_mask);
|
|
1013 |
}
|
|
1014 |
break;
|
|
1015 |
case EMessageCalInvitationReadAttachmentsHighPrio:
|
|
1016 |
{
|
|
1017 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1018 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_attachments_high_prio,
|
|
1019 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_attachments_high_prio_mask);
|
|
1020 |
}
|
|
1021 |
break;
|
|
1022 |
case EMessageCalInvitationLowPrio:
|
|
1023 |
{
|
|
1024 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1025 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_low_prio,
|
|
1026 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_low_prio_mask);
|
|
1027 |
}
|
|
1028 |
break;
|
|
1029 |
case EMessageCalInvitationReadLowPrio:
|
|
1030 |
{
|
|
1031 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1032 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_low_prio,
|
|
1033 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_low_prio_mask);
|
|
1034 |
}
|
|
1035 |
break;
|
|
1036 |
case EMessageCalInvitationAttachmentsLowPrio:
|
|
1037 |
{
|
|
1038 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1039 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_attachments_low_prio,
|
|
1040 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_unread_attachments_low_prio_mask);
|
|
1041 |
}
|
|
1042 |
break;
|
|
1043 |
case EMessageCalInvitationReadAttachmentsLowPrio:
|
|
1044 |
{
|
|
1045 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1046 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_attachments_low_prio,
|
|
1047 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_event_read_attachments_low_prio_mask);
|
|
1048 |
}
|
|
1049 |
break;
|
|
1050 |
case EMessageCalInvitationCancelled:
|
|
1051 |
{
|
|
1052 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1053 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_delete,
|
|
1054 |
EMbmFreestyleemailuiQgn_indi_cmail_calendar_delete_mask);
|
|
1055 |
}
|
|
1056 |
break;
|
|
1057 |
// CALENDAR EVENT READING STOPS HERE
|
|
1058 |
|
|
1059 |
// FLAG ICONS
|
|
1060 |
case EFollowUpFlag:
|
|
1061 |
{
|
|
1062 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlMenuIconSize();
|
|
1063 |
iconSize.SetSize( tempsize, tempsize );
|
|
1064 |
AknsUtils::CreateColorIconL(
|
|
1065 |
AknsUtils::SkinInstance(),
|
|
1066 |
KAknsIIDNone,
|
|
1067 |
KAknsIIDQsnIconColors,
|
|
1068 |
EAknsCIQsnIconColorsCG7,
|
|
1069 |
bitmap,
|
|
1070 |
mask,
|
|
1071 |
iconFileName,
|
|
1072 |
EMbmFreestyleemailuiQgn_indi_navi_follow_up,
|
|
1073 |
EMbmFreestyleemailuiQgn_indi_navi_follow_up_mask,
|
|
1074 |
KRgbBlack );
|
|
1075 |
}
|
|
1076 |
break;
|
|
1077 |
case EFollowUpFlagComplete:
|
|
1078 |
{
|
|
1079 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlMenuIconSize();
|
|
1080 |
iconSize.SetSize( tempsize, tempsize );
|
|
1081 |
AknsUtils::CreateColorIconL(
|
|
1082 |
AknsUtils::SkinInstance(),
|
|
1083 |
KAknsIIDNone,
|
|
1084 |
KAknsIIDQsnIconColors,
|
|
1085 |
EAknsCIQsnIconColorsCG7,
|
|
1086 |
bitmap,
|
|
1087 |
mask,
|
|
1088 |
iconFileName,
|
|
1089 |
EMbmFreestyleemailuiQgn_indi_navi_follow_up_complete,
|
|
1090 |
EMbmFreestyleemailuiQgn_indi_navi_follow_up_complete_mask,
|
|
1091 |
KRgbBlack );
|
|
1092 |
}
|
|
1093 |
break;
|
|
1094 |
|
|
1095 |
case EFollowUpFlagList:
|
|
1096 |
{
|
|
1097 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlMenuIconSize();
|
|
1098 |
iconSize.SetSize( tempsize, tempsize );
|
|
1099 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1100 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_follow_up,
|
|
1101 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_follow_up_mask);
|
|
1102 |
}
|
|
1103 |
break;
|
|
1104 |
case EFollowUpFlagCompleteList:
|
|
1105 |
{
|
|
1106 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlMenuIconSize();
|
|
1107 |
iconSize.SetSize( tempsize, tempsize );
|
|
1108 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1109 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_follow_up_complete,
|
|
1110 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_follow_up_complete_mask);
|
|
1111 |
}
|
|
1112 |
break;
|
|
1113 |
|
|
1114 |
// END OF FLAG ICON S
|
|
1115 |
|
|
1116 |
|
|
1117 |
// STATUS INDICATOR ICON READING STARTS HERE
|
|
1118 |
//
|
|
1119 |
case EStatusTextureSynchronising:
|
|
1120 |
{
|
|
1121 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1122 |
EMbmFreestyleemailuiQgn_indi_cmail_sync,
|
|
1123 |
EMbmFreestyleemailuiQgn_indi_cmail_sync_mask);
|
|
1124 |
}
|
|
1125 |
break;
|
|
1126 |
|
|
1127 |
case EStatusTextureConnected:
|
|
1128 |
{
|
|
1129 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1130 |
EMbmFreestyleemailuiQgn_indi_cmail_connected,
|
|
1131 |
EMbmFreestyleemailuiQgn_indi_cmail_connected_mask);
|
|
1132 |
}
|
|
1133 |
break;
|
|
1134 |
|
|
1135 |
case EStatusTextureConnecting:
|
|
1136 |
{
|
|
1137 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1138 |
EMbmFreestyleemailuiQgn_indi_cmail_connecting,
|
|
1139 |
EMbmFreestyleemailuiQgn_indi_cmail_connecting_mask);
|
|
1140 |
}
|
|
1141 |
break;
|
|
1142 |
|
|
1143 |
case EStatusTextureDisconnectedGeneral:
|
|
1144 |
{
|
|
1145 |
/*AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1146 |
EMbmFreestyleemailuiQgn_indi_cmail_disconnected,
|
|
1147 |
EMbmFreestyleemailuiQgn_indi_cmail_disconnected_mask);
|
|
1148 |
*/
|
|
1149 |
TSize iconSize(1,1);
|
|
1150 |
bitmap = new( ELeave ) CFbsBitmap();
|
|
1151 |
CleanupStack::PushL( bitmap );
|
|
1152 |
mask = new( ELeave ) CFbsBitmap();
|
|
1153 |
CleanupStack::Pop( bitmap );
|
|
1154 |
bitmap->Create( iconSize, CCoeEnv::Static()->ScreenDevice()->DisplayMode() );
|
|
1155 |
mask->Create( iconSize, CCoeEnv::Static()->ScreenDevice()->DisplayMode() );
|
|
1156 |
|
|
1157 |
TBitmapUtil bitmapUtil( bitmap );
|
|
1158 |
TBitmapUtil bitmapMaskUtil( mask );
|
|
1159 |
bitmapUtil.Begin( TPoint( 0, 0 ) );
|
|
1160 |
bitmapMaskUtil.Begin( TPoint( 0, 0 ) );
|
|
1161 |
bitmapUtil.SetPixel( 0x0 );
|
|
1162 |
bitmapMaskUtil.SetPixel( 0xFFFFFFFF );
|
|
1163 |
|
|
1164 |
bitmapUtil.End();
|
|
1165 |
bitmapMaskUtil.End();
|
|
1166 |
}
|
|
1167 |
break;
|
|
1168 |
|
|
1169 |
case EStatusTextureDisconnectedError:
|
|
1170 |
{
|
|
1171 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1172 |
EMbmFreestyleemailuiQgn_indi_cmail_disconnected_error,
|
|
1173 |
EMbmFreestyleemailuiQgn_indi_cmail_disconnected_error_mask);
|
|
1174 |
}
|
|
1175 |
break;
|
|
1176 |
|
|
1177 |
case EStatusTextureDisconnectedLowBattery:
|
|
1178 |
{
|
|
1179 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1180 |
EMbmFreestyleemailuiQgn_indi_cmail_disconnected_low_battery,
|
|
1181 |
EMbmFreestyleemailuiQgn_indi_cmail_disconnected_low_battery_mask);
|
|
1182 |
}
|
|
1183 |
break;
|
|
1184 |
|
|
1185 |
case EStatusTextureMailSent:
|
|
1186 |
{
|
|
1187 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1188 |
EMbmFreestyleemailuiQgn_indi_cmail_sent,
|
|
1189 |
EMbmFreestyleemailuiQgn_indi_cmail_sent_mask);
|
|
1190 |
}
|
|
1191 |
break;
|
|
1192 |
case EBackgroundTextureMailList:
|
|
1193 |
{
|
|
1194 |
// <cmail> S60 Skin support
|
|
1195 |
/*
|
|
1196 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
1197 |
KAknsIIDQgnFsGrafEmailContent, bitmap, mask, iconFileName,
|
|
1198 |
EMbmFreestyleemailuiQgn_graf_cmail_email_content,
|
|
1199 |
EMbmFreestyleemailuiQgn_graf_cmail_email_content_mask );
|
|
1200 |
*/
|
|
1201 |
GetBackgroundBitmapL (bitmap);
|
|
1202 |
// </cmail>
|
|
1203 |
|
|
1204 |
iconSize.SetSize( screenRect.Width(), screenRect.Height() );
|
|
1205 |
scalemode = EAspectRatioNotPreserved;
|
|
1206 |
}
|
|
1207 |
break;
|
|
1208 |
|
|
1209 |
// CONTROL BAR BACKGROUND ICON READING STARTS HERE
|
|
1210 |
//
|
|
1211 |
case EControlBarListBackgroundTexture:
|
|
1212 |
{
|
|
1213 |
// <cmail> S60 Skin support
|
|
1214 |
TInt borderSize =
|
|
1215 |
iAppUi->LayoutHandler()->ControlBarListBorderRoundingSize();
|
|
1216 |
iconSize.SetSize( borderSize * 2, borderSize * 2 );
|
|
1217 |
|
|
1218 |
this->DrawContextL (bitmap, KAknsIIDQsnFrPopupCenter, iconSize);
|
|
1219 |
//</cmail>
|
|
1220 |
}
|
|
1221 |
break;
|
|
1222 |
|
|
1223 |
case EControlBarButtonBackgroundTexture:
|
|
1224 |
{
|
|
1225 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
1226 |
KAknsIIDQgnFsGrafDropOnepc, bitmap, mask, iconFileName,
|
|
1227 |
EMbmFreestyleemailuiQgn_graf_cmail_drop_onepc,
|
|
1228 |
EMbmFreestyleemailuiQgn_graf_cmail_drop_onepc_mask );
|
|
1229 |
TInt borderSize = iAppUi->LayoutHandler()->ControlBarButtonBgRoundingSize();
|
|
1230 |
iconSize.SetSize( borderSize * 2, borderSize * 2 );
|
|
1231 |
}
|
|
1232 |
break;
|
|
1233 |
|
|
1234 |
// Ascending /descending textures are mixed in skin
|
|
1235 |
case EControlBarDescendingArrowTexture:
|
|
1236 |
{
|
|
1237 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
1238 |
KAknsIIDQgnFseFolderListAscendingIcon, bitmap, mask, iconFileName,
|
|
1239 |
EMbmFreestyleemailuiQgn_indi_cmail_folders_asc,
|
|
1240 |
EMbmFreestyleemailuiQgn_indi_cmail_folders_asc_mask );
|
|
1241 |
TInt TempXSize = iAppUi->LayoutHandler()->ControlBarArrowTextureXSize();
|
|
1242 |
TInt TempYSize = iAppUi->LayoutHandler()->ControlBarArrowTextureYSize();
|
|
1243 |
iconSize.SetSize( TempXSize, TempYSize );
|
|
1244 |
}
|
|
1245 |
break;
|
|
1246 |
case EControlBarAscendingArrowTexture:
|
|
1247 |
{
|
|
1248 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
1249 |
KAknsIIDQgnFseFolderListDescendingIcon, bitmap, mask, iconFileName,
|
|
1250 |
EMbmFreestyleemailuiQgn_indi_cmail_folders_desc,
|
|
1251 |
EMbmFreestyleemailuiQgn_indi_cmail_folders_desc_mask );
|
|
1252 |
TInt TempXSize = iAppUi->LayoutHandler()->ControlBarArrowTextureXSize();
|
|
1253 |
TInt TempYSize = iAppUi->LayoutHandler()->ControlBarArrowTextureYSize();
|
|
1254 |
iconSize.SetSize( TempXSize, TempYSize );
|
|
1255 |
}
|
|
1256 |
break;
|
|
1257 |
|
|
1258 |
// FOLDER LIST ICON READING STARTS HERE
|
|
1259 |
//
|
|
1260 |
case EFolderListMoreFoldersTexture:
|
|
1261 |
case EFolderListMoreFoldersTexturePopup:
|
|
1262 |
|
|
1263 |
{
|
|
1264 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1265 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_more_folders,
|
|
1266 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_more_folders_mask);
|
|
1267 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListMoreFoldersTexturePopup );
|
|
1268 |
}
|
|
1269 |
break;
|
|
1270 |
case EFolderListInboxTexture:
|
|
1271 |
case EFolderListInboxTexturePopup:
|
|
1272 |
{
|
|
1273 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1274 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_inbox,
|
|
1275 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_inbox_mask);
|
|
1276 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListInboxTexturePopup );
|
|
1277 |
}
|
|
1278 |
break;
|
|
1279 |
case EFolderListInboxSubfoldersTexture:
|
|
1280 |
case EFolderListInboxSubfoldersTexturePopup:
|
|
1281 |
{
|
|
1282 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1283 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_subfolders,
|
|
1284 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_subfolders_mask);
|
|
1285 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListInboxSubfoldersTexturePopup );
|
|
1286 |
}
|
|
1287 |
break;
|
|
1288 |
case EFolderListOutboxTexture:
|
|
1289 |
case EFolderListOutboxTexturePopup:
|
|
1290 |
{
|
|
1291 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1292 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_outbox,
|
|
1293 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_outbox_mask);
|
|
1294 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListOutboxTexturePopup );
|
|
1295 |
}
|
|
1296 |
break;
|
|
1297 |
case EFolderListDraftsTexture:
|
|
1298 |
case EFolderListDraftsTexturePopup:
|
|
1299 |
{
|
|
1300 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1301 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_drafts,
|
|
1302 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_drafts_mask);
|
|
1303 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListDraftsTexturePopup );
|
|
1304 |
}
|
|
1305 |
break;
|
|
1306 |
case EFolderListSentTexture:
|
|
1307 |
case EFolderListSentTexturePopup:
|
|
1308 |
{
|
|
1309 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1310 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_sent,
|
|
1311 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_sent_mask);
|
|
1312 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListSentTexturePopup );
|
|
1313 |
}
|
|
1314 |
break;
|
|
1315 |
case EFolderListDeletedItemsTexture:
|
|
1316 |
case EFolderListDeletedItemsTexturePopup:
|
|
1317 |
{
|
|
1318 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1319 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_deleted_items,
|
|
1320 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_deleted_items_mask);
|
|
1321 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListDeletedItemsTexturePopup );
|
|
1322 |
}
|
|
1323 |
break;
|
|
1324 |
case EFolderListServerFoldersTexture:
|
|
1325 |
case EFolderListServerFoldersTexturePopup:
|
|
1326 |
{
|
|
1327 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1328 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_server_folder,
|
|
1329 |
EMbmFreestyleemailuiQgn_prop_cmail_folders_server_folder_mask);
|
|
1330 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListServerFoldersTexturePopup );
|
|
1331 |
}
|
|
1332 |
break;
|
|
1333 |
case EFolderListEmailAccountTexture:
|
|
1334 |
case EFolderListEmailAccountTexturePopup:
|
|
1335 |
{
|
|
1336 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1337 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_email_account,
|
|
1338 |
EMbmFreestyleemailuiQgn_indi_cmail_drop_email_account_mask);
|
|
1339 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == EFolderListEmailAccountTexturePopup );
|
|
1340 |
}
|
|
1341 |
break;
|
|
1342 |
|
|
1343 |
// FOLDER LIST ICON READING STOPS HERE
|
|
1344 |
//
|
|
1345 |
|
|
1346 |
// SORT LIST ICON READING STARTS HERE
|
|
1347 |
//
|
|
1348 |
case ESortListAttachmentAscTexture:
|
|
1349 |
{
|
|
1350 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1351 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_asc,
|
|
1352 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_asc_mask );
|
|
1353 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1354 |
iconSize.SetSize( tempsize, tempsize );
|
|
1355 |
}
|
|
1356 |
break;
|
|
1357 |
case ESortListAttachmentAscTexturePopup:
|
|
1358 |
{
|
|
1359 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1360 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_asc,
|
|
1361 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_asc_mask );
|
|
1362 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListAttachmentAscTexturePopup );
|
|
1363 |
}
|
|
1364 |
break;
|
|
1365 |
case ESortListAttachmentDescTexture:
|
|
1366 |
{
|
|
1367 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1368 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_desc,
|
|
1369 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_desc_mask );
|
|
1370 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1371 |
iconSize.SetSize( tempsize, tempsize );
|
|
1372 |
}
|
|
1373 |
break;
|
|
1374 |
case ESortListAttachmentDescTexturePopup:
|
|
1375 |
{
|
|
1376 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1377 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_desc,
|
|
1378 |
EMbmFreestyleemailuiQgn_prop_email_sort_attach_desc_mask );
|
|
1379 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListAttachmentDescTexturePopup );
|
|
1380 |
}
|
|
1381 |
break;
|
|
1382 |
case ESortListDateAscTexture:
|
|
1383 |
{
|
|
1384 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1385 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_asc,
|
|
1386 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_asc_mask );
|
|
1387 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1388 |
iconSize.SetSize( tempsize, tempsize );
|
|
1389 |
}
|
|
1390 |
break;
|
|
1391 |
case ESortListDateAscTexturePopup:
|
|
1392 |
{
|
|
1393 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1394 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_asc,
|
|
1395 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_asc_mask );
|
|
1396 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListDateAscTexturePopup );
|
|
1397 |
}
|
|
1398 |
break;
|
|
1399 |
case ESortListDateDescTexture:
|
|
1400 |
{
|
|
1401 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1402 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_desc,
|
|
1403 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_desc_mask );
|
|
1404 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1405 |
iconSize.SetSize( tempsize, tempsize );
|
|
1406 |
}
|
|
1407 |
break;
|
|
1408 |
case ESortListDateDescTexturePopup:
|
|
1409 |
{
|
|
1410 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1411 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_desc,
|
|
1412 |
EMbmFreestyleemailuiQgn_prop_email_sort_date_desc_mask );
|
|
1413 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListDateDescTexturePopup );
|
|
1414 |
}
|
|
1415 |
break;
|
|
1416 |
case ESortListFollowAscTexture:
|
|
1417 |
{
|
|
1418 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1419 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_asc,
|
|
1420 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_asc_mask );
|
|
1421 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1422 |
iconSize.SetSize( tempsize, tempsize );
|
|
1423 |
}
|
|
1424 |
break;
|
|
1425 |
case ESortListFollowAscTexturePopup:
|
|
1426 |
{
|
|
1427 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1428 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_asc,
|
|
1429 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_asc_mask );
|
|
1430 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListFollowAscTexturePopup );
|
|
1431 |
}
|
|
1432 |
break;
|
|
1433 |
case ESortListFollowDescTexture:
|
|
1434 |
{
|
|
1435 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1436 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_desc,
|
|
1437 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_desc_mask );
|
|
1438 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1439 |
iconSize.SetSize( tempsize, tempsize );
|
|
1440 |
}
|
|
1441 |
break;
|
|
1442 |
case ESortListFollowDescTexturePopup:
|
|
1443 |
{
|
|
1444 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1445 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_desc,
|
|
1446 |
EMbmFreestyleemailuiQgn_prop_email_sort_follow_desc_mask );
|
|
1447 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListFollowDescTexturePopup );
|
|
1448 |
}
|
|
1449 |
break;
|
|
1450 |
case ESortListPriorityAscTexture:
|
|
1451 |
{
|
|
1452 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1453 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_asc,
|
|
1454 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_asc_mask );
|
|
1455 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1456 |
iconSize.SetSize( tempsize, tempsize );
|
|
1457 |
}
|
|
1458 |
break;
|
|
1459 |
case ESortListPriorityAscTexturePopup:
|
|
1460 |
{
|
|
1461 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1462 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_asc,
|
|
1463 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_asc_mask );
|
|
1464 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListPriorityAscTexturePopup );
|
|
1465 |
}
|
|
1466 |
break;
|
|
1467 |
case ESortListPriorityDescTexture:
|
|
1468 |
{
|
|
1469 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1470 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_desc,
|
|
1471 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_desc_mask );
|
|
1472 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1473 |
iconSize.SetSize( tempsize, tempsize );
|
|
1474 |
}
|
|
1475 |
break;
|
|
1476 |
case ESortListPriorityDescTexturePopup:
|
|
1477 |
{
|
|
1478 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1479 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_desc,
|
|
1480 |
EMbmFreestyleemailuiQgn_prop_email_sort_priority_desc_mask );
|
|
1481 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListPriorityDescTexturePopup );
|
|
1482 |
}
|
|
1483 |
break;
|
|
1484 |
case ESortListSenderAscTexture:
|
|
1485 |
{
|
|
1486 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1487 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_asc,
|
|
1488 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_asc_mask );
|
|
1489 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1490 |
iconSize.SetSize( tempsize, tempsize );
|
|
1491 |
}
|
|
1492 |
break;
|
|
1493 |
case ESortListSenderAscTexturePopup:
|
|
1494 |
{
|
|
1495 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1496 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_asc,
|
|
1497 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_asc_mask );
|
|
1498 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListSenderAscTexturePopup );
|
|
1499 |
}
|
|
1500 |
break;
|
|
1501 |
case ESortListSenderDescTexture:
|
|
1502 |
{
|
|
1503 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1504 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_desc,
|
|
1505 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_desc_mask );
|
|
1506 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1507 |
iconSize.SetSize( tempsize, tempsize );
|
|
1508 |
}
|
|
1509 |
break;
|
|
1510 |
case ESortListSenderDescTexturePopup:
|
|
1511 |
{
|
|
1512 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1513 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_desc,
|
|
1514 |
EMbmFreestyleemailuiQgn_prop_email_sort_sender_desc_mask );
|
|
1515 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListSenderDescTexturePopup );
|
|
1516 |
}
|
|
1517 |
break;
|
|
1518 |
case ESortListSubjectAscTexture:
|
|
1519 |
{
|
|
1520 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1521 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_asc,
|
|
1522 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_asc_mask );
|
|
1523 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1524 |
iconSize.SetSize( tempsize, tempsize );
|
|
1525 |
}
|
|
1526 |
break;
|
|
1527 |
case ESortListSubjectAscTexturePopup:
|
|
1528 |
{
|
|
1529 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1530 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_asc,
|
|
1531 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_asc_mask );
|
|
1532 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListSubjectAscTexturePopup );
|
|
1533 |
}
|
|
1534 |
break;
|
|
1535 |
case ESortListSubjectDescTexture:
|
|
1536 |
{
|
|
1537 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1538 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_desc,
|
|
1539 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_desc_mask );
|
|
1540 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1541 |
iconSize.SetSize( tempsize, tempsize );
|
|
1542 |
}
|
|
1543 |
break;
|
|
1544 |
case ESortListSubjectDescTexturePopup:
|
|
1545 |
{
|
|
1546 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1547 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_desc,
|
|
1548 |
EMbmFreestyleemailuiQgn_prop_email_sort_subject_desc_mask );
|
|
1549 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListSubjectDescTexturePopup );
|
|
1550 |
}
|
|
1551 |
break;
|
|
1552 |
case ESortListUnreadAscTexture:
|
|
1553 |
{
|
|
1554 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1555 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_asc,
|
|
1556 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_asc_mask );
|
|
1557 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1558 |
iconSize.SetSize( tempsize, tempsize );
|
|
1559 |
}
|
|
1560 |
break;
|
|
1561 |
case ESortListUnreadAscTexturePopup:
|
|
1562 |
{
|
|
1563 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1564 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_asc,
|
|
1565 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_asc_mask );
|
|
1566 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListUnreadAscTexturePopup );
|
|
1567 |
}
|
|
1568 |
break;
|
|
1569 |
case ESortListUnreadDescTexture:
|
|
1570 |
{
|
|
1571 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1572 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_desc,
|
|
1573 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_desc_mask );
|
|
1574 |
TInt tempsize = iAppUi->LayoutHandler()->ListControlBarMailboxDefaultIconSize();
|
|
1575 |
iconSize.SetSize( tempsize, tempsize );
|
|
1576 |
}
|
|
1577 |
break;
|
|
1578 |
case ESortListUnreadDescTexturePopup:
|
|
1579 |
{
|
|
1580 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1581 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_desc,
|
|
1582 |
EMbmFreestyleemailuiQgn_prop_email_sort_unread_desc_mask );
|
|
1583 |
iconSize = iAppUi->LayoutHandler()->FolderListIconSize( aId == ESortListUnreadDescTexturePopup );
|
|
1584 |
}
|
|
1585 |
break;
|
|
1586 |
// SORT LIST ICON READING STOPS HERE
|
|
1587 |
//
|
|
1588 |
|
|
1589 |
// ATTACHMENT ICONS STARTS HERE
|
|
1590 |
//
|
|
1591 |
//<cmail>
|
|
1592 |
case EAttachmentsDocFile:
|
|
1593 |
{
|
|
1594 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1595 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_doc,
|
|
1596 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_doc_mask);
|
|
1597 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1598 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1599 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1600 |
//scalemode = EAspectRatioNotPreserved;
|
|
1601 |
}
|
|
1602 |
break;
|
|
1603 |
|
|
1604 |
case EAttachmentsHtmlFile:
|
|
1605 |
{
|
|
1606 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1607 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_html,
|
|
1608 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_html_mask);
|
|
1609 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1610 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1611 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1612 |
//scalemode = EAspectRatioNotPreserved;
|
|
1613 |
}
|
|
1614 |
break;
|
|
1615 |
|
|
1616 |
case EAttachmentsImageFile:
|
|
1617 |
{
|
|
1618 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1619 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_image,
|
|
1620 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_image_mask);
|
|
1621 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1622 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1623 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1624 |
//scalemode = EAspectRatioNotPreserved;
|
|
1625 |
}
|
|
1626 |
break;
|
|
1627 |
|
|
1628 |
case EAttachmentsNotDownloaded:
|
|
1629 |
{
|
|
1630 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1631 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_not_downloaded,
|
|
1632 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_not_downloaded_mask);
|
|
1633 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1634 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1635 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1636 |
//scalemode = EAspectRatioNotPreserved;
|
|
1637 |
}
|
|
1638 |
break;
|
|
1639 |
|
|
1640 |
case EAttachmentsPptFile:
|
|
1641 |
{
|
|
1642 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1643 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_ppt,
|
|
1644 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_ppt_mask);
|
|
1645 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1646 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1647 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1648 |
//scalemode = EAspectRatioNotPreserved;
|
|
1649 |
}
|
|
1650 |
break;
|
|
1651 |
|
|
1652 |
case EAttachmentsRtfFile:
|
|
1653 |
{
|
|
1654 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1655 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_rtf,
|
|
1656 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_rtf_mask);
|
|
1657 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1658 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1659 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1660 |
//scalemode = EAspectRatioNotPreserved;
|
|
1661 |
}
|
|
1662 |
break;
|
|
1663 |
|
|
1664 |
case EAttachmentsUnknownFile:
|
|
1665 |
{
|
|
1666 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1667 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_unidentified,
|
|
1668 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_unidentified_mask);
|
|
1669 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1670 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1671 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1672 |
//scalemode = EAspectRatioNotPreserved;
|
|
1673 |
}
|
|
1674 |
break;
|
|
1675 |
|
|
1676 |
case EAttachmentsXls:
|
|
1677 |
{
|
|
1678 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1679 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_xls,
|
|
1680 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_xls_mask);
|
|
1681 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1682 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1683 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1684 |
//scalemode = EAspectRatioNotPreserved;
|
|
1685 |
}
|
|
1686 |
break;
|
|
1687 |
|
|
1688 |
case EAttachmentsPdfFile:
|
|
1689 |
{
|
|
1690 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1691 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_pdf,
|
|
1692 |
EMbmFreestyleemailuiQgn_indi_cmail_viewer_attach_pdf_mask);
|
|
1693 |
//TInt tempsize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1694 |
//iconSize.SetSize( tempsize, tempsize );
|
|
1695 |
iconSize = iAppUi->LayoutHandler()->AttachmentIconSize();
|
|
1696 |
//scalemode = EAspectRatioNotPreserved;
|
|
1697 |
}
|
|
1698 |
break;
|
|
1699 |
|
|
1700 |
//</cmail>
|
|
1701 |
|
|
1702 |
|
|
1703 |
case EAttachmentsCancelDownload:
|
|
1704 |
{
|
|
1705 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1706 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_cancel_download,
|
|
1707 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_cancel_download_mask);
|
|
1708 |
}
|
|
1709 |
break;
|
|
1710 |
|
|
1711 |
case EAttachmentsDownload:
|
|
1712 |
{
|
|
1713 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1714 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_download,
|
|
1715 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_download_mask);
|
|
1716 |
}
|
|
1717 |
break;
|
|
1718 |
|
|
1719 |
case EAttachmentsSaveAll:
|
|
1720 |
{
|
|
1721 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1722 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_save_all,
|
|
1723 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_save_all_mask);
|
|
1724 |
}
|
|
1725 |
break;
|
|
1726 |
|
|
1727 |
case EAttachmentsCancelAll:
|
|
1728 |
{
|
|
1729 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1730 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_list_options_cancel_all,
|
|
1731 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_list_options_cancel_all_mask);
|
|
1732 |
}
|
|
1733 |
break;
|
|
1734 |
|
|
1735 |
case EAttachmentsViewAll:
|
|
1736 |
{
|
|
1737 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1738 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_list_options_view_all,
|
|
1739 |
EMbmFreestyleemailuiQgn_prop_cmail_action_attachment_list_options_view_all_mask);
|
|
1740 |
}
|
|
1741 |
break;
|
|
1742 |
|
|
1743 |
|
|
1744 |
|
|
1745 |
// GRID ICON READING STARTS HERE
|
|
1746 |
//
|
|
1747 |
case EGridInboxTexture:
|
|
1748 |
{
|
|
1749 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1750 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_inbox,
|
|
1751 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_inbox_mask);
|
|
1752 |
}
|
|
1753 |
break;
|
|
1754 |
case EGridDirectoryTexture:
|
|
1755 |
{
|
|
1756 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1757 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_remote_lookup,
|
|
1758 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_remote_lookup_mask);
|
|
1759 |
}
|
|
1760 |
break;
|
|
1761 |
case EGridSettingsTexture:
|
|
1762 |
{
|
|
1763 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1764 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_settings,
|
|
1765 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_settings_mask);
|
|
1766 |
}
|
|
1767 |
break;
|
|
1768 |
case EGridAddNewBoxTexture:
|
|
1769 |
{
|
|
1770 |
// <cmail>
|
|
1771 |
TAknsItemID skinId = KAknsIIDQgnPropCmailNewMailbox;
|
|
1772 |
CAknsItemData* temp = AknsUtils::SkinInstance()->GetCachedItemData( skinId );
|
|
1773 |
if ( !temp )
|
|
1774 |
{
|
|
1775 |
skinId = KAknsIIDNone;
|
|
1776 |
}
|
|
1777 |
|
|
1778 |
AknsUtils::CreateIconL(
|
|
1779 |
AknsUtils::SkinInstance(),
|
|
1780 |
skinId, bitmap,
|
|
1781 |
mask, iconFileName,
|
|
1782 |
EMbmFreestyleemailuiQgn_prop_cmail_new_mailbox,
|
|
1783 |
EMbmFreestyleemailuiQgn_prop_cmail_new_mailbox_mask);
|
|
1784 |
// </cmail>
|
|
1785 |
}
|
|
1786 |
break;
|
|
1787 |
case EGridHelpTexture:
|
|
1788 |
{
|
|
1789 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1790 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_help,
|
|
1791 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_help_mask);
|
|
1792 |
}
|
|
1793 |
break;
|
|
1794 |
case EGridBackground:
|
|
1795 |
{
|
|
1796 |
// <cmail> S60 Skin support
|
|
1797 |
/*
|
|
1798 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
1799 |
KAknsIIDQgnFsCaleBgLsc, bitmap, mask, iconFileName,
|
|
1800 |
EMbmFreestyleemailuiQgn_graf_cmail_email_content,
|
|
1801 |
EMbmFreestyleemailuiQgn_graf_cmail_email_content_mask );
|
|
1802 |
*/
|
|
1803 |
GetBackgroundBitmapL (bitmap);
|
|
1804 |
// </cmail>
|
|
1805 |
iconSize.SetSize( screenRect.Width(), screenRect.Height() );
|
|
1806 |
scalemode = EAspectRatioNotPreserved;
|
|
1807 |
}
|
|
1808 |
break;
|
|
1809 |
|
|
1810 |
// VIEWER ICONS
|
|
1811 |
//
|
|
1812 |
case EViewerTextureHeaderBackGround:
|
|
1813 |
{
|
|
1814 |
AknsUtils::CreateIconL( AknsUtils::SkinInstance(),
|
|
1815 |
KAknsIIDQgnFsGrafEmailHeader, bitmap, mask, iconFileName,
|
|
1816 |
EMbmFreestyleemailuiQgn_graf_cmail_email_header,
|
|
1817 |
EMbmFreestyleemailuiQgn_graf_cmail_email_header_mask );
|
|
1818 |
iconSize.SetSize( screenRect.Width(), screenRect.Height() );
|
|
1819 |
scalemode = EAspectRatioNotPreserved;
|
|
1820 |
}
|
|
1821 |
break;
|
|
1822 |
case EViewerHighlightTexture:
|
|
1823 |
{
|
|
1824 |
TInt tempsize = iAppUi->LayoutHandler()->ViewerHighlightTextureSize();
|
|
1825 |
iconSize.SetSize( tempsize, tempsize );
|
|
1826 |
|
|
1827 |
MAknsSkinInstance* skin = AknsUtils::SkinInstance();
|
|
1828 |
TRgb imageColor;
|
|
1829 |
if( AknsUtils::GetCachedColor( skin, imageColor,
|
|
1830 |
KAknsIIDFsHighlightColors, EAknsCIFsHighlightColorsCG4 ) != KErrNone )
|
|
1831 |
{
|
|
1832 |
if( AknsUtils::GetCachedColor( skin, imageColor,
|
|
1833 |
KAknsIIDQsnHighlightColors, EAknsCIQsnHighlightColorsCG2 ) != KErrNone )
|
|
1834 |
{
|
|
1835 |
imageColor = KRgbBlue;
|
|
1836 |
}
|
|
1837 |
}
|
|
1838 |
bitmap = new( ELeave ) CFbsBitmap();
|
|
1839 |
CleanupStack::PushL( bitmap );
|
|
1840 |
mask = new( ELeave ) CFbsBitmap();
|
|
1841 |
CleanupStack::Pop( bitmap );
|
|
1842 |
bitmap->Create( iconSize, CCoeEnv::Static()->ScreenDevice()->DisplayMode() );
|
|
1843 |
mask->Create( iconSize, CCoeEnv::Static()->ScreenDevice()->DisplayMode() );
|
|
1844 |
|
|
1845 |
TBitmapUtil bitmapUtil( bitmap );
|
|
1846 |
TBitmapUtil bitmapMaskUtil( mask );
|
|
1847 |
bitmapUtil.Begin( TPoint( 0, 0 ) );
|
|
1848 |
bitmapMaskUtil.Begin( TPoint( 0, 0 ) );
|
|
1849 |
bitmapUtil.SetPixel( imageColor.Internal() );
|
|
1850 |
bitmapMaskUtil.SetPixel( 0x0 );
|
|
1851 |
|
|
1852 |
bitmapUtil.End();
|
|
1853 |
bitmapMaskUtil.End();
|
|
1854 |
}
|
|
1855 |
break;
|
|
1856 |
|
|
1857 |
// COMPOSER ICONS
|
|
1858 |
//
|
|
1859 |
case EComposerTexturePriorityLow:
|
|
1860 |
{
|
|
1861 |
AknsUtils::CreateColorIconL(
|
|
1862 |
AknsUtils::SkinInstance(),
|
|
1863 |
KAknsIIDNone,
|
|
1864 |
KAknsIIDQsnIconColors,
|
|
1865 |
EAknsCIQsnIconColorsCG7,
|
|
1866 |
bitmap,
|
|
1867 |
mask,
|
|
1868 |
iconFileName,
|
|
1869 |
EMbmFreestyleemailuiQgn_indi_todo_low_add,
|
|
1870 |
EMbmFreestyleemailuiQgn_indi_todo_low_add_mask,
|
|
1871 |
KRgbBlack );
|
|
1872 |
}
|
|
1873 |
break;
|
|
1874 |
case EComposerTexturePriorityHigh:
|
|
1875 |
{
|
|
1876 |
AknsUtils::CreateColorIconL(
|
|
1877 |
AknsUtils::SkinInstance(),
|
|
1878 |
KAknsIIDNone,
|
|
1879 |
KAknsIIDQsnIconColors,
|
|
1880 |
EAknsCIQsnIconColorsCG7,
|
|
1881 |
bitmap,
|
|
1882 |
mask,
|
|
1883 |
iconFileName,
|
|
1884 |
EMbmFreestyleemailuiQgn_indi_todo_high_add,
|
|
1885 |
EMbmFreestyleemailuiQgn_indi_todo_high_add_mask,
|
|
1886 |
KRgbBlack );
|
|
1887 |
}
|
|
1888 |
break;
|
|
1889 |
case EMarkingModeBackgroundIcon:
|
|
1890 |
{
|
|
1891 |
TRect mailListRect(iAppUi->LayoutHandler()->GetListRect());
|
|
1892 |
if ( mailListRect.Width() > mailListRect.Height() )
|
|
1893 |
{
|
|
1894 |
iconSize.SetSize( mailListRect.Width(), mailListRect.Width() );
|
|
1895 |
}
|
|
1896 |
else
|
|
1897 |
{
|
|
1898 |
iconSize.SetSize( mailListRect.Height(), mailListRect.Height() );
|
|
1899 |
}
|
|
1900 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1901 |
EMbmFreestyleemailuiCmail_marking_mode_bg,
|
|
1902 |
EMbmFreestyleemailuiCmail_marking_mode_bg);
|
|
1903 |
}
|
|
1904 |
break;
|
|
1905 |
case EGridAboutTexture:
|
|
1906 |
default:
|
|
1907 |
// Branded mailbox icon
|
|
1908 |
if ( aId >= EBrandedIconStart && aId <= EBrandedIconEnd )
|
|
1909 |
{
|
|
1910 |
if ( !iTmpBitmap || !iTmpMaskBitmap )
|
|
1911 |
{
|
|
1912 |
// Leave if tmpvariables not set. This will happen if CreateBrandedMailboxTexture
|
|
1913 |
// is not called before TextureByMailboxIdL
|
|
1914 |
User::Leave( KErrNotFound );
|
|
1915 |
}
|
|
1916 |
// Add new icon into array based on temporary variables set by CreateBrandedMailboxTexture()
|
|
1917 |
bitmap = iTmpBitmap;
|
|
1918 |
mask = iTmpMaskBitmap;
|
|
1919 |
if ( iTmpSize.iHeight != 0 && iTmpSize.iWidth != 0 )
|
|
1920 |
{
|
|
1921 |
iconSize.SetSize( iTmpSize.iWidth, iTmpSize.iHeight );
|
|
1922 |
}
|
|
1923 |
else
|
|
1924 |
{
|
|
1925 |
// Use original size
|
|
1926 |
iconSize.SetSize( bitmap->SizeInPixels().iWidth, bitmap->SizeInPixels().iHeight );
|
|
1927 |
}
|
|
1928 |
// Set all search id's (PluginId, MailboxId and IconSize)
|
|
1929 |
iPluginId.Append( iTmpPluginId );
|
|
1930 |
iMailboxId.Append( iTmpMailboxId );
|
|
1931 |
iSize.Append( iTmpSize );
|
|
1932 |
// Clear temporary variables
|
|
1933 |
iTmpPluginId.iUid = 0;
|
|
1934 |
iTmpMailboxId = 0;
|
|
1935 |
iTmpSize.iHeight = 0;
|
|
1936 |
iTmpSize.iWidth = 0;
|
|
1937 |
iTmpBitmap = NULL;
|
|
1938 |
iTmpMaskBitmap = NULL;
|
|
1939 |
}
|
|
1940 |
else
|
|
1941 |
{
|
|
1942 |
AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
|
|
1943 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_info,
|
|
1944 |
EMbmFreestyleemailuiQgn_indi_cmail_launcher_info_mask);
|
|
1945 |
}
|
|
1946 |
break;
|
|
1947 |
}
|
|
1948 |
// </cmail>
|
|
1949 |
|
|
1950 |
if ( bitmap )
|
|
1951 |
{
|
|
1952 |
AknIconUtils::DisableCompression( bitmap );
|
|
1953 |
AknIconUtils::SetSize( bitmap, iconSize, scalemode );
|
|
1954 |
aBitmap = bitmap;
|
|
1955 |
}
|
|
1956 |
if ( mask )
|
|
1957 |
{
|
|
1958 |
AknIconUtils::DisableCompression( mask );
|
|
1959 |
AknIconUtils::SetSize( mask, iconSize, scalemode );
|
|
1960 |
aMaskBitmap = mask;
|
|
1961 |
}
|
|
1962 |
}
|
|
1963 |
|
|
1964 |
|
|
1965 |
// -----------------------------------------------------------------------------
|
|
1966 |
// <cmail> S60 Skin support
|
|
1967 |
// -----------------------------------------------------------------------------
|
|
1968 |
// CFreestyleEmailUiTextureManager::DrawContextL()
|
|
1969 |
// -----------------------------------------------------------------------------
|
|
1970 |
//
|
|
1971 |
void CFreestyleEmailUiTextureManager::DrawContextL (
|
|
1972 |
CFbsBitmap*& bitmap, TAknsItemID id, TSize rsize) const
|
|
1973 |
{
|
|
1974 |
FUNC_LOG;
|
|
1975 |
CAknsBasicBackgroundControlContext *skinContext =
|
|
1976 |
CAknsBasicBackgroundControlContext::NewL(
|
|
1977 |
//KAknsIIDQsnBgAreaMain,
|
|
1978 |
id, rsize, EFalse );
|
|
1979 |
CleanupStack::PushL (skinContext);
|
|
1980 |
|
|
1981 |
bitmap = new (ELeave) CFbsBitmap();
|
|
1982 |
|
|
1983 |
const TInt err1 = bitmap->Create( rsize,
|
|
1984 |
CCoeEnv::Static()->ScreenDevice()->DisplayMode() );
|
|
1985 |
User::LeaveIfError( err1 );
|
|
1986 |
|
|
1987 |
CFbsBitGc* gc = 0;
|
|
1988 |
CFbsBitmapDevice* device = CFbsBitmapDevice::NewL( bitmap );
|
|
1989 |
CleanupStack::PushL (device);
|
|
1990 |
|
|
1991 |
const TInt err2 = device->CreateContext(gc);
|
|
1992 |
CleanupStack::PushL (gc);
|
|
1993 |
User::LeaveIfError( err2 );
|
|
1994 |
|
|
1995 |
// Draw background to bitmap device context
|
|
1996 |
AknsDrawUtils::DrawBackground( AknsUtils::SkinInstance(),
|
|
1997 |
skinContext,
|
|
1998 |
//this,
|
|
1999 |
0,
|
|
2000 |
*gc,
|
|
2001 |
TPoint(0,0),
|
|
2002 |
rsize,
|
|
2003 |
KAknsDrawParamDefault );
|
|
2004 |
|
|
2005 |
CleanupStack::PopAndDestroy(gc);
|
|
2006 |
CleanupStack::PopAndDestroy(device);
|
|
2007 |
CleanupStack::PopAndDestroy(skinContext);
|
|
2008 |
}
|
|
2009 |
|
|
2010 |
|
|
2011 |
void CFreestyleEmailUiTextureManager::GetBackgroundBitmapL (CFbsBitmap*& bitmap) const
|
|
2012 |
{
|
|
2013 |
FUNC_LOG;
|
|
2014 |
const TSize rsize = iAppUi->ClientRect().Size();
|
|
2015 |
this->DrawContextL (bitmap, KAknsIIDQsnBgAreaMain, rsize);
|
|
2016 |
}
|
|
2017 |
// </cmail>
|
|
2018 |
|
|
2019 |
|
|
2020 |
// -----------------------------------------------------------------------------
|
|
2021 |
// CFreestyleEmailUiTextureManager::DelayLoadCallback()
|
|
2022 |
// Delayed loading callback
|
|
2023 |
// -----------------------------------------------------------------------------
|
|
2024 |
//
|
|
2025 |
TInt CFreestyleEmailUiTextureManager::DelayLoadCallback()
|
|
2026 |
{
|
|
2027 |
FUNC_LOG;
|
|
2028 |
// if all is loaded return 0 to indicate that we don't want any more callbacs
|
|
2029 |
if ( iDelayLoadIndex >= iTextures.Count() )
|
|
2030 |
{
|
|
2031 |
return 0;
|
|
2032 |
}
|
|
2033 |
else
|
|
2034 |
{
|
|
2035 |
TRAPD( error, LoadTextureL( (TFSEmailUiTextures)iDelayLoadIndex++ ) );
|
|
2036 |
if ( KErrNone != error )
|
|
2037 |
{
|
|
2038 |
}
|
|
2039 |
return 1;
|
|
2040 |
}
|
|
2041 |
}
|
|
2042 |
|
|
2043 |
// -----------------------------------------------------------------------------
|
|
2044 |
// CFreestyleEmailUiTextureManager::InitTextureArray()
|
|
2045 |
// Initialises texture array
|
|
2046 |
// -----------------------------------------------------------------------------
|
|
2047 |
//
|
|
2048 |
void CFreestyleEmailUiTextureManager::InitTextureArray()
|
|
2049 |
{
|
|
2050 |
FUNC_LOG;
|
|
2051 |
for ( TInt i=0; i<ETextureCount; i++ )
|
|
2052 |
{
|
|
2053 |
iTextures.Append( &CAlfStatic::Env().TextureManager().BlankTexture() );
|
|
2054 |
}
|
|
2055 |
}
|
|
2056 |
|
|
2057 |
// -----------------------------------------------------------------------------
|
|
2058 |
// CFreestyleEmailUiTextureManager::LoadTextureL()
|
|
2059 |
// Loads given texture if not already loaded
|
|
2060 |
// -----------------------------------------------------------------------------
|
|
2061 |
//
|
|
2062 |
void CFreestyleEmailUiTextureManager::LoadTextureL( TFSEmailUiTextures aTextureId )
|
|
2063 |
{
|
|
2064 |
FUNC_LOG;
|
|
2065 |
// Check if branded icon already loded
|
|
2066 |
if ( aTextureId >= EBrandedIconStart && aTextureId <= EBrandedIconEnd )
|
|
2067 |
{
|
|
2068 |
if ( aTextureId - EBrandedIconStart <= iBrandedMailboxIcons.Count() - 1 )
|
|
2069 |
{
|
|
2070 |
// Branded icon already loaded do nothing
|
|
2071 |
return;
|
|
2072 |
}
|
|
2073 |
}
|
|
2074 |
// if texture has already been loaded do nothing
|
|
2075 |
else if ( &CAlfStatic::Env().TextureManager().BlankTexture() != iTextures[aTextureId] )
|
|
2076 |
{
|
|
2077 |
return;
|
|
2078 |
}
|
|
2079 |
|
|
2080 |
// load texture
|
|
2081 |
switch ( aTextureId )
|
|
2082 |
{
|
|
2083 |
case EListTextureSelector: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EListTextureSelector, this, EAlfTextureFlagDefault ); break;
|
|
2084 |
case EListTextureNodeExpanded:
|
|
2085 |
{
|
|
2086 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EListTextureNodeExpanded, this, EAlfTextureFlagSkinContent);
|
|
2087 |
}
|
|
2088 |
break;
|
|
2089 |
case EListTextureNodeCollapsed:
|
|
2090 |
{
|
|
2091 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EListTextureNodeCollapsed, this, EAlfTextureFlagSkinContent);
|
|
2092 |
}
|
|
2093 |
break;
|
|
2094 |
case EListTextureControlButton: ; break;
|
|
2095 |
case EListTextureMailboxDefaultIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EListTextureMailboxDefaultIcon, this, EAlfTextureFlagDefault); break;
|
|
2096 |
case EListTextureNewEmailDefaultIcon:
|
|
2097 |
case EListTextureCreateNewMessageIcon:
|
|
2098 |
{
|
|
2099 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( aTextureId, this, EAlfTextureFlagDefault );
|
|
2100 |
}
|
|
2101 |
break;
|
|
2102 |
case EListControlBarMailboxDefaultIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EListControlBarMailboxDefaultIcon, this, EAlfTextureFlagDefault); break;
|
|
2103 |
case EBackgroundTextureViewerHeading: ; break;
|
|
2104 |
case EBackgroundTextureBar: ; break;
|
|
2105 |
case EBackgroundTextureThumb: ; break;
|
|
2106 |
case EBackgroundTextureMailList:
|
|
2107 |
{
|
|
2108 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EBackgroundTextureMailList, this, EAlfTextureFlagSkinContent);
|
|
2109 |
}
|
|
2110 |
break;
|
|
2111 |
case EListControlMarkIcon:
|
|
2112 |
{
|
|
2113 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EListControlMarkIcon, this, EAlfTextureFlagSkinContent);
|
|
2114 |
break;
|
|
2115 |
}
|
|
2116 |
case EListControlMenuIcon:
|
|
2117 |
{
|
|
2118 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EListControlMenuIcon, this, EAlfTextureFlagSkinContent);
|
|
2119 |
break;
|
|
2120 |
}
|
|
2121 |
case EMailListBarBgIcon:
|
|
2122 |
{
|
|
2123 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMailListBarBgIcon, this, EAlfTextureFlagSkinContent);
|
|
2124 |
break;
|
|
2125 |
}
|
|
2126 |
case ESearchLookingGlassIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESearchLookingGlassIcon, this, EAlfTextureFlagDefault); break;
|
|
2127 |
case EControlBarListBackgroundTexture:
|
|
2128 |
{
|
|
2129 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EControlBarListBackgroundTexture, this, EAlfTextureFlagSkinContent);
|
|
2130 |
break;
|
|
2131 |
}
|
|
2132 |
case EControlBarButtonBackgroundTexture:
|
|
2133 |
{
|
|
2134 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EControlBarButtonBackgroundTexture, this, EAlfTextureFlagSkinContent);
|
|
2135 |
break;
|
|
2136 |
}
|
|
2137 |
case EControlBarAscendingArrowTexture:
|
|
2138 |
{
|
|
2139 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EControlBarAscendingArrowTexture, this, EAlfTextureFlagSkinContent);
|
|
2140 |
break;
|
|
2141 |
}
|
|
2142 |
case EControlBarDescendingArrowTexture:
|
|
2143 |
{
|
|
2144 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EControlBarDescendingArrowTexture, this, EAlfTextureFlagSkinContent);
|
|
2145 |
}
|
|
2146 |
break;
|
|
2147 |
case EMarkingModeBackgroundIcon:
|
|
2148 |
{
|
|
2149 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMarkingModeBackgroundIcon, this, EAlfTextureFlagRetainResolution);
|
|
2150 |
}
|
|
2151 |
break;
|
|
2152 |
|
|
2153 |
// MESSAGE TEXTURES
|
|
2154 |
case EMessageReadIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadIcon, this, EAlfTextureFlagDefault); break;
|
|
2155 |
case EMessageLowPrioReadIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageLowPrioReadIcon, this, EAlfTextureFlagDefault); break;
|
|
2156 |
case EMessageLowPrioReadIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageLowPrioReadIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2157 |
case EMessageReadIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2158 |
case EMessageReadRepliedIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadRepliedIcon, this,EAlfTextureFlagDefault); break;
|
|
2159 |
case EMessageReadRepliedIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadRepliedIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2160 |
case EMessageReadRepliedHighPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadRepliedHighPrioIcon, this, EAlfTextureFlagDefault); break;
|
|
2161 |
case EMessageReadRepliedHighPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadRepliedHighPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2162 |
case EMessageReadRepliedLowPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadRepliedLowPrioIcon, this, EAlfTextureFlagDefault ); break;
|
|
2163 |
case EMessageReadRepliedLowPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadRepliedLowPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2164 |
case EMessageReadForwardedIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadForwardedIcon, this, EAlfTextureFlagDefault); break;
|
|
2165 |
case EMessageReadForwardedIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadForwardedIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2166 |
case EMessageReadForwardedHighPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadForwardedHighPrioIcon, this, EAlfTextureFlagDefault); break;
|
|
2167 |
case EMessageReadForwardedHighPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadForwardedHighPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2168 |
case EMessageReadForwardedLowPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadForwardedLowPrioIcon, this,EAlfTextureFlagDefault); break;
|
|
2169 |
case EMessageReadForwardedLowPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageReadForwardedLowPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2170 |
case EMessageUnreadIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadIcon, this, EAlfTextureFlagDefault); break;
|
|
2171 |
case EMessageUnreadIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2172 |
case EMessageLowPrioUnreadIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageLowPrioUnreadIcon, this, EAlfTextureFlagDefault); break;
|
|
2173 |
case EMessageLowPrioUnreadIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageLowPrioUnreadIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2174 |
case EMessageHighPrioReadIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageHighPrioReadIcon, this, EAlfTextureFlagDefault); break;
|
|
2175 |
case EMessageHighPrioReadIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageHighPrioReadIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2176 |
case EMessageHighPrioUnreadIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageHighPrioUnreadIcon , this, EAlfTextureFlagDefault); break;
|
|
2177 |
case EMessageHighPrioUnreadIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageHighPrioUnreadIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2178 |
|
|
2179 |
// <cmail> Platform layout change
|
|
2180 |
//case EAttachmentIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentIcon, this, EAlfTextureFlagDefault); break;
|
|
2181 |
case EAttachmentIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentIcon, this, EAlfTextureFlagSkinContent/*EAlfTextureFlagDefault*/); break;
|
|
2182 |
// </cmail> Platform layout change
|
|
2183 |
|
|
2184 |
case EMessageUnreadForwardedIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadForwardedIcon, this, EAlfTextureFlagDefault); break;
|
|
2185 |
case EMessageUnreadForwardedIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadForwardedIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2186 |
case EMessageUnreadForwardedHighPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadForwardedHighPrioIcon, this, EAlfTextureFlagDefault); break;
|
|
2187 |
case EMessageUnreadForwardedHighPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadForwardedHighPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2188 |
case EMessageUnreadForwardedLowPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadForwardedLowPrioIcon, this, EAlfTextureFlagDefault); break;
|
|
2189 |
case EMessageUnreadForwardedLowPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadForwardedLowPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2190 |
case EMessageUnreadRepliedIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadRepliedIcon, this, EAlfTextureFlagDefault); break;
|
|
2191 |
case EMessageUnreadRepliedIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadRepliedIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2192 |
case EMessageUnreadRepliedHighPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadRepliedHighPrioIcon, this, EAlfTextureFlagDefault); break;
|
|
2193 |
case EMessageUnreadRepliedHighPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadRepliedHighPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2194 |
case EMessageUnreadRepliedLowPrioIcon: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadRepliedLowPrioIcon, this, EAlfTextureFlagDefault); break;
|
|
2195 |
case EMessageUnreadRepliedLowPrioIconAttachment: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageUnreadRepliedLowPrioIconAttachment, this, EAlfTextureFlagDefault); break;
|
|
2196 |
|
|
2197 |
// CALENDAR EVENT TEXTURES
|
|
2198 |
case EMessageCalInvitation: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitation, this,EAlfTextureFlagDefault); break;
|
|
2199 |
case EMessageCalInvitationRead: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationRead, this, EAlfTextureFlagDefault); break;
|
|
2200 |
case EMessageCalInvitationAttachments: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationAttachments, this,EAlfTextureFlagDefault); break;
|
|
2201 |
case EMessageCalInvitationReadAttachments: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationReadAttachments, this,EAlfTextureFlagDefault); break;
|
|
2202 |
case EMessageCalInvitationHighPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationHighPrio, this,EAlfTextureFlagDefault); break;
|
|
2203 |
case EMessageCalInvitationReadHighPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationReadHighPrio, this,EAlfTextureFlagDefault); break;
|
|
2204 |
case EMessageCalInvitationAttachmentsHighPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationAttachmentsHighPrio, this,EAlfTextureFlagDefault); break;
|
|
2205 |
case EMessageCalInvitationReadAttachmentsHighPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationReadAttachmentsHighPrio, this,EAlfTextureFlagDefault); break;
|
|
2206 |
case EMessageCalInvitationLowPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationLowPrio, this,EAlfTextureFlagDefault); break;
|
|
2207 |
case EMessageCalInvitationReadLowPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationReadLowPrio, this,EAlfTextureFlagDefault); break;
|
|
2208 |
case EMessageCalInvitationAttachmentsLowPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationAttachmentsLowPrio, this,EAlfTextureFlagDefault); break;
|
|
2209 |
case EMessageCalInvitationReadAttachmentsLowPrio: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationReadAttachmentsLowPrio, this,EAlfTextureFlagDefault); break;
|
|
2210 |
case EMessageCalInvitationCancelled: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EMessageCalInvitationCancelled, this,EAlfTextureFlagDefault); break;
|
|
2211 |
|
|
2212 |
// GRID TEXTURES
|
|
2213 |
case EGridInboxTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EGridInboxTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2214 |
case EGridDirectoryTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EGridDirectoryTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2215 |
case EGridSettingsTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EGridSettingsTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2216 |
case EGridAddNewBoxTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EGridAddNewBoxTexture, this,EAlfTextureFlagRetainResolution); break;
|
|
2217 |
case EGridHelpTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EGridHelpTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2218 |
case EGridAboutTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EGridAboutTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2219 |
case EGridBackground: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EGridBackground, this, EAlfTextureFlagDefault); break;
|
|
2220 |
|
|
2221 |
// FLAG ICONS
|
|
2222 |
case EFollowUpFlag: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFollowUpFlag, this, EAlfTextureFlagRetainResolution); break;
|
|
2223 |
case EFollowUpFlagComplete: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFollowUpFlagComplete, this, EAlfTextureFlagRetainResolution); break;
|
|
2224 |
case EFollowUpFlagList: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFollowUpFlagList, this, EAlfTextureFlagRetainResolution); break;
|
|
2225 |
case EFollowUpFlagCompleteList: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFollowUpFlagCompleteList, this, EAlfTextureFlagRetainResolution); break;
|
|
2226 |
|
|
2227 |
// FOLDER LIST ICONS
|
|
2228 |
case EFolderListMoreFoldersTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListMoreFoldersTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2229 |
case EFolderListInboxTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListInboxTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2230 |
case EFolderListInboxSubfoldersTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListInboxSubfoldersTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2231 |
case EFolderListOutboxTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListOutboxTexture , this, EAlfTextureFlagRetainResolution); break;
|
|
2232 |
case EFolderListDraftsTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListDraftsTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2233 |
case EFolderListSentTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListSentTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2234 |
case EFolderListDeletedItemsTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListDeletedItemsTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2235 |
case EFolderListServerFoldersTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListServerFoldersTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2236 |
case EFolderListEmailAccountTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListEmailAccountTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2237 |
|
|
2238 |
case EFolderListMoreFoldersTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListMoreFoldersTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2239 |
case EFolderListInboxTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListInboxTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2240 |
case EFolderListInboxSubfoldersTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListInboxSubfoldersTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2241 |
case EFolderListOutboxTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListOutboxTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2242 |
case EFolderListDraftsTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListDraftsTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2243 |
case EFolderListSentTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListSentTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2244 |
case EFolderListDeletedItemsTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListDeletedItemsTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2245 |
case EFolderListServerFoldersTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListServerFoldersTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2246 |
case EFolderListEmailAccountTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EFolderListEmailAccountTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2247 |
|
|
2248 |
// SORT LIST ICONS
|
|
2249 |
case ESortListAttachmentAscTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListAttachmentAscTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2250 |
case ESortListAttachmentDescTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListAttachmentDescTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2251 |
case ESortListDateAscTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListDateAscTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2252 |
case ESortListDateDescTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListDateDescTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2253 |
case ESortListFollowAscTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListFollowAscTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2254 |
case ESortListFollowDescTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListFollowDescTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2255 |
case ESortListPriorityAscTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListPriorityAscTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2256 |
case ESortListPriorityDescTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListPriorityDescTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2257 |
case ESortListSenderAscTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSenderAscTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2258 |
case ESortListSenderDescTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSenderDescTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2259 |
case ESortListSubjectAscTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSubjectAscTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2260 |
case ESortListSubjectDescTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSubjectDescTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2261 |
case ESortListUnreadAscTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListUnreadAscTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2262 |
case ESortListUnreadDescTexture: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListUnreadDescTexture, this, EAlfTextureFlagRetainResolution); break;
|
|
2263 |
|
|
2264 |
// SORT LIST ICONS POPUP
|
|
2265 |
case ESortListAttachmentAscTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListAttachmentAscTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2266 |
case ESortListAttachmentDescTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListAttachmentDescTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2267 |
case ESortListDateAscTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListDateAscTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2268 |
case ESortListDateDescTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListDateDescTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2269 |
case ESortListFollowAscTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListFollowAscTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2270 |
case ESortListFollowDescTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListFollowDescTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2271 |
case ESortListPriorityAscTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListPriorityAscTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2272 |
case ESortListPriorityDescTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListPriorityDescTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2273 |
case ESortListSenderAscTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSenderAscTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2274 |
case ESortListSenderDescTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSenderDescTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2275 |
case ESortListSubjectAscTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSubjectAscTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2276 |
case ESortListSubjectDescTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListSubjectDescTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2277 |
case ESortListUnreadAscTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListUnreadAscTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2278 |
case ESortListUnreadDescTexturePopup: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( ESortListUnreadDescTexturePopup, this, EAlfTextureFlagRetainResolution); break;
|
|
2279 |
|
|
2280 |
// STATUS INDICATOR ICONS
|
|
2281 |
case EStatusTextureSynchronising: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EStatusTextureSynchronising, this, EAlfTextureFlagRetainResolution); break;
|
|
2282 |
case EStatusTextureConnected: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EStatusTextureConnected, this, EAlfTextureFlagRetainResolution); break;
|
|
2283 |
case EStatusTextureConnecting: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EStatusTextureConnecting, this, EAlfTextureFlagRetainResolution); break;
|
|
2284 |
case EStatusTextureDisconnectedGeneral: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EStatusTextureDisconnectedGeneral, this, EAlfTextureFlagRetainResolution); break;
|
|
2285 |
case EStatusTextureDisconnectedError: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EStatusTextureDisconnectedError, this, EAlfTextureFlagRetainResolution); break;
|
|
2286 |
case EStatusTextureDisconnectedLowBattery: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EStatusTextureDisconnectedLowBattery, this, EAlfTextureFlagRetainResolution); break;
|
|
2287 |
case EStatusTextureMailSent: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EStatusTextureMailSent, this, EAlfTextureFlagRetainResolution); break;
|
|
2288 |
|
|
2289 |
// VIEWER TEXTURES
|
|
2290 |
case EViewerTextureHeaderBackGround:
|
|
2291 |
{
|
|
2292 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EViewerTextureHeaderBackGround, this, TAlfTextureFlags(EAlfTextureFlagRetainResolution|EAlfTextureFlagSkinContent)); // CHECKLATER - the EAlfTextureFlagSkinContent flag (instead of EAlfTextureFlagDefault) replaces the SetSkinContent command, also added two flags, do they work like this?
|
|
2293 |
}
|
|
2294 |
break;
|
|
2295 |
case EViewerHighlightTexture:
|
|
2296 |
{
|
|
2297 |
iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EViewerHighlightTexture, this, TAlfTextureFlags(EAlfTextureFlagRetainResolution|EAlfTextureFlagSkinContent)); // CHECKLATER - the EAlfTextureFlagSkinContent flag (instead of EAlfTextureFlagDefault) replaces the SetSkinContent command, also added two flags, do they work like this?
|
|
2298 |
}
|
|
2299 |
break;
|
|
2300 |
// ATTACHMENT TEXTURES
|
|
2301 |
case EAttachmentsDocFile: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsDocFile, this, EAlfTextureFlagRetainResolution); break;
|
|
2302 |
case EAttachmentsHtmlFile: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsHtmlFile, this, EAlfTextureFlagRetainResolution); break;
|
|
2303 |
case EAttachmentsImageFile: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsImageFile, this, EAlfTextureFlagRetainResolution); break;
|
|
2304 |
case EAttachmentsNotDownloaded: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsNotDownloaded, this, EAlfTextureFlagRetainResolution); break;
|
|
2305 |
case EAttachmentsPptFile: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsPptFile, this, EAlfTextureFlagRetainResolution); break;
|
|
2306 |
case EAttachmentsRtfFile: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsRtfFile, this, EAlfTextureFlagRetainResolution); break;
|
|
2307 |
case EAttachmentsUnknownFile: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsUnknownFile, this, EAlfTextureFlagRetainResolution); break;
|
|
2308 |
case EAttachmentsXls: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsXls, this, EAlfTextureFlagRetainResolution); break;
|
|
2309 |
case EAttachmentsPdfFile: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsPdfFile, this, EAlfTextureFlagRetainResolution); break;
|
|
2310 |
|
|
2311 |
case EAttachmentsCancelDownload: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsCancelDownload, this, EAlfTextureFlagRetainResolution); break;
|
|
2312 |
case EAttachmentsDownload: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsDownload, this, EAlfTextureFlagRetainResolution); break;
|
|
2313 |
case EAttachmentsSaveAll: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsSaveAll, this, EAlfTextureFlagRetainResolution); break;
|
|
2314 |
case EAttachmentsCancelAll: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsCancelAll, this, EAlfTextureFlagRetainResolution); break;
|
|
2315 |
case EAttachmentsViewAll: iTextures[aTextureId] = &CAlfStatic::Env().TextureManager().CreateTextureL( EAttachmentsViewAll, this, EAlfTextureFlagRetainResolution); break;
|
|
2316 |
default:
|
|
2317 |
// Branded mailbox icons
|
|
2318 |
if ( aTextureId >= EBrandedIconStart && aTextureId <= EBrandedIconEnd )
|
|
2319 |
{
|
|
2320 |
iBrandedMailboxIcons.Append( &CAlfStatic::Env().TextureManager().CreateTextureL( aTextureId, this, EAlfTextureFlagRetainResolution ) );
|
|
2321 |
}
|
|
2322 |
break;
|
|
2323 |
}
|
|
2324 |
}
|
|
2325 |
|