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

SuperLayer configuration


    1  Grammar
    2  Windows Configuration Definition
       2.1  Inlined cockpit specification
          2.1.1  Example
       2.2  Typed cockpit specification
          2.2.1  Examples
    3  Notes

The SuperLayer Windowing XML configuration file specifies the cockpit configuration for a SuperLayer Window Manager.

Grammar

See the Super Layer configuration Schema.

Windows Configuration Definition

A Windows Configuration contains the following elements: The configuration can be defined in two different ways:

Inlined cockpit specification

In this definition, an element is completely defined "in−place".
The specification is simple, but the downside is that each element must be defined as many times is is used. For example, if the same Layout is used in two different displays, one Layout will have to be defined for each display. For example, if two Windows have the same definition, their content will have to be defined twice.

Example

   <windows>
      <windowDef name="Window" width="10000" height="10000" x="0" y="0" />
   </windows>
   <configs border="255,255,255" borderWidth="3">
      <display id="1" name="simple" width="10000" height="10000" defaultLayout="layout1">
         <layout name="layout1">
            <window name="Window1" selector="all">
               <layer layerID="2" />
            </window>
         </layout>
      </display>
   </configs>  

See the complete inlined cockpit specification example.

Typed cockpit specification

The specification is more complex because you have to define types and their instances, but if the same kind of element is used twice, you only have to instanciate the type twice.

Examples

      <geometry>
         <geom name="full" width="width" height="height" transparent="false"/>
      </geometry>
      <windowTypes>
         <windowType name="WindowType1" geometry="full" selector="all">
            <layer name="Layer1" layerID="2"/>
         </windowType>
      </windowTypes>
      <layoutTypes>
         <layoutType name="layout1" >
            <windowTypeRef name="Window1" type="WindowType1" x="0" y="0"/>
         </layoutType>
      </layoutTypes>
      <displayTypes>
         <displayType name="du" width="width" height="height" defaultLayout="layout1">
            <typeRef type="layout1"/>
         </displayType>
      </displayTypes>
      <configs border="0,0,0" borderWidth="3">
         <display id="1" name="display">
            <typeRef type="du"/>
         </display>
      </configs>     

See a typed cockpit specification example for one display, and another typed cockpit specification example for two displays based on the same types specifications.

Notes

  1. They are useful to define only once values that must be reused

See Also


Category: server Category: user Category: cockpit

Copyright 2016 Dassault Aviation. All Rights Reserved. Documentation and source under the GPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help