Fisheye: Tag cdf2b999555f271c969c035e9c869acc1a80f636 refers to a dead (removed) revision in file `Core/Common/src/Core.Common.Gui/Clipboard/ClipboardProvider.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cdf2b999555f271c969c035e9c869acc1a80f636 refers to a dead (removed) revision in file `Core/Common/src/Core.Common.Gui/Clipboard/IClipboard.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cdf2b999555f271c969c035e9c869acc1a80f636 refers to a dead (removed) revision in file `Core/Common/src/Core.Common.Gui/Clipboard/SystemClipboard.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Core/Common/src/Core.Common.Gui/Clipboard1/ClipboardProvider.cs
===================================================================
diff -u
--- Core/Common/src/Core.Common.Gui/Clipboard1/ClipboardProvider.cs (revision 0)
+++ Core/Common/src/Core.Common.Gui/Clipboard1/ClipboardProvider.cs (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -0,0 +1,34 @@
+// Copyright (C) Stichting Deltares 2019. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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.
+
+namespace Core.Common.Gui.Clipboard1
+{
+ ///
+ /// Provides the to be used for copy/paste actions.
+ ///
+ public static class ClipboardProvider
+ {
+ ///
+ /// Gets the clipboard instance to be used.
+ ///
+ public static IClipboard Clipboard { get; internal set; } = new SystemClipboard();
+ }
+}
\ No newline at end of file
Index: Core/Common/src/Core.Common.Gui/Clipboard1/IClipboard.cs
===================================================================
diff -u
--- Core/Common/src/Core.Common.Gui/Clipboard1/IClipboard.cs (revision 0)
+++ Core/Common/src/Core.Common.Gui/Clipboard1/IClipboard.cs (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -0,0 +1,54 @@
+// Copyright (C) Stichting Deltares 2019. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 System.Windows.Forms;
+
+namespace Core.Common.Gui.Clipboard1
+{
+ ///
+ /// Interface representing the clipboard.
+ ///
+ public interface IClipboard
+ {
+ ///
+ /// Clears the clipboard, places data on it and specifies whether the data should remain after the
+ /// application exits.
+ ///
+ /// The data to place on the clipboard.
+ /// true if the data must remain on the clipboard after the application
+ /// exits, false otherwise.
+ void SetDataObject(object data, bool copy = false);
+
+ ///
+ /// Retrieves the data that is currently on the clipboard.
+ ///
+ /// The that is on the clipboard, or null if the clipboard
+ /// does not contain any data.
+ IDataObject GetDataObject();
+
+ ///
+ /// Retrieves the textual data that is currently on the clipboard.
+ ///
+ /// The textual data that is on the clipboard, or null if the clipboard does not
+ /// contain any textual data.
+ string GetText();
+ }
+}
\ No newline at end of file
Index: Core/Common/src/Core.Common.Gui/Clipboard1/SystemClipboard.cs
===================================================================
diff -u
--- Core/Common/src/Core.Common.Gui/Clipboard1/SystemClipboard.cs (revision 0)
+++ Core/Common/src/Core.Common.Gui/Clipboard1/SystemClipboard.cs (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -0,0 +1,46 @@
+// Copyright (C) Stichting Deltares 2019. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 System.Windows.Forms;
+
+namespace Core.Common.Gui.Clipboard1
+{
+ ///
+ /// Implementation of based on the system .
+ ///
+ internal class SystemClipboard : IClipboard
+ {
+ public void SetDataObject(object data, bool copy = false)
+ {
+ Clipboard.SetDataObject(data, copy);
+ }
+
+ public IDataObject GetDataObject()
+ {
+ return Clipboard.GetDataObject();
+ }
+
+ public string GetText()
+ {
+ return Clipboard.GetText();
+ }
+ }
+}
\ No newline at end of file
Index: Core/Common/src/Core.Common.Gui/ExceptionDialog.cs
===================================================================
diff -u -re75ff273f0e261eb9f7534d56b6f6a642b01ff9e -rcdf2b999555f271c969c035e9c869acc1a80f636
--- Core/Common/src/Core.Common.Gui/ExceptionDialog.cs (.../ExceptionDialog.cs) (revision e75ff273f0e261eb9f7534d56b6f6a642b01ff9e)
+++ Core/Common/src/Core.Common.Gui/ExceptionDialog.cs (.../ExceptionDialog.cs) (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -22,7 +22,7 @@
using System;
using System.Windows.Forms;
using Core.Common.Controls.Dialogs;
-using Core.Common.Gui.ClipBoard;
+using Core.Common.Gui.Clipboard1;
using Core.Common.Gui.Commands;
using Core.Common.Gui.Properties;
Index: Core/Common/src/Core.Common.Gui/Forms/MessageWindow/MessageWindow.cs
===================================================================
diff -u -re75ff273f0e261eb9f7534d56b6f6a642b01ff9e -rcdf2b999555f271c969c035e9c869acc1a80f636
--- Core/Common/src/Core.Common.Gui/Forms/MessageWindow/MessageWindow.cs (.../MessageWindow.cs) (revision e75ff273f0e261eb9f7534d56b6f6a642b01ff9e)
+++ Core/Common/src/Core.Common.Gui/Forms/MessageWindow/MessageWindow.cs (.../MessageWindow.cs) (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -26,7 +26,7 @@
using System.Globalization;
using System.IO;
using System.Windows.Forms;
-using Core.Common.Gui.ClipBoard;
+using Core.Common.Gui.Clipboard1;
using Core.Common.Gui.Properties;
using log4net.Core;
Index: Core/Common/test/Core.Common.Gui.Test/ExceptionDialogTest.cs
===================================================================
diff -u -r1ef6b41e13456c0e97f61c3cc320a093f672bfd3 -rcdf2b999555f271c969c035e9c869acc1a80f636
--- Core/Common/test/Core.Common.Gui.Test/ExceptionDialogTest.cs (.../ExceptionDialogTest.cs) (revision 1ef6b41e13456c0e97f61c3cc320a093f672bfd3)
+++ Core/Common/test/Core.Common.Gui.Test/ExceptionDialogTest.cs (.../ExceptionDialogTest.cs) (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -21,7 +21,7 @@
using System;
using System.Windows.Forms;
-using Core.Common.Gui.ClipBoard;
+using Core.Common.Gui.Clipboard1;
using Core.Common.Gui.Commands;
using Core.Common.Gui.TestUtil.Clipboard;
using NUnit.Extensions.Forms;
Index: Core/Common/test/Core.Common.Gui.Test/Forms/MessageWindow/MessageWindowTest.cs
===================================================================
diff -u -r1ef6b41e13456c0e97f61c3cc320a093f672bfd3 -rcdf2b999555f271c969c035e9c869acc1a80f636
--- Core/Common/test/Core.Common.Gui.Test/Forms/MessageWindow/MessageWindowTest.cs (.../MessageWindowTest.cs) (revision 1ef6b41e13456c0e97f61c3cc320a093f672bfd3)
+++ Core/Common/test/Core.Common.Gui.Test/Forms/MessageWindow/MessageWindowTest.cs (.../MessageWindowTest.cs) (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -22,7 +22,7 @@
using System;
using System.Data;
using System.Windows.Forms;
-using Core.Common.Gui.ClipBoard;
+using Core.Common.Gui.Clipboard1;
using Core.Common.Gui.TestUtil.Clipboard;
using log4net.Core;
using NUnit.Extensions.Forms;
Index: Core/Common/test/Core.Common.Gui.TestUtil/Clipboard/ClipboardConfig.cs
===================================================================
diff -u -r1ef6b41e13456c0e97f61c3cc320a093f672bfd3 -rcdf2b999555f271c969c035e9c869acc1a80f636
--- Core/Common/test/Core.Common.Gui.TestUtil/Clipboard/ClipboardConfig.cs (.../ClipboardConfig.cs) (revision 1ef6b41e13456c0e97f61c3cc320a093f672bfd3)
+++ Core/Common/test/Core.Common.Gui.TestUtil/Clipboard/ClipboardConfig.cs (.../ClipboardConfig.cs) (revision cdf2b999555f271c969c035e9c869acc1a80f636)
@@ -21,7 +21,7 @@
using System;
using System.Windows.Forms;
-using Core.Common.Gui.ClipBoard;
+using Core.Common.Gui.Clipboard1;
namespace Core.Common.Gui.TestUtil.Clipboard
{