<?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.Spinner?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.AnchorPane?>

<AnchorPane id="AnchorPane" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.65" fx:controller="fr.amap.lidar.amapvox.gui.VoxelSpaceCroppingFrameController">
    <children>
        <VBox alignment="TOP_LEFT" spacing="20.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0" AnchorPane.bottomAnchor="10.0" fillWidth="true" >
            <children>
                <VBox spacing="10.0">
                    <children>
                        <Label text="Voxel file" />
                        <HBox spacing="10.0">
                            <children>
                                <TextField fx:id="textfieldInputVoxelFile" editable="false" prefHeight="26.0" prefWidth="400.0" HBox.hgrow="ALWAYS" />
                                <Button mnemonicParsing="false" onAction="#onActionButtonOpenVoxelFile" text="..."  />
                            </children>
                        </HBox>
                    </children>
                </VBox>
                <HBox spacing="15.0">
                    <children>
                        <fx:define>
                            <ToggleGroup  fx:id="cropToggleGroup" />
                        </fx:define>    
                        <RadioButton fx:id="autoCropRadioButton" text="Automatic" toggleGroup="$cropToggleGroup" />
                        <RadioButton fx:id="manualCropRadioButton" text="Manual " toggleGroup="$cropToggleGroup" />
                    </children>
                </HBox>
                <VBox spacing="5.0">
                    <children>
                        <HBox spacing="20.0">
                            <children>
                                <HBox alignment="CENTER_LEFT" spacing="7.0">
                                    <children>
                                        <Label text="I min" />
                                        <Spinner fx:id="spinnerEnterIMin" editable="true" prefHeight="26.0" prefWidth="92.0" />
                                    </children>
                                </HBox>
                                <HBox alignment="CENTER_LEFT" spacing="4.0">
                                    <children>
                                        <Label text="I max" />
                                        <Spinner fx:id="spinnerEnterIMax" editable="true" prefHeight="26.0" prefWidth="92.0" />
                                    </children>
                                </HBox>
                            </children>
                        </HBox>
                        <HBox spacing="20.0">
                            <children>
                                <HBox alignment="CENTER_LEFT" spacing="7.0">
                                    <children>
                                        <Label text="J min" />
                                        <Spinner fx:id="spinnerEnterJMin" editable="true" prefHeight="26.0" prefWidth="92.0" />
                                    </children>
                                </HBox>
                                <HBox alignment="CENTER_LEFT" spacing="4.0">
                                    <children>
                                        <Label text="J max" />
                                        <Spinner fx:id="spinnerEnterJMax" editable="true" prefHeight="26.0" prefWidth="92.0" />
                                    </children>
                                </HBox>
                            </children>
                        </HBox>
                        <HBox spacing="20.0">
                            <children>
                                <HBox alignment="CENTER_LEFT" spacing="7.0">
                                    <children>
                                        <Label text="K min" />
                                        <Spinner fx:id="spinnerEnterKMin" editable="true" prefHeight="26.0" prefWidth="92.0" />
                                    </children>
                                </HBox>
                                <HBox alignment="CENTER_LEFT" spacing="4.0">
                                    <children>
                                        <Label text="K max" />
                                        <Spinner fx:id="spinnerEnterKMax" editable="true" prefHeight="26.0" prefWidth="92.0" />
                                    </children>
                                </HBox>
                            </children>
                        </HBox>
                    </children>
                    <padding>
                        <Insets left="20.0" />
                    </padding>  
                </VBox>
                <HBox spacing="10.0">
                    <children>
                        <Button mnemonicParsing="false" onAction="#onActionButtonAreaExtractingWriteNewFile" text="Save" />
                        <Button mnemonicParsing="false" onAction="#onActionButtonAreaExtractingWriteNewFile" text="Save as..." />
                    </children>
                </HBox>
            </children>
        </VBox>
    </children>
</AnchorPane>