Project Details
Changes Log
Who We Are

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.


See the Super Layer configuration Schema.

Windows Configuration Definition

Main Article: SuperLayer configuration structure

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

Inlined cockpit specification

Main Article: Inlined SuperLayer configuration

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.


      <windowDef name="Window" width="10000" height="10000" x="0" y="0" />  
   <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" />  

See the complete inlined cockpit specification example.

Typed cockpit specification

Main Article: Typed SuperLayer configuration

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.


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

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


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

See Also

Categories: cockpit | server | user

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

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