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