Commit 7957398f authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

#784 nolaunch option back for development purposes.

parent 02c406b5
......@@ -75,11 +75,17 @@ public class DesktopLauncher extends Application {
private static final String DESKTOP_ICON_ITEST_32 = DESKTOP_ICON_PATH + "desktop_icon_itest_32.png";
private static final String DESKTOP_ICON_ITEST_128 = DESKTOP_ICON_PATH + "desktop_icon_itest_128.png";
private static final int MULTI_SAMPLING_2X = 2;
private static final String TABLEXIA_LAUNCHER_TITLE = "Tablexia Launcher";
private static final Tablexia.SQLConnectionType SQL_CONNECTION_TYPE = new Tablexia.SQLConnectionType("org.sqlite.JDBC", "jdbc:sqlite:");
public static void main(String[] arg) {
launch(DesktopLauncher.class, arg);
if (arg.length > 0 && arg[0] != null && arg[0].equals("nolaunch")){
initTablexia();
}else {
launch(DesktopLauncher.class, arg);
}
}
public static Tablexia initTablexia(){
......@@ -145,7 +151,7 @@ public class DesktopLauncher extends Application {
public void start(Stage primaryStage) throws Exception {
Scene scene = new Scene(getLauncherLayoutPane(primaryStage), 300, 200);
primaryStage.setTitle("Tablexia");
primaryStage.setTitle(TABLEXIA_LAUNCHER_TITLE);
primaryStage.setScene(scene);
primaryStage.setResizable(false);
......@@ -242,7 +248,6 @@ public class DesktopLauncher extends Application {
private Parent getLauncherLayoutPane(Stage primaryStage){
// TODO: 12/1/17 consts
Pane pane = new Pane();
VBox mainVBox = new VBox();
pane.getChildren().add(mainVBox);
......@@ -315,7 +320,6 @@ public class DesktopLauncher extends Application {
ChoiceBox resolutionChoiceBox = (ChoiceBox) pane.lookup("#" + RESOLUTION_CHOICE_ID);
CheckBox fullscreenCheckBox = (CheckBox) pane.lookup("#" + FULLSCREEN_CHECKBOX_ID);
initTablexia(WindowsResolution.values()[resolutionChoiceBox.getSelectionModel().getSelectedIndex()], fullscreenCheckBox.isSelected());
// TODO: 25.4.17 save previous settings
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment