<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng202.group9.GUI.FlightRDController">
   <children>
      <ScrollPane hbarPolicy="NEVER" prefHeight="603.0" prefWidth="751.0" vbarPolicy="NEVER">
         <content>
            <AnchorPane prefHeight="371.0" prefWidth="600.0">
               <children>
                  <GridPane prefHeight="600.0" prefWidth="800.0">
                    <columnConstraints>
                      <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                    </columnConstraints>
                    <rowConstraints>
                      <RowConstraints maxHeight="193.0" minHeight="10.0" prefHeight="57.0" vgrow="SOMETIMES" />
                      <RowConstraints maxHeight="521.0" minHeight="10.0" prefHeight="521.0" vgrow="SOMETIMES" />
                      <RowConstraints maxHeight="62.0" minHeight="0.0" prefHeight="19.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                     <children>
                        <GridPane GridPane.rowIndex="1">
                          <columnConstraints>
                            <ColumnConstraints hgrow="SOMETIMES" maxWidth="393.0" minWidth="10.0" prefWidth="162.0" />
                            <ColumnConstraints hgrow="SOMETIMES" maxWidth="651.0" minWidth="10.0" prefWidth="638.0" />
                          </columnConstraints>
                          <rowConstraints>
                            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                          </rowConstraints>
                           <children>
                              <Pane prefHeight="434.0" prefWidth="158.0">
                                 <children>
                                    <Button layoutX="32.0" layoutY="486.0" mnemonicParsing="false" onAction="#newPath" prefHeight="25.0" prefWidth="99.0" text="New" />
                                    <ListView fx:id="flightPathListView" layoutX="19.0" layoutY="25.0" prefHeight="450.0" prefWidth="125.0" />
                                    <Label layoutX="16.0" text="Flight Path File(s)">
                                       <font>
                                          <Font size="15.0" />
                                       </font>
                                    </Label>
                                 </children>
                              </Pane>
                              <GridPane prefHeight="467.0" prefWidth="638.0" GridPane.columnIndex="1">
                                <columnConstraints>
                                  <ColumnConstraints hgrow="SOMETIMES" maxWidth="617.0" minWidth="10.0" prefWidth="607.0" />
                                    <ColumnConstraints hgrow="SOMETIMES" maxWidth="318.0" minWidth="10.0" prefWidth="43.0" />
                                </columnConstraints>
                                <rowConstraints>
                                  <RowConstraints maxHeight="414.0" minHeight="10.0" prefHeight="386.0" vgrow="SOMETIMES" />
                                  <RowConstraints maxHeight="137.0" minHeight="1.0" prefHeight="17.0" vgrow="SOMETIMES" />
                                    <RowConstraints maxHeight="137.0" minHeight="10.0" prefHeight="62.0" vgrow="SOMETIMES" />
                                    <RowConstraints maxHeight="137.0" minHeight="10.0" prefHeight="44.0" vgrow="SOMETIMES" />
                                </rowConstraints>
                                 <children>
                                    <ScrollPane prefHeight="52.0" prefViewportHeight="25.0" prefViewportWidth="765.0" prefWidth="601.0" GridPane.rowIndex="2">
                                       <content>
                                          <Pane layoutY="25.0">
                                             <children>
                                                <TextField fx:id="flightLatitudeBox" layoutX="440.0" prefHeight="25.0" prefWidth="100.0" promptText="Latitude">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <TextField fx:id="flightTypeBox" layoutX="190.0" prefHeight="25.0" prefWidth="75.0" promptText="Type">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <TextField fx:id="flightAltitudeBox" layoutX="365.0" prefHeight="25.0" prefWidth="75.0" promptText="Altitude">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <Label prefHeight="25.0" prefWidth="90.0" text="Enter Values:" />
                                                <TextField fx:id="flightViaBox" layoutX="265.0" prefHeight="25.0" prefWidth="100.0" promptText="Via">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <TextField fx:id="flightHeadingBox" layoutX="640.0" prefHeight="25.0" prefWidth="100.0" promptText="Heading">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <TextField fx:id="flightLongitudeBox" layoutX="540.0" prefHeight="25.0" prefWidth="100.0" promptText="Longitude">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <TextField fx:id="flightNameBox" layoutX="90.0" prefHeight="25.0" prefWidth="100.0" promptText="Name">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <TextField fx:id="flightLegDistBox" layoutX="740.0" prefHeight="25.0" prefWidth="75.0" promptText="Leg Dist">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                                <TextField fx:id="flightTotDistBox" layoutX="815.0" prefHeight="25.0" prefWidth="75.0" promptText="Tot Dist">
                                                   <padding>
                                                      <Insets left="2.0" right="2.0" />
                                                   </padding>
                                                </TextField>
                                             </children>
                                             <opaqueInsets>
                                                <Insets />
                                             </opaqueInsets>
                                          </Pane>
                                       </content>
                                    </ScrollPane>
                                    <Pane prefHeight="44.0" prefWidth="601.0" GridPane.rowIndex="3">
                                       <children>
                                          <Button layoutX="476.0" layoutY="11.0" mnemonicParsing="false" onAction="#addFlightPoint" prefHeight="25.0" prefWidth="125.0" text="Add" />
                                          <Button layoutY="11.0" mnemonicParsing="false" onAction="#flightAnalyser" prefHeight="25.0" prefWidth="125.0" text="Analyse" />
                                       </children>
                                    </Pane>
                                    <TableView fx:id="flightTableView" prefHeight="377.0" prefWidth="601.0">
                                      <columns>
                                        <TableColumn fx:id="flightIdCol" prefWidth="90.0" text="ID" />
                                          <TableColumn fx:id="flightNameCol" prefWidth="100.0" text="Name" />
                                        <TableColumn fx:id="flightTypeCol" prefWidth="75.0" text="Type" />
                                          <TableColumn fx:id="flightViaCol" prefWidth="100.0" text="Via" />
                                          <TableColumn fx:id="flightAltitudeCol" prefWidth="75.0" text="Altitude" />
                                          <TableColumn fx:id="flightLatCol" prefWidth="100.0" text="Latitude" />
                                          <TableColumn fx:id="flightLongCol" prefWidth="100.0" text="Longitude" />
                                          <TableColumn fx:id="flightHeadCol" prefWidth="100.0" text="Heading" />
                                          <TableColumn fx:id="flightLegDisCol" prefWidth="75.0" text="Leg Dist" />
                                          <TableColumn fx:id="flightTotDisCol" prefWidth="75.0" text="Tot Dist" />
                                      </columns>
                                    </TableView>
                                 </children>
                              </GridPane>
                           </children>
                        </GridPane>
                        <Pane prefHeight="55.0" prefWidth="800.0">
                           <children>
                              <Text layoutX="14.0" layoutY="42.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Flight Raw Data">
                                 <font>
                                    <Font size="29.0" />
                                 </font>
                              </Text>
                           </children>
                        </Pane>
                     </children>
                  </GridPane>
               </children>
            </AnchorPane>
         </content>
      </ScrollPane>
   </children>
</VBox>
