/[cits3200i]/trunk/UWAPlugins/PlaybackPlugin/Source/PlaybackAction.cs


UCC Code Repository

Contents of /trunk/UWAPlugins/PlaybackPlugin/Source/PlaybackAction.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (show annotations) (download)
Sat Sep 11 20:21:25 2010 UTC (11 years, 2 months ago) by rvvs89
File size: 1463 byte(s)
Removed the Playback Detail Page in favor of a top level dialog.
Added PlaybackAction, an IAction that appears under the Analyze menu.
Added PlaybackControl, the Windows Control and logic that will drive the playback.
Added PlaybackDialog, a container for PlaybackControl since it is unlikely that we can display it on the RouteControl.
Added poor quality programmer art.
Hopefully the plugin architecture provides some way to view and modify the selected route! Seriously... Otherwise this plugin is going to be horrible to write.
1 using PlaybackPlugin.Properties;
2 using System;
3 using System.Collections.Generic;
4 using System.Drawing;
5 using System.Text;
6 using ZoneFiveSoftware.Common.Data.Fitness;
7 using ZoneFiveSoftware.Common.Visuals;
8 using ZoneFiveSoftware.Common.Visuals.Fitness;
9
10 namespace PlaybackPlugin.Source
11 {
12 class PlaybackAction : IAction
13 {
14 private IActivity activity;
15 private IDailyActivityView view;
16
17 public PlaybackAction(IDailyActivityView view)
18 {
19 this.view = view;
20 }
21
22 public bool Enabled
23 {
24 get { return true; }
25 }
26
27 public bool HasMenuArrow
28 {
29 get { return false; }
30 }
31
32 public Image Image
33 {
34 get { return Properties.Resources.PlaybackIcon; }
35 }
36
37 public IList<string> MenuPath
38 {
39 get { return null; }
40 }
41
42 public void Refresh()
43 {
44 }
45
46 public void Run(System.Drawing.Rectangle rectButton)
47 {
48 PlaybackDialog control = new PlaybackDialog(activity);
49 control.Show();
50 }
51
52 public string Title
53 {
54 get { return Resources.PlaybackBannerText; }
55 }
56
57 public bool Visible
58 {
59 get { return true; }
60 }
61
62 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
63 }
64 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26