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

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.Font?>
<StackPane prefHeight="800.0" prefWidth="1600.0" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controllers.MainController">
   <children>
      <BorderPane prefHeight="600.0" prefWidth="1200.0">
         <top>
            <FlowPane BorderPane.alignment="CENTER">
               <children>
                  <ComboBox id="SportComboBox" fx:id="sportSelector" onAction="#sportSelected" prefHeight="25.0" prefWidth="200.0" promptText="Sport" />
                  <ComboBox id="CountryComboBox" fx:id="countrySelector" disable="true" onAction="#countrySelected" prefHeight="25.0" prefWidth="200.0" promptText="Country" />
                  <ComboBox id="LeagueComboBox" fx:id="leagueSelector" disable="true" onAction="#leagueSelected" prefHeight="25.0" prefWidth="200.0" promptText="League" />
                  <Button fx:id="resetFilterButton" mnemonicParsing="false" onAction="#resetFilter" text="Reset Filter" />
                  <Button fx:id="getLeagueInfoButton" disable="true" mnemonicParsing="false" onAction="#getLeagueInfo" text="Get League Info" />
                  <Button fx:id="getMoreLeagueInfo" disable="true" mnemonicParsing="false" onAction="#getMoreLeagueInfo" text="Get more league info" />
                  <Button fx:id="updateStatsTableButton" disable="true" mnemonicParsing="false" onAction="#updateStatsTable" text="Update Statistics" />
                  <Button fx:id="showMatchStatsButton" disable="true" mnemonicParsing="false" onAction="#setMatchStatInfo" text="Show match stats" />
                  <Button onAction="#getLeagueInfo" text="Get this years stats" />
               </children>
            </FlowPane>
         </top>
         <left>
            <SplitPane dividerPositions="0.38190954773869346" prefHeight="575.0" prefWidth="300.0" BorderPane.alignment="CENTER">
              <items>
                  <FlowPane prefHeight="573.0">
                     <children>
                        <TextField alignment="CENTER" editable="false" prefHeight="25.0" text="Home team" />
                        <TextField alignment="CENTER" editable="false" prefHeight="25.0" text="Away team" />
                        <TextField editable="false" prefHeight="25.0" prefWidth="100.0" text="League avarages">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                        </TextField>
                        <TextField editable="false" text="Home score" />
                        <TextField editable="false" text="Away score" />
                        <TextField editable="false" prefHeight="25.0" prefWidth="149.0" text="Season Scoring">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                        </TextField>
                        <TextField editable="false" text="0 Goals" />
                        <TextField editable="false" text="1 Goal" />
                        <TextField editable="false" text="2 Goals" />
                        <TextField editable="false" text="3 Goals" />
                        <TextField editable="false" text="4 Goals" />
                        <TextField editable="false" text="5 Goals" />
                        <TextField editable="false" text="6+ Goals" />
                     </children>
                  </FlowPane>
                  <FlowPane prefHeight="573.0" prefWidth="149.0">
                     <children>
                        <ChoiceBox id="HomeTeamSelector" fx:id="homeTeamSelector" disable="true" prefHeight="25.0" prefWidth="100.0" />
                        <ChoiceBox id="AwayTeamSelector" fx:id="awayTeamSelector" disable="true" prefHeight="25.0" prefWidth="100.0" />
                        <TextField editable="false" prefHeight="25.0" prefWidth="100.0" text="League avarages">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                        </TextField>
                        <TextField fx:id="avgLeagueHomeScoreTxt" editable="false" />
                        <TextField fx:id="avgLeagueAwayScoreTxt" editable="false" />
                        <TextField editable="false" />
                        <TextField fx:id="league0Goals" editable="false" />
                        <TextField fx:id="league1Goals" editable="false" />
                        <TextField fx:id="league2Goals" editable="false" />
                        <TextField fx:id="league3Goals" editable="false" />
                        <TextField fx:id="league4Goals" editable="false" />
                        <TextField fx:id="league5Goals" editable="false" />
                        <TextField fx:id="league6Goals" editable="false" />
                     </children>
                  </FlowPane>
              </items>
            </SplitPane>
         </left>
         <center>
            <TabPane prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
              <tabs>
                <Tab text="Predictions">
                  <content>
                    <fx:include fx:id="matchTab" source="MatchTabBuilder.fxml" />
                  </content>
                </Tab>
                <Tab text="To Be Resolved">
                  <content>
                    <fx:include fx:id="resultsTab" source="MatchResultTabBuilder.fxml" />
                  </content>
                </Tab>
                <Tab text="Statistic Tests">
                  <content>
                    <fx:include fx:id="statTab" source="StatisticsTabBuilder.fxml" />
                  </content>
                </Tab>
                <Tab text="Match Statistics">
                	<content>
 						<fx:include fx:id="matchStatTab" source="MatchStatTabBuilder.fxml" />               	
                	</content>
                </Tab>
                <Tab text="Old results">
                	<content>
                		<fx:include fx:id="oldResultsTab" source="PastResults.fxml" />
                	</content>
                </Tab>
                <Tab text="Testing2">
	                <content>
	                   <fx:include fx:id="testsTab" source="Testing.fxml" />
	                </content>
                </Tab>
                <Tab text="Analyze Betting">
                  <content>
                     <fx:include fx:id="analyzeTesting" source="AnalysisTesting.fxml" />
                  </content>
                </Tab>
                  <Tab text="Stryktipset">
                      <content>
                          <fx:include fx:id="stryktipset" source="Stryktipset.fxml" />
                      </content>
                  </Tab>
                  <Tab text="Analyser">
                      <content>
                          <fx:include fx:id="analyser" source="Analyser.fxml" />
                      </content>
                  </Tab>
                  <Tab text="MatchStatistics">
                      <content>
                          <fx:include fx:id="matchStatistics" source="MatchStatistics.fxml" />
                      </content>
                  </Tab>
                  <Tab text="Strategy Tester">
                      <content>
                          <fx:include fx:id="strategyTester" source="StrategyTester.fxml" />
                      </content>
                  </Tab>
                  <Tab text="Upcomming Matches">
                      <content>
                          <fx:include fx:id="upcommingMatches" source="UpcommingMatches.fxml" />
                      </content>
                  </Tab>
              </tabs>
            </TabPane>
         </center>
      </BorderPane>
      <Pane fx:id="glass" disable="true" opacity="0.0" prefHeight="600.0" prefWidth="1200.0" style="-fx-background-color: #000111;" visible="false">
         <children>
            <TextField alignment="CENTER" editable="false" layoutX="198.0" layoutY="231.0" style="-fx-background-color: #000FFF; -fx-text-fill: #FFFFFF;" text="WAIT">
               <font>
                  <Font size="65.0" />
               </font>
            </TextField>
         </children>
      </Pane>
   </children>
</StackPane>
