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

<?import java.lang.String?>
<?import javafx.collections.FXCollections?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>
<?language rexx?>

<AnchorPane fx:id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="531.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1">

   <children>
       <Label layoutX="52.0" layoutY="230.0" text="training journal" />

       <TextArea fx:id="description" layoutX="137.0" layoutY="230.0" prefHeight="180.0" prefWidth="231.0" />


       <ChoiceBox fx:id="muscle" layoutX="137.0" layoutY="100.0" prefHeight="25.0" prefWidth="231.0">
           <items>
               <FXCollections fx:factory="observableArrayList">
                   <String fx:value="Brust" />
                   <String fx:value="Rucken" />
                   <String fx:value="Beine" />
                   <String fx:value="Schultern" />
                   <String fx:value="Arme" />
                   <String fx:value="Bauch" />
                   <String fx:value="Laufen" />
                   <String fx:value="Radeln" />
                   <String fx:value="Rudern" />


               </FXCollections>
           </items>
       </ChoiceBox>

      
       <fx:script source="controller.rxj" />

      <!-- <CheckBox fx:id="terms" Style="-fx-cursor: hand" layoutX="52.0" layoutY="452.0" mnemonicParsing="false" text="I have read and accepted the " /> -->

      <Label layoutX="52.0" layoutY="100.0" text="muscle" />
      
      <Label layoutX="137.0" layoutY="37.0" text="Which muscle is it today?" textFill="#069a2e">
         <font>
            <Font name="Arial" size="26.0" />
         </font>
      </Label>
      <Label layoutX="137.0" layoutY="167.0" text="How was your progress?" textFill="#069a2e">
         <font>
            <Font name="Arial" size="26.0" />
         </font>
      </Label>
      

       <Button fx:id="submit" layoutX="137.0" layoutY="430.0" mnemonicParsing="false" onAction=
                      "
                        slotDir=arg(arg())  /* the last argument is always sent by BSF4ooRexx */ ;
                        call startWorkout slotDir /* now process the event */;
                      "
                      text="Start Workout" textFill="#069a2e"/>

     <ImageView fx:id="imageview" fitHeight="206.0" fitWidth="130.0" layoutX="381.0" layoutY="222.0"
                      onDragDropped=
                      "
                         slotDir=arg(arg()) /* the last argument is always sent by BSF4ooRexx */ ;
                         call handleDrop slotDir;
                      "
                      onDragOver=
                      "
                         slotDir=arg(arg()) /* the last argument is always sent by BSF4ooRexx */ ;
                         call handleDragOver slotDir;
                      "
                      pickOnBounds="true" preserveRatio="true"> 
          <image>
            <Image fx:id="image" backgroundLoading="true" url="images/planerimg.jpg" />
          </image> 

      </ImageView>

       <fx:script source="controller.rxj" />
   </children>
</AnchorPane>
