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

<!--
/*
 * Copyright (C) 2018 Andrew Gegg
 *
 *	This file is part of the Garden Notebook application
 *
 * The Garden Notebook application is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl.html>.
 */

/*
        WARNING
        This file is NOT generated.
 */

-->

<?import java.net.URL?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ButtonBar?>
<?import javafx.scene.control.ContextMenu?>
<?import javafx.scene.control.MenuButton?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.TreeTableColumn?>
<?import javafx.scene.control.TreeTableView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>

<fx:root id="AnchorPane" maxWidth="1.7976931348623157E308" prefHeight="150.0" prefWidth="250.0"
         styleClass="mainFxmlClass" type="javafx.scene.layout.AnchorPane" xmlns="http://javafx.com/javafx/8.0.60"
         xmlns:fx="http://javafx.com/fxml/1">
    <stylesheets>
        <URL value="@notebook.css"/>
    </stylesheets>
    <BorderPane prefHeight="404.0" prefWidth="600.0" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="5.0"
                AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="5.0">
        <center>
            <TreeTableView id="tvCatalogue" fx:id="tvCatalogue" maxWidth="1.7976931348623157E308" prefHeight="150.0"
                           prefWidth="144.0" showRoot="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
                           AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                <columns>
                    <TreeTableColumn id="tvCatalogueSpecies" fx:id="tvCatalogueSpecies" minWidth="1.0" prefWidth="150.0"
                                     text="%col.plant"/>
                    <TreeTableColumn id="tvCatalogueLatinName" fx:id="tvCatalogueLatinName" prefWidth="75.0"
                                     text="%col.latinname"/>
                    <TreeTableColumn id="tvCatalogueDescription" fx:id="tvCatalogueDescription" prefWidth="75.0"
                                     text="%col.description"/>
                    <TreeTableColumn id="tvCatalogueComments" fx:id="tvCatalogueComments"
                                     maxWidth="1.7976931348623157E308" minWidth="-1.0" prefWidth="-1.0"
                                     text="%col.comment"/>
                </columns>
                <contextMenu>
                    <ContextMenu onShowing="#ctxmnuTopOnAction">
                        <items>
                            <MenuItem id="ctxmnuChange" fx:id="ctxmnuChange" onAction="#ctxmnuChangeOnAction"
                                      text="%menu.change"/>
                            <MenuItem id="ctxmnuDelete" fx:id="ctxmnuDelete" onAction="#ctxmnuDeleteOnAction"
                                      text="%menu.delete"/>
                            <Menu text="%menu.add">
                                <MenuItem id="ctxmnuPlantSpecies" fx:id="ctxmnuPlantSpecies" mnemonicParsing="false"
                                          onAction="#ctxmnuAddPlantSpeciesOnAction" text="%menu.newplantspecies"/>
                                <MenuItem id="ctxmnuPlantVariety" fx:id="ctxmnuPlantVariety" mnemonicParsing="false"
                                          onAction="#ctxmnuAddPlantVarietyOnAction" text="%menu.newplantvariety"/>
                            </Menu>
                        </items>
                    </ContextMenu>
                </contextMenu>
            </TreeTableView>
        </center>
        <bottom>
            <ButtonBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
                <buttons>
                    <MenuButton id="btnAdd" fx:id="btnAdd" mnemonicParsing="false" text="%btn.add">
                        <items>
                            <MenuItem id="mnuPlantSpecies" fx:id="mnuPlantSpecies" mnemonicParsing="false"
                                      onAction="#mnubtnAddPlantSpeciesOnAction" text="%menu.newplantspecies"/>
                            <MenuItem id="mnuPlantVariety" fx:id="mnuPlantVariety" mnemonicParsing="false"
                                      onAction="#mnubtnAddPlantVarietyOnAction" text="%menu.newplantvariety"/>
                        </items>
                    </MenuButton>
                    <Button id="btnChange" fx:id="btnChange" mnemonicParsing="false" onAction="#btnChangeOnAction"
                            text="%btn.change"/>
                    <Button id="btnDelete" fx:id="btnDelete" mnemonicParsing="false" onAction="#btnDeleteOnAction"
                            text="%btn.delete"/>
                </buttons>
            </ButtonBar>
        </bottom>
    </BorderPane>
</fx:root>
