Exemplo n.º 1
0
        private void SetUpMapToolbar()
        {
            var          t          = this.MapToolbar;
            const string categoryId = "Default0";

            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                       MapToolbarButtonType.Switch3D, MapToolbarButtonType.ZoomIn, MapToolbarButtonType.ZoomOut, MapToolbarButtonType.ZoomRect, MapToolbarButtonType.FitAll, MapToolbarButtonType.ResetNorth));
            t.Add("Fancy0", new ToolbarMapZoomHistoryControl {
                MapStateId = this.MainMapStateId
            });

            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.DataSourcesWindow, ShowWindowToolbarButtonType.ViewMapServices));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NewDataSourceWindow, ShowWindowToolbarButtonType.AddMapService));
            t.Add(categoryId, new Separator());
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.LegendWindow, ShowWindowToolbarButtonType.AddLegends));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.CategoryWindow, ShowWindowToolbarButtonType.AddFeatureClasses));
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ClearMap));
            t.Add(categoryId, new Separator());
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.ScaleBandWindow, ShowWindowToolbarButtonType.ScaleBandsConfiguration));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NotificationHistoryWindow, ShowWindowToolbarButtonType.MessageLog));
            t.Add(categoryId, new ToolbarMapScaleControl {
                MapStateId = this.MainMapStateId
            });
            t.Add(categoryId, new CoordinateSystemSelectTool {
                MapStateId = this.MainMapStateId
            });
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.CreateCloudApplication));
        }
Exemplo n.º 2
0
        private void SetUpToolbar()
        {
            var          t        = this.MapToolbar;
            const string default0 = "Default0";
            const string fancy0   = "Fancy0";

            t.AddRange(fancy0, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                     MapToolbarButtonType.Switch3D, MapToolbarButtonType.ZoomIn, MapToolbarButtonType.ZoomOut, MapToolbarButtonType.ZoomRect, MapToolbarButtonType.FitAll, MapToolbarButtonType.ResetNorth));
            t.Add(fancy0, new ToolbarMapZoomHistoryControl {
                MapStateId = this.MainMapStateId
            });

            t.AddRange(default0, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                       MapToolbarButtonType.FeatureInfo));

            t.Add(default0, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.ScaleBandWindow, ShowWindowToolbarButtonType.ScaleBandsConfiguration));
            t.Add(default0, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.PreviewMapWindow, ShowWindowToolbarButtonType.PreviewWindow));
            t.Add(default0, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.UserMapsWindow, ShowWindowToolbarButtonType.MapStorage));
            t.AddRange(default0, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.Geolocation, MapToolbarButtonType.DirectLink));
            t.Add(default0, new ShowWindowToolbarButton()
            {
                Window = this.WMCActionWindow, ToolTip = GetLocalResourceObject("WMC.ToolTip").ToString(), IconClassName = "wc_map_tb_wmc mwnt-wmc-action-button", MapToolbarCategoryId = MapToolbarCategory.Tools
            });
            t.Add(default0, new ShowWindowToolbarButton()
            {
                Window = this.AboutWindow, ToolTip = GetLocalResourceObject("About.ToolTip").ToString(), IconClassName = "wc_map_tb_abo mwnt-about-window-button", MapToolbarCategoryId = MapToolbarCategory.Tools
            });
            //t.Add("Default0", new Separator());
            t.Add(default0, new ToolbarMapScaleControl {
                MapStateId = this.MainMapStateId
            });
            //t.Add("Default0", new Separator());
            t.AddRange(default0, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                       MapToolbarButtonType.MeasurePoint, MapToolbarButtonType.MeasureDistance, MapToolbarButtonType.MeasureArea, MapToolbarButtonType.MeasureClear, MapToolbarButtonType.MeasureShowHide));
            //t.Add("Default0", new Separator());
            t.Add(default0, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.DataSourcesWindow, ShowWindowToolbarButtonType.ViewMapServices));
            t.Add(default0, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NewDataSourceWindow, ShowWindowToolbarButtonType.AddMapService));
            //t.Add("Default0", new Separator());
            t.Add(default0, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.LegendWindow, ShowWindowToolbarButtonType.AddLegends));
            t.Add(default0, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.CategoryWindow, ShowWindowToolbarButtonType.AddFeatureClasses));
            t.AddRange(default0, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ClearMap));
            //t.Add("Default0", new Separator());
            t.AddRange(default0, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.SelectByPoint, MapToolbarButtonType.SelectByLine, MapToolbarButtonType.SelectByArea));
            //t.Add("Default0", new Separator());
            t.AddRange(default0, SelectedFeaturesButton.GetSelectedFeaturesButtons(SelectedFeaturesAction.AddToClipboard, SelectedFeaturesAction.Clear));
            //t.Add("Default0", new Separator());
            t.Add(default0, new LiveSearchControl
            {
                MapStateId           = this.MainMapStateId,
                HasSearchMenu        = WebClientPlatformConfiguration.Instance.Search.LiveSearch.HasSearchMenu,
                EntryPointCode       = WebClientPlatformConfiguration.Instance.Search.LiveSearch.EntryPointCode,
                ZoomScaleDenominator = WebClientPlatformConfiguration.Instance.Search.LiveSearch.ZoomScaleDenominator
            });

            t.Add(default0, new LanguageSelector());
        }
