66
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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: This file contains the resources for alarm editor
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// System includes
|
|
19 |
#include <clockalarmeditor.loc>
|
|
20 |
|
|
21 |
// Resource definitions
|
|
22 |
// ---------------------------------------------------------
|
|
23 |
// r_qtn_clock_alarm_editor_desc_default
|
|
24 |
// Resource for string "Alarm"
|
|
25 |
// ---------------------------------------------------------
|
|
26 |
//
|
|
27 |
RESOURCE TBUF r_qtn_clock_alarm_editor_desc_default
|
|
28 |
{
|
|
29 |
buf = qtn_clk_alarm_description_default;
|
|
30 |
}
|
|
31 |
|
|
32 |
// Resource definitions
|
|
33 |
// ---------------------------------------------------------
|
|
34 |
// r_qtn_clock_alarm_editor_text_occu
|
|
35 |
// Resource for string "Occurance"
|
|
36 |
// ---------------------------------------------------------
|
|
37 |
//
|
|
38 |
RESOURCE TBUF r_qtn_clock_alarm_editor_text_occu
|
|
39 |
{
|
|
40 |
buf = qtn_clk_alarm_occur;
|
|
41 |
}
|
|
42 |
|
|
43 |
// Resource definitions
|
|
44 |
// ---------------------------------------------------------
|
|
45 |
// r_qtn_clock_alarm_editor_text_almday
|
|
46 |
// Resource for string "Alarm Day"
|
|
47 |
// ---------------------------------------------------------
|
|
48 |
//
|
|
49 |
RESOURCE TBUF r_qtn_clock_alarm_editor_text_almday
|
|
50 |
{
|
|
51 |
buf = qtn_clk_alarm_edit_day;
|
|
52 |
}
|
|
53 |
|
|
54 |
// ---------------------------------------------------------
|
|
55 |
// r_qtn_clock_alarm_editor_label_text_almday
|
|
56 |
// Resource for string "Alarm Day"
|
|
57 |
// ---------------------------------------------------------
|
|
58 |
//
|
|
59 |
RESOURCE TBUF r_qtn_clock_alarm_editor_label_text_almday
|
|
60 |
{
|
|
61 |
buf = qtn_clk_alarm_label_day;
|
|
62 |
}
|
|
63 |
|
|
64 |
// ---------------------------------------------------------
|
|
65 |
// r_qtn_clock_alarm_editor_label_text_occu
|
|
66 |
// Resource for string "Occurance"
|
|
67 |
// ---------------------------------------------------------
|
|
68 |
//
|
|
69 |
RESOURCE TBUF r_qtn_clock_alarm_editor_label_text_occu
|
|
70 |
{
|
|
71 |
buf = qtn_clk_alarm_label_occur;
|
|
72 |
}
|
|
73 |
|
|
74 |
|
|
75 |
// Resource definitions
|
|
76 |
// ---------------------------------------------------------
|
|
77 |
// r_qtn_clock_alarm_editor_title
|
|
78 |
// Resource for string "Alarm"
|
|
79 |
// ---------------------------------------------------------
|
|
80 |
//
|
|
81 |
RESOURCE TBUF r_qtn_clock_alarm_editor_title
|
|
82 |
{
|
|
83 |
buf = qtn_clk_title_create_alarm;
|
|
84 |
}
|
|
85 |
|
|
86 |
// Resource definitions
|
|
87 |
// ---------------------------------------------------------
|
|
88 |
// r_clock_alarm_editor_occu_array
|
|
89 |
// Holds the array of occurance strings.
|
|
90 |
// ---------------------------------------------------------
|
|
91 |
//
|
|
92 |
RESOURCE ARRAY r_clock_alarm_editor_occu_array
|
|
93 |
{
|
|
94 |
items =
|
|
95 |
{
|
|
96 |
LBUF { txt = qtn_clk_alarm_occ_once; },
|
|
97 |
LBUF { txt = text_calendar_every_day; },
|
|
98 |
LBUF { txt = qtn_clk_alarm_occ_workd; },
|
|
99 |
LBUF { txt = text_calendar_every_week; }
|
|
100 |
};
|
|
101 |
}
|
|
102 |
|
|
103 |
// Resource definitions
|
|
104 |
// ---------------------------------------------------------
|
|
105 |
// r_clock_alarm_editor_cba
|
|
106 |
// The button group of the alarm editor.
|
|
107 |
// ---------------------------------------------------------
|
|
108 |
//
|
|
109 |
RESOURCE CBA r_clock_alarm_editor_cba
|
|
110 |
{
|
|
111 |
buttons =
|
|
112 |
{
|
|
113 |
CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option; },
|
|
114 |
CBA_BUTTON { id = EAknSoftkeyDone; txt = text_softkey_done; },
|
|
115 |
CBA_BUTTON { id = EAknSoftkeyChange; txt = qtn_options_change; }
|
|
116 |
};
|
|
117 |
}
|
|
118 |
|
|
119 |
// Resource definitions
|
|
120 |
// ---------------------------------------------------------
|
|
121 |
// r_clock_alarmday_popup_line
|
|
122 |
// The alarm day popup dialog line in alarm editor.
|
|
123 |
// ---------------------------------------------------------
|
|
124 |
//
|
|
125 |
RESOURCE DLG_LINE r_clock_alarmday_popup_line
|
|
126 |
{
|
|
127 |
//Single click integration
|
|
128 |
type = EAknCtPopupFieldText;
|
|
129 |
|
|
130 |
id = EControlAlarmDayPopup;
|
|
131 |
prompt = qtn_clk_alarm_label_day;
|
|
132 |
itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
|
|
133 |
//Single click integration
|
|
134 |
control = POPUP_FIELD_TEXT
|
|
135 |
{
|
|
136 |
popupfield = POPUP_FIELD
|
|
137 |
{
|
|
138 |
width = 50;
|
|
139 |
};
|
|
140 |
textarray = r_clock_week_days_array;
|
|
141 |
};
|
|
142 |
|
|
143 |
}
|
|
144 |
|
|
145 |
|
|
146 |
|
|
147 |
// Resource definitions
|
|
148 |
// ---------------------------------------------------------
|
|
149 |
// r_clock_alarm_editor_popup_list
|
|
150 |
// The alarm editor popup list resource.
|
|
151 |
// ---------------------------------------------------------
|
|
152 |
//
|
|
153 |
RESOURCE POPUP_SETTING_LIST r_clock_alarm_editor_popup_list
|
|
154 |
{
|
|
155 |
flags = 0;
|
|
156 |
}
|
|
157 |
|
|
158 |
// Resource definitions
|
|
159 |
// ---------------------------------------------------------
|
|
160 |
// r_clock_alarm_editor_form
|
|
161 |
// The alarm editor form resource.
|
|
162 |
// ---------------------------------------------------------
|
|
163 |
//
|
|
164 |
RESOURCE FORM r_clock_alarm_editor_form
|
|
165 |
{
|
|
166 |
flags = EEikFormShowEmptyFields |
|
|
167 |
EEikFormEditModeOnly |
|
|
168 |
EEikFormUseDoubleSpacedFormat;
|
|
169 |
items =
|
|
170 |
{
|
|
171 |
DLG_LINE // Alarm time editor.
|
|
172 |
{
|
|
173 |
type = EEikCtTimeEditor;
|
|
174 |
id = EControlTimeEditor;
|
|
175 |
prompt = qtn_cale_note_meeting_alarm;
|
|
176 |
itemflags = EEikDlgItemTakesEnterKey |
|
|
177 |
EEikDlgItemOfferAllHotKeys |
|
|
178 |
EEikDlgItemSeparatorAfter;
|
|
179 |
control = TIME_EDITOR
|
|
180 |
{
|
|
181 |
minTime = TIME{ second = 0; minute = 0; hour = 0; };
|
|
182 |
maxTime = TIME{ second = 59; minute = 59; hour = 23; };
|
|
183 |
flags = EEikTimeWithoutSecondsField;
|
|
184 |
};
|
|
185 |
},
|
|
186 |
DLG_LINE // Alarm description editor.
|
|
187 |
{
|
|
188 |
type = EEikCtEdwin;
|
|
189 |
id = EControlTextEditor;
|
|
190 |
prompt = qtn_clk_alarm_description;
|
|
191 |
itemflags = EEikDlgItemTakesEnterKey |
|
|
192 |
EEikDlgItemOfferAllHotKeys |
|
|
193 |
EEikDlgItemSeparatorAfter;
|
|
194 |
control = EDWIN
|
|
195 |
{
|
|
196 |
maxlength = 128;
|
|
197 |
max_view_height_in_lines = 5;
|
|
198 |
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
|
|
199 |
};
|
|
200 |
},
|
|
201 |
//Single click integration
|
|
202 |
DLG_LINE
|
|
203 |
{
|
|
204 |
type = EAknCtPopupFieldText;
|
|
205 |
prompt = qtn_clk_alarm_label_occur;
|
|
206 |
id = EControlOccurancePopup;
|
|
207 |
itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
|
|
208 |
control = POPUP_FIELD_TEXT
|
|
209 |
{
|
|
210 |
popupfield = POPUP_FIELD
|
|
211 |
{
|
|
212 |
width = 50;
|
|
213 |
};
|
|
214 |
textarray = r_clock_alarm_editor_occu_array;
|
|
215 |
};
|
|
216 |
},
|
|
217 |
DLG_LINE
|
|
218 |
{
|
|
219 |
type = EAknCtPopupFieldText;
|
|
220 |
prompt = qtn_clk_alarm_label_day;
|
|
221 |
id = EControlAlarmDayPopup;
|
|
222 |
itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
|
|
223 |
control = POPUP_FIELD_TEXT
|
|
224 |
{
|
|
225 |
popupfield = POPUP_FIELD
|
|
226 |
{
|
|
227 |
width = 50;
|
|
228 |
};
|
|
229 |
textarray = r_clock_week_days_array;
|
|
230 |
};
|
|
231 |
}
|
|
232 |
|
|
233 |
};
|
|
234 |
}
|
|
235 |
|
|
236 |
// Resource definitions
|
|
237 |
// ---------------------------------------------------------
|
|
238 |
// r_clock_alarm_editor
|
|
239 |
// The alarm editor resource.
|
|
240 |
// ---------------------------------------------------------
|
|
241 |
//
|
|
242 |
RESOURCE DIALOG r_clock_alarm_editor
|
|
243 |
{
|
|
244 |
flags = EEikDialogFlagNoDrag |
|
|
245 |
EEikDialogFlagFillAppClientRect |
|
|
246 |
EEikDialogFlagButtonsRight |
|
|
247 |
EEikDialogFlagNoBorder |
|
|
248 |
EEikDialogFlagWait |
|
|
249 |
EEikDialogFlagCbaButtons;
|
|
250 |
buttons = R_AVKON_SOFTKEYS_OPTIONS_DONE;
|
|
251 |
form = r_clock_alarm_editor_form;
|
|
252 |
}
|
|
253 |
|
|
254 |
// Resource definitions
|
|
255 |
// ---------------------------------------------------------
|
|
256 |
// r_clock_alarm_editor_menubar
|
|
257 |
// The alarm editor menubar.
|
|
258 |
// ---------------------------------------------------------
|
|
259 |
//
|
|
260 |
RESOURCE MENU_BAR r_clock_alarm_editor_menubar
|
|
261 |
{
|
|
262 |
titles =
|
|
263 |
{
|
|
264 |
MENU_TITLE { menu_pane = r_clock_alarm_editor_menupane; }
|
|
265 |
};
|
|
266 |
}
|
|
267 |
|
|
268 |
// Resource definitions
|
|
269 |
// ---------------------------------------------------------
|
|
270 |
// r_clock_alarm_editor_menupane
|
|
271 |
// The alarm editor menupane.
|
|
272 |
// ---------------------------------------------------------
|
|
273 |
//
|
|
274 |
RESOURCE MENU_PANE r_clock_alarm_editor_menupane
|
|
275 |
{
|
|
276 |
items =
|
|
277 |
{
|
|
278 |
MENU_ITEM { command = EClockAlarmChange; txt = qtn_options_change; },
|
|
279 |
MENU_ITEM { command = EClockAlarmDiscardChanges; txt = qtn_alarm_editor_options_discard_chg; },
|
|
280 |
MENU_ITEM { command = EClockAlarmDelete; txt = qtn_alarm_editor_options_delete; },
|
|
281 |
MENU_ITEM { command = EClockAlarmHelp; txt = qtn_options_help; },
|
|
282 |
MENU_ITEM { command = EClockAlarmExit; txt = qtn_options_exit; }
|
|
283 |
};
|
|
284 |
}
|
|
285 |
|
|
286 |
// End of file
|