[237] | 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"
|
---|
[247] | 10 | string ID_APP_FLAGS "L"
|
---|
[245] | 11 | string ID_CHOOSER_CATEGORY "pim"
|
---|
[237] | 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 |
|
---|
[250] | 21 | int EVENT_CANCEL_ALARM 1
|
---|
[251] | 22 | int EVENT_DATE_EDITOR_TOOK_FOCUS 2
|
---|
[250] | 23 |
|
---|
[237] | 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
|
---|
[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
|
---|
[237] | 52 | endMenu
|
---|
| 53 | screen ID_ALARM_LIST_SCREEN
|
---|
| 54 | title = "Pester"
|
---|
| 55 | actionMenu = ID_ALARM_LIST_MENU
|
---|
| 56 | className = "net.sabi.pester.AlarmListWindow"
|
---|
[289] | 57 |
|
---|
[237] | 58 | icon = ID_SMALL_ICON
|
---|
| 59 |
|
---|
[289] | 60 | image
|
---|
| 61 | bitmap = ID_SPLASH_SCREEN_NO_TITLE
|
---|
| 62 | alpha = 127
|
---|
| 63 | alignWithParentBottom = -48
|
---|
| 64 | alignWithParentRight = -48
|
---|
| 65 |
|
---|
[237] | 66 | activeListView
|
---|
| 67 | id = ID_ALARM_LIST_VIEW
|
---|
| 68 | alignWithParentLeft = 0
|
---|
| 69 | alignWithParentTop = 0
|
---|
| 70 | initialFocus
|
---|
| 71 | widthPct = 100
|
---|
[289] | 72 | heightPct = 100
|
---|
[237] | 73 | itemHeight = 12
|
---|
| 74 | className = "net.sabi.pester.AlarmListView"
|
---|
[289] | 75 | doesNotHaveBorder
|
---|
| 76 | transparent
|
---|
| 77 |
|
---|
[237] | 78 | endScreen
|
---|
[238] | 79 |
|
---|
| 80 | menu ID_PERIOD_UNITS_MENU
|
---|
| 81 | menuItem
|
---|
| 82 | title = "second(s)"
|
---|
[251] | 83 | event = EVENT_VALIDATE
|
---|
[241] | 84 | eventData = 1
|
---|
[238] | 85 | menuItem
|
---|
| 86 | title = "minute(s)"
|
---|
[251] | 87 | event = EVENT_VALIDATE
|
---|
[241] | 88 | eventData = 60
|
---|
[238] | 89 | menuItem
|
---|
| 90 | title = "hour(s)"
|
---|
[251] | 91 | event = EVENT_VALIDATE
|
---|
[241] | 92 | eventData = 3600
|
---|
[238] | 93 | endMenu
|
---|
| 94 |
|
---|
[237] | 95 | dialog ID_ALARM_SET_DIALOG
|
---|
| 96 | title = "Set Alarm"
|
---|
| 97 | showCancel
|
---|
[250] | 98 | className = "net.sabi.pester.AlarmSetDialog"
|
---|
[237] | 99 | widthPct = 100
|
---|
[244] | 100 | centerUnderTitleBar
|
---|
[237] | 101 |
|
---|
| 102 | staticText
|
---|
| 103 | text = "Message"
|
---|
| 104 | id = ID_MESSAGE_LABEL
|
---|
| 105 | alignWithParentTop = 3
|
---|
| 106 | alignWithParentLeft = 5
|
---|
| 107 | justifyRight
|
---|
| 108 | font = boldSysFont
|
---|
| 109 |
|
---|
| 110 | typeAheadTextField
|
---|
| 111 | id = ID_MESSAGE_FIELD
|
---|
[251] | 112 | event = EVENT_VALIDATE
|
---|
[237] | 113 | autoCap
|
---|
| 114 | initiallySelectAll
|
---|
| 115 | initialFocus
|
---|
[242] | 116 | alignBaseline = ID_MESSAGE_LABEL
|
---|
| 117 | positionToRight = ID_MESSAGE_LABEL : 3
|
---|
| 118 | fillToRight = 0
|
---|
[237] | 119 |
|
---|
[239] | 120 | groupBox
|
---|
| 121 | id = ID_IN_GROUP
|
---|
| 122 | onOffControl = ID_IN_BUTTON
|
---|
| 123 | onOffControlLeftPosition
|
---|
| 124 | positionBelow = ID_MESSAGE_LABEL : 7
|
---|
| 125 | fillToRight = 0
|
---|
| 126 | height = 22
|
---|
[238] | 127 |
|
---|
[239] | 128 | radioButton
|
---|
| 129 | id = ID_IN_BUTTON
|
---|
| 130 | title = "In"
|
---|
| 131 | event = EVENT_IN
|
---|
| 132 |
|
---|
| 133 | numberEditor
|
---|
| 134 | id = ID_PERIOD_FIELD
|
---|
[251] | 135 | event = EVENT_VALIDATE
|
---|
[239] | 136 | dontWrap
|
---|
| 137 | minValue = 1
|
---|
| 138 | maxValue = 99
|
---|
| 139 | alignBaseline = ID_IN_BUTTON
|
---|
| 140 | positionToRight = ID_IN_BUTTON : 1
|
---|
[253] | 141 | className = "net.sabi.pester.EventfulNumberEditor"
|
---|
[239] | 142 |
|
---|
| 143 | popupMenu
|
---|
| 144 | id = ID_PERIOD_UNITS_POPUP
|
---|
| 145 | menu = ID_PERIOD_UNITS_MENU
|
---|
| 146 | alignBaseline = ID_PERIOD_FIELD
|
---|
| 147 | positionToRight = ID_PERIOD_FIELD : 1
|
---|
| 148 |
|
---|
| 149 | checkBox
|
---|
[240] | 150 | id = ID_PERIOD_REPEAT_CHECKBOX
|
---|
[239] | 151 | title = "Repeat"
|
---|
| 152 | alignBaseline = ID_PERIOD_UNITS_POPUP
|
---|
| 153 | positionToRight = ID_PERIOD_UNITS_POPUP : 3
|
---|
| 154 | endGroupBox
|
---|
[238] | 155 |
|
---|
[239] | 156 | groupBox
|
---|
| 157 | id = ID_AT_GROUP
|
---|
| 158 | onOffControl = ID_AT_BUTTON
|
---|
| 159 | onOffControlLeftPosition
|
---|
| 160 | positionBelow = ID_IN_GROUP : 3
|
---|
| 161 | fillToRight = 0
|
---|
| 162 | height = 22
|
---|
[238] | 163 |
|
---|
[239] | 164 | radioButton
|
---|
| 165 | title = "At"
|
---|
| 166 | id = ID_AT_BUTTON
|
---|
| 167 | event = EVENT_AT
|
---|
| 168 |
|
---|
| 169 | dateEditor
|
---|
| 170 | id = ID_TIME_EDITOR
|
---|
| 171 | longTimeFormat
|
---|
[240] | 172 | event = EVENT_TIME_EDITOR
|
---|
[239] | 173 | alignBaseline = ID_AT_BUTTON
|
---|
| 174 | positionToRight = ID_AT_BUTTON : 1
|
---|
[280] | 175 |
|
---|
[239] | 176 | dateEditor
|
---|
| 177 | id = ID_DATE_EDITOR
|
---|
[240] | 178 | event = EVENT_DATE_EDITOR
|
---|
[239] | 179 | positionToRight = ID_TIME_EDITOR : 1
|
---|
| 180 | alignBaseline = ID_TIME_EDITOR
|
---|
[251] | 181 | className = "net.sabi.pester.AlarmDateEditor"
|
---|
[280] | 182 | positionDynamically # can move if time format changes
|
---|
[239] | 183 |
|
---|
| 184 | datePicker
|
---|
| 185 | id = ID_DATE_PICKER
|
---|
[240] | 186 | event = EVENT_DATE_PICKER
|
---|
[239] | 187 | positionToRight = ID_DATE_EDITOR : 1
|
---|
| 188 | alignTop = ID_DATE_EDITOR
|
---|
[280] | 189 | positionDynamically # can move if time format changes
|
---|
[239] | 190 | endGroupBox
|
---|
[244] | 191 |
|
---|
| 192 | staticText
|
---|
| 193 | text = "Alert"
|
---|
| 194 | id = ID_ALERT_LABEL
|
---|
| 195 | justifyRight
|
---|
| 196 | font = boldSysFont
|
---|
| 197 | positionBelow = ID_AT_GROUP : 5
|
---|
| 198 | alignRight = ID_MESSAGE_LABEL
|
---|
| 199 |
|
---|
| 200 | ringTonePicker
|
---|
| 201 | id = ID_ALERT_PICKER
|
---|
| 202 | # alignBaseline = ID_ALERT_LABEL
|
---|
| 203 | positionBelow = ID_AT_GROUP : 3
|
---|
| 204 | positionToRight = ID_ALERT_LABEL : 3
|
---|
| 205 | fillToRight = 0
|
---|
| 206 |
|
---|
[237] | 207 | button
|
---|
[238] | 208 | id = ID_DISCARD_ALARM_BUTTON
|
---|
[242] | 209 | event = EVENT_DISCARD_ALARM
|
---|
[238] | 210 | position = buttonTop2
|
---|
[278] | 211 | title = discardButton
|
---|
[238] | 212 |
|
---|
| 213 | button
|
---|
[240] | 214 | id = ID_SET_ALARM_BUTTON
|
---|
[242] | 215 | event = EVENT_SET_ALARM
|
---|
[237] | 216 | position = buttonBottom1
|
---|
| 217 | title = "Set"
|
---|
| 218 | shortcut = doneButton
|
---|
| 219 | endDialog
|
---|
[242] | 220 |
|
---|
[287] | 221 | textInputAlert ID_ALARM_ALERT
|
---|
[242] | 222 | systemDialog
|
---|
| 223 | title = "Alarm"
|
---|
| 224 | icon = ID_LARGE_ICON
|
---|
| 225 | font = "BortBold12"
|
---|
| 226 | text = "Alarm!"
|
---|
| 227 | button
|
---|
[287] | 228 | id = ID_SNOOZE_BUTTON
|
---|
[278] | 229 | event = EVENT_SNOOZE_ALARM
|
---|
| 230 | title = "Snooze"
|
---|
[287] | 231 | position = buttonBottom2
|
---|
[278] | 232 | shortcut = cancelButton
|
---|
| 233 | button
|
---|
| 234 | event = EVENT_SET_ALARM
|
---|
[280] | 235 | title = "Reschedule..."
|
---|
[287] | 236 | position = buttonBottom3
|
---|
[278] | 237 | button
|
---|
[242] | 238 | event = EVENT_DISMISS_ALARM
|
---|
[260] | 239 | title = okButton
|
---|
[242] | 240 | position = buttonBottom1
|
---|
| 241 | shortcut = doneButton
|
---|
[287] | 242 | textField
|
---|
| 243 | id = ID_SNOOZE_MINUTES
|
---|
| 244 | title = "Snooze for minutes:"
|
---|
| 245 | dontAcceptKeyRepeats
|
---|
| 246 | initiallySelectAll
|
---|
| 247 | numericOnly
|
---|
| 248 | justifyRight
|
---|
| 249 | maxLength = 2
|
---|
| 250 | position = top
|
---|
| 251 | endTextInputAlert
|
---|
[260] | 252 |
|
---|
| 253 | alert ID_DISCARD_ALERT
|
---|
| 254 | appAlertStyle
|
---|
| 255 | title = "Discard Alarm?"
|
---|
| 256 | icon = stopIcon
|
---|
| 257 | text = "Permanently discard this alarm?"
|
---|
| 258 | button
|
---|
[278] | 259 | event = EVENT_CONFIRM_DISCARD
|
---|
[260] | 260 | title = discardButton
|
---|
| 261 | position = buttonBottom2
|
---|
| 262 | button
|
---|
[278] | 263 | event = EVENT_CANCEL_DISCARD
|
---|
[260] | 264 | title = backButton
|
---|
| 265 | position = buttonBottom1
|
---|
| 266 | shortcut = doneButton
|
---|
| 267 | endAlert
|
---|
[283] | 268 |
|
---|
| 269 | stringArray ID_ALARM_MESSAGES
|
---|
| 270 | "Bus"
|
---|
[290] | 271 | "Class"
|
---|
[283] | 272 | "Dinner"
|
---|
| 273 | "Exercise"
|
---|
| 274 | "Go home"
|
---|
[290] | 275 | "Go to school"
|
---|
| 276 | "Go to work"
|
---|
[283] | 277 | "Laundry"
|
---|
| 278 | "Lunch"
|
---|
| 279 | "Meeting"
|
---|
| 280 | "Sleep"
|
---|
| 281 | "Train"
|
---|
| 282 | "Wake up"
|
---|
| 283 | endStringArray
|
---|