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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.josast.ApplicationAmicalsat.Controler">
   <top>
      <HBox alignment="CENTER" BorderPane.alignment="CENTER">
         <children>
            <ImageView fx:id="ImageViewAMSAT" fitHeight="100.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true">
              </ImageView>
            <VBox>
               <children>
                  <HBox alignment="CENTER" spacing="20.0">
                     <children>
                        <Label fx:id="LabelIP" prefHeight="17.0" prefWidth="26.0" text="IP" />
                        <TextField fx:id="FieldIP" onAction="#HandleIP" prefHeight="25.0" prefWidth="88.0" text="localhost" />
                        <Label prefHeight="17.0" prefWidth="32.0" text="Port" />
                        <TextField fx:id="FieldPort" onAction="#HandlePort" prefHeight="25.0" prefWidth="100.0" text="8100" />
                     </children>
                     <padding>
                        <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
                     </padding>
                  </HBox>
                  <HBox alignment="CENTER" prefHeight="45.0" prefWidth="407.0" spacing="20.0">
                     <children>
                        <Button fx:id="ButtonStart" mnemonicParsing="false" onAction="#handleStart" text="Start" />
                        <Button fx:id="ButtonStop" mnemonicParsing="false" onAction="#handleStop" text="Stop" />
                        <Button fx:id="ButtonSave" mnemonicParsing="false" onAction="#handleSave" text="Save" />
                     </children>
                     <padding>
                        <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
                     </padding>
                  </HBox>
                  <FlowPane alignment="CENTER">
                     <children>
                        <Label fx:id="LabelInformation" text="Message d'informations" textAlignment="CENTER">
                           <font>
                              <Font name="System Bold Italic" size="12.0" />
                           </font>
                        </Label>
                     </children>
                  </FlowPane>
               </children>
            </VBox>
            <ImageView fx:id="imageViewEntrysat" fitHeight="67.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true">
              </ImageView>
         </children>
      </HBox>
   </top>
   <bottom>
      <HBox alignment="CENTER" spacing="20.0" BorderPane.alignment="CENTER">
         <children>
            <Label fx:id="labelStatus" text="Status" />
            <Label fx:id="LabelFrame" alignment="CENTER_RIGHT" text="Frame :  0" />
         </children>
         <BorderPane.margin>
            <Insets />
         </BorderPane.margin>
         <padding>
            <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
         </padding>
         <opaqueInsets>
            <Insets />
         </opaqueInsets>
      </HBox>
   </bottom>
   <center>
      <TabPane prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
        <tabs>
          <Tab text="Data Stream">
               <content>
                  <TextArea fx:id="DecodedData" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" />
               </content>
            </Tab>
            <Tab fx:id="Log" text="Log">
               <content>
                  <TextArea fx:id="TexAreaLog" prefHeight="200.0" prefWidth="200.0" />
               </content>
            </Tab>
            <Tab text="Configuration">
              <content>
                  <BorderPane>
                     <center>
                        <HBox alignment="CENTER">
                           <children>
                              <VBox alignment="CENTER">
                                 <children>
                                    <Label alignment="CENTER" contentDisplay="CENTER" text="Station" textAlignment="CENTER">
                                       <font>
                                          <Font name="System Bold" size="17.0" />
                                       </font>
                                    </Label>
                                    <GridPane alignment="CENTER_RIGHT">
                                      <columnConstraints>
                                        <ColumnConstraints hgrow="SOMETIMES" />
                                        <ColumnConstraints hgrow="SOMETIMES" />
                                          <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                      </columnConstraints>
                                      <rowConstraints>
                                        <RowConstraints vgrow="SOMETIMES" />
                                        <RowConstraints vgrow="SOMETIMES" />
                                        <RowConstraints vgrow="SOMETIMES" />
                                      </rowConstraints>
                                       <children>
                                          <TextField fx:id="TextFieldCallsign" GridPane.columnIndex="1" />
                                          <Label alignment="CENTER_RIGHT" contentDisplay="RIGHT" text="CalLsign : " textAlignment="RIGHT" />
                                          <Label text="Latitude :" GridPane.rowIndex="1" />
                                          <Label text="Longitude : " GridPane.rowIndex="2" />
                                          <TextField fx:id="TextFieldLatitude" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                                          <TextField fx:id="TextFieldLongitude" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                                          <Label text="XX.XXS/N" GridPane.columnIndex="2" GridPane.rowIndex="1" />
                                          <Label text="XX.XXE/W" GridPane.columnIndex="2" GridPane.rowIndex="2" />
                                       </children>
                                    </GridPane>
                                    <Label text="Data WhareHouse">
                                       <font>
                                          <Font name="System Bold" size="18.0" />
                                       </font>
                                    </Label>
                                    <GridPane>
                                      <columnConstraints>
                                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                          <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                      </columnConstraints>
                                      <rowConstraints>
                                        <RowConstraints vgrow="SOMETIMES" />
                                        <RowConstraints vgrow="SOMETIMES" />
                                      </rowConstraints>
                                       <children>
                                          <CheckBox fx:id="CheckbBoxAmicalSat" mnemonicParsing="false" text="AmicalSat " />
                                          <CheckBox fx:id="CheckBoxSatNogs" mnemonicParsing="false" text="SatNogs" GridPane.rowIndex="1" />
                                          <Label text="Source" GridPane.columnIndex="1" />
                                          <Label text="Source" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                                          <TextField fx:id="TextFieldSIDSEntrysat" GridPane.columnIndex="2">
                                             <GridPane.margin>
                                                <Insets />
                                             </GridPane.margin>
                                          </TextField>
                                          <TextField fx:id="TextFieldSIDSSatnogs" GridPane.columnIndex="2" GridPane.rowIndex="1" />
                                       </children>
                                    </GridPane>
                                    <HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
                                       <children>
                                          <Button fx:id="ButtonSaveConfiguration" contentDisplay="RIGHT" mnemonicParsing="false" onAction="#HandleSaveConfiguration" text="Save Configuration" />
                                       </children>
                                    </HBox>
                                 </children>
                              </VBox>
                           </children>
                        </HBox>
                     </center>
                  </BorderPane>
              </content>
            </Tab>
        </tabs>
      </TabPane>
   </center>
</BorderPane>
