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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.control.TreeView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.Pane?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0"
            prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.91" xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="xyz.wbsite.dbtool.javafx.ctrl.MainController">
    <top>
        <MenuBar BorderPane.alignment="CENTER">
            <menus>
                <Menu mnemonicParsing="false" text="数据模型">
                    <items>
                        <MenuItem mnemonicParsing="false" onAction="#modelCreate" text="新建模型"/>
                        <MenuItem mnemonicParsing="false" onAction="#modelSave" text="保存模型"/>
                        <MenuItem mnemonicParsing="false" onAction="#modelSaveAs" text="另存模型"/>
                        <MenuItem mnemonicParsing="false" onAction="#modelDelete" text="删除模型"/>
                        <MenuItem mnemonicParsing="false" onAction="#modelOpen" text="打开模型"/>
                        <MenuItem mnemonicParsing="false" onAction="#modelImport" text="模型导入"/>
                        <MenuItem mnemonicParsing="false" onAction="#modelGenerate" text="生成模型"/>
                        <MenuItem mnemonicParsing="false" onAction="#exit" text="保存退出"/>
                    </items>
                </Menu>
                <Menu mnemonicParsing="false" text="其他模型">
                    <items>
                        <MenuItem mnemonicParsing="false" onAction="#generateApi" text="生成Api"/>
                        <MenuItem mnemonicParsing="false" onAction="#generateVue" text="生成Vue"/>
                        <MenuItem mnemonicParsing="false" onAction="#generateAndroid" text="生成Android"/>
                        <MenuItem mnemonicParsing="false" onAction="#generateService" text="生成Service"/>
                        <MenuItem mnemonicParsing="false" onAction="#generateDoc" text="生成Doc"/>
                    </items>
                </Menu>
                <Menu mnemonicParsing="false" text="Help">
                    <items>
                        <MenuItem mnemonicParsing="false" text="About"/>
                    </items>
                </Menu>
            </menus>
        </MenuBar>
    </top>
    <center>
        <SplitPane dividerPositions="0.25" BorderPane.alignment="CENTER">
            <items>
                <TreeView fx:id="dbtree" prefHeight="200.0" prefWidth="200.0"/>
                <SplitPane dividerPositions="0.35" orientation="VERTICAL" prefHeight="200.0" prefWidth="160.0">
                    <items>
                        <Pane fx:id="detail" prefHeight="200.0" prefWidth="200.0"/>
                        <BorderPane>
                            <center>
                                <TableView fx:id="fields" prefHeight="200.0" prefWidth="200.0">
                                    <columns>
                                        <TableColumn prefWidth="100" text="字段名"/>
                                        <TableColumn prefWidth="90" text="类型"/>
                                        <TableColumn prefWidth="40" text="长度"/>
                                        <TableColumn prefWidth="40" text="默认值"/>
                                        <TableColumn prefWidth="35" text="主键"/>
                                        <TableColumn prefWidth="35" text="必填"/>
                                        <TableColumn prefWidth="35" text="唯一"/>
                                        <TableColumn prefWidth="35" text="查询"/>
                                        <TableColumn prefWidth="35" text="模糊"/>
                                        <TableColumn prefWidth="90" text="注释"/>
                                    </columns>
                                </TableView>
                            </center>
                            <top>
                                <ToolBar prefHeight="30.0" prefWidth="200.0" BorderPane.alignment="CENTER">
                                    <items>
                                        <Button fx:id="add" mnemonicParsing="false" text="  + "/>
                                        <Button fx:id="sub" mnemonicParsing="false" text="  - "/>
                                        <CheckBox fx:id="mcdx" selected="true" text="表名大写" />
                                    </items>
                                </ToolBar>
                            </top>
                        </BorderPane>
                    </items>
                </SplitPane>
            </items>
        </SplitPane>
    </center>
</BorderPane>
