Example #1
0
 public LoggerUIPlugin()
 {
     traceLoggerRibbonGroup = new TraceLoggerRibbonGroup();
     entry    = new RibbonEntry(traceLoggerRibbonGroup, RibbonTabOrder.Help, "HelpRibbonTabHeader");
     Index    = UIPluginOrder.LoggerUIPlugin;
     IsActive = false;
 }
Example #2
0
        public BookmarkUIPlugin()
        {
            viewModel   = new BookmarkRibbonGroupViewModel();
            Description = GisEditor.LanguageManager.GetStringResource("ManageBookmarksPluginDescreption");
            Index       = UIPluginOrder.BookmarkPlugin;
            SmallIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/bookmarks.png", UriKind.RelativeOrAbsolute));
            LargeIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/bookmarks.png", UriKind.RelativeOrAbsolute));

            bookmarkGroup             = new BookmarkRibbonGroup();
            bookmarkGroup.DataContext = viewModel;

            bookmarkEntry                = new RibbonEntry();
            bookmarkEntry.RibbonGroup    = bookmarkGroup;
            bookmarkEntry.RibbonTabName  = "HomeRibbonTabHeader";
            bookmarkEntry.RibbonTabIndex = RibbonTabOrder.Home;

            bookMarkDockWindow         = new DockWindow();
            bookMarkDockWindow.Content = new BookmarkListUserControl()
            {
                DataContext = viewModel
            };
            bookMarkDockWindow.Title       = "BookmarksPluginTitle";
            bookMarkDockWindow.Name        = "Bookmarks";
            bookMarkDockWindow.StartupMode = DockWindowStartupMode.Hide;
        }
        public ScalePlugin()
        {
            viewModel = new ScaleSettingsRibbonGroupViewModel();
            ScaleSettingsRibbonGroup scaleSettingsRibbonGroup = new ScaleSettingsRibbonGroup();

            scaleSettingsRibbonGroup.DataContext = viewModel;
            ribbonEntry = new RibbonEntry(scaleSettingsRibbonGroup, 1, "HomeRibbonTabHeader");
            Index       = UIPluginOrder.ScalePlugin;
        }
        public GeoProcessingUIPlugin()
        {
            Index = UIPluginOrder.GeoProcessingPlugin;
            geoprocessingGroup = new GeoProcessingGroup();
            geoprocessingEntry = new RibbonEntry(geoprocessingGroup, RibbonTabOrder.Tools, "ToolsRibbonTabHeader");

            dataRibbonGroup = new DataRibbonGroup();
            dataEntry       = new RibbonEntry(dataRibbonGroup, RibbonTabOrder.Tools, "ToolsRibbonTabHeader");
        }
Example #5
0
        public ScriptUIPlugin()
        {
            Description = GisEditor.LanguageManager.GetStringResource("ScriptUIPluginDescription");
            SmallIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/ScriptPlugin.png", UriKind.RelativeOrAbsolute));
            LargeIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/ScriptPlugin.png", UriKind.RelativeOrAbsolute));
            Index       = UIPluginOrder.ScriptPlugin;

            ribbons     = new DynamicLanguageRibbonGroup();
            ribbonEntry = new RibbonEntry(ribbons, RibbonTabOrder.Tools, "ToolsRibbonTabHeader");
        }
