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

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>

<AnchorPane prefHeight="800.0" prefWidth="1600.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controllers.MainController">
   <children>
      <TabPane prefHeight="800.0" prefWidth="1600.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
         <tabs>
            <Tab onSelectionChanged="#MainTabSelectionChange" text="Main">
              <content>
                <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
                     <children>
                        <TextField fx:id="horseNameTextField" layoutX="425.0" layoutY="81.0" promptText="Horse name" />
                        <TextField fx:id="driverFirstNameTextField" layoutX="577.0" layoutY="81.0" promptText="Driver FIRST name" />
                        <TextField fx:id="driverLastNameTextField" layoutX="726.0" layoutY="81.0" promptText="Driver LAST name" />
                        <Button fx:id="getHorseStatsButton" disable="true" layoutY="157.0" mnemonicParsing="false" onAction="#GetHorseStatsAction" prefHeight="200.0" prefWidth="1200.0" text="Get Horse stats" />
                        <Button fx:id="getDriverStatsButton" disable="true" layoutY="357.0" mnemonicParsing="false" onAction="#GetDriverStatsAction" prefHeight="200.0" prefWidth="1200.0" text="Get Driver stats" />
                        <Button fx:id="updateResultsButton" disable="true" layoutX="909.0" layoutY="81.0" mnemonicParsing="false" onAction="#UpdateResults" text="Rätta Resultat" />
                        <Button fx:id="testButton" layoutY="586.0" mnemonicParsing="false" onAction="#TestAction" prefHeight="104.0" prefWidth="1196.0" text="TEST" />
                     </children>
                  </AnchorPane>
              </content>
            </Tab>
            <Tab text="Atg">
              <content>
                <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
                     <children>
                        <TabPane prefHeight="571.0" prefWidth="1200.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                           <tabs>
                              <Tab text="Dagens Dubbel">
                                 <content>
                                    <fx:include fx:id="DDTab" source="DD.fxml" />
                                 </content>
                              </Tab>
                              <Tab text="Lunch Dubbel">
                                 <content>
                                    <fx:include fx:id="LDTab" source="LD.fxml" />
                                 </content>
                              </Tab>
                              <Tab text="V75">
                                <content>
                                  <fx:include fx:id="V75Tab" source="V75.fxml" />
                                </content>
                              </Tab>
                              <Tab text="TestTab">
                                 <content>
                                    <fx:include fx:id="TestTab" source="TestTab.fxml" />
                                 </content>
                              </Tab>
                           </tabs>
                        </TabPane>
                     </children>
                  </AnchorPane>
              </content>
            </Tab>
            <Tab text="Update races">
              <content>
        		<fx:include fx:id="UpdateTab" source="UpdateTab.fxml" />
              </content>
            </Tab>
            <Tab text="TESTING">
              <content>
                <fx:include fx:id="TestingTab" source="TestingTab.fxml" />
              </content>
            </Tab>
            <Tab text="NewTab">
            	<content>
            		<fx:include fx:id="NewTab" source="NewTab/NewTab.fxml" />
            	</content>
            </Tab>
         </tabs>
      </TabPane>
   </children>
</AnchorPane>
