mirror of
https://gitlab.com/kauron/jstudy
synced 2024-12-22 16:33:33 +01:00
Main screen: icons added
This commit is contained in:
parent
55c662291d
commit
9d6bacd24e
1 changed files with 69 additions and 15 deletions
|
@ -1,29 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Menu?>
|
||||
<?import javafx.scene.control.MenuBar?>
|
||||
<?import javafx.scene.control.MenuItem?>
|
||||
<?import javafx.scene.control.SeparatorMenuItem?>
|
||||
<?import javafx.scene.control.Tab?>
|
||||
<?import javafx.scene.control.TabPane?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.image.*?>
|
||||
<?import javafx.scene.input.KeyCodeCombination?>
|
||||
<?import javafx.scene.layout.BorderPane?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<BorderPane fx:id="root" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.Controller">
|
||||
<BorderPane fx:id="root" prefHeight="450.0" prefWidth="750.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.Controller">
|
||||
<center>
|
||||
<TabPane fx:id="tabPane" focusTraversable="false" BorderPane.alignment="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>
|
||||
<VBox alignment="CENTER" spacing="15.0">
|
||||
<children>
|
||||
<Button onAction="#onNewAction" prefWidth="100.0" text="_New table" />
|
||||
<Button onAction="#onLoadAction" prefWidth="100.0" text="_Load file" />
|
||||
<Button layoutX="260.0" layoutY="187.0" onAction="#onImportAction" prefWidth="100.0" text="_Import data" />
|
||||
<Button layoutX="260.0" layoutY="208.0" onAction="#onSettingsAction" prefWidth="100.0" text="_Settings" />
|
||||
<Button alignment="TOP_LEFT" onAction="#onNewAction" 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></Button>
|
||||
<Button alignment="TOP_LEFT" onAction="#onLoadAction" prefWidth="150.0" text="_Load file">
|
||||
<graphic>
|
||||
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@../img/Open%20Folder.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic></Button>
|
||||
<Button alignment="TOP_LEFT" layoutX="260.0" layoutY="187.0" onAction="#onImportAction" 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></Button>
|
||||
<Button alignment="TOP_LEFT" layoutX="260.0" layoutY="208.0" onAction="#onSettingsAction" 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></Button>
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
</content>
|
||||
</Tab>
|
||||
|
@ -39,20 +65,48 @@
|
|||
<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>
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<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%20Folder.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic>
|
||||
</MenuItem>
|
||||
<MenuItem fx:id="saveMenu" onAction="#onSaveAction" text="_Save">
|
||||
<accelerator>
|
||||
<KeyCodeCombination alt="UP" code="S" 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/Save.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic>
|
||||
</MenuItem>
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem onAction="#onImportAction" text="_Import" />
|
||||
<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>
|
||||
</items>
|
||||
</Menu>
|
||||
</menus>
|
||||
|
|
Loading…
Reference in a new issue