MainWindow.fxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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="413.0" selected="true" text="Check for rising temperature" />
  90. <Region prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
  91. <Button fx:id="meltInfo" mnemonicParsing="false" onAction="#openTemperatureUpInfo" />
  92. </children>
  93. </HBox>
  94. <HBox alignment="CENTER_LEFT">
  95. <children>
  96. <RadioButton id="temperatureRadio2" fx:id="temperatureRadio2" disable="true" mnemonicParsing="false" prefHeight="27.0" prefWidth="409.0" text="Check for falling temperature" />
  97. <Region prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
  98. <Button fx:id="freezeInfo" mnemonicParsing="false" onAction="#openTemperatureDownInfo" />
  99. </children>
  100. </HBox>
  101. </children>
  102. </VBox>
  103. </content>
  104. </TitledPane>
  105. <TitledPane id="rotationPane" fx:id="rotationPane" animated="false" collapsible="false" GridPane.rowIndex="4">
  106. <padding>
  107. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  108. </padding>
  109. <content>
  110. <VBox id="rotationContent" prefHeight="200.0" prefWidth="100.0" spacing="10.0">
  111. <children>
  112. <HBox alignment="CENTER_LEFT">
  113. <children>
  114. <RadioButton id="rotationRadio1" fx:id="rotationRadio1" disable="true" mnemonicParsing="false" selected="true" text="Rotate by 90°" />
  115. <Region prefWidth="0.0" HBox.hgrow="ALWAYS" />
  116. <Button fx:id="tiltInfo" mnemonicParsing="false" onAction="#openTiltInfo" />
  117. </children>
  118. </HBox>
  119. <HBox alignment="CENTER_LEFT">
  120. <children>
  121. <RadioButton id="rotationRadio2" fx:id="rotationRadio2" disable="true" mnemonicParsing="false" text="Flip Over by 180°" />
  122. <Region HBox.hgrow="ALWAYS" />
  123. <Button fx:id="flipInfo" mnemonicParsing="false" onAction="#openFlipInfo" />
  124. </children>
  125. </HBox>
  126. </children>
  127. </VBox>
  128. </content>
  129. </TitledPane>
  130. <TitledPane id="pressurePane" fx:id="pressurePane" animated="false" collapsible="false" GridPane.rowIndex="5">
  131. <padding>
  132. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  133. </padding>
  134. <content>
  135. <HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0">
  136. <children>
  137. <Region prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS" />
  138. <Button fx:id="squeezeInfo" mnemonicParsing="false" onAction="#openSqueezeInfo" />
  139. </children>
  140. </HBox>
  141. </content>
  142. </TitledPane>
  143. <VBox alignment="CENTER" GridPane.rowIndex="6">
  144. <children>
  145. <HBox alignment="CENTER" prefHeight="51.0" prefWidth="430.0" spacing="10.0">
  146. <children>
  147. <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" />
  148. <Button id="saveObjectButton" alignment="CENTER" contentDisplay="CENTER" disable="true" mnemonicParsing="false" prefHeight="67.0" prefWidth="339.0" style="-fx-padding: 10;" text=" Save Object" />
  149. </children>
  150. <VBox.margin>
  151. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  152. </VBox.margin>
  153. </HBox>
  154. </children>
  155. </VBox>
  156. <HBox alignment="CENTER_LEFT" prefHeight="50.0">
  157. <children>
  158. <Label text="Choose Off-Line Sensor" textAlignment="CENTER">
  159. <font>
  160. <Font name="System Bold" size="14.0" />
  161. </font>
  162. <HBox.margin>
  163. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  164. </HBox.margin>
  165. </Label>
  166. </children>
  167. <opaqueInsets>
  168. <Insets />
  169. </opaqueInsets>
  170. <GridPane.margin>
  171. <Insets right="10.0" />
  172. </GridPane.margin>
  173. </HBox>
  174. </children>
  175. <opaqueInsets>
  176. <Insets />
  177. </opaqueInsets>
  178. </GridPane>
  179. <BorderPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1">
  180. <bottom>
  181. <HBox alignment="BOTTOM_RIGHT" prefHeight="89.0" prefWidth="830.0" spacing="10.0" style="-fx-background-color: #E6E6E6;" BorderPane.alignment="CENTER">
  182. <children>
  183. <Label fx:id="propertiesLabel" alignment="BOTTOM_LEFT" prefHeight="69.0" prefWidth="316.0" wrapText="true">
  184. <HBox.margin>
  185. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  186. </HBox.margin></Label>
  187. <Region prefHeight="89.0" prefWidth="0.0" HBox.hgrow="ALWAYS" />
  188. <ComboBox id="comboBox" disable="true" prefHeight="39.0" prefWidth="282.0" visibleRowCount="4">
  189. <HBox.margin>
  190. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  191. </HBox.margin></ComboBox>
  192. </children>
  193. <BorderPane.margin>
  194. <Insets />
  195. </BorderPane.margin>
  196. </HBox>
  197. </bottom>
  198. <top>
  199. <HBox alignment="CENTER_LEFT" prefHeight="50.0" prefWidth="830.0" BorderPane.alignment="CENTER">
  200. <children>
  201. <Label fx:id="previewLabel" text="Preview">
  202. <font>
  203. <Font name="System Bold" size="14.0" />
  204. </font>
  205. <HBox.margin>
  206. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  207. </HBox.margin>
  208. </Label>
  209. <Region prefHeight="200.0" HBox.hgrow="ALWAYS" />
  210. <Button id="settingsButton" mnemonicParsing="false" onAction="#openSettings" />
  211. </children>
  212. <BorderPane.margin>
  213. <Insets right="10.0" />
  214. </BorderPane.margin>
  215. </HBox>
  216. </top>
  217. <center>
  218. <Pane id="fxPanel" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER" />
  219. </center>
  220. </BorderPane>
  221. </children>
  222. </GridPane>