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_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 | 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
|
---|
67 |
|
---|
68 | menu ID_PERIOD_UNITS_MENU
|
---|
69 | menuItem
|
---|
70 | id = ID_PERIOD_SECONDS
|
---|
71 | title = "second(s)"
|
---|
72 | event = EVENT_PERIOD_UNIT
|
---|
73 | eventData = 1
|
---|
74 | menuItem
|
---|
75 | id = ID_PERIOD_MINUTES
|
---|
76 | title = "minute(s)"
|
---|
77 | event = EVENT_PERIOD_UNIT
|
---|
78 | eventData = 60
|
---|
79 | menuItem
|
---|
80 | id = ID_PERIOD_HOURS
|
---|
81 | title = "hour(s)"
|
---|
82 | event = EVENT_PERIOD_UNIT
|
---|
83 | eventData = 3600
|
---|
84 | endMenu
|
---|
85 |
|
---|
86 | dialog ID_ALARM_SET_DIALOG
|
---|
87 | title = "Set Alarm"
|
---|
88 | showCancel
|
---|
89 | # className = "net.sabi.pester.AlarmSetDialog"
|
---|
90 | widthPct = 100
|
---|
91 | centerUnderTitleBar
|
---|
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
|
---|
106 | alignBaseline = ID_MESSAGE_LABEL
|
---|
107 | positionToRight = ID_MESSAGE_LABEL : 3
|
---|
108 | fillToRight = 0
|
---|
109 |
|
---|
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
|
---|
117 |
|
---|
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
|
---|
138 | id = ID_PERIOD_REPEAT_CHECKBOX
|
---|
139 | title = "Repeat"
|
---|
140 | alignBaseline = ID_PERIOD_UNITS_POPUP
|
---|
141 | positionToRight = ID_PERIOD_UNITS_POPUP : 3
|
---|
142 | endGroupBox
|
---|
143 |
|
---|
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
|
---|
151 |
|
---|
152 | radioButton
|
---|
153 | title = "At"
|
---|
154 | id = ID_AT_BUTTON
|
---|
155 | event = EVENT_AT
|
---|
156 |
|
---|
157 | dateEditor
|
---|
158 | id = ID_TIME_EDITOR
|
---|
159 | longTimeFormat
|
---|
160 | event = EVENT_TIME_EDITOR
|
---|
161 | alignBaseline = ID_AT_BUTTON
|
---|
162 | positionToRight = ID_AT_BUTTON : 1
|
---|
163 |
|
---|
164 | dateEditor
|
---|
165 | id = ID_DATE_EDITOR
|
---|
166 | event = EVENT_DATE_EDITOR
|
---|
167 | positionToRight = ID_TIME_EDITOR : 1
|
---|
168 | alignBaseline = ID_TIME_EDITOR
|
---|
169 |
|
---|
170 | datePicker
|
---|
171 | id = ID_DATE_PICKER
|
---|
172 | event = EVENT_DATE_PICKER
|
---|
173 | positionToRight = ID_DATE_EDITOR : 1
|
---|
174 | alignTop = ID_DATE_EDITOR
|
---|
175 | endGroupBox
|
---|
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 |
|
---|
192 | button
|
---|
193 | id = ID_DISCARD_ALARM_BUTTON
|
---|
194 | event = EVENT_DISCARD_ALARM
|
---|
195 | position = buttonTop2
|
---|
196 | title = "Discard"
|
---|
197 |
|
---|
198 | button
|
---|
199 | id = ID_SET_ALARM_BUTTON
|
---|
200 | event = EVENT_SET_ALARM
|
---|
201 | position = buttonBottom1
|
---|
202 | title = "Set"
|
---|
203 | shortcut = doneButton
|
---|
204 | endDialog
|
---|
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
|
---|