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

<?import com.megatimfx.common.customcontrols.AbstractSelectionItem?>
<?import com.megatimfx.common.customcontrols.CustomFileChooser?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>

<AnchorPane id="AnchorPane" prefHeight="232.0" prefWidth="562.0" style="-fx-background-color: #fff;" styleClass="mainForm" stylesheets="@../../../../styles/CustomFormComponents.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.megatim.fdxconvert.forms.ValidateurEditFormController">
    <children>
        <VBox layoutX="-6.0" layoutY="7.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
            <padding>
                <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
            </padding>
            <children>
                <TitledPane collapsible="false" prefHeight="290.0" prefWidth="595.0" style="-fx-text-fill: #FFFFFF;" text="Informations sur le validateur à importer">
                    <content>
                        <VBox spacing="10.0" style="-fx-background-color: #FFFFFF;">
                            <children>
                                <HBox alignment="CENTER_LEFT" spacing="10.0">
                                    <children>
                                        <Label alignment="CENTER_RIGHT" minHeight="25.0" minWidth="160.0" prefHeight="25.0" prefWidth="160.0" style="-fx-text-fill: black;" text="Type du fichier" />
                                        <AbstractSelectionItem fx:id="typeFichierAbstractSelectItem" minHeight="25.0" minWidth="330.0" prefHeight="25.0" prefWidth="330.0" style="-fx-background-color: #ffffff;" />
                                    </children>
                           <VBox.margin>
                              <Insets top="5.0" />
                           </VBox.margin>
                                </HBox>
                                <HBox alignment="CENTER_LEFT" spacing="10.0">
                                    <children>
                                        <Label alignment="CENTER_RIGHT" minHeight="25.0" minWidth="160.0" prefHeight="25.0" prefWidth="160.0" style="-fx-text-fill: black;" text="Validateur à importer" />
                              <CustomFileChooser fx:id="FileToImport" minHeight="25.0" minWidth="330.0" prefHeight="25.0" prefWidth="330.0" />
                                    </children>
                                </HBox>
                        <HBox spacing="10.0">
                           <children>
                              <Label alignment="CENTER_RIGHT" minHeight="25.0" minWidth="160.0" prefHeight="25.0" prefWidth="160.0" style="-fx-text-fill: black;" text="Fichier de validation protégé ?" />
                              <CheckBox fx:id="protegeCheckBox" layoutX="235.0" layoutY="10.0" minHeight="25.0" mnemonicParsing="false" prefHeight="25.0" text="Oui">
                                 <HBox.margin>
                                    <Insets />
                                 </HBox.margin>
                              </CheckBox>
                           </children>
                        </HBox>
                        <HBox spacing="10.0">
                           <children>
                              <Label alignment="CENTER_RIGHT" minHeight="25.0" minWidth="160.0" prefHeight="25.0" prefWidth="160.0" style="-fx-text-fill: black;" text="Clé de cryptage">
                                 <HBox.margin>
                                    <Insets />
                                 </HBox.margin></Label>
                              <StackPane minHeight="25.0" minWidth="330.0" prefHeight="26.0" prefWidth="330.0">
                                 <children>
                                    <TextField fx:id="showKeyTextField" minHeight="25.0" minWidth="330.0" prefHeight="25.0" prefWidth="330.0" />
                                    <PasswordField fx:id="keyToDecryptField" minHeight="25.0" minWidth="330.0" prefHeight="25.0" prefWidth="330.0" />
                                    <ImageView fx:id="eyeImageView" fitHeight="15.0" fitWidth="15.0" onMousePressed="#eyeOnMousePressed" pickOnBounds="true" preserveRatio="true" StackPane.alignment="CENTER_RIGHT">
                                       <image>
                                          <Image url="@../../../../images/oeil.png" />
                                       </image>
                                       <StackPane.margin>
                                          <Insets right="5.0" />
                                       </StackPane.margin>
                                    </ImageView>
                                 </children>
                                 <HBox.margin>
                                    <Insets />
                                 </HBox.margin>
                              </StackPane>
                           </children>
                        </HBox>
                        <HBox layoutX="25.0" layoutY="121.0" spacing="10.0">
                           <children>
                              <Label alignment="CENTER_RIGHT" minHeight="25.0" minWidth="160.0" prefHeight="25.0" prefWidth="160.0" style="-fx-text-fill: black;" text="Confirmation de la clé" />
                              <PasswordField fx:id="keyConfirmationField" minHeight="25.0" minWidth="330.0" prefHeight="25.0" prefWidth="330.0">
                                 <HBox.margin>
                                    <Insets />
                                 </HBox.margin>
                              </PasswordField>
                           </children>
                        </HBox>
                            </children>
                            <padding>
                                <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
                            </padding>
                        </VBox>
                    </content>
                </TitledPane>
            </children>
        </VBox>
    </children>
</AnchorPane>
