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