|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 // RESOURCE IDENTIFIER |
|
19 NAME HEWB // 4 letter ID |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <eikon.rh> |
|
24 #include <avkon.rh> |
|
25 #include <avkon.rsg> |
|
26 #include <appinfo.rh> |
|
27 #include "HelloWorldBasic.hrh" |
|
28 #include "HelloWorldBasic1.rls" |
|
29 |
|
30 // RESOURCE DEFINITIONS |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 // Define the resource file signature |
|
34 // This resource should be empty. |
|
35 // |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 RESOURCE RSS_SIGNATURE |
|
39 { |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 // Default Document Name |
|
45 // |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 RESOURCE TBUF r_default_document_name |
|
49 { |
|
50 buf="HEWB"; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 // Define default menu and CBA key. |
|
56 // |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 RESOURCE EIK_APP_INFO |
|
60 { |
|
61 menubar = r_helloworldbasic_menubar; |
|
62 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
63 } |
|
64 |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 // r_helloworldbasic_menubar |
|
69 // Menubar for HelloWorldBasic example |
|
70 // |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 RESOURCE MENU_BAR r_helloworldbasic_menubar |
|
74 { |
|
75 titles = |
|
76 { |
|
77 MENU_TITLE { menu_pane = r_helloworldbasic_menu; } |
|
78 }; |
|
79 } |
|
80 |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 // r_helloworldbasic_menu |
|
85 // Menu for "Options" |
|
86 // |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 RESOURCE MENU_PANE r_helloworldbasic_menu |
|
90 { |
|
91 items = |
|
92 { |
|
93 // added the new Options menu command here |
|
94 MENU_ITEM |
|
95 { |
|
96 command = EHelloWorldBasicCommand1; |
|
97 txt = STRING_r_hewb_command1; |
|
98 }, |
|
99 MENU_ITEM |
|
100 { |
|
101 command = EHelloWorldBasicCommand2; |
|
102 txt = STRING_r_hewb_command2; |
|
103 }, |
|
104 MENU_ITEM |
|
105 { |
|
106 command = EHelloWorldBasicCommand3; |
|
107 txt = STRING_r_hewb_command3; |
|
108 }, |
|
109 MENU_ITEM |
|
110 { |
|
111 command = EAknSoftkeyExit; |
|
112 txt = STRING_r_hewb_exit; |
|
113 } |
|
114 }; |
|
115 } |
|
116 |
|
117 // ----------------------------------------------------------------------------- |
|
118 // |
|
119 // Resources for messages. |
|
120 // |
|
121 // ----------------------------------------------------------------------------- |
|
122 // |
|
123 RESOURCE TBUF32 r_hewb_command1_text { buf=STRING_r_hewb_command1_text; } |
|
124 RESOURCE TBUF32 r_hewb_file_text { buf=STRING_r_hewb_file_text; } |
|
125 RESOURCE TBUF32 r_hewb_caption_string { buf=STRING_r_hewb_caption_string; } |
|
126 |
|
127 // ---------------------------------------------------------------------------- |
|
128 // |
|
129 // r_helloworldbasic_localisable_app_info |
|
130 // |
|
131 // ---------------------------------------------------------------------------- |
|
132 // |
|
133 RESOURCE LOCALISABLE_APP_INFO r_helloworldbasic_localisable_app_info |
|
134 { |
|
135 short_caption = STRING_r_hewb_caption_string; |
|
136 caption_and_icon = |
|
137 CAPTION_AND_ICON_INFO |
|
138 { |
|
139 caption = STRING_r_hewb_caption_string; |
|
140 |
|
141 number_of_icons = 1; |
|
142 icon_file = "\\resource\\apps\\Helloworldbasic1_aif.mif"; |
|
143 }; |
|
144 } |
|
145 |
|
146 // ---------------------------------------------------------------------------- |
|
147 // |
|
148 // r_dialog_text_edit_query |
|
149 // |
|
150 // ---------------------------------------------------------------------------- |
|
151 // |
|
152 RESOURCE DIALOG r_dialog_text_edit_query |
|
153 { |
|
154 flags = EGeneralQueryFlags; |
|
155 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
156 items = |
|
157 { |
|
158 DLG_LINE |
|
159 { |
|
160 type = EAknCtQuery; |
|
161 id = EGeneralQuery; |
|
162 control = AVKON_DATA_QUERY |
|
163 { |
|
164 layout = EDataLayout; |
|
165 label = ""; |
|
166 control = EDWIN |
|
167 { |
|
168 width = 32; |
|
169 maxlength = 32; |
|
170 lines = 1; |
|
171 }; |
|
172 }; |
|
173 } |
|
174 }; |
|
175 } |
|
176 // End of File |
|
177 |