[mapguide-commits] r6878 - in branches/2.4/MgDev/Desktop: MapViewer MgAppLayout

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Jul 8 20:12:46 PDT 2012


Author: jng
Date: 2012-07-08 20:12:46 -0700 (Sun, 08 Jul 2012)
New Revision: 6878

Modified:
   branches/2.4/MgDev/Desktop/MapViewer/IMapViewer.cs
   branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs
   branches/2.4/MgDev/Desktop/MgAppLayout/MgAppLayout.csproj
Log:
Expose the CancelDigitization() API, allowing for programmatic cancellation instead of requiring the ESC key to be pressed.

Modified: branches/2.4/MgDev/Desktop/MapViewer/IMapViewer.cs
===================================================================
--- branches/2.4/MgDev/Desktop/MapViewer/IMapViewer.cs	2012-07-07 17:11:44 UTC (rev 6877)
+++ branches/2.4/MgDev/Desktop/MapViewer/IMapViewer.cs	2012-07-09 03:12:46 UTC (rev 6878)
@@ -380,6 +380,11 @@
         /// Gets the view history stack. The first item being the earliest and the last item being the most recent.
         /// </summary>
         ReadOnlyCollection<MgMapViewHistoryEntry> ViewHistory { get; }
+
+        /// <summary>
+        /// Cancels the active digitization process. Does nothing if <see cref="DigitizingType"/> is MapDigitizationType.None
+        /// </summary>
+        void CancelDigitization();
     }
 
     public class MgMapViewHistoryEntry

Modified: branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs
===================================================================
--- branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs	2012-07-07 17:11:44 UTC (rev 6877)
+++ branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs	2012-07-09 03:12:46 UTC (rev 6878)
@@ -241,7 +241,7 @@
             }
         }
 
-        private void CancelDigitization()
+        public void CancelDigitization()
         {
             if (this.DigitizingType != MapDigitizationType.None)
             {

Modified: branches/2.4/MgDev/Desktop/MgAppLayout/MgAppLayout.csproj
===================================================================
--- branches/2.4/MgDev/Desktop/MgAppLayout/MgAppLayout.csproj	2012-07-07 17:11:44 UTC (rev 6877)
+++ branches/2.4/MgDev/Desktop/MgAppLayout/MgAppLayout.csproj	2012-07-09 03:12:46 UTC (rev 6878)
@@ -47,6 +47,7 @@
     <DebugType>pdbonly</DebugType>
     <PlatformTarget>x86</PlatformTarget>
     <ErrorReport>prompt</ErrorReport>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="OSGeo.MapGuide.Desktop, Version=2.4.0.0, Culture=neutral, PublicKeyToken=e75f9fd7cf82dc3f, processorArchitecture=x86">



More information about the mapguide-commits mailing list