NShape Reference
ToolSetController Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Controllers >

NShape Reference
ToolSetController Class

Previous pageReturn to chapter overviewNext page

Provides methods and properties for managing a set of Tools.

Syntax

public class ToolSetController : Component, IDisplayService, IDisposable

Description

Provides methods and properties for managing a set of Tools.

Public Properties

Name

Description

DefaultTool

The default tool that will be selected after a tool was executed or canceled.

DiagramSetController

The DiagramSetController that uses the SelectedTool for editing diagrams.

ProductVersion

The version of the component.

Project

Provides access to the DiagramSetController's project.

SelectedTool

The currently selected tool.

Tools

Provides a list of tools.

Public Methods

Name

Description

AddTool

Adds a new tool.

Clear

Removes all tools.

Constructor

Constructs a new instance.

CreateStandardTools

Creates standard tools such as the PointerTool.

CreateTemplateTool

Creates a new tool for creating a templated shape.

DeleteSelectedTemplate

Deletes the selected tool and its template.

DeleteTool

Deletes the selected tool.

FindTool

Finds the tool that contains the given template.

GetMenuItemDefs

Returns a list of MenuItemDefs.

SelectTool

Sets the given tool as the selected tool.

ShowDesignEditor

Fires the DesignEditorSelected event.

If it is not handled, or the current role has not the necessary permissions, nothing will happen.

ShowLibraryManager

Fires the DesignEditorSelected event.

If it is not handled, or the current role has not the necessary permissions, nothing will happen.

ShowTemplateEditor

Show registered LibraryManagerSelected event for loading library assemblies

Events

Name

Description

Cleared

Occurs when the content of the toolbox has been cleared.

DesignEditorSelected

Occurs when the Design editor has to be shown.

LibraryManagerSelected

Occurs when the library management dialog has to be shown.

TemplateEditorSelected

Occurs when the template editor has to be shown.

ToolAdded

Occurs when a tool has been added to the toolbox.

ToolChanged

Occurs when a Tool has been changed.

ToolRemoved

Occurs when a tool has been removed from the toolbox.

ToolSelected

Occurs when a tool has been selected.

Protected Methods

Name

Description

Dispose

Implementation of Component.Dispose

OnShowDesignEditorDialog

Shows a DesignEditor for creating or editing designs.

OnShowLibraryManagerDialog

Shows a LibraryManager dialog

OnShowTemplateEditorDialog

Show registered TemplateEditor for creating or editing a Template.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape