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

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

<DialogPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="beastfx.app.inputeditor.GuessPatternDialog">
          <content>
<GridPane prefHeight="400.0" prefWidth="600.0">
  <columnConstraints>
    <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="30.0" prefWidth="100.0" />
    <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="25.0" prefWidth="100.0" />
      <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="25.0" prefWidth="100.0" />
      <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="20.0" prefWidth="100.0" />
  </columnConstraints>
  <rowConstraints>
    <RowConstraints />
    <RowConstraints minHeight="10.0" prefHeight="50.0" vgrow="SOMETIMES" />
    <RowConstraints minHeight="10.0" prefHeight="50.0" vgrow="SOMETIMES" />
      <RowConstraints minHeight="10.0" prefHeight="50.0" vgrow="SOMETIMES" />
      <RowConstraints minHeight="10.0" prefHeight="50.0" vgrow="SOMETIMES" />
      <RowConstraints minHeight="10.0" prefHeight="20.0" vgrow="SOMETIMES" />
      <RowConstraints minHeight="10.0" prefHeight="20.0" vgrow="SOMETIMES" />
      <RowConstraints minHeight="10.0" prefHeight="20.0" vgrow="SOMETIMES" />
  </rowConstraints>
   <children>
      <RadioButton fx:id="useEverything" mnemonicParsing="false" text="use everything" GridPane.rowIndex="1">
               <toggleGroup>
                  <ToggleGroup fx:id="group" />
               </toggleGroup>
      </RadioButton>
      <RadioButton fx:id="isSplitOnChar" mnemonicParsing="false" text="split on character" toggleGroup="$group" GridPane.rowIndex="2" />
      <RadioButton fx:id="useRegexp" mnemonicParsing="false" text="use regular expression" toggleGroup="$group" GridPane.rowIndex="3" />
      <RadioButton fx:id="readFromFile" mnemonicParsing="false" text="read from file" toggleGroup="$group" GridPane.rowIndex="4" />
      <ComboBox fx:id="combo" prefWidth="150.0" visibleRowCount="20" GridPane.columnIndex="1" GridPane.rowIndex="1" />
      <TextField fx:id="textSplitChar" maxWidth="50.0" prefColumnCount="3" prefWidth="50.0" text="_" GridPane.columnIndex="2" GridPane.rowIndex="1">
               <GridPane.margin>
                  <Insets left="5.0" right="5.0" />
               </GridPane.margin></TextField>
      <ComboBox fx:id="combo_1" prefWidth="60.0" GridPane.columnIndex="3" GridPane.rowIndex="2" />
      <TextField fx:id="textSplitChar2" maxWidth="50.0" prefColumnCount="3" prefWidth="50.0" text="_" GridPane.columnIndex="1" GridPane.rowIndex="2" />
      <TextField fx:id="textRegExp" prefHeight="25.0" prefWidth="355.0" GridPane.columnIndex="1" GridPane.columnSpan="2" GridPane.rowIndex="3" text=".*(\d\d\d\d).*"/>
      <Label fx:id="lblAndTakeGroups" text="and take group(s):" GridPane.columnIndex="2" GridPane.halignment="RIGHT" GridPane.rowIndex="2">
         <padding>
            <Insets right="5.0" />
         </padding>
      </Label>
      <Button fx:id="btnHelp" mnemonicParsing="false" text="?" GridPane.columnIndex="3" GridPane.halignment="CENTER" GridPane.rowIndex="4" />
      <Button fx:id="btnBrowse" mnemonicParsing="false" text="Browse" GridPane.columnIndex="2" GridPane.halignment="RIGHT" GridPane.rowIndex="4">
         <GridPane.margin>
            <Insets left="5.0" right="5.0" />
         </GridPane.margin>
      </Button>
      <TextField fx:id="txtFile" GridPane.columnIndex="1" GridPane.rowIndex="4" />
      <CheckBox fx:id="chckbxAddFixedValue" mnemonicParsing="false" text="Add fixed value" GridPane.rowIndex="5" />
      <TextField fx:id="textAddValue" text="1900" GridPane.columnIndex="1" GridPane.rowIndex="5" />
      <CheckBox fx:id="chckbxUnlessLessThan" mnemonicParsing="false" text="Unless less than..." GridPane.rowIndex="6" />
      <TextField fx:id="textUnlessLessThan" text="20" GridPane.columnIndex="1" GridPane.rowIndex="6" />
      <Label fx:id="lblThenAdd" text="...then add " GridPane.halignment="RIGHT" GridPane.rowIndex="7" />
      <TextField fx:id="textThenAdd" text="2000" GridPane.columnIndex="1" GridPane.rowIndex="7" />
            <Group id="group" GridPane.rowIndex="1" />
   </children>
</GridPane>
          </content>
          <!--
          <expandableContent>
            <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="200.0" prefWidth="320.0" />
          </expandableContent>
          -->
      </DialogPane>