Exemplo n.º 3
0
        private void SetUpMapToolbar()
        {
            var t = this.MapToolbar;

            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                       MapToolbarButtonType.Switch3D, MapToolbarButtonType.ZoomIn, MapToolbarButtonType.ZoomOut, MapToolbarButtonType.ZoomRect, MapToolbarButtonType.FitAll, MapToolbarButtonType.ResetNorth));

            t.Add("Fancy0", new ToolbarMapZoomHistoryControl {
                MapStateId = this.MainMapStateId
            });
            t.AddRange(MapToolbarCategory.Tools, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                                       MapToolbarButtonType.FeatureInfo));

            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.ScaleBandWindow, ShowWindowToolbarButtonType.ScaleBandsConfiguration));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.PreviewMapWindow, ShowWindowToolbarButtonType.PreviewWindow));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.UserMapsWindow, ShowWindowToolbarButtonType.MapStorage));
            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.Geolocation, MapToolbarButtonType.DirectLink));
            t.Add(new ShowWindowToolbarButton()
            {
                Window = this.AboutWindow, ToolTip = GetLocalResourceObject("About.ToolTip").ToString(), IconClassName = "wc_map_tb_abo mwnt-about-window-button", MapToolbarCategoryId = MapToolbarCategory.Tools
            });
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NotificationHistoryWindow, ShowWindowToolbarButtonType.MessageLog));

            t.Add(MapToolbarCategory.Tools, new Separator());
            t.Add(new ToolbarMapScaleControl {
                MapStateId = this.MainMapStateId
            });

            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                             MapToolbarButtonType.MeasurePoint, MapToolbarButtonType.MeasureDistance, MapToolbarButtonType.MeasureArea, MapToolbarButtonType.MeasureClear, MapToolbarButtonType.MeasureShowHide));

            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.DataSourcesWindow, ShowWindowToolbarButtonType.ViewMapServices));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NewDataSourceWindow, ShowWindowToolbarButtonType.AddMapService));
            t.Add(MapToolbarCategory.Services, new Separator());
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.LegendWindow, ShowWindowToolbarButtonType.AddLegends));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.CategoryWindow, ShowWindowToolbarButtonType.AddFeatureClasses));
            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ClearMap));

            t.Add(new MembershipControl());
            t.Add(MapToolbarCategory.Tools, new LanguageSelector());
            t.MapToolbarCategories.Add(TimeDimensionControl.ToolbarCategory, new MapToolbarCategory(TimeDimensionControl.ToolbarCategory, GetLocalResourceObject("Time.TimeTabTitle").ToString()));
            t.Add(TimeDimensionControl.ToolbarCategory, new TimeDimensionControl
            {
                MapStateId = this.MainMapStateId
            });
            AddWorkflowManagerToMapToolbar(this.MapToolbar, this.MainMapStateId);
        }
