/[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 90 - (show annotations) (download)
Tue Oct 12 21:18:41 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 811 byte(s)
Attaching metadata now works.
Saving metadata now works.
Loading metadata now works.
Editing metadata and cancelling your changes now works.
MetadataList now only commits on change.
Icons appear on the track when metadata is added.
Icons can be double clicked to launch the editor.
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
13 public static IDailyActivityView View
14 {
15 get { return view; }
16 }
17
18 public IList<IAction> GetActions(IDailyActivityView view, ExtendViewActions.Location location)
19 {
20 MetadataActivityReportPages.view = view;
21 return location == ExtendViewActions.Location.EditMenu ? new List<IAction> { new AddToPointAction(view), new AddToRangeAction(view), new AddToRouteAction() } : null;
22 }
23 }
24 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26