MainWindow.fxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import java.lang.*?>
  3. <?import javafx.geometry.*?>
  4. <?import javafx.scene.control.*?>
  5. <?import javafx.scene.layout.*?>
  6. <?import javafx.scene.text.*?>
  7. <?import javafx.geometry.Insets?>
  8. <?import javafx.scene.control.Button?>
  9. <?import javafx.scene.control.ComboBox?>
  10. <?import javafx.scene.control.Label?>
  11. <?import javafx.scene.control.Menu?>
  12. <?import javafx.scene.control.MenuBar?>
  13. <?import javafx.scene.control.MenuItem?>
  14. <?import javafx.scene.control.RadioButton?>
  15. <?import javafx.scene.control.ScrollBar?>
  16. <?import javafx.scene.control.TitledPane?>
  17. <?import javafx.scene.layout.AnchorPane?>
  18. <?import javafx.scene.layout.BorderPane?>
  19. <?import javafx.scene.layout.ColumnConstraints?>
  20. <?import javafx.scene.layout.GridPane?>
  21. <?import javafx.scene.layout.HBox?>
  22. <?import javafx.scene.layout.Pane?>
  23. <?import javafx.scene.layout.RowConstraints?>
  24. <?import javafx.scene.layout.VBox?>
  25. <?import javafx.scene.text.Font?>
  26. <GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="1280.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ui.UIController">
  27. <columnConstraints>
  28. <ColumnConstraints hgrow="SOMETIMES" minWidth="350.0" percentWidth="0.0" prefWidth="100.0" />
  29. <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
  30. </columnConstraints>
  31. <rowConstraints>
  32. <RowConstraints vgrow="ALWAYS" />
  33. </rowConstraints>
  34. <children>
  35. <GridPane>
  36. <columnConstraints>
  37. <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
  38. </columnConstraints>
  39. <rowConstraints>
  40. <RowConstraints minHeight="50.0" percentHeight="0.0" prefHeight="30.0" vgrow="SOMETIMES" />
  41. <RowConstraints maxHeight="99.0" minHeight="10.0" percentHeight="0.0" prefHeight="83.0" vgrow="SOMETIMES" />
  42. <RowConstraints maxHeight="131.0" minHeight="10.0" percentHeight="0.0" prefHeight="109.0" vgrow="SOMETIMES" />
  43. <RowConstraints maxHeight="143.0" minHeight="10.0" percentHeight="0.0" prefHeight="120.0" vgrow="SOMETIMES" />
  44. <RowConstraints maxHeight="153.0" minHeight="10.0" percentHeight="0.0" prefHeight="135.0" vgrow="SOMETIMES" />
  45. <RowConstraints maxHeight="164.0" minHeight="10.0" percentHeight="0.0" prefHeight="87.0" vgrow="SOMETIMES" />
  46. <RowConstraints maxHeight="110.0" minHeight="10.0" percentHeight="0.0" prefHeight="100.0" vgrow="SOMETIMES" />
  47. </rowConstraints>
  48. <children>
  49. <TitledPane id="accelerationPane" fx:id="accelerationPane" animated="false" collapsible="false" contentDisplay="RIGHT" textAlignment="RIGHT" GridPane.rowIndex="1">
  50. <padding>
  51. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  52. </padding>
  53. <content>
  54. <HBox id="accelerationContent" fx:id="accelerationContent" alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0">
  55. <children>
  56. <Label id="accelerationLabel" fx:id="accelerationLabel" disable="true" text="Acceleration limit:" HBox.hgrow="NEVER" />
  57. <Region prefWidth="0.0" HBox.hgrow="ALWAYS" />
  58. <Button fx:id="accelerationInfo" mnemonicParsing="false" onAction="#openAccelInfo" />
  59. </children>
  60. </HBox>
  61. </content>
  62. </TitledPane>
  63. <TitledPane id="weightPane" fx:id="weightPane" animated="false" collapsible="false" GridPane.rowIndex="2">
  64. <padding>
  65. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  66. </padding>
  67. <content>
  68. <HBox id="weightContent" fx:id="loadContent" alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0">
  69. <children>
  70. <Label id="weightLabel" fx:id="weightLabel" disable="true" text="Load limit:" HBox.hgrow="NEVER">
  71. <HBox.margin>
  72. <Insets right="38.0" />
  73. </HBox.margin></Label>
  74. <Region prefWidth="0.0" HBox.hgrow="ALWAYS" />
  75. <Button fx:id="weightInfo" mnemonicParsing="false" onAction="#openWeightInfo" />
  76. </children>
  77. </HBox>
  78. </content>
  79. </TitledPane>
  80. <TitledPane id="temperaturePane" fx:id="temperaturePane" animated="false" collapsible="false" GridPane.rowIndex="3">
  81. <padding>
  82. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  83. </padding>
  84. <content>
  85. <VBox id="temperatureContent" prefHeight="400.0" prefWidth="100.0" spacing="10.0">
  86. <children>
  87. <HBox alignment="CENTER_LEFT">
  88. <children>
  89. <RadioButton id="temperatureRadio1" fx:id="temperatureRadio1" disable="true" mnemonicParsing="false" prefHeight="27.0" prefWidth="0.0" selected="true" />
  90. <Label id="temperatureRisingLabel" fx:id="temperatureRisingLabel" disable="true" prefHeight="27.0" prefWidth="422.0" text="Check for rising temperature" />
  91. <Region prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
  92. <Button fx:id="meltInfo" mnemonicParsing="false" onAction="#openTemperatureUpInfo" />
  93. </children>
  94. </HBox>
  95. <HBox alignment="CENTER_LEFT">
  96. <children>
  97. <RadioButton id="temperatureRadio2" fx:id="temperatureRadio2" disable="true" mnemonicParsing="false" prefHeight="27.0" prefWidth="15.0" />
  98. <Label id="temperatureFallingLabel" fx:id="temperatureFallingLabel" disable="true" prefHeight="27.0" prefWidth="1186.0" text="Check for falling temperature" />
  99. <Region prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
  100. <Button fx:id="freezeInfo" mnemonicParsing="false" onAction="#openTemperatureDownInfo" />
  101. </children>
  102. </HBox>
  103. </children>
  104. </VBox>
  105. </content>
  106. </TitledPane>
  107. <TitledPane id="rotationPane" fx:id="rotationPane" animated="false" collapsible="false" GridPane.rowIndex="4">
  108. <padding>
  109. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  110. </padding>
  111. <content>
  112. <VBox id="rotationContent" prefHeight="200.0" prefWidth="100.0" spacing="10.0">
  113. <children>
  114. <HBox alignment="CENTER_LEFT">
  115. <children>
  116. <RadioButton id="rotationRadio1" fx:id="rotationRadio1" disable="true" mnemonicParsing="false" selected="true" />
  117. <Label fx:id="tiltLabel" disable="true" prefHeight="27.0" prefWidth="298.0" text="Tilt (90°)" />
  118. <Region prefWidth="0.0" HBox.hgrow="ALWAYS" />
  119. <Button fx:id="tiltInfo" mnemonicParsing="false" onAction="#openTiltInfo" />
  120. </children>
  121. </HBox>
  122. <HBox alignment="CENTER_LEFT">
  123. <children>
  124. <RadioButton id="rotationRadio2" fx:id="rotationRadio2" disable="true" mnemonicParsing="false" />
  125. <Label fx:id="flipLabel" disable="true" prefHeight="27.0" prefWidth="425.0" text="Flip (180°)" />
  126. <Region HBox.hgrow="ALWAYS" />
  127. <Button fx:id="flipInfo" mnemonicParsing="false" onAction="#openFlipInfo" />
  128. </children>
  129. </HBox>
  130. </children>
  131. </VBox>
  132. </content>
  133. </TitledPane>
  134. <TitledPane id="pressurePane" fx:id="pressurePane" animated="false" collapsible="false" GridPane.rowIndex="5">
  135. <padding>
  136. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  137. </padding>
  138. <content>
  139. <HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0">
  140. <children>
  141. <Region prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
  142. <Button fx:id="squeezeInfo" mnemonicParsing="false" onAction="#openSqueezeInfo" />
  143. </children>
  144. </HBox>
  145. </content>
  146. </TitledPane>
  147. <VBox alignment="CENTER" GridPane.rowIndex="6">
  148. <children>
  149. <HBox alignment="CENTER" prefHeight="51.0" prefWidth="430.0" spacing="10.0">
  150. <children>
  151. <Button id="createObjectButton" alignment="CENTER" contentDisplay="CENTER" disable="true" mnemonicParsing="false" prefHeight="66.0" prefWidth="337.0" style="-fx-padding: 10;" text=" Create Object" textAlignment="CENTER" />
  152. <Button id="saveObjectButton" alignment="CENTER" contentDisplay="CENTER" disable="true" mnemonicParsing="false" prefHeight="67.0" prefWidth="339.0" style="-fx-padding: 10;" text=" Save Object" />
  153. </children>
  154. <VBox.margin>
  155. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  156. </VBox.margin>
  157. </HBox>
  158. </children>
  159. </VBox>
  160. <HBox alignment="CENTER_LEFT" prefHeight="50.0">
  161. <children>
  162. <Label text="Choose Off-Line Sensor" textAlignment="CENTER">
  163. <font>
  164. <Font name="System Bold" size="14.0" />
  165. </font>
  166. <HBox.margin>
  167. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  168. </HBox.margin>
  169. </Label>
  170. </children>
  171. <opaqueInsets>
  172. <Insets />
  173. </opaqueInsets>
  174. <GridPane.margin>
  175. <Insets right="10.0" />
  176. </GridPane.margin>
  177. </HBox>
  178. </children>
  179. <opaqueInsets>
  180. <Insets />
  181. </opaqueInsets>
  182. </GridPane>
  183. <BorderPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1">
  184. <bottom>
  185. <HBox alignment="BOTTOM_RIGHT" prefHeight="89.0" prefWidth="830.0" spacing="10.0" style="-fx-background-color: #E6E6E6;" BorderPane.alignment="CENTER">
  186. <children>
  187. <Label fx:id="propertiesLabel" alignment="BOTTOM_LEFT" prefHeight="69.0" prefWidth="316.0" wrapText="true">
  188. <HBox.margin>
  189. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  190. </HBox.margin></Label>
  191. <Region prefHeight="89.0" prefWidth="0.0" HBox.hgrow="ALWAYS" />
  192. <ComboBox id="comboBox" disable="true" prefHeight="39.0" prefWidth="282.0" visibleRowCount="4">
  193. <HBox.margin>
  194. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  195. </HBox.margin></ComboBox>
  196. </children>
  197. <BorderPane.margin>
  198. <Insets />
  199. </BorderPane.margin>
  200. </HBox>
  201. </bottom>
  202. <top>
  203. <HBox alignment="CENTER_LEFT" prefHeight="50.0" prefWidth="830.0" BorderPane.alignment="CENTER">
  204. <children>
  205. <Label fx:id="previewLabel" text="Preview">
  206. <font>
  207. <Font name="System Bold" size="14.0" />
  208. </font>
  209. <HBox.margin>
  210. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  211. </HBox.margin>
  212. </Label>
  213. <Region prefHeight="200.0" HBox.hgrow="ALWAYS" />
  214. <Button id="settingsButton" mnemonicParsing="false" onAction="#openSettings" />
  215. </children>
  216. <BorderPane.margin>
  217. <Insets right="10.0" />
  218. </BorderPane.margin>
  219. </HBox>
  220. </top>
  221. <center>
  222. <Pane id="fxPanel" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER" />
  223. </center>
  224. </BorderPane>
  225. </children>
  226. </GridPane>