Commit 670967de authored by Alexander Weigl's avatar Alexander Weigl 🐼 Committed by Alexander Weigl
Browse files

Icons. Yeah!

parent 8a1f4e87
Pipeline #10913 passed with stage
in 2 minutes and 4 seconds
...@@ -127,7 +127,31 @@ ...@@ -127,7 +127,31 @@
</build> </build>
<!-- for icons -->
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-jerady-maven</id>
<name>bintray</name>
<url>http://dl.bintray.com/jerady/maven</url>
</repository>
</repositories>
<dependencies> <dependencies>
<dependency>
<groupId>de.jensd</groupId>
<artifactId>fontawesomefx-materialdesignfont</artifactId>
<version>1.7.22-4</version>
</dependency>
<dependency>
<groupId>de.jensd</groupId>
<artifactId>fontawesomefx-commons</artifactId>
<version>8.15</version>
</dependency>
<dependency> <dependency>
<groupId>org.fxmisc.richtext</groupId> <groupId>org.fxmisc.richtext</groupId>
<artifactId>richtextfx</artifactId> <artifactId>richtextfx</artifactId>
......
...@@ -5,6 +5,7 @@ package edu.kit.formal.gui; ...@@ -5,6 +5,7 @@ package edu.kit.formal.gui;
* @author S. Grebing * @author S. Grebing
*/ */
import de.jensd.fx.glyphs.materialdesignicons.demo.MaterialDesignIconsDemoApp;
import edu.kit.formal.gui.controller.DebuggerMainWindowController; import edu.kit.formal.gui.controller.DebuggerMainWindowController;
import edu.kit.formal.gui.model.RootModel; import edu.kit.formal.gui.model.RootModel;
import javafx.application.Application; import javafx.application.Application;
...@@ -26,6 +27,7 @@ public class ProofScriptDebugger extends Application { ...@@ -26,6 +27,7 @@ public class ProofScriptDebugger extends Application {
RootModel rm = new RootModel(); RootModel rm = new RootModel();
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/DebuggerMain.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/DebuggerMain.fxml"));
Parent root = null; Parent root = null;
try { try {
root = (Parent) fxmlLoader.load(); root = (Parent) fxmlLoader.load();
......
...@@ -7,6 +7,7 @@ import edu.kit.formal.interpreter.KeYProofFacade; ...@@ -7,6 +7,7 @@ import edu.kit.formal.interpreter.KeYProofFacade;
import edu.kit.formal.interpreter.data.GoalNode; import edu.kit.formal.interpreter.data.GoalNode;
import edu.kit.formal.interpreter.data.KeyData; import edu.kit.formal.interpreter.data.KeyData;
import edu.kit.formal.interpreter.dbg.Debugger; import edu.kit.formal.interpreter.dbg.Debugger;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleObjectProperty; import javafx.beans.property.SimpleObjectProperty;
import javafx.concurrent.Service; import javafx.concurrent.Service;
import javafx.concurrent.Task; import javafx.concurrent.Task;
...@@ -33,9 +34,11 @@ import java.util.concurrent.Executors; ...@@ -33,9 +34,11 @@ import java.util.concurrent.Executors;
*/ */
public class DebuggerMainWindowController implements Initializable { public class DebuggerMainWindowController implements Initializable {
private static String testFile1 = "/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage/src/test/resources/edu/kit/formal/interpreter/"; private static String testFile1 = "/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage/src/test/resources/edu/kit/formal/interpreter/";
private static String testFile = "/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage/src/test/resources/edu/kit/formal/interpreter/contraposition/"; private static String testFile = "/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage/src/test/resources/edu/kit/formal/interpreter/contraposition/";
private SimpleBooleanProperty debugMode = new SimpleBooleanProperty(false);
@FXML @FXML
Pane rootPane; Pane rootPane;
@FXML @FXML
...@@ -104,6 +107,8 @@ public class DebuggerMainWindowController implements Initializable { ...@@ -104,6 +107,8 @@ public class DebuggerMainWindowController implements Initializable {
@FXML @FXML
public void changeToDebugMode() { public void changeToDebugMode() {
setDebugMode(true);
executeScript();
} }
@FXML @FXML
...@@ -170,7 +175,6 @@ public class DebuggerMainWindowController implements Initializable { ...@@ -170,7 +175,6 @@ public class DebuggerMainWindowController implements Initializable {
} }
public void setStage(Stage stage) { public void setStage(Stage stage) {
this.stage = stage; this.stage = stage;
} }
...@@ -202,7 +206,7 @@ public class DebuggerMainWindowController implements Initializable { ...@@ -202,7 +206,7 @@ public class DebuggerMainWindowController implements Initializable {
@Override @Override
public void initialize(URL location, ResourceBundle resources) { public void initialize(URL location, ResourceBundle resources) {
setDebugMode(false);
} }
/** /**
...@@ -274,5 +278,15 @@ public class DebuggerMainWindowController implements Initializable { ...@@ -274,5 +278,15 @@ public class DebuggerMainWindowController implements Initializable {
} }
public boolean isDebugMode() {
return debugMode.get();
}
public SimpleBooleanProperty debugModeProperty() {
return debugMode;
}
public void setDebugMode(boolean debugMode) {
this.debugMode.set(debugMode);
}
} }
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import de.jensd.fx.glyphs.materialdesignicons.*?>
<?import edu.kit.formal.gui.controller.ListGoalView?> <?import edu.kit.formal.gui.controller.ListGoalView?>
<?import edu.kit.formal.gui.controller.ScriptArea?> <?import edu.kit.formal.gui.controller.ScriptArea?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import java.lang.Boolean?>
<Pane xmlns:fx="http://javafx.com/fxml/1" fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" <Pane xmlns:fx="http://javafx.com/fxml/1" fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity"
minHeight="-Infinity" minHeight="-Infinity"
minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0"
xmlns="http://javafx.com/javafx/8.0.102-ea" xmlns="http://javafx.com/javafx/8.0.102-ea"
fx:controller="edu.kit.formal.gui.controller.DebuggerMainWindowController"> fx:controller="edu.kit.formal.gui.controller.DebuggerMainWindowController">
<!--
<fx:define>
<Boolean fx:id="disableDebuggingButtons" fx:value="true" />
</fx:define>-->
<children> <children>
<SplitPane fx:id="splitPane" dividerPositions="0.5" layoutY="29.0" prefHeight="371.0" prefWidth="600.0"> <SplitPane fx:id="splitPane" dividerPositions="0.5" layoutY="29.0" prefHeight="371.0" prefWidth="600.0">
<items> <items>
...@@ -18,10 +28,48 @@ ...@@ -18,10 +28,48 @@
<children> <children>
<ToolBar fx:id="toolbar" prefHeight="40.0" prefWidth="200.0"> <ToolBar fx:id="toolbar" prefHeight="40.0" prefWidth="200.0">
<items> <items>
<Button fx:id="buttonStartInterpreter" onAction="#executeScript" <Button fx:id="buttonStartInterpreter" onAction="#executeScript">
mnemonicParsing="false" text="Execute Script"/> <graphic>
<Button fx:id="startDebugMode" onAction="#changeToDebugMode" mnemonicParsing="false" <MaterialDesignIconView glyphName="PLAY" size="24.0"/>
text="Change to Debug Mode"/> </graphic>
<tooltip>
<Tooltip text="Execute Script"/>
</tooltip>
</Button>
<Button fx:id="startDebugMode" onAction="#changeToDebugMode">
<graphic>
<MaterialDesignIconView glyphName="PLAY_PAUSE" size="24.0"/>
</graphic>
<tooltip>
<Tooltip text="Change to Debug Mode"/>
</tooltip>
</Button>
<Separator/>
<Button disable="${! controller.debugMode}">
<graphic>
<MaterialDesignIconView glyphName="DEBUG_STEP_INTO" size="24.0"/>
</graphic>
</Button>
<Button disable="${! controller.debugMode}">
<graphic>
<MaterialDesignIconView glyphName="DEBUG_STEP_OVER" size="24.0"/>
</graphic>
</Button>
<Button disable="${! controller.debugMode}">
<graphic>
<MaterialDesignIconView glyphName="DEBUG_STEP_OUT" size="24.0"/>
</graphic>
</Button>
<Button disable="${! controller.debugMode}">
<graphic>
<MaterialDesignIconView glyphName="STOP" size="24.0"/>
</graphic>
</Button>
</items> </items>
</ToolBar> </ToolBar>
<ScrollPane fx:id="scrollPaneCode" prefHeight="369.0" prefWidth="295.0" <ScrollPane fx:id="scrollPaneCode" prefHeight="369.0" prefWidth="295.0"
......
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