Logo Search packages:      
Sourcecode: f-spot version File versions

ExportMenuItemNode.cs

/*
 * ExportMenuItemNode.cs
 *
 * Author(s)
 *    Stephane Delcroix  <stephane@delcroix.org>
 *
 * This is free software. See COPYING for details.
 *
 */

using Mono.Addins;
using System;

namespace FSpot.Extensions
{
      public delegate FSpot.PhotoArray SelectedImages ();

      [ExtensionNode ("ExportMenuItem")]
      public class ExportMenuItemNode : MenuItemNode
      {

            [NodeAttribute ("class", true)]
            protected string class_name;

            public static SelectedImages SelectedImages;

            protected override void OnActivated (object o, EventArgs e)
            {
                  IExporter exporter = (IExporter) Addin.CreateInstance (class_name);
                  exporter.Run (SelectedImages ());
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index