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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>

<TitledPane fx:id="callPane" alignment="TOP_CENTER" animated="false" collapsible="false" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" text="Hello" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.CallController">
  <content>
    <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
         <children>
            <VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
               <children>
                  <VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0">
                     <children>
                        <Label fx:id="callLabel" alignment="CENTER" text="Your call state is: Idle" />
                        <HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="35.0">
                           <children>
                            <Button fx:id="hangupButton" disable="true" mnemonicParsing="false" onMouseClicked="#onHangUpClicked" text="Hang up" />
                              <Button fx:id="muteSoundButton" disable="true" mnemonicParsing="false" onMouseClicked="#onMuteSoundClicked" text="Mute sound" />
                              <Button fx:id="muteMicrophoneButton" disable="true" mnemonicParsing="false" onMouseClicked="#onMuteMicrophoneClicked" text="Mute microphone" />
                           </children>
                        </HBox>
                     </children>
                     <VBox.margin>
                        <Insets top="20.0" />
                     </VBox.margin>
                  </VBox>
                  <VBox fx:id="incomingCallVBox" alignment="CENTER" prefHeight="200.0" prefWidth="100.0" visible="false">
                     <children>
                        <Label text="You have a call from:" />
                        <Label fx:id="incomingCallLabel" />
                        <HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="35.0">
                           <children>
                              <Button fx:id="answerButton" mnemonicParsing="false" onMouseClicked="#onAnswerClicked" text="Answer" />
                              <Button fx:id="declineButton" mnemonicParsing="false" onMouseClicked="#onDeclineClicked" text="Decline" />
                           </children>
                        </HBox>
                     </children>
                  </VBox>
               </children>
            </VBox>
         </children></AnchorPane>
  </content>
</TitledPane>
