author | cavaliet |
Wed, 25 Nov 2009 10:49:44 +0100 | |
changeset 231 | 4eff6b0c9215 |
parent 216 | 45d2dff788f2 |
permissions | -rw-r--r-- |
214
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
1 |
using System; |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
2 |
using System.Collections.Generic; |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
3 |
using System.Linq; |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
4 |
using System.Text; |
216
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
5 |
using System.IO; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
6 |
using System.Net; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
7 |
using System.Windows; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
8 |
using System.Windows.Controls; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
9 |
using System.Windows.Data; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
10 |
using System.Windows.Input; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
11 |
using System.Windows.Media; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
12 |
using System.Windows.Media.Animation; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
13 |
using System.Windows.Navigation; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
14 |
using System.Windows.Controls.Primitives; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
15 |
|
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
16 |
using FingersDance.Control.TimeLine; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
17 |
|
214
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
18 |
|
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
19 |
namespace FingersDance.Actions |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
20 |
{ |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
21 |
public class ActionSearchAnnotation : FingersDance.Actions.ActionBase |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
22 |
{ |
216
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
23 |
UserControlTimeLine myTimeline; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
24 |
String GestureId; |
214
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
25 |
|
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
26 |
public ActionSearchAnnotation() |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
27 |
{ |
216
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
28 |
|
214
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
29 |
} |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
30 |
|
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
31 |
public ActionSearchAnnotation(Object[] param) |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
32 |
{ |
216
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
33 |
// The context param[0] is the userPanel, so we have to get the timeline's instance. |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
34 |
UserControl userPanel = (UserControl)param[0]; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
35 |
// Its content... |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
36 |
Grid o = (Grid)userPanel.Content; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
37 |
// and the UserControlSyncSource within the grid... |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
38 |
UserControl syncSrc = (UserControl)((Grid)o.Children[1]).Children[0]; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
39 |
// and finally the timeline |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
40 |
myTimeline = (UserControlTimeLine)((Grid)((Grid)syncSrc.Content).Children[0]).Children[0]; |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
41 |
|
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
42 |
GestureId = (String)param[1]; |
214
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
43 |
} |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
44 |
|
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
45 |
public void Execute() |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
46 |
{ |
216
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
47 |
Console.WriteLine("ActionSearchAnnotation Execute " + GestureId); |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
48 |
if (myTimeline != null) |
45d2dff788f2
almost last step of search : menu is active and we listen to the recognised event from the player.
cavaliet
parents:
214
diff
changeset
|
49 |
myTimeline.sendNewGesture(GestureId); |
214
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
50 |
} |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
51 |
} |
beebae32b1ed
third step of search : better integration of search panel and debug from loaded search project and annotated project.
cavaliet
parents:
diff
changeset
|
52 |
} |