mirror of
https://gitlab.com/kauron/jstudy
synced 2024-11-13 07:33:44 +01:00
fxml: whitespace fix
This commit is contained in:
parent
9029ae6385
commit
6b8f5ef1ee
5 changed files with 351 additions and 338 deletions
|
@ -1,12 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<?import javafx.geometry.Insets?>
|
<?import javafx.geometry.Insets?>
|
||||||
<?import javafx.scene.control.Button?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.control.Label?>
|
<?import javafx.scene.layout.*?>
|
||||||
<?import javafx.scene.control.TextField?>
|
|
||||||
<?import javafx.scene.layout.HBox?>
|
|
||||||
<?import javafx.scene.layout.VBox?>
|
|
||||||
|
|
||||||
<VBox spacing="5.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.EditController">
|
<VBox spacing="5.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.EditController">
|
||||||
<children>
|
<children>
|
||||||
<HBox alignment="CENTER_LEFT" spacing="5.0">
|
<HBox alignment="CENTER_LEFT" spacing="5.0">
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
<?import com.jfoenix.controls.JFXCheckBox?>
|
<?import com.jfoenix.controls.JFXCheckBox?>
|
||||||
<?import javafx.geometry.Insets?>
|
<?import javafx.geometry.Insets?>
|
||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
<VBox alignment="CENTER_LEFT" spacing="15.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.SettingsController">
|
<VBox alignment="CENTER_LEFT" spacing="15.0" xmlns="http://javafx.com/javafx/8.0.76-ea"
|
||||||
|
xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.SettingsController">
|
||||||
<children>
|
<children>
|
||||||
<JFXCheckBox fx:id="repeatMistakes" text="_Repeat mistakes"/>
|
<JFXCheckBox fx:id="repeatMistakes" text="_Repeat mistakes"/>
|
||||||
<JFXCheckBox fx:id="repeatImmediately" text="_Always repeat immediatly"/>
|
<JFXCheckBox fx:id="repeatImmediately" text="_Always repeat immediatly"/>
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.image.*?>
|
<?import javafx.scene.image.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
<HBox xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.TableController">
|
<HBox xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1"
|
||||||
|
fx:controller="es.kauron.jstudy.controller.TableController">
|
||||||
<children>
|
<children>
|
||||||
<TableView fx:id="table" minHeight="-Infinity" minWidth="-Infinity" prefHeight="380.0" prefWidth="400.0" HBox.hgrow="ALWAYS">
|
<TableView fx:id="table" minHeight="-Infinity" minWidth="-Infinity" prefHeight="380.0" prefWidth="400.0"
|
||||||
|
HBox.hgrow="ALWAYS">
|
||||||
<columns>
|
<columns>
|
||||||
<TableColumn fx:id="questionCol" prefWidth="75.0" text="Question"/>
|
<TableColumn fx:id="questionCol" prefWidth="75.0" text="Question"/>
|
||||||
<TableColumn fx:id="answerCol" prefWidth="75.0" text="Answer"/>
|
<TableColumn fx:id="answerCol" prefWidth="75.0" text="Answer"/>
|
||||||
|
@ -17,7 +19,8 @@
|
||||||
</TableView>
|
</TableView>
|
||||||
<VBox spacing="5.0">
|
<VBox spacing="5.0">
|
||||||
<children>
|
<children>
|
||||||
<Button fx:id="saveButton" alignment="CENTER" contentDisplay="CENTER" layoutX="10.0" layoutY="163.0" onAction="#onSaveAction" prefWidth="105.0">
|
<Button fx:id="saveButton" alignment="CENTER" contentDisplay="CENTER" layoutX="10.0" layoutY="163.0"
|
||||||
|
onAction="#onSaveAction" prefWidth="105.0">
|
||||||
<graphic>
|
<graphic>
|
||||||
<ImageView fitHeight="50.0" fitWidth="50.0" pickOnBounds="true" preserveRatio="true">
|
<ImageView fitHeight="50.0" fitWidth="50.0" pickOnBounds="true" preserveRatio="true">
|
||||||
<image>
|
<image>
|
||||||
|
@ -35,7 +38,8 @@
|
||||||
<Button defaultButton="true" onAction="#onAddAction" prefWidth="105.0" text="_Add">
|
<Button defaultButton="true" onAction="#onAddAction" prefWidth="105.0" text="_Add">
|
||||||
<tooltip>
|
<tooltip>
|
||||||
<Tooltip text="Add a new entry to the table"/>
|
<Tooltip text="Add a new entry to the table"/>
|
||||||
</tooltip></Button>
|
</tooltip>
|
||||||
|
</Button>
|
||||||
<Button fx:id="editButton" alignment="TOP_LEFT" onAction="#onEditAction" prefWidth="105.0" text="_Edit">
|
<Button fx:id="editButton" alignment="TOP_LEFT" onAction="#onEditAction" prefWidth="105.0" text="_Edit">
|
||||||
<graphic>
|
<graphic>
|
||||||
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
||||||
|
@ -48,7 +52,8 @@
|
||||||
<Tooltip text="Edit the selected entry"/>
|
<Tooltip text="Edit the selected entry"/>
|
||||||
</tooltip>
|
</tooltip>
|
||||||
</Button>
|
</Button>
|
||||||
<Button fx:id="swapButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onSwapAction" prefWidth="105.0" text="S_wap">
|
<Button fx:id="swapButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onSwapAction"
|
||||||
|
prefWidth="105.0" text="S_wap">
|
||||||
<graphic>
|
<graphic>
|
||||||
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
||||||
<image>
|
<image>
|
||||||
|
@ -60,7 +65,8 @@
|
||||||
<Tooltip text="Make the answer the question and viceversa"/>
|
<Tooltip text="Make the answer the question and viceversa"/>
|
||||||
</tooltip>
|
</tooltip>
|
||||||
</Button>
|
</Button>
|
||||||
<Button fx:id="duplicateButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onDuplicateAction" prefWidth="105.0" text="D_uplicate">
|
<Button fx:id="duplicateButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onDuplicateAction"
|
||||||
|
prefWidth="105.0" text="D_uplicate">
|
||||||
<graphic>
|
<graphic>
|
||||||
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
|
||||||
<image>
|
<image>
|
||||||
|
@ -86,14 +92,17 @@
|
||||||
</Button>
|
</Button>
|
||||||
<VBox alignment="BOTTOM_CENTER" spacing="5.0" VBox.vgrow="ALWAYS">
|
<VBox alignment="BOTTOM_CENTER" spacing="5.0" VBox.vgrow="ALWAYS">
|
||||||
<children>
|
<children>
|
||||||
<Button fx:id="testSelectionButton" onAction="#onTestSelectionAction" prefWidth="105.0" text="Test _selected">
|
<Button fx:id="testSelectionButton" onAction="#onTestSelectionAction" prefWidth="105.0"
|
||||||
|
text="Test _selected">
|
||||||
<tooltip>
|
<tooltip>
|
||||||
<Tooltip text="Begin a test with the selected rows"/>
|
<Tooltip text="Begin a test with the selected rows"/>
|
||||||
</tooltip></Button>
|
</tooltip>
|
||||||
|
</Button>
|
||||||
<Button layoutX="10.0" layoutY="273.0" onAction="#onTestAction" prefWidth="105.0" text="_Test all">
|
<Button layoutX="10.0" layoutY="273.0" onAction="#onTestAction" prefWidth="105.0" text="_Test all">
|
||||||
<tooltip>
|
<tooltip>
|
||||||
<Tooltip text="Begin a test for the whole table"/>
|
<Tooltip text="Begin a test for the whole table"/>
|
||||||
</tooltip></Button>
|
</tooltip>
|
||||||
|
</Button>
|
||||||
</children>
|
</children>
|
||||||
<VBox.margin>
|
<VBox.margin>
|
||||||
<Insets/>
|
<Insets/>
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
<?import javafx.scene.text.Font?>
|
<?import javafx.scene.text.Font?>
|
||||||
<BorderPane xmlns="http://javafx.com/javafx/8.0.202-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.TestController" stylesheets="@../css/test.css">
|
<BorderPane xmlns="http://javafx.com/javafx/8.0.202-ea" xmlns:fx="http://javafx.com/fxml/1"
|
||||||
|
fx:controller="es.kauron.jstudy.controller.TestController" stylesheets="@../css/test.css">
|
||||||
<center>
|
<center>
|
||||||
<VBox minHeight="280.0" minWidth="360.0" spacing="10.0">
|
<VBox minHeight="280.0" minWidth="360.0" spacing="10.0">
|
||||||
<children>
|
<children>
|
||||||
|
@ -33,11 +34,14 @@
|
||||||
</rowConstraints>
|
</rowConstraints>
|
||||||
<children>
|
<children>
|
||||||
<Label text="Previous question" wrapText="true"/>
|
<Label text="Previous question" wrapText="true"/>
|
||||||
<Label fx:id="prevQuestion" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true" GridPane.columnIndex="1" />
|
<Label fx:id="prevQuestion" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true"
|
||||||
|
GridPane.columnIndex="1"/>
|
||||||
<Label text="Previous answer" wrapText="true" GridPane.rowIndex="1"/>
|
<Label text="Previous answer" wrapText="true" GridPane.rowIndex="1"/>
|
||||||
<Label fx:id="prevAnswer" maxWidth="1.7976931348623157E308" styleClass="answer, feedbackText" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
<Label fx:id="prevAnswer" maxWidth="1.7976931348623157E308" styleClass="answer, feedbackText"
|
||||||
|
wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1"/>
|
||||||
<Label fx:id="correctLabel" text="Correct answer" wrapText="true" GridPane.rowIndex="2"/>
|
<Label fx:id="correctLabel" text="Correct answer" wrapText="true" GridPane.rowIndex="2"/>
|
||||||
<Label fx:id="correctAnswer" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
<Label fx:id="correctAnswer" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true"
|
||||||
|
GridPane.columnIndex="1" GridPane.rowIndex="2"/>
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
</children>
|
</children>
|
||||||
|
@ -52,7 +56,8 @@
|
||||||
<VBox alignment="CENTER" BorderPane.alignment="CENTER">
|
<VBox alignment="CENTER" BorderPane.alignment="CENTER">
|
||||||
<children>
|
<children>
|
||||||
<Separator prefWidth="200.0"/>
|
<Separator prefWidth="200.0"/>
|
||||||
<Label fx:id="progressLabel" alignment="CENTER" contentDisplay="TOP" maxWidth="1.7976931348623157E308" text="1/40" />
|
<Label fx:id="progressLabel" alignment="CENTER" contentDisplay="TOP" maxWidth="1.7976931348623157E308"
|
||||||
|
text="1/40"/>
|
||||||
<ProgressBar fx:id="progress" maxWidth="1.7976931348623157E308" progress="0.0"/>
|
<ProgressBar fx:id="progress" maxWidth="1.7976931348623157E308" progress="0.0"/>
|
||||||
</children>
|
</children>
|
||||||
<BorderPane.margin>
|
<BorderPane.margin>
|
||||||
|
@ -64,8 +69,10 @@
|
||||||
<VBox alignment="TOP_RIGHT" spacing="10.0" BorderPane.alignment="CENTER">
|
<VBox alignment="TOP_RIGHT" spacing="10.0" BorderPane.alignment="CENTER">
|
||||||
<children>
|
<children>
|
||||||
<Button defaultButton="true" focusTraversable="false" onAction="#onNextAction" prefWidth="110.0" text="_Next"/>
|
<Button defaultButton="true" focusTraversable="false" onAction="#onNextAction" prefWidth="110.0" text="_Next"/>
|
||||||
<Button fx:id="skipButton" cancelButton="true" focusTraversable="false" onAction="#onSkipAction" prefWidth="110.0" text="_Skip question" />
|
<Button fx:id="skipButton" cancelButton="true" focusTraversable="false" onAction="#onSkipAction"
|
||||||
<Button cancelButton="true" focusTraversable="false" layoutX="10.0" layoutY="48.0" onAction="#onEndAction" prefWidth="110.0" text="_End test" />
|
prefWidth="110.0" text="_Skip question"/>
|
||||||
|
<Button cancelButton="true" focusTraversable="false" layoutX="10.0" layoutY="48.0" onAction="#onEndAction"
|
||||||
|
prefWidth="110.0" text="_End test"/>
|
||||||
</children>
|
</children>
|
||||||
<BorderPane.margin>
|
<BorderPane.margin>
|
||||||
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
|
||||||
|
|
Loading…
Reference in a new issue