Skip to content

Commit

Permalink
Remove dumb Numpad commands for NavKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauville committed Dec 30, 2019
1 parent 2d6aa43 commit 78d44e7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/SortH.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions src/main/java/sample/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ public class Controller {
GridPane num = new GridPane();

//Keyboard shortcuts
private final KeyCombination PCode = new KeyCodeCombination(KeyCode.DIGIT8);
private final KeyCombination threedeeCode = new KeyCodeCombination(KeyCode.DIGIT4);
private final KeyCombination TCode = new KeyCodeCombination(KeyCode.DIGIT2);
private final KeyCombination NPCode = new KeyCodeCombination(KeyCode.DIGIT6);
private final KeyCombination FDCode = new KeyCodeCombination(KeyCode.DIGIT8, KeyCombination.CONTROL_DOWN);
private final KeyCombination ECCode = new KeyCodeCombination(KeyCode.DIGIT4, KeyCombination.CONTROL_DOWN);
private final KeyCombination ACode = new KeyCodeCombination(KeyCode.DIGIT2, KeyCombination.CONTROL_DOWN);
private final KeyCombination OCode = new KeyCodeCombination(KeyCode.DIGIT6, KeyCombination.CONTROL_DOWN);
private final KeyCombination SkipCode = new KeyCodeCombination(KeyCode.DIGIT0, KeyCombination.CONTROL_DOWN);
private final KeyCombination SkipCode2 = new KeyCodeCombination(KeyCode.DIGIT0);
private final KeyCombination PCode = new KeyCodeCombination(KeyCode.UP);
private final KeyCombination ECCode = new KeyCodeCombination(KeyCode.LEFT);
private final KeyCombination TCode = new KeyCodeCombination(KeyCode.DOWN);
private final KeyCombination NPCode = new KeyCodeCombination(KeyCode.RIGHT);
private final KeyCombination FDCode = new KeyCodeCombination(KeyCode.UP, KeyCombination.CONTROL_DOWN);
private final KeyCombination threedeeCode = new KeyCodeCombination(KeyCode.LEFT, KeyCombination.CONTROL_DOWN);
private final KeyCombination ACode = new KeyCodeCombination(KeyCode.DOWN, KeyCombination.CONTROL_DOWN);
private final KeyCombination OCode = new KeyCodeCombination(KeyCode.RIGHT, KeyCombination.CONTROL_DOWN);
private final KeyCombination SkipCode = new KeyCodeCombination(KeyCode.SPACE, KeyCombination.CONTROL_DOWN);
private final KeyCombination SkipCode2 = new KeyCodeCombination(KeyCode.SPACE);

private List<File> imageFiles;
private File cwd;
Expand Down
33 changes: 13 additions & 20 deletions src/main/resources/fxml/sample.fxml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.geometry.Rectangle2D?>
<?import javafx.scene.Group?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<?import javafx.geometry.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>

<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
<center>
<Group BorderPane.alignment="CENTER">
<children>
Expand All @@ -42,7 +33,7 @@
<bottom>
<HBox alignment="CENTER" prefHeight="29.0" prefWidth="600.0" BorderPane.alignment="CENTER">
<children>
<Text fx:id="logField" strokeType="OUTSIDE" strokeWidth="0.0" text="Press 0 to Skip. Use numlock and control">
<Text fx:id="logField" strokeType="OUTSIDE" strokeWidth="0.0" text="Press SPACE to Skip. Use Arrows and Ctrl">
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
Expand Down Expand Up @@ -73,7 +64,7 @@
<Font name="Consolas" size="24.0" />
</font>
</Label>
<Label fx:id="threedee" alignment="CENTER" prefHeight="22.0" prefWidth="53.0" text="3" textAlignment="CENTER" GridPane.halignment="CENTER" GridPane.rowIndex="1">
<Label fx:id="EC" alignment="CENTER" prefHeight="22.0" prefWidth="53.0" text="EC" textAlignment="CENTER" GridPane.halignment="CENTER" GridPane.rowIndex="1">
<font>
<Font name="Consolas" size="24.0" />
</font>
Expand All @@ -95,7 +86,6 @@
</Label>
</children>
</GridPane>
<Button fx:id="button" mnemonicParsing="false" onAction="#setAccel" text="Set Accel" />
</children>
</Group>
</left>
Expand All @@ -119,7 +109,7 @@
<Font size="24.0" />
</font>
</Label>
<Label fx:id="EC" alignment="CENTER" prefHeight="22.0" prefWidth="57.0" text="EC" textAlignment="CENTER" GridPane.halignment="CENTER" GridPane.rowIndex="1">
<Label fx:id="threed" alignment="CENTER" prefHeight="22.0" prefWidth="57.0" text="3" textAlignment="CENTER" GridPane.halignment="CENTER" GridPane.rowIndex="1">
<font>
<Font size="24.0" />
</font>
Expand All @@ -144,4 +134,7 @@
</children>
</Group>
</right>
<top>
<Button fx:id="button" mnemonicParsing="false" onAction="#setAccel" text="Set Accel" BorderPane.alignment="CENTER" />
</top>
</BorderPane>

0 comments on commit 78d44e7

Please sign in to comment.