|
0
|
1 |
using SLExtensions.Input; |
|
|
2 |
|
|
|
3 |
namespace Iri.Modernisation.BaseMVVM.Commands |
|
|
4 |
{ |
|
|
5 |
/// <summary> |
|
|
6 |
/// Commandes |
|
|
7 |
/// </summary> |
|
|
8 |
public static class Commands |
|
|
9 |
{ |
|
|
10 |
/// <summary> |
|
|
11 |
/// Horloge Interne, Principalement pour syncroniser la position d'une video avec sa barre de défilement |
|
|
12 |
/// </summary> |
|
|
13 |
public static System.Windows.Threading.DispatcherTimer VideoPositionTimer = new System.Windows.Threading.DispatcherTimer(); |
|
|
14 |
|
|
|
15 |
/// <summary> |
|
|
16 |
/// Commandes relatives au ConsultMenu |
|
|
17 |
/// </summary> |
|
|
18 |
public static class ConsultMenu |
|
|
19 |
{ |
|
|
20 |
static ConsultMenu() |
|
|
21 |
{ |
|
|
22 |
GetBook = new Command("GetBook"); |
|
|
23 |
ClickBook = new Command("ClickBook"); |
|
|
24 |
} |
|
|
25 |
public static Command GetBook |
|
|
26 |
{ |
|
|
27 |
get; |
|
|
28 |
private set; |
|
|
29 |
} |
|
|
30 |
public static Command ClickBook |
|
|
31 |
{ |
|
|
32 |
get; |
|
|
33 |
private set; |
|
|
34 |
} |
|
|
35 |
public static void Initialize() |
|
|
36 |
{ |
|
|
37 |
|
|
|
38 |
} |
|
|
39 |
|
|
|
40 |
} |
|
|
41 |
|
|
|
42 |
/// <summary> |
|
|
43 |
/// Commandes relatives au PersonnalChutier |
|
|
44 |
/// </summary> |
|
|
45 |
public static class PersonnalChutier |
|
|
46 |
{ |
|
|
47 |
static PersonnalChutier() |
|
|
48 |
{ |
|
|
49 |
//PersonnalChutier |
|
|
50 |
Search = new Command("Search"); |
|
|
51 |
ClickAnnotation = new Command("ClickAnnotation"); |
|
|
52 |
} |
|
|
53 |
public static Command Search |
|
|
54 |
{ |
|
|
55 |
get; |
|
|
56 |
private set; |
|
|
57 |
} |
|
|
58 |
public static Command ClickAnnotation |
|
|
59 |
{ |
|
|
60 |
get; |
|
|
61 |
private set; |
|
|
62 |
} |
|
|
63 |
public static void Initialize() |
|
|
64 |
{ |
|
|
65 |
|
|
|
66 |
} |
|
|
67 |
} |
|
|
68 |
|
|
|
69 |
/// <summary> |
|
|
70 |
/// Commandes relatives au ReferencesChutier |
|
|
71 |
/// </summary> |
|
|
72 |
public static class ReferencesChutier |
|
|
73 |
{ |
|
|
74 |
static ReferencesChutier() |
|
|
75 |
{ |
|
|
76 |
//PersonnalChutier |
|
|
77 |
Search = new Command("iSearch"); |
|
|
78 |
ClickAnnotation = new Command("iClickAnnotation"); |
|
7
|
79 |
RefChutierAdd = new Command("RefChutierAdd"); |
|
|
80 |
} |
|
|
81 |
public static Command RefChutierAdd |
|
|
82 |
{ |
|
|
83 |
get; |
|
|
84 |
private set; |
|
0
|
85 |
} |
|
|
86 |
public static Command Search |
|
|
87 |
{ |
|
|
88 |
get; |
|
|
89 |
private set; |
|
|
90 |
} |
|
|
91 |
public static Command ClickAnnotation |
|
|
92 |
{ |
|
|
93 |
get; |
|
|
94 |
private set; |
|
|
95 |
} |
|
|
96 |
public static void Initialize() |
|
|
97 |
{ |
|
|
98 |
|
|
|
99 |
} |
|
|
100 |
} |
|
|
101 |
|
|
|
102 |
/// <summary> |
|
|
103 |
/// Commandes relatives au AnnotationMaker |
|
|
104 |
/// </summary> |
|
|
105 |
public static class AnnotationMaker |
|
|
106 |
{ |
|
|
107 |
static AnnotationMaker() |
|
|
108 |
{ |
|
|
109 |
OkClick = new Command("OkClick"); |
|
|
110 |
Play = new Command("Play"); |
|
|
111 |
Pause = new Command("Pause"); |
|
|
112 |
LeftTrim = new Command("LeftTrim"); |
|
|
113 |
RightTrim = new Command("RightTrim"); |
|
|
114 |
} |
|
|
115 |
public static Command OkClick |
|
|
116 |
{ |
|
|
117 |
get; |
|
|
118 |
private set; |
|
|
119 |
} |
|
|
120 |
public static Command Play |
|
|
121 |
{ |
|
|
122 |
get; |
|
|
123 |
private set; |
|
|
124 |
} |
|
|
125 |
public static Command Pause |
|
|
126 |
{ |
|
|
127 |
get; |
|
|
128 |
private set; |
|
|
129 |
} |
|
|
130 |
public static Command LeftTrim |
|
|
131 |
{ |
|
|
132 |
get; |
|
|
133 |
private set; |
|
|
134 |
} |
|
|
135 |
public static Command RightTrim |
|
|
136 |
{ |
|
|
137 |
get; |
|
|
138 |
private set; |
|
|
139 |
} |
|
|
140 |
public static void Initialize() |
|
|
141 |
{ |
|
|
142 |
} |
|
|
143 |
|
|
|
144 |
|
|
|
145 |
} |
|
|
146 |
|
|
|
147 |
/// <summary> |
|
|
148 |
/// Commandes relatives au ClickMenu |
|
|
149 |
/// </summary> |
|
|
150 |
public static class ClickMenu |
|
|
151 |
{ |
|
|
152 |
static ClickMenu() |
|
|
153 |
{ |
|
|
154 |
ActionReleased = new Command("ActionReleased"); |
|
|
155 |
CreateNewTextualAnnotation = new Command("CreateNewTextualAnnotation"); |
|
7
|
156 |
AddToRefChutier = new Command("AddToChutier"); |
|
|
157 |
} |
|
|
158 |
static public Command AddToRefChutier |
|
|
159 |
{ |
|
|
160 |
get; |
|
|
161 |
private set; |
|
0
|
162 |
} |
|
|
163 |
static public Command CreateNewTextualAnnotation |
|
|
164 |
{ |
|
|
165 |
get; |
|
|
166 |
private set; |
|
|
167 |
} |
|
|
168 |
|
|
|
169 |
static public Command ActionReleased |
|
|
170 |
{ |
|
|
171 |
get; |
|
|
172 |
private set; |
|
|
173 |
} |
|
|
174 |
} |
|
|
175 |
|
|
|
176 |
/// <summary> |
|
|
177 |
/// Commandes relatives au HeaderControl |
|
|
178 |
/// </summary> |
|
|
179 |
public static class HeaderControl |
|
|
180 |
{ |
|
|
181 |
static HeaderControl() |
|
|
182 |
{ |
|
|
183 |
ButtonClick = new Command("ButtonClick"); |
|
|
184 |
} |
|
|
185 |
|
|
|
186 |
static public Command ButtonClick |
|
|
187 |
{ |
|
|
188 |
get; |
|
|
189 |
private set; |
|
|
190 |
} |
|
|
191 |
public static void Initialize() |
|
|
192 |
{ |
|
|
193 |
|
|
|
194 |
} |
|
|
195 |
|
|
|
196 |
} |
|
|
197 |
|
|
|
198 |
/// <summary> |
|
|
199 |
/// Commandes relatives au PolemicElement |
|
|
200 |
/// </summary> |
|
|
201 |
public static class PolemicElement |
|
|
202 |
{ |
|
|
203 |
static PolemicElement() |
|
|
204 |
{ |
|
|
205 |
ElementSelected = new Command("ElementSelected"); |
|
|
206 |
SelectPolemicElement = new Command("SelectPolemicElement"); |
|
|
207 |
} |
|
|
208 |
public static Command ElementSelected |
|
|
209 |
{ |
|
|
210 |
get; |
|
|
211 |
private set; |
|
|
212 |
} |
|
|
213 |
public static Command SelectPolemicElement |
|
|
214 |
{ |
|
|
215 |
get; |
|
|
216 |
private set; |
|
|
217 |
} |
|
|
218 |
|
|
|
219 |
public static void Initialize() |
|
|
220 |
{ |
|
|
221 |
} |
|
|
222 |
|
|
|
223 |
} |
|
|
224 |
|
|
|
225 |
/// <summary> |
|
|
226 |
/// Commandes relatives au ConsultationBookView |
|
|
227 |
/// </summary> |
|
|
228 |
public static class ConsultationBookView |
|
|
229 |
{ |
|
|
230 |
static ConsultationBookView() |
|
|
231 |
{ |
|
|
232 |
|
|
|
233 |
} |
|
|
234 |
|
|
|
235 |
public static Command Action |
|
|
236 |
{ |
|
|
237 |
get; |
|
|
238 |
private set; |
|
|
239 |
} |
|
|
240 |
|
|
|
241 |
} |
|
|
242 |
|
|
|
243 |
/// <summary> |
|
|
244 |
/// Commandes relatives au ContextualBinderLayer |
|
|
245 |
/// </summary> |
|
|
246 |
public static class ContextualBinderLayer |
|
|
247 |
{ |
|
|
248 |
static ContextualBinderLayer() |
|
|
249 |
{ |
|
|
250 |
BeginBind = new Command("BeginBind"); |
|
|
251 |
EndBind = new Command("EndBind"); |
|
|
252 |
ActiveBind = new Command("InBind"); |
|
|
253 |
DesactiveBind = new Command("ActiveBind"); |
|
|
254 |
SelectBind = new Command("SelectBind"); |
|
|
255 |
UnSelectBind = new Command("UnSelectBind"); |
|
|
256 |
} |
|
|
257 |
public static Command SelectBind |
|
|
258 |
{ |
|
|
259 |
get; |
|
|
260 |
private set; |
|
|
261 |
} |
|
|
262 |
public static Command UnSelectBind |
|
|
263 |
{ |
|
|
264 |
get; |
|
|
265 |
private set; |
|
|
266 |
} |
|
|
267 |
public static Command ActiveBind |
|
|
268 |
{ |
|
|
269 |
get; |
|
|
270 |
private set; |
|
|
271 |
} |
|
|
272 |
public static Command DesactiveBind |
|
|
273 |
{ |
|
|
274 |
get; |
|
|
275 |
private set; |
|
|
276 |
} |
|
|
277 |
public static Command BeginBind |
|
|
278 |
{ |
|
|
279 |
get; |
|
|
280 |
private set; |
|
|
281 |
} |
|
|
282 |
|
|
|
283 |
public static Command EndBind |
|
|
284 |
{ |
|
|
285 |
get; |
|
|
286 |
private set; |
|
|
287 |
} |
|
|
288 |
public static void Initialize() |
|
|
289 |
{ |
|
|
290 |
} |
|
|
291 |
} |
|
|
292 |
|
|
|
293 |
/// <summary> |
|
|
294 |
/// Commandes relatives au HeaderProduction |
|
|
295 |
/// </summary> |
|
|
296 |
public static class HeaderProduction |
|
|
297 |
{ |
|
|
298 |
static HeaderProduction() |
|
|
299 |
{ |
|
|
300 |
Chap01EditingOkClick = new Command("Chap01EditingOkClick"); |
|
|
301 |
Chap01IndexingOkClick = new Command("Chap01IndexingOkClick"); |
|
|
302 |
|
|
|
303 |
Chap02EditingOkClick = new Command("Chap02EditingOkClick"); |
|
|
304 |
Chap02IndexingOkClick = new Command("Chap02IndexingOkClick"); |
|
|
305 |
|
|
|
306 |
Chap03EditingOkClick = new Command("Chap03EditingOkClick"); |
|
|
307 |
Chap03IndexingOkClick = new Command("Chap03IndexingOkClick"); |
|
|
308 |
|
|
|
309 |
Chap04EditingOkClick = new Command("Chap04EditingOkClick"); |
|
|
310 |
Chap04IndexingOkClick = new Command("Chap04IndexingOkClick"); |
|
|
311 |
|
|
|
312 |
PublishClick = new Command("PublishClick"); |
|
|
313 |
SaveClick = new Command("SaveClick"); |
|
|
314 |
|
|
|
315 |
} |
|
|
316 |
public static Command Chap01EditingOkClick |
|
|
317 |
{ |
|
|
318 |
get; |
|
|
319 |
private set; |
|
|
320 |
} |
|
|
321 |
public static Command Chap01IndexingOkClick |
|
|
322 |
{ |
|
|
323 |
get; |
|
|
324 |
private set; |
|
|
325 |
} |
|
|
326 |
public static Command Chap02EditingOkClick |
|
|
327 |
{ |
|
|
328 |
get; |
|
|
329 |
private set; |
|
|
330 |
} |
|
|
331 |
public static Command Chap02IndexingOkClick |
|
|
332 |
{ |
|
|
333 |
get; |
|
|
334 |
private set; |
|
|
335 |
} |
|
|
336 |
public static Command Chap03EditingOkClick |
|
|
337 |
{ |
|
|
338 |
get; |
|
|
339 |
private set; |
|
|
340 |
} |
|
|
341 |
public static Command Chap03IndexingOkClick |
|
|
342 |
{ |
|
|
343 |
get; |
|
|
344 |
private set; |
|
|
345 |
} |
|
|
346 |
public static Command Chap04EditingOkClick |
|
|
347 |
{ |
|
|
348 |
get; |
|
|
349 |
private set; |
|
|
350 |
} |
|
|
351 |
public static Command Chap04IndexingOkClick |
|
|
352 |
{ |
|
|
353 |
get; |
|
|
354 |
private set; |
|
|
355 |
} |
|
|
356 |
public static Command PublishClick |
|
|
357 |
{ |
|
|
358 |
get; |
|
|
359 |
private set; |
|
|
360 |
} |
|
|
361 |
public static Command SaveClick |
|
|
362 |
{ |
|
|
363 |
get; |
|
|
364 |
private set; |
|
|
365 |
} |
|
|
366 |
static public void Initialize() |
|
|
367 |
{} |
|
|
368 |
} |
|
|
369 |
|
|
|
370 |
/// <summary> |
|
|
371 |
/// Commandes relatives au ProductionTimeLine |
|
|
372 |
/// </summary> |
|
|
373 |
public static class ProductionTimeLine |
|
|
374 |
{ |
|
|
375 |
static ProductionTimeLine() |
|
|
376 |
{ |
|
17
|
377 |
EditorPartSelected = new Command("EditorPartSelected"); |
|
18
|
378 |
EditorPartFinished = new Command("EditorPartFinished"); |
|
0
|
379 |
} |
|
17
|
380 |
public static Command EditorPartSelected |
|
|
381 |
{ |
|
|
382 |
get; |
|
|
383 |
private set; |
|
|
384 |
} |
|
18
|
385 |
public static Command EditorPartFinished |
|
|
386 |
{ |
|
|
387 |
get; |
|
|
388 |
private set; |
|
|
389 |
} |
|
0
|
390 |
static public void Initialize() |
|
|
391 |
{ } |
|
|
392 |
} |
|
|
393 |
|
|
|
394 |
/// <summary> |
|
|
395 |
/// Commandes relatives au VideoViewer |
|
|
396 |
/// </summary> |
|
|
397 |
public static class VideoViewer |
|
|
398 |
{ |
|
|
399 |
static VideoViewer() |
|
|
400 |
{ |
|
|
401 |
Play = new Command("PlayVideo"); |
|
|
402 |
Pause = new Command("PauseVideo"); |
|
|
403 |
Next = new Command("NextVideo"); |
|
|
404 |
Previous = new Command("PreviousVideo"); |
|
|
405 |
Record = new Command("RecordVideo"); |
|
|
406 |
Close = new Command("CloseVideo"); |
|
|
407 |
SendPosition = new Command("SendPosition"); |
|
|
408 |
} |
|
|
409 |
public static Command SendPosition |
|
|
410 |
{ |
|
|
411 |
get; |
|
|
412 |
private set; |
|
|
413 |
} |
|
|
414 |
public static Command Play |
|
|
415 |
{ |
|
|
416 |
get; |
|
|
417 |
private set; |
|
|
418 |
} |
|
|
419 |
public static Command Pause |
|
|
420 |
{ |
|
|
421 |
get; |
|
|
422 |
private set; |
|
|
423 |
} |
|
|
424 |
public static Command Next |
|
|
425 |
{ |
|
|
426 |
get; |
|
|
427 |
private set; |
|
|
428 |
} |
|
|
429 |
public static Command Previous |
|
|
430 |
{ |
|
|
431 |
get; |
|
|
432 |
private set; |
|
|
433 |
} |
|
|
434 |
public static Command Record |
|
|
435 |
{ |
|
|
436 |
get; |
|
|
437 |
private set; |
|
|
438 |
} |
|
|
439 |
public static Command Close |
|
|
440 |
{ |
|
|
441 |
get; |
|
|
442 |
private set; |
|
|
443 |
} |
|
|
444 |
|
|
|
445 |
static public void Initialize() |
|
|
446 |
{ |
|
|
447 |
|
|
|
448 |
} |
|
|
449 |
} |
|
|
450 |
|
|
|
451 |
/// <summary> |
|
|
452 |
/// Constructeur |
|
|
453 |
/// </summary> |
|
|
454 |
static Commands() |
|
|
455 |
{ |
|
|
456 |
Action = new Command("Action"); |
|
|
457 |
TimeChange = new Command("TimeChange"); |
|
|
458 |
FlipView = new Command("FlipView"); |
|
|
459 |
GoToTime = new Command("GoToTime"); |
|
|
460 |
VideoPositionTimer.Interval = new System.TimeSpan(0, 0,0,0,1000); |
|
|
461 |
// VideoPositionTimer.Tick += new EventHandler(Each_Tick); |
|
|
462 |
|
|
|
463 |
|
|
|
464 |
} |
|
|
465 |
public static Command Action |
|
|
466 |
{ |
|
|
467 |
get; |
|
|
468 |
private set; |
|
|
469 |
} |
|
|
470 |
|
|
|
471 |
public static Command FlipView |
|
|
472 |
{ |
|
|
473 |
get; |
|
|
474 |
private set; |
|
|
475 |
} |
|
|
476 |
|
|
|
477 |
|
|
|
478 |
public static Command TimeChange |
|
|
479 |
{ |
|
|
480 |
get; |
|
|
481 |
private set; |
|
|
482 |
} |
|
|
483 |
|
|
|
484 |
public static Command GoToTime |
|
|
485 |
{ |
|
|
486 |
get; |
|
|
487 |
private set; |
|
|
488 |
} |
|
|
489 |
|
|
|
490 |
|
|
|
491 |
/// <summary> |
|
|
492 |
/// Ensure static fields are initialized |
|
|
493 |
/// </summary> |
|
|
494 |
public static void Initialize() |
|
|
495 |
{ |
|
|
496 |
ConsultMenu.Initialize(); |
|
|
497 |
ReferencesChutier.Initialize(); |
|
|
498 |
PersonnalChutier.Initialize(); |
|
|
499 |
AnnotationMaker.Initialize(); |
|
|
500 |
HeaderControl.Initialize(); |
|
|
501 |
PolemicElement.Initialize(); |
|
|
502 |
ContextualBinderLayer.Initialize(); |
|
|
503 |
HeaderProduction.Initialize(); |
|
|
504 |
ProductionTimeLine.Initialize(); |
|
|
505 |
VideoViewer.Initialize(); |
|
17
|
506 |
ProductionTimeLine.Initialize(); |
|
0
|
507 |
} |
|
|
508 |
} |
|
|
509 |
} |