|
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 |
{ |
|
22
|
10 |
|
|
0
|
11 |
/// <summary> |
|
|
12 |
/// Commandes relatives au ConsultMenu |
|
|
13 |
/// </summary> |
|
|
14 |
public static class ConsultMenu |
|
|
15 |
{ |
|
|
16 |
static ConsultMenu() |
|
|
17 |
{ |
|
|
18 |
GetBook = new Command("GetBook"); |
|
|
19 |
ClickBook = new Command("ClickBook"); |
|
|
20 |
} |
|
|
21 |
public static Command GetBook |
|
|
22 |
{ |
|
|
23 |
get; |
|
|
24 |
private set; |
|
|
25 |
} |
|
|
26 |
public static Command ClickBook |
|
|
27 |
{ |
|
|
28 |
get; |
|
|
29 |
private set; |
|
|
30 |
} |
|
|
31 |
public static void Initialize() |
|
|
32 |
{ |
|
|
33 |
|
|
|
34 |
} |
|
|
35 |
|
|
|
36 |
} |
|
|
37 |
|
|
|
38 |
/// <summary> |
|
|
39 |
/// Commandes relatives au PersonnalChutier |
|
|
40 |
/// </summary> |
|
|
41 |
public static class PersonnalChutier |
|
|
42 |
{ |
|
|
43 |
static PersonnalChutier() |
|
|
44 |
{ |
|
|
45 |
//PersonnalChutier |
|
|
46 |
Search = new Command("Search"); |
|
|
47 |
ClickAnnotation = new Command("ClickAnnotation"); |
|
|
48 |
} |
|
|
49 |
public static Command Search |
|
|
50 |
{ |
|
|
51 |
get; |
|
|
52 |
private set; |
|
|
53 |
} |
|
|
54 |
public static Command ClickAnnotation |
|
|
55 |
{ |
|
|
56 |
get; |
|
|
57 |
private set; |
|
|
58 |
} |
|
|
59 |
public static void Initialize() |
|
|
60 |
{ |
|
|
61 |
|
|
|
62 |
} |
|
|
63 |
} |
|
|
64 |
|
|
|
65 |
/// <summary> |
|
|
66 |
/// Commandes relatives au ReferencesChutier |
|
|
67 |
/// </summary> |
|
|
68 |
public static class ReferencesChutier |
|
|
69 |
{ |
|
|
70 |
static ReferencesChutier() |
|
|
71 |
{ |
|
|
72 |
//PersonnalChutier |
|
|
73 |
Search = new Command("iSearch"); |
|
|
74 |
ClickAnnotation = new Command("iClickAnnotation"); |
|
7
|
75 |
RefChutierAdd = new Command("RefChutierAdd"); |
|
|
76 |
} |
|
|
77 |
public static Command RefChutierAdd |
|
|
78 |
{ |
|
|
79 |
get; |
|
|
80 |
private set; |
|
0
|
81 |
} |
|
|
82 |
public static Command Search |
|
|
83 |
{ |
|
|
84 |
get; |
|
|
85 |
private set; |
|
|
86 |
} |
|
|
87 |
public static Command ClickAnnotation |
|
|
88 |
{ |
|
|
89 |
get; |
|
|
90 |
private set; |
|
|
91 |
} |
|
|
92 |
public static void Initialize() |
|
|
93 |
{ |
|
|
94 |
|
|
|
95 |
} |
|
|
96 |
} |
|
|
97 |
|
|
|
98 |
/// <summary> |
|
|
99 |
/// Commandes relatives au AnnotationMaker |
|
|
100 |
/// </summary> |
|
|
101 |
public static class AnnotationMaker |
|
|
102 |
{ |
|
|
103 |
static AnnotationMaker() |
|
|
104 |
{ |
|
|
105 |
OkClick = new Command("OkClick"); |
|
|
106 |
Play = new Command("Play"); |
|
|
107 |
Pause = new Command("Pause"); |
|
|
108 |
LeftTrim = new Command("LeftTrim"); |
|
|
109 |
RightTrim = new Command("RightTrim"); |
|
38
|
110 |
NewAnnotationFinished = new Command("NewAnnotationFinished"); |
|
|
111 |
} |
|
|
112 |
|
|
|
113 |
public static Command NewAnnotationFinished |
|
|
114 |
{ |
|
|
115 |
get; |
|
|
116 |
private set; |
|
0
|
117 |
} |
|
|
118 |
public static Command OkClick |
|
|
119 |
{ |
|
|
120 |
get; |
|
|
121 |
private set; |
|
|
122 |
} |
|
|
123 |
public static Command Play |
|
|
124 |
{ |
|
|
125 |
get; |
|
|
126 |
private set; |
|
|
127 |
} |
|
|
128 |
public static Command Pause |
|
|
129 |
{ |
|
|
130 |
get; |
|
|
131 |
private set; |
|
|
132 |
} |
|
|
133 |
public static Command LeftTrim |
|
|
134 |
{ |
|
|
135 |
get; |
|
|
136 |
private set; |
|
|
137 |
} |
|
|
138 |
public static Command RightTrim |
|
|
139 |
{ |
|
|
140 |
get; |
|
|
141 |
private set; |
|
|
142 |
} |
|
|
143 |
public static void Initialize() |
|
|
144 |
{ |
|
|
145 |
} |
|
|
146 |
|
|
|
147 |
|
|
|
148 |
} |
|
|
149 |
|
|
|
150 |
/// <summary> |
|
|
151 |
/// Commandes relatives au ClickMenu |
|
|
152 |
/// </summary> |
|
|
153 |
public static class ClickMenu |
|
|
154 |
{ |
|
|
155 |
static ClickMenu() |
|
|
156 |
{ |
|
|
157 |
ActionReleased = new Command("ActionReleased"); |
|
|
158 |
CreateNewTextualAnnotation = new Command("CreateNewTextualAnnotation"); |
|
7
|
159 |
AddToRefChutier = new Command("AddToChutier"); |
|
|
160 |
} |
|
|
161 |
static public Command AddToRefChutier |
|
|
162 |
{ |
|
|
163 |
get; |
|
|
164 |
private set; |
|
0
|
165 |
} |
|
|
166 |
static public Command CreateNewTextualAnnotation |
|
|
167 |
{ |
|
|
168 |
get; |
|
|
169 |
private set; |
|
|
170 |
} |
|
|
171 |
|
|
|
172 |
static public Command ActionReleased |
|
|
173 |
{ |
|
|
174 |
get; |
|
|
175 |
private set; |
|
|
176 |
} |
|
|
177 |
} |
|
|
178 |
|
|
|
179 |
/// <summary> |
|
|
180 |
/// Commandes relatives au HeaderControl |
|
|
181 |
/// </summary> |
|
|
182 |
public static class HeaderControl |
|
|
183 |
{ |
|
|
184 |
static HeaderControl() |
|
|
185 |
{ |
|
|
186 |
ButtonClick = new Command("ButtonClick"); |
|
|
187 |
} |
|
|
188 |
|
|
|
189 |
static public Command ButtonClick |
|
|
190 |
{ |
|
|
191 |
get; |
|
|
192 |
private set; |
|
|
193 |
} |
|
|
194 |
public static void Initialize() |
|
|
195 |
{ |
|
|
196 |
|
|
|
197 |
} |
|
|
198 |
|
|
|
199 |
} |
|
|
200 |
|
|
|
201 |
/// <summary> |
|
|
202 |
/// Commandes relatives au PolemicElement |
|
|
203 |
/// </summary> |
|
|
204 |
public static class PolemicElement |
|
|
205 |
{ |
|
|
206 |
static PolemicElement() |
|
|
207 |
{ |
|
|
208 |
ElementSelected = new Command("ElementSelected"); |
|
|
209 |
SelectPolemicElement = new Command("SelectPolemicElement"); |
|
|
210 |
} |
|
|
211 |
public static Command ElementSelected |
|
|
212 |
{ |
|
|
213 |
get; |
|
|
214 |
private set; |
|
|
215 |
} |
|
|
216 |
public static Command SelectPolemicElement |
|
|
217 |
{ |
|
|
218 |
get; |
|
|
219 |
private set; |
|
|
220 |
} |
|
|
221 |
|
|
|
222 |
public static void Initialize() |
|
|
223 |
{ |
|
|
224 |
} |
|
|
225 |
|
|
|
226 |
} |
|
|
227 |
|
|
|
228 |
/// <summary> |
|
|
229 |
/// Commandes relatives au ConsultationBookView |
|
|
230 |
/// </summary> |
|
|
231 |
public static class ConsultationBookView |
|
|
232 |
{ |
|
|
233 |
static ConsultationBookView() |
|
|
234 |
{ |
|
|
235 |
|
|
|
236 |
} |
|
|
237 |
|
|
|
238 |
public static Command Action |
|
|
239 |
{ |
|
|
240 |
get; |
|
|
241 |
private set; |
|
|
242 |
} |
|
|
243 |
|
|
|
244 |
} |
|
|
245 |
|
|
|
246 |
/// <summary> |
|
|
247 |
/// Commandes relatives au ContextualBinderLayer |
|
|
248 |
/// </summary> |
|
|
249 |
public static class ContextualBinderLayer |
|
|
250 |
{ |
|
|
251 |
static ContextualBinderLayer() |
|
|
252 |
{ |
|
|
253 |
BeginBind = new Command("BeginBind"); |
|
|
254 |
EndBind = new Command("EndBind"); |
|
|
255 |
ActiveBind = new Command("InBind"); |
|
|
256 |
DesactiveBind = new Command("ActiveBind"); |
|
|
257 |
SelectBind = new Command("SelectBind"); |
|
|
258 |
UnSelectBind = new Command("UnSelectBind"); |
|
|
259 |
} |
|
|
260 |
public static Command SelectBind |
|
|
261 |
{ |
|
|
262 |
get; |
|
|
263 |
private set; |
|
|
264 |
} |
|
|
265 |
public static Command UnSelectBind |
|
|
266 |
{ |
|
|
267 |
get; |
|
|
268 |
private set; |
|
|
269 |
} |
|
|
270 |
public static Command ActiveBind |
|
|
271 |
{ |
|
|
272 |
get; |
|
|
273 |
private set; |
|
|
274 |
} |
|
|
275 |
public static Command DesactiveBind |
|
|
276 |
{ |
|
|
277 |
get; |
|
|
278 |
private set; |
|
|
279 |
} |
|
|
280 |
public static Command BeginBind |
|
|
281 |
{ |
|
|
282 |
get; |
|
|
283 |
private set; |
|
|
284 |
} |
|
|
285 |
|
|
|
286 |
public static Command EndBind |
|
|
287 |
{ |
|
|
288 |
get; |
|
|
289 |
private set; |
|
|
290 |
} |
|
|
291 |
public static void Initialize() |
|
|
292 |
{ |
|
|
293 |
} |
|
|
294 |
} |
|
|
295 |
|
|
|
296 |
/// <summary> |
|
|
297 |
/// Commandes relatives au HeaderProduction |
|
|
298 |
/// </summary> |
|
|
299 |
public static class HeaderProduction |
|
|
300 |
{ |
|
|
301 |
static HeaderProduction() |
|
|
302 |
{ |
|
35
|
303 |
|
|
0
|
304 |
|
|
|
305 |
PublishClick = new Command("PublishClick"); |
|
|
306 |
SaveClick = new Command("SaveClick"); |
|
38
|
307 |
EditFinishedOk = new Command("EditFinishedOk"); |
|
|
308 |
IndexFinishedOk = new Command("IndexFinishedOk"); |
|
|
309 |
|
|
0
|
310 |
|
|
|
311 |
} |
|
38
|
312 |
public static Command EditFinishedOk |
|
|
313 |
{ |
|
|
314 |
get; |
|
|
315 |
private set; |
|
|
316 |
} |
|
|
317 |
public static Command IndexFinishedOk |
|
|
318 |
{ |
|
|
319 |
get; |
|
|
320 |
private set; |
|
|
321 |
} |
|
|
322 |
|
|
0
|
323 |
public static Command PublishClick |
|
|
324 |
{ |
|
|
325 |
get; |
|
|
326 |
private set; |
|
|
327 |
} |
|
|
328 |
public static Command SaveClick |
|
|
329 |
{ |
|
|
330 |
get; |
|
|
331 |
private set; |
|
|
332 |
} |
|
|
333 |
static public void Initialize() |
|
|
334 |
{} |
|
|
335 |
} |
|
|
336 |
|
|
|
337 |
/// <summary> |
|
|
338 |
/// Commandes relatives au ProductionTimeLine |
|
|
339 |
/// </summary> |
|
|
340 |
public static class ProductionTimeLine |
|
|
341 |
{ |
|
|
342 |
static ProductionTimeLine() |
|
|
343 |
{ |
|
17
|
344 |
EditorPartSelected = new Command("EditorPartSelected"); |
|
18
|
345 |
EditorPartFinished = new Command("EditorPartFinished"); |
|
21
|
346 |
IndexSelected = new Command("IndexSelected"); |
|
|
347 |
} |
|
|
348 |
public static Command IndexSelected |
|
|
349 |
{ |
|
|
350 |
get; |
|
|
351 |
private set; |
|
0
|
352 |
} |
|
17
|
353 |
public static Command EditorPartSelected |
|
|
354 |
{ |
|
|
355 |
get; |
|
|
356 |
private set; |
|
|
357 |
} |
|
18
|
358 |
public static Command EditorPartFinished |
|
|
359 |
{ |
|
|
360 |
get; |
|
|
361 |
private set; |
|
|
362 |
} |
|
0
|
363 |
static public void Initialize() |
|
|
364 |
{ } |
|
|
365 |
} |
|
|
366 |
|
|
|
367 |
/// <summary> |
|
|
368 |
/// Commandes relatives au VideoViewer |
|
|
369 |
/// </summary> |
|
|
370 |
public static class VideoViewer |
|
|
371 |
{ |
|
|
372 |
static VideoViewer() |
|
|
373 |
{ |
|
|
374 |
Play = new Command("PlayVideo"); |
|
|
375 |
Pause = new Command("PauseVideo"); |
|
|
376 |
Next = new Command("NextVideo"); |
|
|
377 |
Previous = new Command("PreviousVideo"); |
|
|
378 |
Record = new Command("RecordVideo"); |
|
|
379 |
Close = new Command("CloseVideo"); |
|
|
380 |
SendPosition = new Command("SendPosition"); |
|
|
381 |
} |
|
|
382 |
public static Command SendPosition |
|
|
383 |
{ |
|
|
384 |
get; |
|
|
385 |
private set; |
|
|
386 |
} |
|
|
387 |
public static Command Play |
|
|
388 |
{ |
|
|
389 |
get; |
|
|
390 |
private set; |
|
|
391 |
} |
|
|
392 |
public static Command Pause |
|
|
393 |
{ |
|
|
394 |
get; |
|
|
395 |
private set; |
|
|
396 |
} |
|
|
397 |
public static Command Next |
|
|
398 |
{ |
|
|
399 |
get; |
|
|
400 |
private set; |
|
|
401 |
} |
|
|
402 |
public static Command Previous |
|
|
403 |
{ |
|
|
404 |
get; |
|
|
405 |
private set; |
|
|
406 |
} |
|
|
407 |
public static Command Record |
|
|
408 |
{ |
|
|
409 |
get; |
|
|
410 |
private set; |
|
|
411 |
} |
|
|
412 |
public static Command Close |
|
|
413 |
{ |
|
|
414 |
get; |
|
|
415 |
private set; |
|
|
416 |
} |
|
|
417 |
|
|
|
418 |
static public void Initialize() |
|
|
419 |
{ |
|
|
420 |
|
|
|
421 |
} |
|
|
422 |
} |
|
|
423 |
|
|
|
424 |
/// <summary> |
|
|
425 |
/// Constructeur |
|
|
426 |
/// </summary> |
|
|
427 |
static Commands() |
|
|
428 |
{ |
|
|
429 |
Action = new Command("Action"); |
|
|
430 |
TimeChange = new Command("TimeChange"); |
|
|
431 |
FlipView = new Command("FlipView"); |
|
|
432 |
GoToTime = new Command("GoToTime"); |
|
27
|
433 |
ActivePart = new Command("ActivePart"); |
|
35
|
434 |
EscapeKeyPressed = new Command("EscapeKeyPressed"); |
|
38
|
435 |
HttpSenderResponse = new Command("HttpSenderResponse"); |
|
0
|
436 |
// VideoPositionTimer.Tick += new EventHandler(Each_Tick); |
|
|
437 |
|
|
|
438 |
|
|
|
439 |
} |
|
38
|
440 |
|
|
|
441 |
public static Command HttpSenderResponse |
|
|
442 |
{ |
|
|
443 |
get; |
|
|
444 |
private set; |
|
|
445 |
} |
|
35
|
446 |
public static Command EscapeKeyPressed |
|
|
447 |
{ |
|
|
448 |
get; |
|
|
449 |
private set; |
|
|
450 |
} |
|
|
451 |
|
|
27
|
452 |
public static Command ActivePart |
|
|
453 |
{ |
|
|
454 |
get; |
|
|
455 |
private set; |
|
|
456 |
} |
|
0
|
457 |
public static Command Action |
|
|
458 |
{ |
|
|
459 |
get; |
|
|
460 |
private set; |
|
|
461 |
} |
|
|
462 |
|
|
|
463 |
public static Command FlipView |
|
|
464 |
{ |
|
|
465 |
get; |
|
|
466 |
private set; |
|
|
467 |
} |
|
|
468 |
|
|
|
469 |
|
|
|
470 |
public static Command TimeChange |
|
|
471 |
{ |
|
|
472 |
get; |
|
|
473 |
private set; |
|
|
474 |
} |
|
|
475 |
|
|
|
476 |
public static Command GoToTime |
|
|
477 |
{ |
|
|
478 |
get; |
|
|
479 |
private set; |
|
|
480 |
} |
|
29
|
481 |
public static class WebCamControl |
|
|
482 |
{ |
|
|
483 |
static WebCamControl() |
|
|
484 |
{ |
|
|
485 |
CamRecordLanch = new Command("CamRecordLanch"); |
|
|
486 |
CamRecordBegin = new Command("CamRecordBegin"); |
|
|
487 |
CamRecordEnd = new Command("CamRecordEnd"); |
|
|
488 |
CamRecordStop = new Command("CamRecordStop"); |
|
|
489 |
} |
|
|
490 |
public static Command CamRecordStop |
|
|
491 |
{ |
|
|
492 |
get; |
|
|
493 |
private set; |
|
|
494 |
} |
|
|
495 |
public static Command CamRecordLanch |
|
|
496 |
{ |
|
|
497 |
get; |
|
|
498 |
private set; |
|
|
499 |
} |
|
|
500 |
public static Command CamRecordBegin |
|
|
501 |
{ |
|
|
502 |
get; |
|
|
503 |
private set; |
|
|
504 |
} |
|
|
505 |
public static Command CamRecordEnd |
|
|
506 |
{ |
|
|
507 |
get; |
|
|
508 |
private set; |
|
|
509 |
} |
|
|
510 |
public static void Initialize() |
|
|
511 |
{ |
|
|
512 |
} |
|
|
513 |
} |
|
19
|
514 |
public static class ProductionView |
|
|
515 |
{ |
|
|
516 |
|
|
|
517 |
static ProductionView() |
|
|
518 |
{ |
|
|
519 |
ClickAddSelectedRecord = new Command("ClickAddSelectedRecord"); |
|
|
520 |
VideoRecordUpdated = new Command("VideoRecordUpdated"); |
|
20
|
521 |
DelVideoSequence = new Command("DelVideoSequence"); |
|
|
522 |
ClickAddIndex = new Command("ClickAddIndex"); |
|
|
523 |
|
|
|
524 |
} |
|
|
525 |
public static Command ClickAddIndex |
|
|
526 |
{ |
|
|
527 |
get; |
|
|
528 |
private set; |
|
|
529 |
} |
|
|
530 |
public static Command DelVideoSequence |
|
|
531 |
{ |
|
|
532 |
get; |
|
|
533 |
private set; |
|
19
|
534 |
} |
|
|
535 |
public static Command ClickAddSelectedRecord |
|
|
536 |
{ |
|
|
537 |
get; |
|
|
538 |
private set; |
|
|
539 |
} |
|
|
540 |
public static Command VideoRecordUpdated |
|
|
541 |
{ |
|
|
542 |
get; |
|
|
543 |
private set; |
|
|
544 |
} |
|
|
545 |
public static void Initialize() |
|
|
546 |
{ |
|
|
547 |
} |
|
|
548 |
} |
|
38
|
549 |
|
|
|
550 |
public static class BookTimeLine |
|
|
551 |
{ |
|
|
552 |
|
|
|
553 |
static BookTimeLine() |
|
|
554 |
{ |
|
|
555 |
SaveAnnotations = new Command("SaveAnnotations"); |
|
|
556 |
|
|
|
557 |
} |
|
|
558 |
public static Command SaveAnnotations |
|
|
559 |
{ |
|
|
560 |
get; |
|
|
561 |
private set; |
|
|
562 |
} |
|
|
563 |
|
|
|
564 |
public static void Initialize() |
|
|
565 |
{ |
|
|
566 |
} |
|
|
567 |
} |
|
|
568 |
|
|
0
|
569 |
/// <summary> |
|
|
570 |
/// Ensure static fields are initialized |
|
|
571 |
/// </summary> |
|
|
572 |
public static void Initialize() |
|
|
573 |
{ |
|
|
574 |
ConsultMenu.Initialize(); |
|
|
575 |
ReferencesChutier.Initialize(); |
|
|
576 |
PersonnalChutier.Initialize(); |
|
|
577 |
AnnotationMaker.Initialize(); |
|
|
578 |
HeaderControl.Initialize(); |
|
|
579 |
PolemicElement.Initialize(); |
|
|
580 |
ContextualBinderLayer.Initialize(); |
|
|
581 |
HeaderProduction.Initialize(); |
|
|
582 |
ProductionTimeLine.Initialize(); |
|
|
583 |
VideoViewer.Initialize(); |
|
19
|
584 |
ProductionView.Initialize(); |
|
29
|
585 |
Commands.WebCamControl.Initialize(); |
|
38
|
586 |
BookTimeLine.Initialize(); |
|
19
|
587 |
|
|
0
|
588 |
} |
|
|
589 |
} |
|
|
590 |
} |