Link to Exercise 5 solution¶
File $HOME/fwk4_training/foils_control.gui/application.xml:
<application id="Foils control">
<properties id="body">
<property name="flex" value="1"/>
<property name="align" value="stretch"/>
<property name="pack" value="start"/>
<property name="caption" value=""/>
</properties>
<properties id="MotorSpinBoxBrick1">
<property name="flex" value="1"/>
</properties>
<properties id="LogBrick1">
<property name="flex" value="0"/>
<property name="emailAddresses" value=""/>
<property name="minimum_level" value="INFO"/>
</properties>
<properties id="tabbox1">
<property name="flex" value="3"/>
<property name="notification" value="switch to tab"/>
<property name="caption" value=""/>
</properties>
<properties id="label1">
<property name="flex" value="0"/>
<property name="value" value="<h1>Hello, World</h1>"/>
</properties>
<properties id="window1">
<property name="minwidth" value="1"/>
<property name="width" value="100"/>
<property name="height" value="100"/>
<property name="minheight" value="1"/>
<property name="title" value="Foils Control Application (FWK4 training)"/>
</properties>
<properties id="vbox1">
<property name="flex" value="1"/>
<property name="align" value="stretch"/>
<property name="pack" value="start"/>
<property name="caption" value=""/>
</properties>
<properties id="header">
<property name="flex" value="0"/>
<property name="align" value="stretch"/>
<property name="pack" value="start"/>
<property name="caption" value=""/>
</properties>
<properties id="foils">
<property name="flex" value="0"/>
<property name="align" value="stretch"/>
<property name="pack" value="start"/>
<property name="caption" value="Foils"/>
</properties>
<properties id="image1">
<property name="flex" value="0"/>
<property name="src" value="esrf_logo_big.png"/>
</properties>
<properties id="Foils control">
<property name="splash_screen" value=""/>
<property name="objects_server" value="localhost:6667"/>
<property name="expert_password" value=""/>
</properties>
<properties id="scan_plot">
<property name="flex" value="0"/>
<property name="align" value="stretch"/>
<property name="pack" value="start"/>
<property name="caption" value="Scan plot"/>
</properties>
<connections id="body">
</connections>
<connections id="MotorSpinBoxBrick1">
<connection role="motor">
<signal name="stateChanged"/>
<signal name="positionChanged"/>
<signal name="limitsChanged"/>
<slot name="move"/>
<slot name="abort"/>
</connection>
</connections>
<connections id="LogBrick1">
</connections>
<connections id="tabbox1">
</connections>
<connections id="label1">
</connections>
<connections id="window1">
</connections>
<connections id="vbox1">
</connections>
<connections id="header">
</connections>
<connections id="foils">
</connections>
<connections id="image1">
</connections>
<connections id="Foils control">
</connections>
<connections id="scan_plot">
</connections>
</application>
File $HOME/fwk4_training/foils_control.gui/window1.xul:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="window1" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<vbox id="vbox1" orient="vertical">
<hbox id="header" orient="horizontal">
<image id="image1" src=""/>
<label id="label1" value=""/>
</hbox>
<hbox id="body" orient="horizontal">
<hbox qwidget="true" id="MotorSpinBoxBrick1" brick="true"><script src="MotorSpinBoxBrick" tau="false"/></hbox>
<tabbox id="tabbox1">
<tabs>
<tab label='Foils'/>
<tab label='Scan plot'/>
</tabs>
<tabpanels>
<tabpanel id='tab_foils'><vbox id="foils" orient="vertical">
</vbox>
</tabpanel>
<tabpanel id='tab_scan_plot'><vbox id="scan_plot" orient="vertical">
</vbox>
</tabpanel>
</tabpanels>
</tabbox>
</hbox>
<hbox qwidget="true" id="LogBrick1" brick="true"><script src="LogBrick" tau="false"/></hbox>
</vbox>
</window>