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

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>

<AnchorPane prefHeight="800.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controllers.TestingTabController">
   <children>
      <BorderPane layoutX="-4.0" prefHeight="800.0" prefWidth="800.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
         <center>
            <BorderPane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
               <center>
                  <GridPane prefHeight="205.0" prefWidth="319.0" BorderPane.alignment="CENTER">
                    <columnConstraints>
                      <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="285.0" minWidth="10.0" prefWidth="271.0" />
                      <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="187.0" minWidth="10.0" prefWidth="187.0" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints maxHeight="50.0" minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="50.0" minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="50.0" minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                      <RowConstraints maxHeight="131.0" minHeight="30.0" prefHeight="120.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="49.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                      <RowConstraints maxHeight="49.0" minHeight="0.0" prefHeight="30.0" vgrow="SOMETIMES" />
                      <RowConstraints maxHeight="47.0" minHeight="19.0" prefHeight="30.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="45.0" minHeight="30.0" prefHeight="37.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                     <children>
                        <FlowPane orientation="VERTICAL" GridPane.rowIndex="3">
                           <children>
                              <Label prefHeight="20.0" text="Lanewin Divisor Horse Avg" />
                              <Label prefHeight="20.0" text="Lanewin Divisor Horse Distance" />
                              <Label prefHeight="20.0" text="Lanewin Divisor Driver" />
                              <Label prefHeight="20.0" text="Lanewin Divisor Driver Distance" />
                              <Label prefHeight="20.0" text="Lanewin Divisor Custom" />
                              <Label prefHeight="20.0" text="Lanewin Divisor Combined" />
                           </children>
                        </FlowPane>
                        <FlowPane orientation="VERTICAL" GridPane.columnIndex="1" GridPane.rowIndex="3">
                           <children>
                              <TextField fx:id="divisorValueHorse" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                              <TextField fx:id="divisorValueHorseDistance" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                              <TextField fx:id="divisorValueDriver" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                              <TextField fx:id="divisorValueDriverDistance" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                              <TextField fx:id="divisorValueCustom" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                              <TextField fx:id="divisorValueCombined" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                           </children>
                        </FlowPane>
                        <FlowPane orientation="VERTICAL" prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="5">
                           <children>
                              <Label text="Combine Horse Weight" />
                              <Label text="Combine Driver Weight" />
                           </children>
                        </FlowPane>
                        <FlowPane orientation="VERTICAL" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="5">
                           <children>
                              <TextField fx:id="combineHorseWeight" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                              <TextField fx:id="combineDriverWeight" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="1" text="1" />
                           </children>
                        </FlowPane>
                        <Label alignment="CENTER" prefHeight="45.0" prefWidth="466.0" text="Combine sorter" GridPane.columnSpan="2147483647" GridPane.rowIndex="4" GridPane.vgrow="ALWAYS">
                           <font>
                              <Font size="26.0" />
                           </font>
                        </Label>
                        <Label alignment="CENTER" text="Lane divisor settings" GridPane.columnSpan="2" GridPane.halignment="CENTER" GridPane.hgrow="ALWAYS" GridPane.rowIndex="2" GridPane.valignment="CENTER" GridPane.vgrow="ALWAYS">
                           <font>
                              <Font size="27.0" />
                           </font>
                        </Label>
                        <Label alignment="CENTER" text="General Settings" GridPane.columnSpan="2">
                           <font>
                              <Font size="27.0" />
                           </font>
                        </Label>
                        <Label prefHeight="20.0" text="Top to Count" GridPane.rowIndex="1" />
                        <TextField fx:id="topCountTextField" minHeight="20.0" prefHeight="20.0" prefWidth="103.0" promptText="2" text="2" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                     </children>
                  </GridPane>
               </center>
               <bottom>
                  <FlowPane alignment="CENTER" BorderPane.alignment="CENTER">
                     <children>
                        <Button fx:id="resetSettings" mnemonicParsing="false" onAction="#resetSettingsAction" text="Reset Settings" />
                        <Button fx:id="calculateButton" mnemonicParsing="false" onAction="#CalculateAction" text="Calculate" />
                     </children>
                  </FlowPane>
               </bottom>
            </BorderPane>
         </center>
         <right>
            <GridPane gridLinesVisible="true" prefHeight="200.0" prefWidth="330.0" BorderPane.alignment="CENTER">
              <columnConstraints>
                <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="239.0" minWidth="10.0" prefWidth="229.0" />
                <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="97.0" minWidth="0.0" prefWidth="97.0" />
              </columnConstraints>
              <rowConstraints>
                <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
              </rowConstraints>
               <children>
                  <Label fx:id="horseAvgTimePercentText" alignment="CENTER" style="-fx-text-fill: BLACK;" text="HorseAvgTime" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
                  <Label fx:id="horseAvgTimePercentValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
                  <Label fx:id="horseAvgTimeByDistancePercentText" alignment="CENTER" layoutX="39.0" layoutY="35.0" style="-fx-text-fill: BLACK;" text="HorseAvgTimeByDistance" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER" />
                  <Label fx:id="horseAvgTimeByDistancePercentValue" layoutX="167.0" layoutY="35.0" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER" />
                  <Label fx:id="driverAvgTimeText" alignment="CENTER" style="-fx-text-fill: BLACK;" text="DriverAvgTime" GridPane.rowIndex="2" />
                  <Label fx:id="driverAvgTimeValue" alignment="CENTER" style="-fx-text-fill: BLACK;" text="DriverAvgTimeByDistance" GridPane.rowIndex="3" />
                  <Label fx:id="customText" alignment="CENTER" style="-fx-text-fill: BLACK;" text="Custom" GridPane.rowIndex="4" />
                  <Label fx:id="combinedText" alignment="CENTER" style="-fx-text-fill: BLACK;" text="Combined" GridPane.rowIndex="5" />
                  <Label fx:id="driverAvgTimePercentValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                  <Label fx:id="driverAvgTimeByDistancePercentValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="3" />
                  <Label fx:id="customPercentageValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="4" />
                  <Label fx:id="combinedPercentageValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="5" />
                  <Label alignment="CENTER" style="-fx-text-fill: BLACK;" text="Horse Driver Same order" GridPane.rowIndex="6" />
                  <Label alignment="CENTER" style="-fx-text-fill: BLACK;" text="Horse- Driver- distance Same order" GridPane.rowIndex="7" />
                  <Label alignment="CENTER" style="-fx-text-fill: BLACK;" text="All four basic the same" GridPane.rowIndex="8" />
                  <Label fx:id="horseDriverSameOrderValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="6" />
                  <Label fx:id="horseDriverDistanceSameOrderValue" prefWidth="17.0" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="7" />
                  <Label fx:id="AllFourBasicSameOrderValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="8" />
                  <Label fx:id="AllSameOrderValue" style="-fx-text-fill: BLACK;" text="0%" GridPane.columnIndex="1" GridPane.rowIndex="9" />
                  <Label alignment="CENTER" style="-fx-text-fill: BLACK;" text="All the same" GridPane.rowIndex="9" />
               </children>
            </GridPane>
         </right>
      </BorderPane>
   </children>
</AnchorPane>
