Add oving0

This commit is contained in:
Andreas Omholt Olsen
2026-01-05 13:47:03 +01:00
parent 33086c14b8
commit 977b9310ef
24 changed files with 1061 additions and 8 deletions
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.String?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.Button?>
<VBox xmlns:fx="http://javafx.com/fxml/1" fx:controller="oving0.todolist.fxui.TodoController">
<fx:define>
<String fx:id="sampleTodoListResource" fx:value="sample-todolist.todo" />
</fx:define>
<Text fx:id="todoListNameView" text="&lt;the todo list name&gt;" />
<ListView fx:id="todoListEntriesView" />
<HBox>
<TextField fx:id="todoEntryTextField" onTextChange="#handleTodoEntryTextFieldChange"
onAction="#handleTodoEntryButtonAction" />
<Button fx:id="todoEntryButton" onAction="#handleTodoEntryButtonAction" />
</HBox>
<Pane prefHeight="10" />
<Text text="Save/Load" style="-fx-font-size: 20;" />
<HBox>
<Text text="File location:" />
<TextField fx:id="fileLocationNameField" />
<Button onAction="#handleBrowseButtonAction" text="Browse.." />
</HBox>
<HBox>
<Button onAction="#handleLoadButtonAction" text="Load" />
<Button onAction="#handleSaveButtonAction" text="Save" />
</HBox>
<Pane prefHeight="10" />
<HBox>
<Button onAction="#handleSettingsAction" text="Settings..." />
</HBox>
<Pane prefHeight="10" />
<Text fx:id="statusText" text="OK" />
</VBox>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.String?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.Button?>
<VBox xmlns:fx="http://javafx.com/fxml/1"
fx:controller="oving0.todolist.fxui.TodoSettingsController">
<GridPane>
<Label text="List order" GridPane.rowIndex="0" GridPane.columnIndex="0" />
<ChoiceBox fx:id="listOrderSelector" GridPane.rowIndex="0" GridPane.columnIndex="1"
onAction="#handleListOrderSelection" />
</GridPane>
<HBox>
<Button text="Apply" onAction="#handleApplySettings" />
<Button text="Cancel" onAction="#handleCancelSettings" />
</HBox>
</VBox>
@@ -0,0 +1,4 @@
# name
sample todo list
Øl
Potetgull