commit 61e34a3cdf9ed77a07b751f161fb4e047c9ecb3d Author: h7x4 Date: Fri Feb 12 22:25:41 2021 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3e7d09 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Java +target/ + +# Eclipse +.settings/ + +# IntelliJ +.idea/ + +#VSCode +.vscode/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0a42858 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# TODO: Name the project + +## TODO: +- [ ] Tabs +- [ ] Modeline w/ linenumbers +- [ ] Syntax highlighting +- [ ] Filetree +- [ ] Line numbers + +## Maybe TODO? +- [ ] Shortcuts +- [ ] List Chooser +- [ ] Change languages +- [ ] Search +- [ ] And replace +- [ ] Darkmode/Lightmode or color themes + +## Credits/Sources +- [james-d/SimpleMVP](https://github.com/james-d/SimpleMVP/tree/master/src/examples/mvp) -> Demonstration of JavaFX Model/View/Controller application diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..f4f3602 --- /dev/null +++ b/pom.xml @@ -0,0 +1,88 @@ + + + + + 4.0.0 + tdt4100-v2021 + project + 1.0.0 + + UTF-8 + 15 + 15 + + + + + + org.openjfx + javafx-controls + 16-ea+7 + + + + + org.openjfx + javafx-fxml + 16-ea+7 + + + + + org.junit.jupiter + junit-jupiter-engine + 5.8.0-M1 + + + + + org.testfx + testfx-core + 4.0.16-alpha + test + + + org.testfx + testfx-junit5 + 4.0.16-alpha + test + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + 15 + true + true + --enable-previw + + + + + + maven-surefire-plugin + 3.0.0-M5 + + --enable-preview + + + + + + org.openjfx + javafx-maven-plugin + 0.0.3 + + app.Main + + + + + diff --git a/src/main/java/app/Main.java b/src/main/java/app/Main.java new file mode 100644 index 0000000..ba64399 --- /dev/null +++ b/src/main/java/app/Main.java @@ -0,0 +1,32 @@ +package app; + +import java.io.IOException; +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; + +public class Main extends Application { + + /** + * Boilerplate function to launch the application + */ + public static void main(String[] args) { + launch(args); + } + + /** + * The entrypoint of the application + * @param window The primary window of the application + */ + @Override + public void start(Stage window) throws IOException { + window.setTitle("Hello world"); + + Parent document = FXMLLoader.load(getClass().getResource("./MainView.fxml")); + Scene scene = new Scene(document); + window.setScene(scene); + window.show(); + } +} diff --git a/src/main/java/app/MainController.java b/src/main/java/app/MainController.java new file mode 100644 index 0000000..e677c75 --- /dev/null +++ b/src/main/java/app/MainController.java @@ -0,0 +1,10 @@ +package app; + +/** + * MainController + * Might not be needed. Not sure yet. + */ +public class MainController { + + +} \ No newline at end of file diff --git a/src/main/java/app/MainView.fxml b/src/main/java/app/MainView.fxml new file mode 100644 index 0000000..53d2f66 --- /dev/null +++ b/src/main/java/app/MainView.fxml @@ -0,0 +1,13 @@ + + + + + + + + + + + + diff --git a/src/main/java/app/model/Model.java b/src/main/java/app/model/Model.java new file mode 100644 index 0000000..1217770 --- /dev/null +++ b/src/main/java/app/model/Model.java @@ -0,0 +1,10 @@ +package app.model; + +/** + * Data model of the application + */ +public class Model { + + private String text; + +} \ No newline at end of file diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..e0f76f7 --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,8 @@ +module app { + requires javafx.base; + requires javafx.controls; + requires javafx.fxml; + requires javafx.graphics; + + exports app; +} diff --git a/src/test/java/app/.gitkeep b/src/test/java/app/.gitkeep new file mode 100644 index 0000000..e69de29