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

<?import javafx.scene.control.DialogPane?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.AnchorPane?>

<DialogPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="beastfx.app.treeannotator.Controller">
<!--
    <expandableContent>
      <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="200.0" prefWidth="320.0" />
    </expandableContent>
-->    
   <content>
<GridPane>
  <columnConstraints>
    <ColumnConstraints hgrow="SOMETIMES" maxWidth="231.0" minWidth="10.0" prefWidth="148.0" />
    <ColumnConstraints hgrow="SOMETIMES" maxWidth="273.0" minWidth="10.0" prefWidth="273.0" />
    <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
  </columnConstraints>
  <rowConstraints>
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="5.0" prefHeight="5.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
      <RowConstraints minHeight="10.0" prefHeight="15.0" vgrow="SOMETIMES" />
  </rowConstraints>
   <children>
      <Label text="Burn in percentage:" />
      <Label text="Posterior pribability limit:" GridPane.rowIndex="1" />
      <Label text="Target tree type:" GridPane.rowIndex="2" />
      
      <TextField fx:id="burninPercentage" prefWidth="20.0" maxWidth="75" text="10" GridPane.columnIndex="1" />
      <TextField fx:id="posteriorLimit" prefHeight="25.0" maxWidth="75.0" text="0.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
      <Label text="Node heights:" GridPane.rowIndex="3" />
      <ComboBox fx:id="treeType" onAction="#refresh" prefWidth="250.0" GridPane.columnIndex="1" GridPane.columnSpan="2" GridPane.rowIndex="2" />
      <ComboBox fx:id="nodeHeights" onAction="#refresh" prefWidth="250.0" GridPane.columnIndex="1" GridPane.columnSpan="2" GridPane.rowIndex="3" />
      <Label text="Target tree file:" GridPane.rowIndex="5" />
      <Label text="Input Tree File:" GridPane.rowIndex="6" />
      <Label text="Output File:" GridPane.rowIndex="7" />
      <Label text="Low memory:" GridPane.rowIndex="8" />
      <CheckBox fx:id="lowMemory" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="8" />
      <TextField fx:id="targetTreeFile" disable="true" GridPane.columnIndex="1" GridPane.rowIndex="5" />
      <TextField fx:id="inputTreeFile" GridPane.columnIndex="1" GridPane.rowIndex="6" text="dna.trees"/>
      <TextField fx:id="outputFile" GridPane.columnIndex="1" GridPane.rowIndex="7" text="dna.tree"/>
      <Button fx:id="targetTreeFileButton" disable="true" mnemonicParsing="false" onAction="#chooseTargetTreeFile" text="Choose file..." GridPane.columnIndex="2" GridPane.rowIndex="5" />
      <Button mnemonicParsing="false" onAction="#chooseInputTreeFile" text="Choose file..." GridPane.columnIndex="2" GridPane.rowIndex="6" />
      <Button mnemonicParsing="false" onAction="#chooseOutputFile" text="Choose file..." GridPane.columnIndex="2" GridPane.rowIndex="7" />
      <Separator prefHeight="0.0" prefWidth="432.0" GridPane.columnSpan="3" GridPane.rowIndex="4" />
   </children>
   <padding>
      <Insets left="10.0" />
   </padding>
</GridPane>
   </content>
</DialogPane>
