2015-11-28 23:06:14 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<?import java.net.URL?>
|
2016-01-27 04:39:53 +01:00
|
|
|
<?import javafx.geometry.Insets?>
|
|
|
|
|
<?import javafx.scene.canvas.Canvas?>
|
|
|
|
|
<?import javafx.scene.control.Button?>
|
|
|
|
|
<?import javafx.scene.control.Label?>
|
|
|
|
|
<?import javafx.scene.control.ListView?>
|
|
|
|
|
<?import javafx.scene.control.Menu?>
|
|
|
|
|
<?import javafx.scene.control.MenuBar?>
|
|
|
|
|
<?import javafx.scene.control.MenuItem?>
|
|
|
|
|
<?import javafx.scene.control.SeparatorMenuItem?>
|
|
|
|
|
<?import javafx.scene.control.SplitPane?>
|
|
|
|
|
<?import javafx.scene.control.TableView?>
|
|
|
|
|
<?import javafx.scene.control.ToolBar?>
|
|
|
|
|
<?import javafx.scene.control.Tooltip?>
|
|
|
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
|
|
|
<?import javafx.scene.layout.BorderPane?>
|
|
|
|
|
<?import javafx.scene.layout.ColumnConstraints?>
|
|
|
|
|
<?import javafx.scene.layout.GridPane?>
|
|
|
|
|
<?import javafx.scene.layout.HBox?>
|
|
|
|
|
<?import javafx.scene.layout.Region?>
|
|
|
|
|
<?import javafx.scene.layout.RowConstraints?>
|
|
|
|
|
<?import javafx.scene.layout.VBox?>
|
2016-01-13 11:50:54 +01:00
|
|
|
|
2016-01-27 04:39:53 +01:00
|
|
|
<?import de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView?>
|
|
|
|
|
<?import ninja.javafx.smartcsv.fx.list.ErrorSideBar?>
|
|
|
|
|
<BorderPane fx:id="applicationPane" maxHeight="-Infinity" maxWidth="1000.0" minHeight="700.0" minWidth="-Infinity" prefHeight="700.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1">
|
2015-12-29 22:43:01 +01:00
|
|
|
<top>
|
2016-01-27 04:39:53 +01:00
|
|
|
<VBox id="background" prefWidth="100.0" BorderPane.alignment="CENTER">
|
2015-12-29 22:43:01 +01:00
|
|
|
<children>
|
|
|
|
|
<MenuBar>
|
|
|
|
|
<menus>
|
|
|
|
|
<Menu mnemonicParsing="false" text="%menu.file">
|
|
|
|
|
<items>
|
|
|
|
|
<MenuItem mnemonicParsing="false" onAction="#openCsv" text="%menu.open.csv">
|
|
|
|
|
<graphic>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="open-icon" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem mnemonicParsing="false" onAction="#openConfig" text="%menu.open.config">
|
|
|
|
|
<graphic>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="config-icon" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
2016-01-13 11:50:54 +01:00
|
|
|
<SeparatorMenuItem mnemonicParsing="false" />
|
|
|
|
|
<MenuItem fx:id="saveMenuItem" disable="true" mnemonicParsing="false" onAction="#saveCsv" text="%menu.save">
|
2015-12-29 22:43:01 +01:00
|
|
|
<graphic>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="save-icon" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
2016-01-13 11:50:54 +01:00
|
|
|
<MenuItem fx:id="saveAsMenuItem" disable="true" mnemonicParsing="false" onAction="#saveAsCsv" text="%menu.save.as">
|
2015-12-29 22:43:01 +01:00
|
|
|
<graphic>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="save-icon" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
2016-01-13 11:50:54 +01:00
|
|
|
<SeparatorMenuItem mnemonicParsing="false" />
|
2016-01-11 09:03:22 +01:00
|
|
|
<MenuItem mnemonicParsing="false" onAction="#preferences" text="%menu.preferences">
|
|
|
|
|
<graphic>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="preferences-icon" />
|
2016-01-11 09:03:22 +01:00
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
2016-01-13 11:50:54 +01:00
|
|
|
<SeparatorMenuItem mnemonicParsing="false" />
|
2015-12-29 22:43:01 +01:00
|
|
|
<MenuItem mnemonicParsing="false" onAction="#close" text="%menu.close">
|
|
|
|
|
<graphic>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="exit-icon" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
</items>
|
|
|
|
|
</Menu>
|
2016-01-13 23:07:29 +01:00
|
|
|
<Menu mnemonicParsing="false" text="%menu.edit">
|
|
|
|
|
<items>
|
|
|
|
|
<MenuItem fx:id="deleteRowMenuItem" disable="true" mnemonicParsing="false" onAction="#deleteRow" text="%menu.delete.row">
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="delete-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem fx:id="addRowMenuItem" disable="true" mnemonicParsing="false" onAction="#addRow" text="%menu.add.row">
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="add-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
</items>
|
|
|
|
|
</Menu>
|
2015-12-29 22:43:01 +01:00
|
|
|
<Menu mnemonicParsing="false" text="%menu.help">
|
|
|
|
|
<items>
|
|
|
|
|
<MenuItem mnemonicParsing="false" onAction="#about" text="%menu.about">
|
|
|
|
|
<graphic>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="info-icon" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</graphic>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
</items>
|
|
|
|
|
</Menu>
|
|
|
|
|
</menus>
|
|
|
|
|
</MenuBar>
|
2016-01-13 11:50:54 +01:00
|
|
|
<ToolBar prefHeight="40.0" prefWidth="200.0">
|
|
|
|
|
<HBox styleClass="segmented-button-bar">
|
|
|
|
|
<Button mnemonicParsing="false" onAction="#openCsv" styleClass="first">
|
|
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.open.csv" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="open-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button mnemonicParsing="false" onAction="#openConfig">
|
|
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.open.config" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="config-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button fx:id="saveButton" disable="true" mnemonicParsing="false" onAction="#saveCsv">
|
|
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.save" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="save-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
2016-01-27 04:39:53 +01:00
|
|
|
<Button fx:id="saveAsButton" disable="true" mnemonicParsing="false" onAction="#saveAsCsv" styleClass="last" text="...">
|
2016-01-13 11:50:54 +01:00
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.save.as" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="save-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
|
|
|
|
</HBox>
|
2016-01-13 23:07:29 +01:00
|
|
|
<Region styleClass="spacer" />
|
|
|
|
|
<HBox styleClass="segmented-button-bar">
|
2016-01-27 04:39:53 +01:00
|
|
|
<Button fx:id="deleteRowButton" disable="true" mnemonicParsing="false" onAction="#deleteRow" styleClass="first">
|
2016-01-13 23:07:29 +01:00
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.delete.row" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="delete-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
2016-01-27 04:39:53 +01:00
|
|
|
<Button fx:id="addRowButton" disable="true" mnemonicParsing="false" onAction="#addRow" styleClass="last">
|
2016-01-13 23:07:29 +01:00
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.add.row" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="add-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
|
|
|
|
</HBox>
|
2016-01-13 11:50:54 +01:00
|
|
|
<Region styleClass="spacer" />
|
|
|
|
|
<HBox styleClass="segmented-button-bar">
|
|
|
|
|
<Button mnemonicParsing="false" onAction="#preferences" styleClass="first">
|
|
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.preferences" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="preferences-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button mnemonicParsing="false" onAction="#close" styleClass="last">
|
|
|
|
|
<tooltip>
|
|
|
|
|
<Tooltip text="%menu.close" />
|
|
|
|
|
</tooltip>
|
|
|
|
|
<graphic>
|
|
|
|
|
<FontAwesomeIconView styleClass="exit-icon" />
|
|
|
|
|
</graphic>
|
|
|
|
|
</Button>
|
|
|
|
|
</HBox>
|
|
|
|
|
</ToolBar>
|
2015-12-29 22:43:01 +01:00
|
|
|
</children>
|
|
|
|
|
</VBox>
|
|
|
|
|
</top>
|
|
|
|
|
<center>
|
2016-01-27 04:39:53 +01:00
|
|
|
<AnchorPane fx:id="tableWrapper">
|
|
|
|
|
<TableView fx:id="tableView" prefHeight="200.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" BorderPane.alignment="CENTER">
|
|
|
|
|
<columns>
|
|
|
|
|
</columns>
|
|
|
|
|
</TableView>
|
|
|
|
|
</AnchorPane>
|
2015-12-29 22:43:01 +01:00
|
|
|
</center>
|
|
|
|
|
<left>
|
|
|
|
|
</left>
|
2015-12-18 12:19:19 +01:00
|
|
|
<stylesheets>
|
2016-01-13 11:50:54 +01:00
|
|
|
<URL value="@/ninja/javafx/smartcsv/fx/smartcsv.css" />
|
2015-12-18 12:19:19 +01:00
|
|
|
</stylesheets>
|
2015-12-29 22:43:01 +01:00
|
|
|
<bottom>
|
|
|
|
|
<GridPane hgap="8.0" BorderPane.alignment="CENTER">
|
|
|
|
|
<columnConstraints>
|
2016-01-13 11:50:54 +01:00
|
|
|
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
|
|
|
|
|
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
|
|
|
|
|
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
|
|
|
|
|
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
|
|
|
|
|
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
|
|
|
|
|
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
|
|
|
|
|
<ColumnConstraints hgrow="NEVER" minWidth="10.0" />
|
|
|
|
|
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</columnConstraints>
|
|
|
|
|
<rowConstraints>
|
2016-01-13 11:50:54 +01:00
|
|
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</rowConstraints>
|
|
|
|
|
<children>
|
2016-01-13 11:50:54 +01:00
|
|
|
<FontAwesomeIconView styleClass="open-icon" GridPane.hgrow="NEVER" />
|
|
|
|
|
<Label text="%stateline.csv" GridPane.columnIndex="1" GridPane.hgrow="NEVER" />
|
|
|
|
|
<Label fx:id="csvName" GridPane.columnIndex="2" GridPane.hgrow="ALWAYS" />
|
2016-01-13 23:07:29 +01:00
|
|
|
<FontAwesomeIconView styleClass="open-icon" GridPane.columnIndex="3" GridPane.hgrow="NEVER" />
|
|
|
|
|
<Label text="%stateline.configuration" GridPane.columnIndex="4" GridPane.hgrow="NEVER" />
|
|
|
|
|
<Label fx:id="configurationName" GridPane.columnIndex="5" GridPane.hgrow="ALWAYS" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</children>
|
|
|
|
|
<BorderPane.margin>
|
2016-01-13 11:50:54 +01:00
|
|
|
<Insets bottom="4.0" left="8.0" right="8.0" top="4.0" />
|
2015-12-29 22:43:01 +01:00
|
|
|
</BorderPane.margin>
|
|
|
|
|
</GridPane>
|
|
|
|
|
</bottom>
|
2015-11-28 23:06:14 +01:00
|
|
|
</BorderPane>
|