1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
|
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_notifier.m
Type: maki/attrib definitions
Version: 1.1
Date: 12. Jul. 2006 - 16:15
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
wasabi/notifier/notifier.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
Function initAttribs_notifier();
#define CUSTOM_PAGE_NOTIFIER "{1AB968B3-8687-4a35-BA70-FCF6D92FB57F}"
#define CUSTOM_PAGE_NOTIFIER_AA "{7BF45B05-2B98-4de8-8778-E5CCC9639ED1}"
#define CUSTOM_PAGE_NOTIFIER_LOC "{715B2C0D-1DF0-4bb2-9D74-0FACAE27CE97}"
#define CUSTOM_PAGE_NOTIFIER_FDIN "{D9891A39-7A38-45d8-9D51-A08F7270C836}"
#define CUSTOM_PAGE_NOTIFIER_FDOUT "{560EAE41-1379-4927-AC55-FB5F4D47C9B8}"
Global ConfigAttribute notifier_minimized_attrib;
Global ConfigAttribute notifier_always_attrib;
Global ConfigAttribute notifier_never_attrib;
Global ConfigAttribute notifier_fadeintime_attrib;
Global ConfigAttribute notifier_fadeouttime_attrib;
Global ConfigAttribute notifier_holdtime_attrib;
Global ConfigAttribute notifier_hideinfullscreen_attrib;
Global ConfigAttribute notifier_windowshade_attrib;
//Global ConfigAttribute notifier_opennowplaying_attrib;
Global ConfigAttribute notifier_artworkinnotification_attrib;
Global ConfigAttribute notifier_fdout_alpha;
Global ConfigAttribute notifier_fdout_hslide;
Global ConfigAttribute notifier_fdout_vslide;
Global ConfigAttribute notifier_fdin_alpha;
Global ConfigAttribute notifier_fdin_hslide;
Global ConfigAttribute notifier_fdin_vslide;
Global ConfigAttribute notifier_loc_br_attrib;
Global ConfigAttribute notifier_loc_bl_attrib;
Global ConfigAttribute notifier_loc_tr_attrib;
Global ConfigAttribute notifier_loc_tl_attrib;
Global ConfigAttribute notifier_loc_bc_attrib;
Global ConfigAttribute notifier_loc_tc_attrib;
Global ConfigAttribute notifier_loc_vport_attrib;
Global ConfigAttribute notifier_loc_monitor_attrib;
initAttribs_notifier()
{
initPages();
ConfigItem custom_page_notifier = addConfigSubMenu(optionsmenu_page, "Notifications", CUSTOM_PAGE_NOTIFIER);
notifier_always_attrib = custom_page_notifier.newAttribute("Show always", "1");
notifier_windowshade_attrib = custom_page_notifier.newAttribute("Show with windowshade and when minimized", "0");
notifier_minimized_attrib = custom_page_notifier.newAttribute("Show only when minimized", "0");
notifier_minimized_attrib = custom_page_notifier.newAttribute("Show only when minimized", "0");
notifier_never_attrib = custom_page_notifier.newAttribute("Never show", "0");
addMenuSeparator(custom_page_notifier);
ConfigItem custom_page_notifier_loc = addConfigSubMenu(custom_page_notifier, "Location", CUSTOM_PAGE_NOTIFIER_LOC);
ConfigItem custom_page_notifier_fdin = addConfigSubMenu(custom_page_notifier, "Fade In Effect", CUSTOM_PAGE_NOTIFIER_FDIN);
ConfigItem custom_page_notifier_fdout = addConfigSubMenu(custom_page_notifier, "Fade Out Effect", CUSTOM_PAGE_NOTIFIER_FDOUT);
addMenuSeparator(custom_page_notifier);
notifier_hideinfullscreen_attrib = custom_page_notifier.newAttribute("Disable in fullscreen", "1");
addMenuSeparator(custom_page_notifier);
//notifier_opennowplaying_attrib = custom_page_notifier.newAttribute("Open Now Playing on Click", "1");
sep = custom_page_notifier.newAttribute("sep333", ""); sep.setData("-");
notifier_artworkinnotification_attrib = custom_page_notifier.newAttribute("Show Now Playing Artwork", "1");
notifier_fadeintime_attrib = custom_page_nonexposed.newAttribute("Notifications fade in time", "1000");
notifier_fadeouttime_attrib = custom_page_nonexposed.newAttribute("Notifications fade out time", "5000");
notifier_holdtime_attrib = custom_page_nonexposed.newAttribute("Notifications display time", "2000");
// Notifications > Location
notifier_loc_bl_attrib = custom_page_notifier_loc.newAttribute("Bottom Left", "0");
notifier_loc_bc_attrib = custom_page_notifier_loc.newAttribute("Bottom Center", "0");
notifier_loc_br_attrib = custom_page_notifier_loc.newAttribute("Bottom Right", "1");
notifier_loc_tl_attrib = custom_page_notifier_loc.newAttribute("Top Left", "0");
notifier_loc_tc_attrib = custom_page_notifier_loc.newAttribute("Top Center", "0");
notifier_loc_tr_attrib = custom_page_notifier_loc.newAttribute("Top Right", "0");
addMenuSeparator(custom_page_notifier_loc);
notifier_loc_vport_attrib = custom_page_notifier_loc.newAttribute("Relative to Viewport", "1");
notifier_loc_monitor_attrib = custom_page_notifier_loc.newAttribute("Relative to Monitor", "0");
// Notifications > Fade...
notifier_fdout_alpha = custom_page_notifier_fdout.newAttribute("Alpha Fade ", "1");
notifier_fdout_vslide = custom_page_notifier_fdout.newAttribute("Vertical Slide ", "0");
notifier_fdout_hslide = custom_page_notifier_fdout.newAttribute("Horizontal Slide ", "0");
// Martin> We need a additional spacer for the last 3 attribs, so we won't cross withe the 3 below in studio.xnf
notifier_fdin_alpha = custom_page_notifier_fdin.newAttribute("Alpha Fade", "1");
notifier_fdin_vslide = custom_page_notifier_fdin.newAttribute("Vertical Slide", "0");
notifier_fdin_hslide = custom_page_notifier_fdin.newAttribute("Horizontal Slide", "0");
}
#ifdef MAIN_ATTRIBS_MGR
notifier_always_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_never_attrib.setData("0");
notifier_minimized_attrib.setData("0");
notifier_windowshade_attrib.setData("0");
attribs_mychange = 0;
}
notifier_never_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_always_attrib.setData("0");
notifier_minimized_attrib.setData("0");
notifier_windowshade_attrib.setData("0");
attribs_mychange = 0;
}
notifier_minimized_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_never_attrib.setData("0");
notifier_always_attrib.setData("0");
notifier_windowshade_attrib.setData("0");
attribs_mychange = 0;
}
notifier_windowshade_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_never_attrib.setData("0");
notifier_always_attrib.setData("0");
notifier_minimized_attrib.setData("0");
attribs_mychange = 0;
}
notifier_fdout_alpha.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdout_hslide.setData("0");
notifier_fdout_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdout_hslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdout_alpha.setData("0");
notifier_fdout_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdout_vslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdout_hslide.setData("0");
notifier_fdout_alpha.setData("0");
attribs_mychange = 0;
}
notifier_fdin_alpha.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdin_hslide.setData("0");
notifier_fdin_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdin_hslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdin_alpha.setData("0");
notifier_fdin_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdin_vslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdin_hslide.setData("0");
notifier_fdin_alpha.setData("0");
attribs_mychange = 0;
}
notifier_loc_br_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_bl_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_br_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_tl_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_tr_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_tc_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_bc_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_vport_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_monitor_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_monitor_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_vport_attrib.setData("0");
attribs_mychange = 0;
}
#endif
|