1 /* |
|
2 * Copyright (c) 2002 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: LandmarksUi Content File - |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef LMKICONDIALOG_H |
|
26 #define LMKICONDIALOG_H |
|
27 |
|
28 #include <AknDialog.h>// <eikdialg.h> |
|
29 |
|
30 /** |
|
31 * Change Icon table for LandmarksUi.Contains all the icon available |
|
32 */ |
|
33 NONSHARABLE_CLASS(CLmkIconMapDialog) : public CAknDialog |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * LandmarksUi change Icon table constructor. |
|
39 * |
|
40 * @param aIconIndex contains the reference of the integer, |
|
41 * which will give the selected Index. |
|
42 * |
|
43 */ |
|
44 CLmkIconMapDialog( TInt& aIconIndex ); |
|
45 |
|
46 /** |
|
47 * LandmarksUi change Icon table desstructor. |
|
48 * |
|
49 * C++ destructor |
|
50 */ |
|
51 ~CLmkIconMapDialog(); |
|
52 |
|
53 public: // from CEikDialog |
|
54 |
|
55 /** |
|
56 * Prepares and runs the dialog and returns the id of the button used to dismiss |
|
57 * it. The dialog is constructed from the resource with id aResourceId and is destroyed |
|
58 * on exit. |
|
59 * |
|
60 * @param aResourceId Resource id for icon table dialog resource. |
|
61 * @return Id of the button used to dismiss dialog. |
|
62 * |
|
63 */ |
|
64 TInt ExecuteLD(TInt aResourceId); |
|
65 |
|
66 #ifdef RD_SCALABLE_UI_V2 |
|
67 //From MCoeControlObserver |
|
68 void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); |
|
69 void HandleDialogPageEventL(TInt aEventID); |
|
70 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
71 |
|
72 #endif //RD_SCALABLE_UI_V2 |
|
73 |
|
74 public: // from CCoeControl |
|
75 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode); |
|
76 |
|
77 /** |
|
78 * Handles a change to the control's resources of type aType |
|
79 * which are shared across the environment, e.g. colors or fonts. |
|
80 * |
|
81 * @since ER5U |
|
82 */ |
|
83 void HandleResourceChange(TInt aType); |
|
84 |
|
85 /** |
|
86 * CreateCustomControlL(TInt aControlType) |
|
87 * Virtual function of base class has to be overriden to create |
|
88 * a custom controll |
|
89 */ |
|
90 SEikControlInfo CreateCustomControlL(TInt aControlType); |
|
91 |
|
92 protected: // from CEikDialog |
|
93 /** |
|
94 * OkToExitL(TInt) |
|
95 */ |
|
96 virtual TBool OkToExitL(TInt); |
|
97 |
|
98 /** |
|
99 * PreLayoutDynInitL() |
|
100 */ |
|
101 virtual void PreLayoutDynInitL(); |
|
102 |
|
103 /** |
|
104 * PostLayoutDynInitL() |
|
105 */ |
|
106 virtual void PostLayoutDynInitL(); |
|
107 /** |
|
108 * SetSizeAndPosition(const TSize& aSize) |
|
109 */ |
|
110 virtual void SetSizeAndPosition(const TSize& aSize); |
|
111 |
|
112 private: |
|
113 virtual void CEikDialog_Reserved_1(); |
|
114 virtual void CEikDialog_Reserved_2(); |
|
115 |
|
116 private: // new function |
|
117 virtual void CAknIconMapDialog_Reserved(); |
|
118 |
|
119 private: // helpers |
|
120 void DoLayout(); |
|
121 |
|
122 private: |
|
123 TInt* iIconIndex; |
|
124 #ifdef RD_SCALABLE_UI_V2 |
|
125 TBool iConSelected; |
|
126 #endif //#ifdef RD_SCALABLE_UI_V2 |
|
127 }; |
|
128 |
|
129 #endif // LMKICONDIALOG_H |
|