source: trunk/hiptop/pester/locale/en_US/Pester.rsrc@ 474

Last change on this file since 474 was 298, checked in by Nicholas Riley, 18 years ago

Fix problems with alert sound playing: stop if user hits any key; don't auto-enter keyguard while sound is playing.

File size: 6.7 KB
RevLine 
[237]1# -*- coding: utf-8 -*-
2
3package "net.sabi.pester"
4
5interface "{source}net/sabi/pester/Resources.java"
6events "{source}net/sabi/pester/Commands.java"
7
8string ID_APP_NAME "Pester"
9string ID_APP_CLASS "net.sabi.pester.Pester"
[247]10string ID_APP_FLAGS "L"
[245]11string ID_CHOOSER_CATEGORY "pim"
[237]12string ID_LOCALE "en_US"
13
14bitmap ID_LARGE_ICON "{base}LargeIcon.png"
15bitmap ID_SMALL_ICON "{base}SmallIcon.png"
16
17bitmap ID_SPLASH_SCREEN_NO_TITLE "{base}SplashScreenTransparent.png"
18
19string ID_VERSION "V@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@"
20
[250]21int EVENT_CANCEL_ALARM 1
[251]22int EVENT_DATE_EDITOR_TOOK_FOCUS 2
[250]23
[237]24splashScreen ID_SPLASH_SCREEN_RESOURCE
25 image
26 bitmap = ID_SPLASH_SCREEN_NO_TITLE
27 alignWithParentTop = 0
28 alignWithParentLeft = 0
29 staticTextBox
30 text = ID_APP_NAME
31 alignWithParentLeft = 2
32 alignWithParentTop = 0
33 fillToRight = 2
34 transparent
35 doesNotHaveBorder
36endSplashScreen
37
38menu ID_ALARM_LIST_MENU
39 menuItem
[261]40 title = "New Alarm..."
[237]41 shortcut = 'N'
42 icon = soundIcon
43 event = EVENT_NEW_ALARM
44
45 divider
46
47 menuItem
48 id = ID_DISCARD_ITEM
49 title = "Discard"
50 shortcut = deleteKey
[278]51 event = EVENT_DISCARD_ALARM
[293]52
53 divider
54
55 menuItem
56 id = ID_ABOUT_ITEM
57 title = "About"
58 event = EVENT_ABOUT
[237]59endMenu
60screen ID_ALARM_LIST_SCREEN
61 title = "Pester"
62 actionMenu = ID_ALARM_LIST_MENU
63 className = "net.sabi.pester.AlarmListWindow"
[289]64
[237]65 icon = ID_SMALL_ICON
66
[289]67 image
68 bitmap = ID_SPLASH_SCREEN_NO_TITLE
69 alpha = 127
70 alignWithParentBottom = -48
71 alignWithParentRight = -48
72
[237]73 activeListView
74 id = ID_ALARM_LIST_VIEW
75 alignWithParentLeft = 0
76 alignWithParentTop = 0
77 initialFocus
78 widthPct = 100
[289]79 heightPct = 100
[237]80 itemHeight = 12
81 className = "net.sabi.pester.AlarmListView"
[289]82 doesNotHaveBorder
83 transparent
84
[237]85endScreen
[238]86
87menu ID_PERIOD_UNITS_MENU
88 menuItem
89 title = "second(s)"
[251]90 event = EVENT_VALIDATE
[241]91 eventData = 1
[238]92 menuItem
93 title = "minute(s)"
[251]94 event = EVENT_VALIDATE
[241]95 eventData = 60
[238]96 menuItem
97 title = "hour(s)"
[251]98 event = EVENT_VALIDATE
[241]99 eventData = 3600
[293]100 menuItem
101 title = "day(s)"
102 event = EVENT_VALIDATE
103 eventData = 86400
[238]104endMenu
105
[237]106dialog ID_ALARM_SET_DIALOG
107 title = "Set Alarm"
108 showCancel
[250]109 className = "net.sabi.pester.AlarmSetDialog"
[237]110 widthPct = 100
[244]111 centerUnderTitleBar
[237]112
113 staticText
114 text = "Message"
115 id = ID_MESSAGE_LABEL
116 alignWithParentTop = 3
117 alignWithParentLeft = 5
118 justifyRight
119 font = boldSysFont
120
121 typeAheadTextField
122 id = ID_MESSAGE_FIELD
[251]123 event = EVENT_VALIDATE
[237]124 autoCap
125 initiallySelectAll
126 initialFocus
[242]127 alignBaseline = ID_MESSAGE_LABEL
128 positionToRight = ID_MESSAGE_LABEL : 3
129 fillToRight = 0
[237]130
[239]131 groupBox
132 id = ID_IN_GROUP
133 onOffControl = ID_IN_BUTTON
134 onOffControlLeftPosition
135 positionBelow = ID_MESSAGE_LABEL : 7
136 fillToRight = 0
137 height = 22
[238]138
[239]139 radioButton
140 id = ID_IN_BUTTON
141 title = "In"
142 event = EVENT_IN
143
144 numberEditor
145 id = ID_PERIOD_FIELD
[251]146 event = EVENT_VALIDATE
[239]147 dontWrap
148 minValue = 1
149 maxValue = 99
150 alignBaseline = ID_IN_BUTTON
151 positionToRight = ID_IN_BUTTON : 1
[253]152 className = "net.sabi.pester.EventfulNumberEditor"
[239]153
154 popupMenu
155 id = ID_PERIOD_UNITS_POPUP
156 menu = ID_PERIOD_UNITS_MENU
157 alignBaseline = ID_PERIOD_FIELD
158 positionToRight = ID_PERIOD_FIELD : 1
159
160 checkBox
[240]161 id = ID_PERIOD_REPEAT_CHECKBOX
[239]162 title = "Repeat"
163 alignBaseline = ID_PERIOD_UNITS_POPUP
164 positionToRight = ID_PERIOD_UNITS_POPUP : 3
165 endGroupBox
[238]166
[239]167 groupBox
168 id = ID_AT_GROUP
169 onOffControl = ID_AT_BUTTON
170 onOffControlLeftPosition
171 positionBelow = ID_IN_GROUP : 3
172 fillToRight = 0
173 height = 22
[238]174
[239]175 radioButton
176 title = "At"
177 id = ID_AT_BUTTON
178 event = EVENT_AT
179
180 dateEditor
181 id = ID_TIME_EDITOR
182 longTimeFormat
[240]183 event = EVENT_TIME_EDITOR
[239]184 alignBaseline = ID_AT_BUTTON
185 positionToRight = ID_AT_BUTTON : 1
[280]186
[239]187 dateEditor
188 id = ID_DATE_EDITOR
[240]189 event = EVENT_DATE_EDITOR
[239]190 positionToRight = ID_TIME_EDITOR : 1
191 alignBaseline = ID_TIME_EDITOR
[251]192 className = "net.sabi.pester.AlarmDateEditor"
[280]193 positionDynamically # can move if time format changes
[239]194
195 datePicker
196 id = ID_DATE_PICKER
[240]197 event = EVENT_DATE_PICKER
[239]198 positionToRight = ID_DATE_EDITOR : 1
199 alignTop = ID_DATE_EDITOR
[280]200 positionDynamically # can move if time format changes
[239]201 endGroupBox
[244]202
203 staticText
204 text = "Alert"
205 id = ID_ALERT_LABEL
206 justifyRight
207 font = boldSysFont
208 positionBelow = ID_AT_GROUP : 5
209 alignRight = ID_MESSAGE_LABEL
210
211 ringTonePicker
212 id = ID_ALERT_PICKER
213 # alignBaseline = ID_ALERT_LABEL
214 positionBelow = ID_AT_GROUP : 3
215 positionToRight = ID_ALERT_LABEL : 3
216 fillToRight = 0
217
[237]218 button
[238]219 id = ID_DISCARD_ALARM_BUTTON
[242]220 event = EVENT_DISCARD_ALARM
[238]221 position = buttonTop2
[278]222 title = discardButton
[238]223
224 button
[240]225 id = ID_SET_ALARM_BUTTON
[242]226 event = EVENT_SET_ALARM
[237]227 position = buttonBottom1
228 title = "Set"
229 shortcut = doneButton
230endDialog
[242]231
[296]232string ID_SNOOZE_LABEL_LEFT "Snooze for"
233string ID_SNOOZE_LABEL_RIGHT "minute(s)"
234
235alert ID_ALARM_ALERT
[242]236 systemDialog
237 title = "Alarm"
238 icon = ID_LARGE_ICON
239 font = "BortBold12"
240 text = "Alarm!"
[298]241 className = "net.sabi.pester.AlarmAlertWindow"
242
[242]243 button
[287]244 id = ID_SNOOZE_BUTTON
[278]245 event = EVENT_SNOOZE_ALARM
246 title = "Snooze"
[287]247 position = buttonBottom2
[278]248 shortcut = cancelButton
249 button
[296]250 id = ID_RESCHEDULE_BUTTON
[278]251 event = EVENT_SET_ALARM
[280]252 title = "Reschedule..."
[287]253 position = buttonBottom3
[278]254 button
[296]255 id = ID_DISMISS_BUTTON
[242]256 event = EVENT_DISMISS_ALARM
[260]257 title = okButton
[242]258 position = buttonBottom1
259 shortcut = doneButton
[296]260endAlert
[260]261
[294]262alert ID_LIMIT_ALERT
263 appAlertStyle
264 title = "Alarm Limit"
265 text = "You have reached the limit of ^0 alarms. You must delete an alarm (or wait for it to expire) before creating another alarm."
266 button
267 title = okButton
268 position = buttonBottom1
269 shortcut = doneButton
270endAlert
271
[260]272alert ID_DISCARD_ALERT
273 appAlertStyle
274 title = "Discard Alarm?"
275 icon = stopIcon
[295]276 text = "Permanently discard \u201c^0\u201d?"
[260]277 button
[278]278 event = EVENT_CONFIRM_DISCARD
[260]279 title = discardButton
280 position = buttonBottom2
281 button
[278]282 event = EVENT_CANCEL_DISCARD
[260]283 title = backButton
284 position = buttonBottom1
285 shortcut = doneButton
286endAlert
[283]287
288stringArray ID_ALARM_MESSAGES
289 "Bus"
[290]290 "Class"
[283]291 "Dinner"
292 "Exercise"
293 "Go home"
[290]294 "Go to school"
295 "Go to work"
[283]296 "Laundry"
297 "Lunch"
298 "Meeting"
299 "Sleep"
300 "Train"
301 "Wake up"
302endStringArray
[293]303
304data compress ID_ABOUT_TEXT 257 "about.txt"
305string ID_SUPPORT_EMAIL "pester@sabi.net"
306
307dialog ID_ABOUT_DIALOG
308 title = "About Pester"
309 doneEvent = EVENT_ABOUT_DONE
310 doneIsDefault
311 widthPct = 100
312 heightPct = 100
313
314 staticTextBox
315 id = ID_ABOUT_TEXT_BOX
316 className = "danger.ui.LinkTextBox"
317 alignWithParentTop = 0
318 alignWithParentLeft = 3
319 fillToRight = 3
320 fillToBottom = 0
321 initialFocus
322 doesNotHaveBorder
323
324 scrollBar
325 id = ID_ABOUT_TEXT_SCROLLBAR
326 alignWithParentTop = 0
327 alignWithParentRight = 0
328 fillToBottom = 0
329 floating
330endDialog
Note: See TracBrowser for help on using the repository browser.