Initial commit

This commit is contained in:
2025-08-28 22:38:53 +02:00
commit f15208fe6d
232 changed files with 16821 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package ch.gtache.fro.gui.run;
import ch.gtache.fro.gui.run.modules.DaggerFroComponent;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
/**
* The main application class
*/
public final class FroApplication extends Application {
@Override
public void start(final Stage stage) throws IOException {
final var component = DaggerFroComponent.create();
final var loader = component.getMainLoader();
loader.load();
stage.setScene(new Scene(loader.getRoot()));
stage.show();
}
}

View File

@@ -0,0 +1,21 @@
package ch.gtache.fro.gui.run;
import javafx.application.Application;
/**
* The main class
*/
public final class Main {
private Main() {
}
/**
* The main method
*
* @param args the command line arguments
*/
public static void main(final String[] args) {
Application.launch(FroApplication.class, args);
}
}

View File

@@ -0,0 +1,21 @@
package ch.gtache.fro.gui.run.modules;
import ch.gtache.fro.modules.gui.fx.FXModule;
import ch.gtache.fro.modules.gui.impl.GuiCoreModule;
import ch.gtache.fro.modules.impl.CoreModule;
import dagger.Component;
import jakarta.inject.Singleton;
import javafx.fxml.FXMLLoader;
@Singleton
@Component(modules = {CoreModule.class, GuiCoreModule.class, FXModule.class})
public interface FroComponent {
/**
* Returns the FXMLLoader for the main view
*
* @return the FXMLLoader
*/
FXMLLoader getMainLoader();
}

View File

@@ -0,0 +1,14 @@
/**
* GUI run module for the FRO project
*/
module ch.gtache.fro.gui.run {
requires ch.gtache.fro.gui.fx;
requires ch.gtache.fro.core;
requires dagger;
requires javafx.graphics;
requires javafx.fxml;
requires jakarta.inject;
requires ch.gtache.fro.gui.core;
exports ch.gtache.fro.gui.run to javafx.graphics;
}