Exemplo n.º 4
0
        private void SetUpMapToolbar()
        {
            var t = this.MapToolbar;

            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                       MapToolbarButtonType.Switch3D, MapToolbarButtonType.ZoomIn, MapToolbarButtonType.ZoomOut, MapToolbarButtonType.ZoomRect, MapToolbarButtonType.FitAll, MapToolbarButtonType.ResetNorth));

            t.Add("Fancy0", new ToolbarMapZoomHistoryControl {
                MapStateId = this.MainMapStateId
            });
            t.AddRange(MapToolbarCategory.Tools, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                                                       MapToolbarButtonType.FeatureInfo));

            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.ScaleBandWindow, ShowWindowToolbarButtonType.ScaleBandsConfiguration));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.PreviewMapWindow, ShowWindowToolbarButtonType.PreviewWindow));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.UserMapsWindow, ShowWindowToolbarButtonType.MapStorage));
            t.Add(MapToolbarCategory.Tools, new PrintingButton {
                Window = this.PrintingWindow
            });
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.DataWindow, ShowWindowToolbarButtonType.DataWindow));
            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.Geolocation, MapToolbarButtonType.DirectLink));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.DynamicObjectViewWindow, ShowWindowToolbarButtonType.DynamicObjectView));
            t.Add(new ShowWindowToolbarButton()
            {
                Window = this.WMCActionWindow, ToolTip = GetLocalResourceObject("WMC.ToolTip").ToString(), IconClassName = "wc_map_tb_wmc mwnt-wmc-action-button", MapToolbarCategoryId = MapToolbarCategory.Tools
            });
            t.Add(new ShowWindowToolbarButton()
            {
                Window = this.AboutWindow, ToolTip = GetLocalResourceObject("About.ToolTip").ToString(), IconClassName = "wc_map_tb_abo mwnt-about-window-button", MapToolbarCategoryId = MapToolbarCategory.Tools
            });
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NotificationHistoryWindow, ShowWindowToolbarButtonType.MessageLog));

            t.Add(MapToolbarCategory.Tools, new Separator());
            t.Add(new ToolbarMapScaleControl {
                MapStateId = this.MainMapStateId
            });

            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false,
                                                             MapToolbarButtonType.MeasurePoint, MapToolbarButtonType.MeasureDistance, MapToolbarButtonType.MeasureArea, MapToolbarButtonType.MeasureClear, MapToolbarButtonType.MeasureShowHide));

            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.DataSourcesWindow, ShowWindowToolbarButtonType.ViewMapServices));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NewDataSourceWindow, ShowWindowToolbarButtonType.AddMapService));
            t.Add(MapToolbarCategory.Services, new Separator());
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.LegendWindow, ShowWindowToolbarButtonType.AddLegends));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.CategoryWindow, ShowWindowToolbarButtonType.AddFeatureClasses));
            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ClearMap));

            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.SelectByPoint, MapToolbarButtonType.SelectByLine, MapToolbarButtonType.SelectByArea, MapToolbarButtonType.SelectByBbox));
            t.Add(MapToolbarCategory.Selection, new Separator());
            t.AddRange(SelectedFeaturesButton.GetSelectedFeaturesButtons(SelectedFeaturesAction.AddToClipboard, SelectedFeaturesAction.Clear));

            t.Add(new LiveSearchControl
            {
                MapStateId           = this.MainMapStateId,
                HasSearchMenu        = WebClientPlatformConfiguration.Instance.Search.LiveSearch.HasSearchMenu,
                EntryPointCode       = WebClientPlatformConfiguration.Instance.Search.LiveSearch.EntryPointCode,
                ZoomScaleDenominator = WebClientPlatformConfiguration.Instance.Search.LiveSearch.ZoomScaleDenominator
            });

            t.MapToolbarCategories.Add(TimeDimensionControl.ToolbarCategory, new MapToolbarCategory(TimeDimensionControl.ToolbarCategory, GetLocalResourceObject("Time.TimeTabTitle").ToString()));
            t.Add(TimeDimensionControl.ToolbarCategory, new TimeDimensionControl
            {
                MapStateId = this.MainMapStateId
            });

            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.RedliningWindow, ShowWindowToolbarButtonType.InsertFeature));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.InsertTextWindow, ShowWindowToolbarButtonType.InsertText));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.SnapWindow, ShowWindowToolbarButtonType.Snap));
            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.EditGeometry));
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.ContinueGeometryWindow, ShowWindowToolbarButtonType.ContinueGeometry));
            t.AddRange(MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.MoveGeometry, MapToolbarButtonType.RemoveGeometryPart, MapToolbarButtonType.RemoveSelectedFeatures));
            t.Add(MapToolbarCategory.Edit, new Separator());
            t.Add(ShowWindowToolbarButton.GetShowWindowToolbarButton(this.InsertMarkerAnnotationWindow, ShowWindowToolbarButtonType.InsertMarkerAnnotation));
            t.Add(new MembershipControl());

            t.MapToolbarCategories.Add(QualityMonitorButton.CategoryId, new MapToolbarCategory(QualityMonitorButton.CategoryId, GetLocalResourceObject("QM.TabTitle").ToString()));
            t.Add(new ShowWindowToolbarButton()
            {
                Window = this.QualityMonitorWindow, ButtonType = ShowWindowToolbarButtonType.QualityMonitorWindow, ToolTip = GetLocalResourceObject("QM.ShowDataWindowTooltip").ToString(), IconClassName = "qm_show_btn wmnt-quality-monitor-show-btn", MapToolbarCategoryId = QualityMonitorButton.CategoryId
            });


            t.Add(new QualityMonitorButton {
                AllowDepress = true, ToolTip = GetLocalResourceObject("QM.ShowMapLayerTooltip").ToString(), IconClassName = "qm_show_map_btn wmnt-quality-monitor-btn", MapToolbarCategoryId = QualityMonitorButton.CategoryId, EnableToggle = true, ToggleHandler = "handler", Hidden = true
            });
            t.Add(new ShowWindowToolbarButton()
            {
                Window = this.QualityMonitorAdminWindow, ButtonType = ShowWindowToolbarButtonType.QualityMonitorAdminWindow, ToolTip = GetLocalResourceObject("QM.ShowAdminWindowTooltip").ToString(), IconClassName = "qm_show_admin_btn wmnt-quality-monitor-show-admin-btn", MapToolbarCategoryId = QualityMonitorButton.CategoryId, Hidden = true
            });

            t.Add(MapToolbarCategory.Tools, new LanguageSelector());
            AddWorkflowManagerToMapToolbar(this.MapToolbar, this.MainMapStateId);
        }
