Watchdog-Checkbox

This commit is contained in:
2024-05-14 11:45:35 +02:00
parent b842d6eb05
commit 8f35f4f914
6 changed files with 78 additions and 210 deletions

View File

@ -3,11 +3,13 @@
<?import com.gluonhq.charm.glisten.control.ToggleButtonGroup?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.SeparatorMenuItem?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.ToggleButton?>
<?import javafx.scene.effect.Blend?>
<?import javafx.scene.layout.AnchorPane?>
@ -19,21 +21,42 @@
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.Label?>
<AnchorPane xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fabrik.simulator.pic16f84.Controller_Frontend" stylesheets="styles.css">
<AnchorPane stylesheets="@styles.css" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fabrik.simulator.pic16f84.Controller_Frontend">
<children>
<ListView fx:id="lstContentListView" prefHeight="400.0" prefWidth="600.0" />
<Button fx:id="stepintoButton" layoutX="42.0" layoutY="400.0" mnemonicParsing="false" onAction="#stepintoButton" text="Step IN" />
<ListView fx:id="lstContentListView" layoutY="31.0" prefHeight="645.0" prefWidth="600.0" />
<HBox layoutY="688.0" prefHeight="24.0" prefWidth="600.0">
<children>
<Button fx:id="stepintoButton" mnemonicParsing="false" onAction="#stepintoButton" text="Step IN">
<opaqueInsets>
<Insets right="50.0" />
</opaqueInsets>
<HBox.margin>
<Insets left="10.0" />
</HBox.margin>
</Button>
<!--RIchtiger AUtorun button für die Gui der funktioniert -->
<Button fx:id="autoRunGUI" layoutX="182.0" layoutY="400.0" text="Auto Run" onAction="#autoRunGUI"/>
<Button fx:id="stopButton" layoutX="302.0" layoutY="400.0" text="Stop" onAction="#stopAutoRun"/>
<Button fx:id="autoRunGUI" onAction="#autoRunGUI" text="Auto Run">
<HBox.margin>
<Insets left="50.0" right="50.0" />
</HBox.margin>
</Button>
<Button fx:id="stopButton" onAction="#stopAutoRun" text="Stop" />
</children>
</HBox>
<VBox layoutX="14.0" layoutY="727.0">
<children>
<Label fx:id="totalExecutionTimeLabel" text="Total Execution Time: " />
<CheckBox fx:id="wdtCheck" mnemonicParsing="false" onAction="#toggleWatchdog" text="Watchdog-Timer">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</CheckBox>
</children>
</VBox>
<Label fx:id="totalExecutionTimeLabel" text="Total Execution Time: " layoutX="42.0" layoutY="450.0"/>
<HBox layoutX="807.0" layoutY="134.0" prefHeight="293.0" prefWidth="701.0">
<HBox layoutX="659.0" layoutY="53.0" prefHeight="293.0" prefWidth="701.0">
<children>
<GridPane alignment="CENTER" gridLinesVisible="true" prefHeight="273.0" prefWidth="687.0">
<columnConstraints>
@ -69,50 +92,7 @@
</Text>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="10.0" layoutY="10.0" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="3">
<children>
<Text nodeOrientation="LEFT_TO_RIGHT" strokeType="OUTSIDE" strokeWidth="0.0" text="5">
<font>
<Font name="System Italic" size="20.0" />
</font>
</Text>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="132.0" layoutY="10.0" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="1">
<children>
<Text nodeOrientation="LEFT_TO_RIGHT" strokeType="OUTSIDE" strokeWidth="0.0" text="7">
<font>
<Font name="System Italic" size="20.0" />
</font>
</Text>
</children>
</VBox>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="2">
<children>
<Text nodeOrientation="LEFT_TO_RIGHT" strokeType="OUTSIDE" strokeWidth="0.0" text="6">
<font>
<Font name="System Italic" size="20.0" />
</font>
</Text>
</children>
</VBox>
<VBox alignment="CENTER" GridPane.columnIndex="3" GridPane.rowIndex="1">
<children>
<ToggleButtonGroup fx:id="bgTRISA5" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
<toggles>
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" selected="true" text="I" />
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" text="O">
<padding>
<Insets left="5.0" />
</padding>
</ToggleButton>
</toggles>
<padding>
<Insets left="5.0" />
</padding>
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" GridPane.columnIndex="3" GridPane.rowIndex="1" />
<VBox alignment="CENTER" layoutX="230.0" layoutY="10.0" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="4">
<children>
<Text nodeOrientation="LEFT_TO_RIGHT" strokeType="OUTSIDE" strokeWidth="0.0" text="4">
@ -176,40 +156,8 @@
</Text>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="217.0" layoutY="56.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
<children>
<ToggleButtonGroup fx:id="bgTRISA7" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
<toggles>
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" selected="true" text="I" />
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" text="O">
<padding>
<Insets left="5.0" />
</padding>
</ToggleButton>
</toggles>
<padding>
<Insets left="5.0" />
</padding>
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ToggleButtonGroup fx:id="bgTRISA6" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
<toggles>
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" selected="true" text="I" />
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" text="O">
<padding>
<Insets left="5.0" />
</padding>
</ToggleButton>
</toggles>
<padding>
<Insets left="5.0" />
</padding>
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="217.0" layoutY="56.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<VBox alignment="CENTER" GridPane.columnIndex="2" GridPane.rowIndex="1" />
<VBox alignment="CENTER" GridPane.columnIndex="4" GridPane.rowIndex="1">
<children>
<ToggleButtonGroup fx:id="bgTRISA4" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
@ -530,23 +478,7 @@
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="57.0" layoutY="59.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
<children>
<ToggleButtonGroup fx:id="bgPORTA7" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
<toggles>
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" selected="true" text="0" />
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" text="1">
<padding>
<Insets left="5.0" />
</padding>
</ToggleButton>
</toggles>
<padding>
<Insets left="5.0" />
</padding>
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="57.0" layoutY="59.0" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<VBox alignment="CENTER" layoutX="57.0" layoutY="108.0" GridPane.columnIndex="8" GridPane.rowIndex="2">
<children>
<ToggleButtonGroup fx:id="bgPORTA0" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
@ -632,40 +564,8 @@
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="10.0" layoutY="10.0" GridPane.columnIndex="3" GridPane.rowIndex="2">
<children>
<ToggleButtonGroup fx:id="bgPORTA5" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
<toggles>
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" selected="true" text="0" />
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" text="1">
<padding>
<Insets left="5.0" />
</padding>
</ToggleButton>
</toggles>
<padding>
<Insets left="5.0" />
</padding>
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="10.0" layoutY="10.0" GridPane.columnIndex="2" GridPane.rowIndex="2">
<children>
<ToggleButtonGroup fx:id="bgPORTA6" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
<toggles>
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" selected="true" text="0" />
<ToggleButton contentDisplay="CENTER" minWidth="30.0" prefHeight="30.0" prefWidth="30.0" text="1">
<padding>
<Insets left="5.0" />
</padding>
</ToggleButton>
</toggles>
<padding>
<Insets left="5.0" />
</padding>
</ToggleButtonGroup>
</children>
</VBox>
<VBox alignment="CENTER" layoutX="10.0" layoutY="10.0" GridPane.columnIndex="3" GridPane.rowIndex="2" />
<VBox alignment="CENTER" layoutX="10.0" layoutY="10.0" GridPane.columnIndex="2" GridPane.rowIndex="2" />
<VBox alignment="CENTER" layoutX="57.0" layoutY="108.0" GridPane.columnIndex="8" GridPane.rowIndex="6">
<children>
<ToggleButtonGroup fx:id="bgPORTB0" prefHeight="30.0" prefWidth="39.0" selectionType="SINGLE">
@ -806,7 +706,7 @@
</GridPane>
</children>
</HBox>
<MenuBar prefHeight="31.0" prefWidth="1522.0" AnchorPane.bottomAnchor="1465.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<MenuBar prefHeight="31.0" prefWidth="1400.0" AnchorPane.bottomAnchor="1400.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
@ -846,4 +746,7 @@
</menus>
</MenuBar>
</children>
<padding>
<Insets right="50.0" />
</padding>
</AnchorPane>