[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
|
---|
[260] | 51 | event = EVENT_CONFIRM_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"
|
---|
| 57 | icon = ID_SMALL_ICON
|
---|
| 58 |
|
---|
| 59 | activeListView
|
---|
| 60 | fillToBottom = 0
|
---|
| 61 | id = ID_ALARM_LIST_VIEW
|
---|
| 62 | alignWithParentLeft = 0
|
---|
| 63 | alignWithParentTop = 0
|
---|
| 64 | initialFocus
|
---|
| 65 | widthPct = 100
|
---|
| 66 | itemHeight = 12
|
---|
| 67 | className = "net.sabi.pester.AlarmListView"
|
---|
| 68 |
|
---|
| 69 | endScreen
|
---|
[238] | 70 |
|
---|
| 71 | menu ID_PERIOD_UNITS_MENU
|
---|
| 72 | menuItem
|
---|
| 73 | title = "second(s)"
|
---|
[251] | 74 | event = EVENT_VALIDATE
|
---|
[241] | 75 | eventData = 1
|
---|
[238] | 76 | menuItem
|
---|
| 77 | title = "minute(s)"
|
---|
[251] | 78 | event = EVENT_VALIDATE
|
---|
[241] | 79 | eventData = 60
|
---|
[238] | 80 | menuItem
|
---|
| 81 | title = "hour(s)"
|
---|
[251] | 82 | event = EVENT_VALIDATE
|
---|
[241] | 83 | eventData = 3600
|
---|
[238] | 84 | endMenu
|
---|
| 85 |
|
---|
[237] | 86 | dialog ID_ALARM_SET_DIALOG
|
---|
| 87 | title = "Set Alarm"
|
---|
| 88 | showCancel
|
---|
[250] | 89 | className = "net.sabi.pester.AlarmSetDialog"
|
---|
[237] | 90 | widthPct = 100
|
---|
[244] | 91 | centerUnderTitleBar
|
---|
[237] | 92 |
|
---|
| 93 | staticText
|
---|
| 94 | text = "Message"
|
---|
| 95 | id = ID_MESSAGE_LABEL
|
---|
| 96 | alignWithParentTop = 3
|
---|
| 97 | alignWithParentLeft = 5
|
---|
| 98 | justifyRight
|
---|
| 99 | font = boldSysFont
|
---|
| 100 |
|
---|
| 101 | typeAheadTextField
|
---|
| 102 | id = ID_MESSAGE_FIELD
|
---|
[251] | 103 | event = EVENT_VALIDATE
|
---|
[237] | 104 | autoCap
|
---|
| 105 | initiallySelectAll
|
---|
| 106 | initialFocus
|
---|
[242] | 107 | alignBaseline = ID_MESSAGE_LABEL
|
---|
| 108 | positionToRight = ID_MESSAGE_LABEL : 3
|
---|
| 109 | fillToRight = 0
|
---|
[237] | 110 |
|
---|
[239] | 111 | groupBox
|
---|
| 112 | id = ID_IN_GROUP
|
---|
| 113 | onOffControl = ID_IN_BUTTON
|
---|
| 114 | onOffControlLeftPosition
|
---|
| 115 | positionBelow = ID_MESSAGE_LABEL : 7
|
---|
| 116 | fillToRight = 0
|
---|
| 117 | height = 22
|
---|
[238] | 118 |
|
---|
[239] | 119 | radioButton
|
---|
| 120 | id = ID_IN_BUTTON
|
---|
| 121 | title = "In"
|
---|
| 122 | event = EVENT_IN
|
---|
| 123 |
|
---|
| 124 | numberEditor
|
---|
| 125 | id = ID_PERIOD_FIELD
|
---|
[251] | 126 | event = EVENT_VALIDATE
|
---|
[239] | 127 | dontWrap
|
---|
| 128 | minValue = 1
|
---|
| 129 | maxValue = 99
|
---|
| 130 | alignBaseline = ID_IN_BUTTON
|
---|
| 131 | positionToRight = ID_IN_BUTTON : 1
|
---|
[253] | 132 | className = "net.sabi.pester.EventfulNumberEditor"
|
---|
[239] | 133 |
|
---|
| 134 | popupMenu
|
---|
| 135 | id = ID_PERIOD_UNITS_POPUP
|
---|
| 136 | menu = ID_PERIOD_UNITS_MENU
|
---|
| 137 | alignBaseline = ID_PERIOD_FIELD
|
---|
| 138 | positionToRight = ID_PERIOD_FIELD : 1
|
---|
| 139 |
|
---|
| 140 | checkBox
|
---|
[240] | 141 | id = ID_PERIOD_REPEAT_CHECKBOX
|
---|
[239] | 142 | title = "Repeat"
|
---|
| 143 | alignBaseline = ID_PERIOD_UNITS_POPUP
|
---|
| 144 | positionToRight = ID_PERIOD_UNITS_POPUP : 3
|
---|
| 145 | endGroupBox
|
---|
[238] | 146 |
|
---|
[239] | 147 | groupBox
|
---|
| 148 | id = ID_AT_GROUP
|
---|
| 149 | onOffControl = ID_AT_BUTTON
|
---|
| 150 | onOffControlLeftPosition
|
---|
| 151 | positionBelow = ID_IN_GROUP : 3
|
---|
| 152 | fillToRight = 0
|
---|
| 153 | height = 22
|
---|
[238] | 154 |
|
---|
[239] | 155 | radioButton
|
---|
| 156 | title = "At"
|
---|
| 157 | id = ID_AT_BUTTON
|
---|
| 158 | event = EVENT_AT
|
---|
| 159 |
|
---|
| 160 | dateEditor
|
---|
| 161 | id = ID_TIME_EDITOR
|
---|
| 162 | longTimeFormat
|
---|
[240] | 163 | event = EVENT_TIME_EDITOR
|
---|
[239] | 164 | alignBaseline = ID_AT_BUTTON
|
---|
| 165 | positionToRight = ID_AT_BUTTON : 1
|
---|
| 166 |
|
---|
| 167 | dateEditor
|
---|
| 168 | id = ID_DATE_EDITOR
|
---|
[240] | 169 | event = EVENT_DATE_EDITOR
|
---|
[239] | 170 | positionToRight = ID_TIME_EDITOR : 1
|
---|
| 171 | alignBaseline = ID_TIME_EDITOR
|
---|
[251] | 172 | className = "net.sabi.pester.AlarmDateEditor"
|
---|
[239] | 173 |
|
---|
| 174 | datePicker
|
---|
| 175 | id = ID_DATE_PICKER
|
---|
[240] | 176 | event = EVENT_DATE_PICKER
|
---|
[239] | 177 | positionToRight = ID_DATE_EDITOR : 1
|
---|
| 178 | alignTop = ID_DATE_EDITOR
|
---|
| 179 | endGroupBox
|
---|
[244] | 180 |
|
---|
| 181 | staticText
|
---|
| 182 | text = "Alert"
|
---|
| 183 | id = ID_ALERT_LABEL
|
---|
| 184 | justifyRight
|
---|
| 185 | font = boldSysFont
|
---|
| 186 | positionBelow = ID_AT_GROUP : 5
|
---|
| 187 | alignRight = ID_MESSAGE_LABEL
|
---|
| 188 |
|
---|
| 189 | ringTonePicker
|
---|
| 190 | id = ID_ALERT_PICKER
|
---|
| 191 | # alignBaseline = ID_ALERT_LABEL
|
---|
| 192 | positionBelow = ID_AT_GROUP : 3
|
---|
| 193 | positionToRight = ID_ALERT_LABEL : 3
|
---|
| 194 | fillToRight = 0
|
---|
| 195 |
|
---|
[237] | 196 | button
|
---|
[238] | 197 | id = ID_DISCARD_ALARM_BUTTON
|
---|
[242] | 198 | event = EVENT_DISCARD_ALARM
|
---|
[238] | 199 | position = buttonTop2
|
---|
| 200 | title = "Discard"
|
---|
| 201 |
|
---|
| 202 | button
|
---|
[240] | 203 | id = ID_SET_ALARM_BUTTON
|
---|
[242] | 204 | event = EVENT_SET_ALARM
|
---|
[237] | 205 | position = buttonBottom1
|
---|
| 206 | title = "Set"
|
---|
| 207 | shortcut = doneButton
|
---|
| 208 | endDialog
|
---|
[242] | 209 |
|
---|
| 210 | alert ID_ALARM_ALERT
|
---|
| 211 | systemDialog
|
---|
| 212 | title = "Alarm"
|
---|
| 213 | icon = ID_LARGE_ICON
|
---|
| 214 | font = "BortBold12"
|
---|
| 215 | text = "Alarm!"
|
---|
| 216 | button
|
---|
| 217 | event = EVENT_DISMISS_ALARM
|
---|
[260] | 218 | title = okButton
|
---|
[242] | 219 | position = buttonBottom1
|
---|
| 220 | shortcut = doneButton
|
---|
| 221 | endAlert
|
---|
[260] | 222 |
|
---|
| 223 | alert ID_DISCARD_ALERT
|
---|
| 224 | appAlertStyle
|
---|
| 225 | title = "Discard Alarm?"
|
---|
| 226 | icon = stopIcon
|
---|
| 227 | text = "Permanently discard this alarm?"
|
---|
| 228 | button
|
---|
| 229 | event = EVENT_DISCARD_ALARM
|
---|
| 230 | title = discardButton
|
---|
| 231 | position = buttonBottom2
|
---|
| 232 | button
|
---|
| 233 | title = backButton
|
---|
| 234 | position = buttonBottom1
|
---|
| 235 | shortcut = doneButton
|
---|
| 236 | endAlert
|
---|