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