constants
: Constants used in the configuration fileDFFiles
: Definition Files used in the cockpitgeometry
: Windows physical geometry. Contain geom
childrenwindowTypes
: Window types definition. Contain windowType
childrenlayoutTypes
: Layout types definition. Contain layoutType
childrendisplayTypes
: Display types definition. Contain displayType
childrenwindows
: an alternate way to define Windows physical geometry. Contain windowDef
childrenconfig
: defines the displays in the cockpitconfig
element:display
: A Display in the cockpitlayout
or layoutType
element:window
: A Window can contain either Layouts or Layersdisplay
or window
element:layout
: defines a Layout a particular windows arrangement for the parent Display or Window. Several layouts can be defined for one particular Display or Window, but of course only one is active at any time (it is possible to set the default layout explicitly)cockpit
root element allows to define the application ID and Layer ID of the SuperLayer, in the case where you want to allow to change the cockpit layout at runtime.<cockpit appliID="1" layerID="10"> ... </cockpit>
<constants> <constant name="width" value="10000" /> <constant name="height" value="10000" /> </constants> ... <geometry> <geom name="Window" width="width" height="height" x="0" y="0" /> </geometry> <configs border="255,255,255" borderWidth="3"> <display id="1" name="simple" width="width" height="height" defaultLayout="layout"> ... </display> </configs>
DFFiles
defines the Definition Files which are used in the cockpit.df
refer to the file defining an XML Definition File, but the type
attribute allows to specify explictly the type of the DF file:xml
for an XML definition filebinary
for a binary definition file<DFFiles> <df path="DF1.xml"/> <df path="DF2.xml"/> <df path="DF3.bin" type="binary" /> </DFFiles>
cockpitDF
child allows to specify the Definition File for the SuperLayer. It is only useful for the client.<DFFiles> <df path="DF1.xml"/> <df path="DF2.xml"/> <cockpitDF path="superlayer.xml" /> </DFFiles>
geometry
element defines the physical geometry of windows. A window can contain the following elements:<geometry> <geom name="Overlay" width="15000" height="10000" transparent="true" /> <geom name="WindowFull" width="15000" height="10000"/> <geom name="Window1" width="10000" height="10000"/> <geom name="Window2" width="5000" height="10000" /> <geom name="Window3" width="10000" height="5000" /> <geom name="Window4" width="10000" height="5000" /> </geometry>
windowTypes
element defines the list of window types, which can be instanciated in Layout or Layout types.windowType
has the following attributes:windowType
can have either:layer
children (if the window type contains Layers)typeRef
for Layout type children (if the window type contains Layouts)<windowType name="Window1" geometry="WindowGeom1" selector="oneOf" > <layer name="Layer3" layerID="3"/> <layer name="Layer4" layerID="4"/> </windowType>Example for a window type containing Layouts:
<windowType name="Window1" geometry="WindowGeom1" defaultLayout="childLayout1"> <typeRef type="childLayout1"/> <typeRef type="childLayout2"/> </windowType>
layoutTypes
element defines the list of layout types, which can be instanciated in the display, display types, window types, or windows.layoutType
has only one attribute:layoutType
can have either:window
children (if the layout type contains windows)windowTypeRef
children (if the layout type contains window types instances)displayTypes
element defines the list of display types, which can be instanciated.displayType
has the following attributes:displayType
can have either:layout
childrentypeRef
for Layout type children<displayTypes> <displayType name="display" width="15000" height="10000" defaultLayout="layout1"> <typeRef type="layout1"/> <typeRef type="layout2"/> </displayType> </displayTypes>
typeRef
element for a layout type or a display typewindowTypeRef
element for a window typeoverride
element allows to override the property for an instanced type. The properties wich can be overriden are:override
can have the following attributes:<layoutType name="rightInsertLayout"> <windowTypeRef name="lowerRight" type="rightinsertWindow" x="24000" y="0"> <override> <property name="defaultLayerID" value="81" /> </override> </windowTypeRef> </layoutType>Another example:
<typeRef type="dualInsertLayout"> <override windowPath="lowerleft"> <property name="defaultLayerID" value="81" /> </override> </typeRef>
configs
element defines the cockpit configuration.configs
element has the following attributes:configs
element only have display
children.
display
element defines one display.display
element has the following attributes:configs
"isTransparent" property)configs
"isAlwaysOnTop" property)display
can have either:layout
childrentypeRef
for display type children<configs border="255,255,255" borderWidth="3"> <display id="1" name="display" width="15000" height="10000" defaultLayout="layout1"> <layout name="layout1"> <window name="Window1" > <layer layerID="5" /> </window> </layout> <layout name="layout2"> <window name="Window1" type="oneOf"> <layer layerID="5" /> <layer layerID="6" /> </window> </layout> </display> </configs>Example for a display referring to a display type:
<displayTypes> <displayType name="display" width="15000" height="10000" defaultLayout="layout1"> <typeRef type="layout1"/> <typeRef type="layout2"/> </displayType> </displayTypes> <configs border="255,255,255" borderWidth="3"> <display id="1" name="display"> <typeRef type="display"/> </display> </configs>
layout
element defines one Layout.layout
has only one attribute:layout
can have either:window
children (if the layout contains windows)windowTypeRef
children (if the layout contains window types instances)<layout name="layout1"> <window name="Window1" > <layer layerID="5" /> </window> </layout>
window
element defines one Window.window
element has the following attributes:window
can have either:layout
children (if the window is an inline instance and contains Layouts)layer
children (if the window is an inline instance and contains Layers)typeRef
children (if the window is an ninstancz of a windowType
)<window name="Window1" type="oneOf"> <layer layerID="5" /> <layer layerID="6" /> </window>Example for a Window inline instance which contains Layouts:
<window name="Window1" defaultLayout="childLayout1"> <layout name="childLayout1"> ... </layout> <layout name="childLayout2"> ... </layout> </window>
Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence