ATF Diagram Editor Sample - kaisu1986/ATF GitHub Wiki
DiagramEditor combines the Circuit, FSM, and Statechart editors in a single application to show how multiple editors can share an application shell.
For a description of this editor's internals, see Diagram Editor Programming Discussion.
The newest features of each of the other editors may not be included, so if you are mainly interested in circuits, for example, please take a look at the Circuit Editor Sample.
- Multiple editors sharing the same ATF application shell and editor components.
- Double-click the DiagramEditor.exe in ATF\Samples\DiagramEditor\bin\Release.
- The DiagramEditor window appears.
- Palette (Circuit Modules, FSM, Statecharts): the parts palette: this is the combined parts palette containing parts for designing circuit modules, finite state machines, and statecharts for your diagrams.
- Property Editor: edit the selected element's property in a list control.
- Grid Property Editor: edit the selected element's property in a grid control.
- Prototypes: lists the custom fragments that you define for use in your diagrams.
- Layers: lists layers and their elements.
- Canvas: define, view, and edit diagrams.
- File: create a new circuit, finite state machine, or statechart, open an existing circuit, finite state machine, or statechart, Save, Save as, Save all, Close, Print, Page Set-up, Print Preview, and Exit DiagramEditor.
- Edit: in addition to the standard editing functions (cut, copy, paste, undo/redo, and so on), Edit provides:
- Keyboard Shortcuts: use the Customize Keyboard Shortcuts window to set up keyboard shortcuts.
- Load or Save Settings: use the Load and Save Settings window to save current StatechartEditor application settings, or to load application settings from a file.
- Preferences: set application and document preferences, such as command icon size and auto-load the last active documents.
- View: choose Frame Selection or Frame All
- Format: determine the alignment and size of state elements.
- Window: select and deselect panes.
DiagramEditor opens with an empty canvas grid. Drag elements from the Palette onto the canvas to work with them. Click the tabs for the various panes to view and edit element properties.
To create a group within the circuit canvas:
- Select the circuit elements to be grouped.
- Select either Edit > Group, or click the Group button on the toolbar.
- Select the group.
- Click the Ungroup button on the toolbar.
- Select the diagram element(s) to include in the layer.
- Copy the selected diagram element (s) to the clipboard.
- Paste the diagram element(s) in the Layers pane.