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


UCC Code Repository

Contents of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Plugin.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: 1225 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 System.Xml;
5 using ZoneFiveSoftware.Common.Visuals.Fitness;
6
7 namespace MetadataPlugin
8 {
9 class Plugin : IPlugin
10 {
11 private IApplication application;
12 private static Plugin instance;
13
14 public static Plugin Instance
15 {
16 get { return instance; }
17 }
18
19 public Plugin()
20 {
21 instance = this;
22 }
23
24 public IApplication Application
25 {
26 get { return application; }
27 set { application = value; }
28 }
29
30 public Guid Id
31 {
32 get { return new Guid("35ad2d05-472d-434c-b676-527f141aa3bb"); }
33 }
34
35 public string Name
36 {
37 get { return "Metadata Attachment Plugin"; }
38 }
39
40 public string Version
41 {
42 get { return GetType().Assembly.GetName().Version.ToString(3); }
43 }
44
45 public void ReadOptions(XmlDocument xmlDoc, XmlNamespaceManager nsmgr, XmlElement pluginNode)
46 {
47 }
48
49 public void WriteOptions(XmlDocument xmlDoc, XmlElement pluginNode)
50 {
51 }
52 }
53 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26