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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu May 24 07:13:08 EDT 2012


Author: jng
Date: 2012-05-24 04:13:08 -0700 (Thu, 24 May 2012)
New Revision: 6691

Modified:
   branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/AppLayout.cs
   branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/Shell.cs
   branches/2.4/MgDev/Desktop/MapViewer/IMapLegend.cs
   branches/2.4/MgDev/Desktop/MgAppLayout/Sheboygan.AppLayout
Log:
mg-desktop updates:
 - Expose the ThemeCompressionLimit property in the AppLayout

Modified: branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/AppLayout.cs
===================================================================
--- branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/AppLayout.cs	2012-05-24 02:29:48 UTC (rev 6690)
+++ branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/AppLayout.cs	2012-05-24 11:13:08 UTC (rev 6691)
@@ -53,7 +53,8 @@
             {
                 Legend = new LegendSettings() 
                 {
-                    Visible = true
+                    Visible = true,
+                    ThemeCompressionLimit = 25
                 },
                 PropertyPane = new PropertyPaneSettings() 
                 {
@@ -287,6 +288,8 @@
     {
         [XmlElement]
         public bool Visible { get; set; }
+
+        public int? ThemeCompressionLimit { get; set; }
     }
 
     public class PropertyPaneSettings

Modified: branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/Shell.cs
===================================================================
--- branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/Shell.cs	2012-05-24 02:29:48 UTC (rev 6690)
+++ branches/2.4/MgDev/Desktop/MapViewer/AppLayoutEngine/Shell.cs	2012-05-24 11:13:08 UTC (rev 6691)
@@ -35,6 +35,8 @@
             if (_layout.InfoPane.IsVisible)
             {
                 SetLegendVisbility(_layout.InfoPane.Legend.Visible);
+                if (_layout.InfoPane.Legend.ThemeCompressionLimit.HasValue)
+                    legend.ThemeCompressionLimit = _layout.InfoPane.Legend.ThemeCompressionLimit.Value;
                 SetPropertyPaneVisbility(_layout.InfoPane.PropertyPane.Visible);
             }
             SetTaskPaneWidth(_layout.TaskPane.Width);

Modified: branches/2.4/MgDev/Desktop/MapViewer/IMapLegend.cs
===================================================================
--- branches/2.4/MgDev/Desktop/MapViewer/IMapLegend.cs	2012-05-24 02:29:48 UTC (rev 6690)
+++ branches/2.4/MgDev/Desktop/MapViewer/IMapLegend.cs	2012-05-24 11:13:08 UTC (rev 6691)
@@ -37,6 +37,12 @@
         ContextMenuStrip LayerContextMenu { get; set; }
 
         /// <summary>
+        /// Gets or sets the theme compression limit (the number of rules a theme must exceed in order to be
+        /// compressed)
+        /// </summary>
+        int ThemeCompressionLimit { get; set; }
+
+        /// <summary>
         /// Gets the selected layer
         /// </summary>
         /// <returns></returns>

Modified: branches/2.4/MgDev/Desktop/MgAppLayout/Sheboygan.AppLayout
===================================================================
--- branches/2.4/MgDev/Desktop/MgAppLayout/Sheboygan.AppLayout	2012-05-24 02:29:48 UTC (rev 6690)
+++ branches/2.4/MgDev/Desktop/MgAppLayout/Sheboygan.AppLayout	2012-05-24 11:13:08 UTC (rev 6691)
@@ -14,6 +14,7 @@
     <Width>200</Width>
     <Legend>
       <Visible>true</Visible>
+      <ThemeCompressionLimit>25</ThemeCompressionLimit>
     </Legend>
     <PropertyPane>
       <Visible>true</Visible>



More information about the mapguide-commits mailing list