[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"
|
---|
| 10 | string ID_APP_FLAGS ""
|
---|
| 11 | string ID_LOCALE "en_US"
|
---|
| 12 |
|
---|
| 13 | bitmap ID_LARGE_ICON "{base}LargeIcon.png"
|
---|
| 14 | bitmap ID_SMALL_ICON "{base}SmallIcon.png"
|
---|
| 15 |
|
---|
| 16 | bitmap ID_SPLASH_SCREEN_NO_TITLE "{base}SplashScreenTransparent.png"
|
---|
| 17 |
|
---|
| 18 | string ID_VERSION "V@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@"
|
---|
| 19 |
|
---|
| 20 | splashScreen ID_SPLASH_SCREEN_RESOURCE
|
---|
| 21 | image
|
---|
| 22 | bitmap = ID_SPLASH_SCREEN_NO_TITLE
|
---|
| 23 | alignWithParentTop = 0
|
---|
| 24 | alignWithParentLeft = 0
|
---|
| 25 | staticTextBox
|
---|
| 26 | text = ID_APP_NAME
|
---|
| 27 | alignWithParentLeft = 2
|
---|
| 28 | alignWithParentTop = 0
|
---|
| 29 | fillToRight = 2
|
---|
| 30 | transparent
|
---|
| 31 | doesNotHaveBorder
|
---|
| 32 | endSplashScreen
|
---|
| 33 |
|
---|
| 34 | menu ID_ALARM_LIST_MENU
|
---|
| 35 | menuItem
|
---|
| 36 | title = "New Alarm"
|
---|
| 37 | shortcut = 'N'
|
---|
| 38 | icon = soundIcon
|
---|
| 39 | event = EVENT_NEW_ALARM
|
---|
| 40 |
|
---|
| 41 | divider
|
---|
| 42 |
|
---|
| 43 | menuItem
|
---|
| 44 | id = ID_DISCARD_ITEM
|
---|
| 45 | title = "Discard"
|
---|
| 46 | shortcut = deleteKey
|
---|
| 47 | event = EVENT_DISCARD_ALARM
|
---|
| 48 | endMenu
|
---|
| 49 | screen ID_ALARM_LIST_SCREEN
|
---|
| 50 | title = "Pester"
|
---|
| 51 | actionMenu = ID_ALARM_LIST_MENU
|
---|
| 52 | className = "net.sabi.pester.AlarmListWindow"
|
---|
| 53 | icon = ID_SMALL_ICON
|
---|
| 54 |
|
---|
| 55 | activeListView
|
---|
| 56 | fillToBottom = 0
|
---|
| 57 | id = ID_ALARM_LIST_VIEW
|
---|
| 58 | alignWithParentLeft = 0
|
---|
| 59 | alignWithParentTop = 0
|
---|
| 60 | initialFocus
|
---|
| 61 | widthPct = 100
|
---|
| 62 | itemHeight = 12
|
---|
| 63 | className = "net.sabi.pester.AlarmListView"
|
---|
| 64 |
|
---|
| 65 | endScreen
|
---|
[238] | 66 |
|
---|
| 67 | menu ID_PERIOD_UNITS_MENU
|
---|
| 68 | menuItem
|
---|
[241] | 69 | id = ID_PERIOD_SECONDS
|
---|
[238] | 70 | title = "second(s)"
|
---|
[241] | 71 | event = EVENT_PERIOD_UNIT
|
---|
| 72 | eventData = 1
|
---|
[238] | 73 | menuItem
|
---|
[241] | 74 | id = ID_PERIOD_MINUTES
|
---|
[238] | 75 | title = "minute(s)"
|
---|
[241] | 76 | event = EVENT_PERIOD_UNIT
|
---|
| 77 | eventData = 60
|
---|
[238] | 78 | menuItem
|
---|
[241] | 79 | id = ID_PERIOD_HOURS
|
---|
[238] | 80 | title = "hour(s)"
|
---|
[241] | 81 | event = EVENT_PERIOD_UNIT
|
---|
| 82 | eventData = 3600
|
---|
[238] | 83 | endMenu
|
---|
| 84 |
|
---|
[237] | 85 | dialog ID_ALARM_SET_DIALOG
|
---|
| 86 | title = "Set Alarm"
|
---|
| 87 | showCancel
|
---|
| 88 | # className = "net.sabi.pester.AlarmSetDialog"
|
---|
| 89 | widthPct = 100
|
---|
[244] | 90 | centerUnderTitleBar
|
---|
[237] | 91 |
|
---|
| 92 | staticText
|
---|
| 93 | text = "Message"
|
---|
| 94 | id = ID_MESSAGE_LABEL
|
---|
| 95 | alignWithParentTop = 3
|
---|
| 96 | alignWithParentLeft = 5
|
---|
| 97 | justifyRight
|
---|
| 98 | font = boldSysFont
|
---|
| 99 |
|
---|
| 100 | typeAheadTextField
|
---|
| 101 | id = ID_MESSAGE_FIELD
|
---|
| 102 | autoCap
|
---|
| 103 | initiallySelectAll
|
---|
| 104 | initialFocus
|
---|
[242] | 105 | alignBaseline = ID_MESSAGE_LABEL
|
---|
| 106 | positionToRight = ID_MESSAGE_LABEL : 3
|
---|
| 107 | fillToRight = 0
|
---|
[237] | 108 |
|
---|
[239] | 109 | groupBox
|
---|
| 110 | id = ID_IN_GROUP
|
---|
| 111 | onOffControl = ID_IN_BUTTON
|
---|
| 112 | onOffControlLeftPosition
|
---|
| 113 | positionBelow = ID_MESSAGE_LABEL : 7
|
---|
| 114 | fillToRight = 0
|
---|
| 115 | height = 22
|
---|
[238] | 116 |
|
---|
[239] | 117 | radioButton
|
---|
| 118 | id = ID_IN_BUTTON
|
---|
| 119 | title = "In"
|
---|
| 120 | event = EVENT_IN
|
---|
| 121 |
|
---|
| 122 | numberEditor
|
---|
| 123 | id = ID_PERIOD_FIELD
|
---|
| 124 | dontWrap
|
---|
| 125 | minValue = 1
|
---|
| 126 | maxValue = 99
|
---|
| 127 | alignBaseline = ID_IN_BUTTON
|
---|
| 128 | positionToRight = ID_IN_BUTTON : 1
|
---|
| 129 |
|
---|
| 130 | popupMenu
|
---|
| 131 | id = ID_PERIOD_UNITS_POPUP
|
---|
| 132 | menu = ID_PERIOD_UNITS_MENU
|
---|
| 133 | alignBaseline = ID_PERIOD_FIELD
|
---|
| 134 | positionToRight = ID_PERIOD_FIELD : 1
|
---|
| 135 |
|
---|
| 136 | checkBox
|
---|
[240] | 137 | id = ID_PERIOD_REPEAT_CHECKBOX
|
---|
[239] | 138 | title = "Repeat"
|
---|
| 139 | alignBaseline = ID_PERIOD_UNITS_POPUP
|
---|
| 140 | positionToRight = ID_PERIOD_UNITS_POPUP : 3
|
---|
| 141 | endGroupBox
|
---|
[238] | 142 |
|
---|
[239] | 143 | groupBox
|
---|
| 144 | id = ID_AT_GROUP
|
---|
| 145 | onOffControl = ID_AT_BUTTON
|
---|
| 146 | onOffControlLeftPosition
|
---|
| 147 | positionBelow = ID_IN_GROUP : 3
|
---|
| 148 | fillToRight = 0
|
---|
| 149 | height = 22
|
---|
[238] | 150 |
|
---|
[239] | 151 | radioButton
|
---|
| 152 | title = "At"
|
---|
| 153 | id = ID_AT_BUTTON
|
---|
| 154 | event = EVENT_AT
|
---|
| 155 |
|
---|
| 156 | dateEditor
|
---|
| 157 | id = ID_TIME_EDITOR
|
---|
| 158 | longTimeFormat
|
---|
[240] | 159 | event = EVENT_TIME_EDITOR
|
---|
[239] | 160 | alignBaseline = ID_AT_BUTTON
|
---|
| 161 | positionToRight = ID_AT_BUTTON : 1
|
---|
| 162 |
|
---|
| 163 | dateEditor
|
---|
| 164 | id = ID_DATE_EDITOR
|
---|
[240] | 165 | event = EVENT_DATE_EDITOR
|
---|
[239] | 166 | positionToRight = ID_TIME_EDITOR : 1
|
---|
| 167 | alignBaseline = ID_TIME_EDITOR
|
---|
| 168 |
|
---|
| 169 | datePicker
|
---|
| 170 | id = ID_DATE_PICKER
|
---|
[240] | 171 | event = EVENT_DATE_PICKER
|
---|
[239] | 172 | positionToRight = ID_DATE_EDITOR : 1
|
---|
| 173 | alignTop = ID_DATE_EDITOR
|
---|
| 174 | endGroupBox
|
---|
[244] | 175 |
|
---|
| 176 | staticText
|
---|
| 177 | text = "Alert"
|
---|
| 178 | id = ID_ALERT_LABEL
|
---|
| 179 | justifyRight
|
---|
| 180 | font = boldSysFont
|
---|
| 181 | positionBelow = ID_AT_GROUP : 5
|
---|
| 182 | alignRight = ID_MESSAGE_LABEL
|
---|
| 183 |
|
---|
| 184 | ringTonePicker
|
---|
| 185 | id = ID_ALERT_PICKER
|
---|
| 186 | # alignBaseline = ID_ALERT_LABEL
|
---|
| 187 | positionBelow = ID_AT_GROUP : 3
|
---|
| 188 | positionToRight = ID_ALERT_LABEL : 3
|
---|
| 189 | fillToRight = 0
|
---|
| 190 |
|
---|
[237] | 191 | button
|
---|
[238] | 192 | id = ID_DISCARD_ALARM_BUTTON
|
---|
[242] | 193 | event = EVENT_DISCARD_ALARM
|
---|
[238] | 194 | position = buttonTop2
|
---|
| 195 | title = "Discard"
|
---|
| 196 |
|
---|
| 197 | button
|
---|
[240] | 198 | id = ID_SET_ALARM_BUTTON
|
---|
[242] | 199 | event = EVENT_SET_ALARM
|
---|
[237] | 200 | position = buttonBottom1
|
---|
| 201 | title = "Set"
|
---|
| 202 | shortcut = doneButton
|
---|
| 203 | endDialog
|
---|
[242] | 204 |
|
---|
| 205 | alert ID_ALARM_ALERT
|
---|
| 206 | systemDialog
|
---|
| 207 | title = "Alarm"
|
---|
| 208 | icon = ID_LARGE_ICON
|
---|
| 209 | font = "BortBold12"
|
---|
| 210 | text = "Alarm!"
|
---|
| 211 | button
|
---|
| 212 | event = EVENT_DISMISS_ALARM
|
---|
| 213 | title = "OK"
|
---|
| 214 | position = buttonBottom1
|
---|
| 215 | shortcut = doneButton
|
---|
| 216 | endAlert
|
---|