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


UCC Code Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 74 - (show annotations) (download)
Thu Sep 30 05:55:59 2010 UTC (11 years, 2 months ago) by rvvs89
File size: 813 byte(s)
The current code base appears to be mostly stubs from automatically generated code, some of which we shouldn't be extending (when the class is already provided by SportTracks).
The previous revision has an infinite recursion in one of the IExtend interfaces that causes SportTracks to fail to start.
I'm deleting everything and starting again.
Added a RouteControlPointerMode for attaching data and supporting classes.
Added an icon for the pointer mode.
Fixed namespace issues in Plugin.cs, can't really be bothered checking svn blame to see where they snuck in.
1 using System;
2 using System.Collections.Generic;
3 using System.Drawing;
4 using System.Text;
5 using ZoneFiveSoftware.Common.Visuals.Mapping;
6 using MetadataPlugin.Properties;
7
8 namespace MetadataPlugin.Source
9 {
10 class MetadataAttachPointerModeProvider : IRouteControlPointerModeProvider
11 {
12 public IRouteControlPointerMode CreateControlPointerMode(IRouteControl control)
13 {
14 return new MetadataAttachPointerMode(control, this);
15 }
16
17 public Guid Id
18 {
19 get { return new Guid("2f5c69ca-de0a-4402-8858-346d11ad2cb8"); }
20 }
21
22 public Image Image
23 {
24 get { return Resources.AttachIcon; }
25 }
26
27 public string Name
28 {
29 get { return "Attach Data"; }
30 }
31 }
32 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26