Working with XML Layouts

The OBO-Edit Layout Editor

OBO-Edit uses xml documents called screen layouts to determine how the main gui is set up. To edit the gui layout, open The Configuration Manager Plugin and click the "Display Layout" tab:

See The Display Layout for information on using the layout editor.

Screen Layout XML Syntax

Screen layouts conform to the standard rules for well-formed xml documents: tags may be nested, tags must be closed, attribute values must be enclosed in quotes, etc.

A screen layout consists of an <xmllayout> tag surroundning a single component (although that component may contain subcomponents, as we'll see below). So the following is a perfectly acceptable screen layout:

Layout code Resulting gui

<xmllayout>
   <component id="DAG"/>
<xmllayout>

Of course, that's not very useful, because we haven't included a text editor panel, so there's no way to edit the term text or see term details. If we add some sub-components, though, the layout starts to look a little more useful:

Layout code Resulting gui

<xmllayout>
  <divider orientation="HORZ">
    <first>
      <component id="DAG" width="300"/>
    </first>
    <second>
      <component id="TEXTEDIT" width="320"/>
    </second>
  </divider>
</xmllayout>

See the individual tag descriptions to see which tags allow nested tags.

 

Supported Tags