-
Notifications
You must be signed in to change notification settings - Fork 263
ATF DOM Tree Editor Sample
DomTreeEditor is a sample editor that operates on simple User Interface definition files. The UI data is hierarchical and DomTreeEditor displays it in a TreeControl. You can select and edit UI elements in the tree, and you can edit the properties on the selected elements.
To learn about the programming of this sample, see DOM Tree Editor Programming Discussion.
- Define a data model using a UISchema.xsd XML schema.
- Use of DomGen to autogenerate DOM metadata for use by adapters.
- Use of adapters to decorate the DOM to create a UI data model.
- Use of IDocumentService / IDocumentClient framework to manage documents.
- Use of IPaletteService / IPaletteClient to create a UI parts palette.
- Use of TreeControl, TreeControlAdapter, TreeControlEditor to display an editable tree view of the UI definition.
- Use of ITreeView / IItemView interfaces to adapt data to a tree.
- Use of ContextRegistry to track the active editing context, so application components always apply where the user is editing.
- Use of the ATF interfaces IInstancingContext, ISelectionContext, IHistoryContext and IObservableContext to adapt data so that ATF command components can be used to get undo/redo, cut/paste, and selection commands.
- Use of ATF PropertyEditor/GridPropertyEditor components to allow property editing on selected UI elements.
- Use of the DomExplorer component to show how it can be used to view the raw DOM data and extensions as a diagnostic tool.
- Use of the CurveEditor component to create and edit curves or splines, including working with control points (keys) and tangents, and to create different kinds of curves (linear, stepped, clamped, smooth).
- Double-click the DomTreeEditor.exe in \bin\wws_atf\Release.
- The DomTreeEditor window appears.
- UI Tree Lister: editable tree view of the UI definition
- Palette (UI Objects): the UI parts palette: Package, Form, Shader, Texture, Font, Sprite, Text, Animation
- 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
- DOM Explorer: view the raw DOM data
- Canvas: view and edit the UI file contents.
- Curve Editor: view and edit splines.
The menu bar contains:
- File: create a new UI, open an existing UI, Save, Save as, Save all, Close, Recent Files and Pin/Unpin open file to Recent Files, and Exit DomTreeEditor.
- Edit: in addition to the standard editing functions (cut, copy, paste, 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 DomTreeEditor 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.
- Window: select and deselect panes.
DomTreeEditor opens with an empty UI definition in the UI Tree Lister and an empty UI canvas. Drag and drop UI objects from the Palette onto the UI definition in the UI Tree Lister to define and work with a data model. The first element must be a Package UI object. Drag and drop other elements onto the Package object to define your data model. Click an element to select it, then click the tabs to display the various panes, view and edit properties, and so on. Click the DOM Explorer tab to view the raw DOM data as you define the UI. Select an Animation object to see curves in the Curve Editor.
- CircuitEditor: Editor for circuits, consisting of modules with input and output pins and connections between them.
- CodeEditor: Code editor that uses the ActiproSoftare SyntaxEditor to provide an editing Control.
- DiagramEditor: Combines the Circuit, Finite State Machine, and State Chart editors into a single application to show how multiple editors can share an application shell and editor components.
- DOMPropertyEditor: Demonstrates property editing, with a large variety of property editing controls and property descriptors.
- FileExplorer: Shows how to build a simple Windows® Explorer-like application to view the contents of a disk.
- FSMEditor: Finite state machine editor.
- ModelViewer: Shows how to use the ATF's ATGI and Collada file loaders and OpenGL® rendering.
- SimpleDOMEditor: Demonstrates the use of the DOM (Document Object Model) in WinForms, including defining a data model.
- SimpleDOMEditorWPF: Similar to ATF SimpleDOMEditor Sample, but implemented using ATF’s WPF framework.
- SimpleDOMNoXMLEditor: Very similar to the SimpleDOMEditor sample, but does not use XML.
- StateChartEditor: Editor for statecharts.
- TargetManager: Shows how to use the TargetEnumerationService to discover, add, configure and select targets, which are network endpoints, such as TCP/IP addresses, PS3™ DevKits or PlayStation®Vita DevKits.
- TimelineEditor: Relatively full-featured timeline editor whose components have been used in real production tools.
- TreeListControl: Demonstrates the usage of TreeListControl/TreeListItemRenderer classes to display and edit hierarchical data in a tree view with details in columns.
- TreeListEditor: Shows how to create and add entries to various kinds of Tree lists, including a hierarchical list to display selected folders' underlying folders and files.
- UsingDirect2D: Demonstrates how to use Direct2D and ATF classes that support Direct2D.
- UsingDom: Simple demo of basic DOM use.
- Home
- Getting Started
- Features & Benefits
- Requirements & Dependencies
- Gallery
- Technology & Samples
- Adoption
- News
- Release Notes
- ATF Community
- Searching Documentation
- Using Documentation
- Videos
- Tutorials
- How To
- Programmer's Guide
- Reference
- Code Samples
- Documentation Files
© 2014-2015, Sony Computer Entertainment America LLC