Exemplo n.º 5
0
        private void SetUpMapToolbar()
        {
            //var t = this.MapContainer.TopToolbar;
            var t = this.MapToolbar;

            const string categoryId = "Default0";

            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.Switch3D));
            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ZoomIn));
            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ZoomOut));
            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ZoomRect));
            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.FitAll));
            t.AddRange("Fancy0", MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.ResetNorth));
            t.Add("Fancy0", new ToolbarMapZoomHistoryControl {
                MapStateId = this.MainMapStateId
            });

            t.Add(categoryId, new LiveSearchControl
            {
                MapStateId           = this.MainMapStateId,
                HasSearchMenu        = WebClientPlatformConfiguration.Instance.Search.LiveSearch.HasSearchMenu,
                EntryPointCode       = WebClientPlatformConfiguration.Instance.Search.LiveSearch.EntryPointCode,
                ZoomScaleDenominator = WebClientPlatformConfiguration.Instance.Search.LiveSearch.ZoomScaleDenominator
            }
                  );

            t.Add(categoryId, new Separator());
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.FeatureInfo));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.SimpleQueryWindow, ShowWindowToolbarButtonType.QueryWindow));

            t.Add(categoryId, new Separator());
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.MeasurePoint));
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.MeasureDistance));
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.MeasureArea));
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.MeasureClear));
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.MeasureShowHide));

            t.Add(categoryId, new Separator());
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.SelectByPoint));
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.SelectByLine));
            t.AddRange(categoryId, MapToolbarButton.GetMapToolbarButtons(this.MainMapStateId, false, MapToolbarButtonType.SelectByArea));
            t.AddRange(categoryId, SelectedFeaturesButton.GetSelectedFeaturesButtons(SelectedFeaturesAction.AddToClipboard));

            t.Add(categoryId, new Separator());
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.DataSourcesWindow, ShowWindowToolbarButtonType.ViewMapServices));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NewDataSourceWindow, ShowWindowToolbarButtonType.AddMapService));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.LegendWindow, ShowWindowToolbarButtonType.AddLegends));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.CategoryWindow, ShowWindowToolbarButtonType.AddFeatureClasses));

            t.Add(categoryId, new Separator());
            t.Add(categoryId, new PrintingButton {
                Window = this.PrintingWindow
            });
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.UserMapsWindow, ShowWindowToolbarButtonType.MapStorage));
            t.Add(categoryId, ShowWindowToolbarButton.GetShowWindowToolbarButton(this.NotificationHistoryWindow, ShowWindowToolbarButtonType.MessageLog));
            t.Add(categoryId, new ShowWindowToolbarButton()
            {
                Window = this.AboutWindow, ToolTip = GetLocalResourceObject("About.ToolTip").ToString(), IconClassName = "wc_map_tb_abo mwnt-about-window-button", MapToolbarCategoryId = MapToolbarCategory.Tools
            });

            t.Add(categoryId, new ToolbarMapScaleControl {
                MapStateId = this.MainMapStateId
            });
        }