package com.megatim.manuel.studio;
|
|
import javafx.application.Application;
|
import javafx.fxml.FXMLLoader;
|
import javafx.scene.Parent;
|
import javafx.scene.Scene;
|
import javafx.stage.Stage;
|
|
/**
|
* Manuel Studio : application autonome de génération du manuel d'application
|
* (import Word/PowerPoint, métadonnées, génération du bundle HTML, aperçu, thèmes).
|
*/
|
public class StudioApp extends Application {
|
|
public static void main(String[] args) {
|
launch(args);
|
}
|
|
@Override
|
public void start(Stage stage) throws Exception {
|
StudioPrefs prefs = new StudioPrefs();
|
FXMLLoader loader = new FXMLLoader(StudioApp.class.getResource("studio.fxml"));
|
Parent root = loader.load();
|
|
stage.setTitle("Manuel Studio — MEGATIM");
|
stage.setScene(new Scene(root, prefs.getWindowW(), prefs.getWindowH()));
|
stage.setOnCloseRequest(e -> prefs.setWindowSize(stage.getWidth(), stage.getHeight()));
|
stage.show();
|
}
|
}
|