Home
Categories
Dictionary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Editor widgets defaults



When new widgets are specified, it is possible to specify:
  • Which icon will be shown in the Editor for this widget
  • The default values of the widget properties when creating a new widget

Grammar

See Editor defaults grammar.

File structure

The default file contains:

Root element

The root "lt;editorDefaults" allows to specify the default path for icons used for elements.
      <editorDefaults resourceBase="a661supp6/server/resources">

Defining the icon for an element

There are two possible attributes for the element:
  • "icon": specifies the path of an icon relative to the root element default path
  • "iconRef": specifies the ARINC ID of another existing element to be used for the icon
It is possible to specify nothing for the icon, in that case a default icon will be used.

Defining the default values for an element

Ech property is defined by its name (the name is the key which is used to specify the property in XML Definition Files).

If the property is a position or size property (for example, for the PosX, PosY, SizeX, or SizeY properties), it is possible to define its type as an additional "type" attribute for the element to allow to graphically move or resize the widget in the Editor:
  • positionX: a X position
  • positionY: a Y position
  • position: a position which can be on the X or Y axis
  • sizeX: an horizontal size
  • sizeY: a vertical size
It is also possible to define default values for arrays. For example:
      <param name="Vertices" defaultValue="0,0,1000,1000,2000,2000" type="position"/>
Note that properties which do not have a specified default value in the Editor n this XML file will still have a generic value defined by the Editor.

Examples

A Symbol Command

      <symbol name="A661_SYMBOL_DEFN_TEXT" icon="label.png">
         <param name="PosX" defaultValue="0" type="positionX"/>
         <param name="PosY" defaultValue="0" type="positionY"/>
         <param name="Alignment" defaultValue="A661_CENTER" />
      </symbol>

A Widget

      <widget name="A661_GP_LINE" icon="line.png">
         <param name="PosXStart" defaultValue="0" type="positionX"/>
         <param name="PosYStart" defaultValue="0" type="positionY"/>
         <param name="PosXEnd" defaultValue="2000" type="positionX"/>
         <param name="PosYEnd" defaultValue="2000" type="positionY"/>
         <param name="Anonymous" defaultValue="A661_FALSE" />
         <param name="Halo" defaultValue="A661_FALSE" />
      </widget>

See also


Categories: dev | editor

Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence