Skip to content
GUIBridge1.tmpl 6.48 KiB
Newer Older
Gino Tosti's avatar
Gino Tosti committed
<?xml version="1.0" encoding="UTF-8"?>

<!--
/*
 * ASTRI - Template based on ALMA Software Templates
 * (c) INAF/UNIPG, 2014 
 * ALAMA - Acatama Large Millimeter Array
 * (c) European Southern Observatory, 2010
 * (c) Associated Universities Inc., 2010
 * Copyright by ESO (in the framework of the ALMA collaboration),
 * Copyright by AUI (in the framework of the ALMA collaboration),
 * All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY, without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307  USA
 *
 * WARNING! DO NOT MODIFY THIS FILE!
 * 
 *  Generated by: $Author
 *  Date: $Date
 *  Description: $Description
 *
 */
-->

<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.lang.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.layout.BorderPane?>

Gino Tosti's avatar
Gino Tosti committed
<BorderPane xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1">
Gino Tosti's avatar
Gino Tosti committed
	<top>
		<HBox spacing="2.0" style="-fx-padding: 1px;">
			<children>
				<VBox prefWidth="400" alignment="center">
					<children>
						<Label alignment="center" fx:id="GetTitleText" text=" --- GET --- " prefWidth="300.0" style="-fx-padding: 4px;"/>
					</children>
				</VBox>
				<VBox prefWidth="400" alignment="center">
					<children>
						<Label alignment="center" fx:id="SetTitleText" text=" --- SET --- " prefWidth="300.0" style="-fx-padding: 4px;"/>
					</children>
				</VBox>
				<VBox prefWidth="400" alignment="center">
					<children>
						<Label alignment="center" fx:id="CmdTitleText" text=" --- CMD --- " prefWidth="300.0" style="-fx-padding: 4px;"/>
					</children>
				</VBox>
				<VBox prefWidth="400" alignment="center">
					<children>
						<Label alignment="center" fx:id="ModeTitleText" text=" --- MODE --- " prefWidth="300.0" style="-fx-padding: 4px;"/>
					</children>
				</VBox>
			</children>
		</HBox>
	</top>
	<left>
		<ScrollPane prefWidth="400">
			<content>
				<AnchorPane>
					<children>
						<VBox prefWidth="400">
							<children>
							#for $idx in $range(0,$x.GetSheet["NRows"])
								<HBox alignment="center" spacing="2.0" style="-fx-padding: 1px;">
									<children>
										<Label alignment="center" prefHeight="30.0" prefWidth="300.0" text="Read${x.GetSheet["Short name"][$idx]}" style="-fx-padding: 4px;"/>
										<TextField fx:id="read${x.GetSheet["Short name"][$idx]}Text" editable="false" prefWidth="100.0" style="-fx-padding: 4px;"/>
									</children>
				         		</HBox>
				         	#end for
							</children>
						</VBox>
					</children>
				</AnchorPane>
			</content>
		</ScrollPane>		
	</left>
	<center>
		<HBox prefWidth="800">
			<children>
				<ScrollPane prefWidth="400">
					<content>
						<AnchorPane>
							<children>			
								<VBox prefWidth="400">
									<children>
										#for $idx in $range(0,$x.SetSheet["NRows"])
											<HBox alignment="center" spacing="2.0" style="-fx-padding: 1px;">
												<children>
													<TextField fx:id="write${x.SetSheet["Short name"][$idx]}Text" editable="true" prefWidth="50.0" style="-fx-padding: 4px;"/>
													<Button mnemonicParsing="false" text="${x.SetSheet["Short name"][$idx]}" alignment="center" prefHeight="30.0" prefWidth="300.0" style="-fx-padding: 4px;" onAction="#write${x.SetSheet["Short name"][$idx]}"/>
												</children>
							         		</HBox>
							         		<HBox alignment="center" spacing="2.0" style="-fx-padding: 1px;">
												<children>
													<Label alignment="center" prefHeight="30.0" prefWidth="300.0" text="Read${x.SetSheet["Short name"][$idx]}" style="-fx-padding: 4px;"/>
													<TextField fx:id="read${x.SetSheet["Short name"][$idx]}Text" editable="false" prefWidth="100.0" style="-fx-padding: 4px;"/>
												</children>
				         					</HBox>
							         	#end for
									</children>
								</VBox>			
							</children>
						</AnchorPane>
					</content>
				</ScrollPane>	
				<ScrollPane prefWidth="400">
					<content>
						<AnchorPane>
							<children>
								<VBox prefWidth="400">
									<children>
										#for $idx in $range(0,$x.CmdSheet["NRows"])
											<HBox alignment="center" spacing="2.0" style="-fx-padding: 1px;">
												<children>
													<Button mnemonicParsing="false" text="${x.CmdSheet["Short name"][$idx]}" alignment="center" prefHeight="30.0" prefWidth="300.0" style="-fx-padding: 4px;" onAction="#execute${x.CmdSheet["Short name"][$idx]}"/>
												</children>
							         		</HBox>
							         	#end for
									</children>
								</VBox>
							</children>
						</AnchorPane>
					</content>
				</ScrollPane>	
			</children>
		</HBox>
	</center>
	<right>
		<ScrollPane prefWidth="400">
			<content>
				<AnchorPane>
					<children>
						<VBox prefWidth="400">
							<children>
								#for $idx in $range(0,$x.ModeSheet["NRows"])
									<HBox alignment="center" spacing="2.0" style="-fx-padding: 1px;">
										<children>
											<Button mnemonicParsing="false" text="${x.ModeSheet["Short name"][$idx]}" alignment="center" prefHeight="30.0" prefWidth="300.0" style="-fx-padding: 4px;" onAction="#execute${x.ModeSheet["Short name"][$idx]}"/>
										</children>
					         		</HBox>
				         		#end for
							</children>
						</VBox>
					</children>
				</AnchorPane>
			</content>
		</ScrollPane>
	</right>
	<bottom>
		<HBox spacing="2.0" style="-fx-padding: 1px;">
			<children>
				<VBox prefWidth="533" alignment="center">
					<children>
						<Label alignment="center" fx:id="date" text="#readDate" style="-fx-padding: 4px;"/>
					</children>
				</VBox>
				<VBox prefWidth="533" alignment="center">
					<children>
						<Button mnemonicParsing="false" text="Update" alignment="center" onAction="#readUpdate"/>
					</children>
				</VBox>
				<VBox prefWidth="533" alignment="center">
					<children>
						<Button mnemonicParsing="false" text="Quit" alignment="center" onAction="#appClose"/>
					</children>
				</VBox>
			</children>
		</HBox>
   </bottom>
Gino Tosti's avatar
Gino Tosti committed
</BorderPane>