Example #6
0
        public ReprojectionUIPlugin()
        {
            base.LoadCore();
            Index       = UIPluginOrder.ReprojectionPlugin;
            Description = GisEditor.LanguageManager.GetStringResource("ReprojectionUIPluginDescription");
            SmallIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/reprojection_32x32.png", UriKind.RelativeOrAbsolute));
            LargeIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/reprojection_32x32.png", UriKind.RelativeOrAbsolute));

            ribbonGroup = new ReprojectionRibbonGroup();
            ribbonEntry = new RibbonEntry(ribbonGroup, RibbonTabOrder.Tools, "ToolsRibbonTabHeader");
        }
        public GoogleEarthUIPlugin()
        {
            Index       = UIPluginOrder.GoogleEarthUIPlugin;
            Name        = "Google earth plugin";
            Description = "Google earth plugin";
            SmallIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/reprojection_32x32.png", UriKind.RelativeOrAbsolute));
            LargeIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/reprojection_32x32.png", UriKind.RelativeOrAbsolute));

            googleEarthRibbonGroup = new GoogleEarthRibbonGroup();
            ribbonEntry            = new RibbonEntry(googleEarthRibbonGroup, RibbonTabOrder.Tools, "ToolsRibbonTabHeader");
        }
        public HelpUIPlugin()
        {
            Index       = UIPluginOrder.HelpPlugin;
            Description = GisEditor.LanguageManager.GetStringResource("HelpPluginDescription");
            HelpRibbonGroup helpGroup = new HelpRibbonGroup();

            helpGroup.DataContext = viewModel;

            helpEntry                = new RibbonEntry();
            helpEntry.RibbonGroup    = helpGroup;
            helpEntry.RibbonTabName  = "HelpRibbonTabHeader";
            helpEntry.RibbonTabIndex = RibbonTabOrder.Help;
        }
        public ViewUIPlugin()
        {
            customZoomLevelSets = new Dictionary <string, List <double> >();
            Index       = UIPluginOrder.MapElementsPlugin;
            Description = GisEditor.LanguageManager.GetStringResource("ViewUIPluginDescription");
            SmallIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/View.png", UriKind.RelativeOrAbsolute));
            LargeIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/View.png", UriKind.RelativeOrAbsolute));

            viewGroup                = new ViewRibbonGroup();
            viewEntry                = new RibbonEntry();
            viewEntry.RibbonGroup    = viewGroup;
            viewEntry.RibbonTabIndex = RibbonTabOrder.Home;
        }
Example #10
0
        public AnnotationUIPlugin()
        {
            IsActive    = false;
            Description = GisEditor.LanguageManager.GetStringResource("AnnotationUIPluginDescription");
            SmallIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/PluginIcon.png", UriKind.RelativeOrAbsolute));
            LargeIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/PluginIcon.png", UriKind.RelativeOrAbsolute));
            Index       = UIPluginOrder.AnnotationPlugin;

            drawAndEditGroup                = new AnnotationRibbonGroup();
            drawAndEditGroup.DataContext    = viewModel;
            drawAndEditEntry                = new RibbonEntry();
            drawAndEditEntry.RibbonGroup    = drawAndEditGroup;
            drawAndEditEntry.RibbonTabName  = "AnnotationPluginGroupTabName";
            drawAndEditEntry.RibbonTabIndex = RibbonTabOrder.Annotation;
        }
        public ContentUIPlugin()
        {
            Description     = GisEditor.LanguageManager.GetStringResource("ContentUIPluginDescription");
            SmallIcon       = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/NewContent.png", UriKind.RelativeOrAbsolute));
            LargeIcon       = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/NewContent.png", UriKind.RelativeOrAbsolute));
            Index           = UIPluginOrder.ContentPlugin;
            initializedMaps = new Collection <GisEditorWpfMap>();

            //IndexAdapterManager.Instance.GetPlugins();
            //ShapeAdapterManager.Instance.GetPlugins();
            InteractiveOverlayPluginManager.Instance.GetPlugins();

            contentGroup = new ContentRibbonGroup();
            contentEntry = new RibbonEntry(contentGroup, RibbonTabOrder.Home, "HomeRibbonTabHeader");
        }
