1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-12-23 00:43:32 +01:00

Main screen: icons added

This commit is contained in:
Carlos Galindo 2016-06-13 15:05:01 +02:00
parent 55c662291d
commit 9d6bacd24e
Signed by: kauron
GPG key ID: 83E68706DEE119A3

View file

@ -1,29 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Menu?> <?import javafx.scene.control.*?>
<?import javafx.scene.control.MenuBar?> <?import javafx.scene.image.*?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.SeparatorMenuItem?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.input.KeyCodeCombination?> <?import javafx.scene.input.KeyCodeCombination?>
<?import javafx.scene.layout.BorderPane?> <?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<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">
<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">
<center> <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> <tabs>
<Tab closable="false" text="Welcome"> <Tab closable="false" text="Welcome">
<content> <content>
<VBox alignment="CENTER" spacing="15.0"> <VBox alignment="CENTER" spacing="15.0">
<children> <children>
<Button onAction="#onNewAction" prefWidth="100.0" text="_New table" /> <Button alignment="TOP_LEFT" onAction="#onNewAction" prefWidth="150.0" text="_New table">
<Button onAction="#onLoadAction" prefWidth="100.0" text="_Load file" /> <graphic>
<Button layoutX="260.0" layoutY="187.0" onAction="#onImportAction" prefWidth="100.0" text="_Import data" /> <ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<Button layoutX="260.0" layoutY="208.0" onAction="#onSettingsAction" prefWidth="100.0" text="_Settings" /> <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> </children>
<padding>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</padding>
</VBox> </VBox>
</content> </content>
</Tab> </Tab>
@ -39,20 +65,48 @@
<accelerator> <accelerator>
<KeyCodeCombination alt="UP" code="N" control="DOWN" meta="UP" shift="UP" shortcut="UP" /> <KeyCodeCombination alt="UP" code="N" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator> </accelerator>
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/File.png" />
</image>
</ImageView>
</graphic>
</MenuItem> </MenuItem>
<SeparatorMenuItem mnemonicParsing="false" /> <SeparatorMenuItem mnemonicParsing="false" />
<MenuItem onAction="#onLoadAction" text="_Open"> <MenuItem onAction="#onLoadAction" text="_Open">
<accelerator> <accelerator>
<KeyCodeCombination alt="UP" code="O" control="DOWN" meta="UP" shift="UP" shortcut="UP" /> <KeyCodeCombination alt="UP" code="O" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator> </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>
<MenuItem fx:id="saveMenu" onAction="#onSaveAction" text="_Save"> <MenuItem fx:id="saveMenu" onAction="#onSaveAction" text="_Save">
<accelerator> <accelerator>
<KeyCodeCombination alt="UP" code="S" control="DOWN" meta="UP" shift="UP" shortcut="UP" /> <KeyCodeCombination alt="UP" code="S" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator> </accelerator>
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Save.png" />
</image>
</ImageView>
</graphic>
</MenuItem> </MenuItem>
<SeparatorMenuItem mnemonicParsing="false" /> <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> </items>
</Menu> </Menu>
</menus> </menus>