Index: Core/Components/src/Core.Components.Charting/IChart.cs =================================================================== diff -u -rfbb37872d09f1ded75ce2209e8e48a6b64d8a78f -r22f1bb3808dd48f3350d6a39171fe3b002da0a91 --- Core/Components/src/Core.Components.Charting/IChart.cs (.../IChart.cs) (revision fbb37872d09f1ded75ce2209e8e48a6b64d8a78f) +++ Core/Components/src/Core.Components.Charting/IChart.cs (.../IChart.cs) (revision 22f1bb3808dd48f3350d6a39171fe3b002da0a91) @@ -23,7 +23,11 @@ namespace Core.Components.Charting { - public interface IChart { + /// + /// Interface describing general chart interactions. + /// + public interface IChart + { /// /// Gets a value representing whether the chart can be panned with the left mouse button. /// @@ -37,7 +41,6 @@ /// /// Gets or sets the data to show in the . /// - /// The returned collection is a copy of the previously set data. ChartData Data { get; set; } /// Index: Core/Components/src/Core.Components.DotSpatial/Core.Components.DotSpatial.csproj =================================================================== diff -u -rc8848af0c6f8780634dcce2013e606f090da6577 -r22f1bb3808dd48f3350d6a39171fe3b002da0a91 --- Core/Components/src/Core.Components.DotSpatial/Core.Components.DotSpatial.csproj (.../Core.Components.DotSpatial.csproj) (revision c8848af0c6f8780634dcce2013e606f090da6577) +++ Core/Components/src/Core.Components.DotSpatial/Core.Components.DotSpatial.csproj (.../Core.Components.DotSpatial.csproj) (revision 22f1bb3808dd48f3350d6a39171fe3b002da0a91) @@ -97,6 +97,7 @@ + True Index: Core/Components/src/Core.Components.DotSpatial/IMap.cs =================================================================== diff -u --- Core/Components/src/Core.Components.DotSpatial/IMap.cs (revision 0) +++ Core/Components/src/Core.Components.DotSpatial/IMap.cs (revision 22f1bb3808dd48f3350d6a39171fe3b002da0a91) @@ -0,0 +1,36 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using Core.Components.DotSpatial.Data; + +namespace Core.Components.DotSpatial +{ + /// + /// Interface describing general map interactions. + /// + public interface IMap + { + /// + /// Gets or sets the data to show in the . + /// + MapData Data { get; set; } + } +} Index: Core/Plugins/src/Core.Plugins.DotSpatial/Core.Plugins.DotSpatial.csproj =================================================================== diff -u -rc8848af0c6f8780634dcce2013e606f090da6577 -r22f1bb3808dd48f3350d6a39171fe3b002da0a91 --- Core/Plugins/src/Core.Plugins.DotSpatial/Core.Plugins.DotSpatial.csproj (.../Core.Plugins.DotSpatial.csproj) (revision c8848af0c6f8780634dcce2013e606f090da6577) +++ Core/Plugins/src/Core.Plugins.DotSpatial/Core.Plugins.DotSpatial.csproj (.../Core.Plugins.DotSpatial.csproj) (revision 22f1bb3808dd48f3350d6a39171fe3b002da0a91) @@ -46,6 +46,7 @@ Properties\GlobalAssembly.cs + UserControl Index: Core/Plugins/src/Core.Plugins.DotSpatial/DotSpatialGuiPlugin.cs =================================================================== diff -u -rfbb37872d09f1ded75ce2209e8e48a6b64d8a78f -r22f1bb3808dd48f3350d6a39171fe3b002da0a91 --- Core/Plugins/src/Core.Plugins.DotSpatial/DotSpatialGuiPlugin.cs (.../DotSpatialGuiPlugin.cs) (revision fbb37872d09f1ded75ce2209e8e48a6b64d8a78f) +++ Core/Plugins/src/Core.Plugins.DotSpatial/DotSpatialGuiPlugin.cs (.../DotSpatialGuiPlugin.cs) (revision 22f1bb3808dd48f3350d6a39171fe3b002da0a91) @@ -20,7 +20,8 @@ // All rights reserved. using System.Collections.Generic; -using Core.Common.Gui; +using Core.Common.Gui.Forms; +using Core.Common.Gui.Forms.ViewManager; using Core.Common.Gui.Plugin; using Core.Common.Gui.Properties; using Core.Components.DotSpatial.Data; @@ -33,6 +34,43 @@ /// public class DotSpatialGuiPlugin : GuiPlugin { + private MapRibbon mapRibbon; + private bool activated; + + public override IRibbonCommandHandler RibbonCommandHandler + { + get + { + return mapRibbon; + } + } + + public override void Activate() + { + mapRibbon = CreateMapRibbon(); + Gui.ActiveViewChanged += GuiOnActiveViewChanged; + activated = true; + } + + private void GuiOnActiveViewChanged(object sender, ActiveViewChangeEventArgs e) + { + throw new System.NotImplementedException(); + } + + public override void Dispose() + { + if (activated) + { + Gui.ActiveViewChanged -= GuiOnActiveViewChanged; + } + base.Dispose(); + } + + private MapRibbon CreateMapRibbon() + { + return new MapRibbon(); + } + public override IEnumerable GetViewInfoObjects() { yield return new ViewInfo Index: Core/Plugins/src/Core.Plugins.DotSpatial/Forms/IMapView.cs =================================================================== diff -u --- Core/Plugins/src/Core.Plugins.DotSpatial/Forms/IMapView.cs (revision 0) +++ Core/Plugins/src/Core.Plugins.DotSpatial/Forms/IMapView.cs (revision 22f1bb3808dd48f3350d6a39171fe3b002da0a91) @@ -0,0 +1,37 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using Core.Common.Controls.Views; +using Core.Components.DotSpatial; + +namespace Core.Plugins.DotSpatial.Forms +{ + /// + /// Interface describing that contain a as one of its components. + /// + public interface IMapView : IView + { + /// + /// Gets the set for this . + /// + IMap Map { get; } + } +} \ No newline at end of file Index: Core/Plugins/src/Core.Plugins.OxyPlot/Forms/IChartView.cs =================================================================== diff -u -rfbb37872d09f1ded75ce2209e8e48a6b64d8a78f -r22f1bb3808dd48f3350d6a39171fe3b002da0a91 --- Core/Plugins/src/Core.Plugins.OxyPlot/Forms/IChartView.cs (.../IChartView.cs) (revision fbb37872d09f1ded75ce2209e8e48a6b64d8a78f) +++ Core/Plugins/src/Core.Plugins.OxyPlot/Forms/IChartView.cs (.../IChartView.cs) (revision 22f1bb3808dd48f3350d6a39171fe3b002da0a91) @@ -21,17 +21,16 @@ using Core.Common.Controls.Views; using Core.Components.Charting; -using Core.Components.OxyPlot.Forms; namespace Core.Plugins.OxyPlot.Forms { /// - /// Interface describing that contain a as one of its components. + /// Interface describing that contain a as one of its components. /// public interface IChartView : IView { /// - /// Gets the set for this . + /// Gets the set for this . /// IChart Chart { get; } }