using System.Collections.Generic;
using Core.Common.Gui;
using Core.Common.Gui.Forms;
using Core.Common.Gui.Plugin;
using Core.Common.Gui.Properties;
using Core.Components.DotSpatial.Data;
using Core.Plugins.DotSpatial.Forms;
using Ringtoets.Demo;
using Ringtoets.Demo.Commands;
namespace Core.Plugins.DotSpatial
{
///
/// The gui plugin for the map component.
///
public class DotSpatialGuiPlugin : GuiPlugin
{
private MapRibbon ribbon;
///
/// The command handler for the map ribbon.
///
public override IRibbonCommandHandler RibbonCommandHandler
{
get
{
return ribbon;
}
}
///
/// Activates the and creates the .
///
public override void Activate()
{
ribbon = CreateMapRibbon();
}
///
/// Gets the view info objects.
///
///
public override IEnumerable GetViewInfoObjects()
{
yield return new ViewInfo
{
Image = Resources.DocumentHS,
GetViewName = (v, o) => "Kaart"
};
}
///
/// Creates the and the commands that will be used when clicking on the buttons.
///
/// A new instance.
private static MapRibbon CreateMapRibbon()
{
return new MapRibbon
{
OpenMapViewCommand = new OpenMapViewCommand()
};
}
}
}