mirror of https://gitlab.com/kauron/jstudy
169 lines
7.7 KiB
XML
169 lines
7.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.*?>
|
|
<?import javafx.scene.image.*?>
|
|
<?import javafx.scene.input.*?>
|
|
<?import javafx.scene.layout.*?>
|
|
<BorderPane fx:id="root" prefHeight="450.0" prefWidth="750.0" xmlns="http://javafx.com/javafx/8.0.162-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.Controller">
|
|
<center>
|
|
<TabPane fx:id="tabPane" focusTraversable="false" minHeight="400.0" minWidth="600.0" tabMinWidth="100.0" BorderPane.alignment="CENTER">
|
|
<tabs>
|
|
<Tab closable="false" text="Welcome">
|
|
<content>
|
|
<HBox alignment="CENTER" onDragDropped="#onDragDropped" onDragOver="#onDragOver" spacing="25.0">
|
|
<children>
|
|
<VBox alignment="CENTER" spacing="15.0">
|
|
<children>
|
|
<Button alignment="TOP_LEFT" onAction="#onNewAction" prefHeight="40.0" prefWidth="150.0" text="_New table">
|
|
<graphic>
|
|
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/File.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
<tooltip>
|
|
<Tooltip text="Create new empty table" />
|
|
</tooltip>
|
|
</Button>
|
|
<Button alignment="TOP_LEFT" onAction="#onLoadAction" prefHeight="40.0" prefWidth="150.0" text="_Load file">
|
|
<graphic>
|
|
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/Open Folder.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
<tooltip>
|
|
<Tooltip text="Open an existing table from a file" />
|
|
</tooltip>
|
|
</Button>
|
|
<Button alignment="TOP_LEFT" layoutX="260.0" layoutY="187.0" onAction="#onImportAction" prefHeight="40.0" prefWidth="150.0" text="_Import data">
|
|
<graphic>
|
|
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/Download.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
<tooltip>
|
|
<Tooltip text="Import data from other table-based software" />
|
|
</tooltip>
|
|
</Button>
|
|
<Button alignment="TOP_LEFT" layoutX="260.0" layoutY="208.0" onAction="#onSettingsAction" prefHeight="40.0" prefWidth="150.0" text="_Settings">
|
|
<graphic>
|
|
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/Settings.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
<tooltip>
|
|
<Tooltip text="Change the settings" />
|
|
</tooltip>
|
|
</Button>
|
|
</children>
|
|
<padding>
|
|
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
|
</padding>
|
|
</VBox>
|
|
<VBox alignment="CENTER" spacing="15.0">
|
|
<children>
|
|
<ImageView fitHeight="150.0" fitWidth="150.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/icon2.png" />
|
|
</image>
|
|
</ImageView>
|
|
<Button mnemonicParsing="false" onAction="#onAboutAction" prefHeight="40.0" prefWidth="150.0" text="About" />
|
|
</children>
|
|
</VBox>
|
|
</children>
|
|
</HBox>
|
|
</content>
|
|
</Tab>
|
|
</tabs>
|
|
</TabPane>
|
|
</center>
|
|
<top>
|
|
<MenuBar fx:id="menuBar" useSystemMenuBar="true">
|
|
<menus>
|
|
<Menu text="_File">
|
|
<items>
|
|
<MenuItem onAction="#onNewAction" text="_New">
|
|
<accelerator>
|
|
<KeyCodeCombination alt="UP" code="N" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
|
|
</accelerator>
|
|
<graphic>
|
|
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/File.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</MenuItem>
|
|
<MenuItem onAction="#onLoadAction" text="_Open">
|
|
<accelerator>
|
|
<KeyCodeCombination alt="UP" code="O" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
|
|
</accelerator>
|
|
<graphic>
|
|
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/Open Folder.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</MenuItem>
|
|
<MenuItem fx:id="menuSave" onAction="#onSaveAction" text="_Save" disable="true">
|
|
<accelerator>
|
|
<KeyCodeCombination control="DOWN" code="S" alt="UP" meta="UP" shift="UP" shortcut="UP" />
|
|
</accelerator>
|
|
<graphic>
|
|
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/Save.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</MenuItem>
|
|
<SeparatorMenuItem mnemonicParsing="false" />
|
|
<MenuItem onAction="#onImportAction" text="_Import">
|
|
<graphic>
|
|
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../img/Download.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic></MenuItem>
|
|
<SeparatorMenuItem mnemonicParsing="false" />
|
|
<MenuItem fx:id="menuCloseTab" onAction="#onCloseTab" text="_Close tab" disable="true">
|
|
<accelerator>
|
|
<KeyCodeCombination alt="UP" code="W" control="DOWN" meta="UP" shift="UP" shortcut="UP"/>
|
|
</accelerator>
|
|
</MenuItem>
|
|
<MenuItem onAction="#onQuit" text="_Quit">
|
|
<accelerator>
|
|
<KeyCodeCombination alt="UP" code="Q" control="DOWN" meta="UP" shift="UP" shortcut="UP"/>
|
|
</accelerator>
|
|
</MenuItem>
|
|
</items>
|
|
</Menu>
|
|
<Menu text="_Edit">
|
|
<items>
|
|
<MenuItem onAction="#onUndo" fx:id="menuUndo" disable="true" text="_Undo">
|
|
<accelerator>
|
|
<KeyCodeCombination control="DOWN" code="Z" shortcut="UP" shift="UP" meta="UP" alt="UP" />
|
|
</accelerator>
|
|
</MenuItem>
|
|
<MenuItem onAction="#onRedo" fx:id="menuRedo" disable="true" text="_Redo">
|
|
<accelerator>
|
|
<KeyCodeCombination control="DOWN" code="Y" shortcut="UP" shift="UP" meta="UP" alt="UP" />
|
|
</accelerator>
|
|
</MenuItem>
|
|
</items>
|
|
</Menu>
|
|
</menus>
|
|
</MenuBar>
|
|
</top>
|
|
</BorderPane>
|