Example #12
0
        public MeasureUIPlugin()
        {
            Index       = UIPluginOrder.MeasurePlugin;
            Description = GisEditor.LanguageManager.GetStringResource("MeasurePluginDescription");

            measureGroup = new MeasureRibbonGroup();
            measureEntry = new RibbonEntry(measureGroup, RibbonTabOrder.Measure, "MeasureRibbonTabHeader");

            helpRibbonGroup = new RibbonGroup();
            helpRibbonGroup.Items.Add(HelpResourceHelper.GetHelpButton("MeasurePluginHelp", HelpButtonMode.RibbonButton));
            helpRibbonGroup.GroupSizeDefinitions.Add(new RibbonGroupSizeDefinition()
            {
                IsCollapsed = false
            });
            helpRibbonGroup.SetResourceReference(RibbonGroup.HeaderProperty, "HelpHeader");
            helpEntry = new RibbonEntry(helpRibbonGroup, RibbonTabOrder.Measure, "MeasureRibbonTabHeader");
        }
Example #13
0
        public SelectionUIPlugin()
        {
            Index = UIPluginOrder.SelectionPlugin;
            selectionAndQueryingGroup = new SelectionAndQueryingRibbonGroup();
            selectionAndQueryingEntry = new RibbonEntry(selectionAndQueryingGroup, RibbonTabOrder.SelectFeatures, "SelectFeaturesTabHeader");

            helpRibbonGroup = new RibbonGroup();
            helpRibbonGroup.Items.Add(HelpResourceHelper.GetHelpButton("SelectFeaturesPluginHelp", HelpButtonMode.RibbonButton));
            helpRibbonGroup.GroupSizeDefinitions.Add(new RibbonGroupSizeDefinition()
            {
                IsCollapsed = false
            });
            helpRibbonGroup.SetResourceReference(RibbonGroup.HeaderProperty, "HelpButtonContent");
            helpEntry         = new RibbonEntry(helpRibbonGroup, RibbonTabOrder.SelectFeatures, "SelectFeaturesTabHeader");
            displayTextBlock  = new TextBlock();
            selectedTextBlock = new TextBlock();
        }
        public EditorUIPlugin()
        {
            Index       = UIPluginOrder.EditorPlugin;
            SmallIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/EditorPlugin.png", UriKind.RelativeOrAbsolute));
            LargeIcon   = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/EditorPlugin.png", UriKind.RelativeOrAbsolute));
            Description = GisEditor.LanguageManager.GetStringResource("EditorUIPluginDescription");

            editingToolsRibbonGroup    = new EditingToolsRibbonGroup();
            snappingToolsRibbonGroup   = new SnappingToolsRibbonGroup();
            shapeOperationsRibbonGroup = new ShapeOperationsRibbonGroup();

            helpRibbonGroup = new RibbonGroup();
            helpRibbonGroup.Items.Add(HelpResourceHelper.GetHelpButton("EditorPluginHelp", HelpButtonMode.RibbonButton));
            helpRibbonGroup.GroupSizeDefinitions.Add(new RibbonGroupSizeDefinition()
            {
                IsCollapsed = false
            });
            helpRibbonGroup.SetResourceReference(RibbonGroup.HeaderProperty, "HelpHeader");

            editingToolsEntry                = new RibbonEntry();
            editingToolsEntry.RibbonGroup    = editingToolsRibbonGroup;
            editingToolsEntry.RibbonTabIndex = RibbonTabOrder.Edit;
            editingToolsEntry.RibbonTabName  = "EditRibbonTabHeader";

            snappingToolsEntry                = new RibbonEntry();
            snappingToolsEntry.RibbonGroup    = snappingToolsRibbonGroup;
            snappingToolsEntry.RibbonTabIndex = RibbonTabOrder.Edit;
            snappingToolsEntry.RibbonTabName  = "EditRibbonTabHeader";

            shapeOperationsEntry                = new RibbonEntry();
            shapeOperationsEntry.RibbonGroup    = shapeOperationsRibbonGroup;
            shapeOperationsEntry.RibbonTabName  = "EditRibbonTabHeader";
            shapeOperationsEntry.RibbonTabIndex = RibbonTabOrder.Edit;

            helpEntry                = new RibbonEntry();
            helpEntry.RibbonGroup    = helpRibbonGroup;
            helpEntry.RibbonTabName  = "EditRibbonTabHeader";
            helpEntry.RibbonTabIndex = RibbonTabOrder.Edit;
        }