/[cits3200i]/branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataActivityReportPages.cs


UCC Code Repository

Contents of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataActivityReportPages.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 94 - (show annotations) (download)
Tue Oct 12 22:55:25 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 1037 byte(s)
Context menu can now move metadata to the selected point/region or the entire track.
Metadata management is almost fully usable now.
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using ZoneFiveSoftware.Common.Visuals;
5 using ZoneFiveSoftware.Common.Visuals.Fitness;
6
7 namespace MetadataPlugin.Source
8 {
9 class MetadataActivityReportPages : IExtendDailyActivityViewActions
10 {
11 private static IDailyActivityView view = null;
12 public static readonly AddToPointAction POINT_ACTION = new AddToPointAction();
13 public static readonly AddToRangeAction RANGE_ACTION = new AddToRangeAction();
14 public static readonly AddToRouteAction ROUTE_ACTION = new AddToRouteAction();
15
16 public static IDailyActivityView View
17 {
18 get { return view; }
19 }
20
21 public IList<IAction> GetActions(IDailyActivityView view, ExtendViewActions.Location location)
22 {
23 MetadataActivityReportPages.view = view;
24 return location == ExtendViewActions.Location.EditMenu ? new List<IAction> { POINT_ACTION, RANGE_ACTION, ROUTE_ACTION } : null;
25 }
26 }
27 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26