source: trunk/hiptop/pester/locale/en_US/Pester.rsrc@ 250

Last change on this file since 250 was 250, checked in by Nicholas Riley, 18 years ago

Refactor editing, coalese Alarms and alarm list. Try (and fail) to recognize exit from alarm time editor.

File size: 4.4 KB
Line 
1# -*- coding: utf-8 -*-
2
3package "net.sabi.pester"
4
5interface "{source}net/sabi/pester/Resources.java"
6events "{source}net/sabi/pester/Commands.java"
7
8string ID_APP_NAME "Pester"
9string ID_APP_CLASS "net.sabi.pester.Pester"
10string ID_APP_FLAGS "L"
11string ID_CHOOSER_CATEGORY "pim"
12string ID_LOCALE "en_US"
13
14bitmap ID_LARGE_ICON "{base}LargeIcon.png"
15bitmap ID_SMALL_ICON "{base}SmallIcon.png"
16
17bitmap ID_SPLASH_SCREEN_NO_TITLE "{base}SplashScreenTransparent.png"
18
19string ID_VERSION "V@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@"
20
21int EVENT_CANCEL_ALARM 1
22int EVENT_TIME_EDITOR_LOST_FOCUS 2
23
24splashScreen 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
36endSplashScreen
37
38menu ID_ALARM_LIST_MENU
39 menuItem
40 title = "New Alarm"
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
51 event = EVENT_DISCARD_ALARM
52endMenu
53screen 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
69endScreen
70
71menu ID_PERIOD_UNITS_MENU
72 menuItem
73 title = "second(s)"
74 event = EVENT_PERIOD_UNIT
75 eventData = 1
76 menuItem
77 title = "minute(s)"
78 event = EVENT_PERIOD_UNIT
79 eventData = 60
80 menuItem
81 title = "hour(s)"
82 event = EVENT_PERIOD_UNIT
83 eventData = 3600
84endMenu
85
86dialog 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 className = "net.sabi.pester.AlarmTimeEditor"
164
165 dateEditor
166 id = ID_DATE_EDITOR
167 event = EVENT_DATE_EDITOR
168 positionToRight = ID_TIME_EDITOR : 1
169 alignBaseline = ID_TIME_EDITOR
170
171 datePicker
172 id = ID_DATE_PICKER
173 event = EVENT_DATE_PICKER
174 positionToRight = ID_DATE_EDITOR : 1
175 alignTop = ID_DATE_EDITOR
176 endGroupBox
177
178 staticText
179 text = "Alert"
180 id = ID_ALERT_LABEL
181 justifyRight
182 font = boldSysFont
183 positionBelow = ID_AT_GROUP : 5
184 alignRight = ID_MESSAGE_LABEL
185
186 ringTonePicker
187 id = ID_ALERT_PICKER
188 # alignBaseline = ID_ALERT_LABEL
189 positionBelow = ID_AT_GROUP : 3
190 positionToRight = ID_ALERT_LABEL : 3
191 fillToRight = 0
192
193 button
194 id = ID_DISCARD_ALARM_BUTTON
195 event = EVENT_DISCARD_ALARM
196 position = buttonTop2
197 title = "Discard"
198
199 button
200 id = ID_SET_ALARM_BUTTON
201 event = EVENT_SET_ALARM
202 position = buttonBottom1
203 title = "Set"
204 shortcut = doneButton
205endDialog
206
207alert ID_ALARM_ALERT
208 systemDialog
209 title = "Alarm"
210 icon = ID_LARGE_ICON
211 font = "BortBold12"
212 text = "Alarm!"
213 button
214 event = EVENT_DISMISS_ALARM
215 title = "OK"
216 position = buttonBottom1
217 shortcut = doneButton
218endAlert
Note: See TracBrowser for help on using the repository browser.