Skip to content
Snippets Groups Projects
Commit eb4762b1 authored by Lukas Friedrichsen's avatar Lukas Friedrichsen
Browse files

debugging in progress

parent 6722d1e9
No related branches found
No related tags found
No related merge requests found
Showing
with 221 additions and 4 deletions
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<projectDescription> <projectDescription>
<name>MaerklinControl</name> <name>VINF_MaerklinControl</name>
<comment></comment> <comment></comment>
<projects> <projects>
</projects> </projects>
......
/gui/
/common/
/server/
File added
File added
File added
File added
File added
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.layout.AnchorPane?>
<AnchorPane prefHeight="600.0" prefWidth="340.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1">
<children>
<TabPane layoutX="10.0" layoutY="10.0" prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<tabs>
<Tab text="Loks">
<content>
<fx:include source="Engine.fxml" />
</content>
</Tab>
<Tab text="Weichen">
<content>
<fx:include source="SwitchList.fxml" />
</content>
</Tab>
<Tab text="Drehscheibe">
<content>
<fx:include source="Turntable.fxml" />
</content>
</Tab>
<Tab text="Verbindung">
<content>
<fx:include source="Settings.fxml" />
</content>
</Tab>
</tabs>
</TabPane>
</children>
</AnchorPane>
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.Slider?>
<?import javafx.scene.control.ToggleButton?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.view.EngineController">
<children>
<VBox alignment="BOTTOM_CENTER" prefHeight="200.0" prefWidth="100.0" AnchorPane.bottomAnchor="20.0" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="0.0">
<children>
<ImageView fx:id="engineImage" fitHeight="50.0" fitWidth="150.0" pickOnBounds="true" preserveRatio="true">
<VBox.margin>
<Insets bottom="10.0" />
</VBox.margin></ImageView>
<Slider fx:id="engineSpeedSlider" showTickLabels="true" showTickMarks="true" />
<HBox alignment="CENTER" prefWidth="300.0">
<children>
<ToggleButton fx:id="engineRevButton" mnemonicParsing="false" onAction="#handleEngineDirection" text="&lt;">
<toggleGroup>
<ToggleGroup fx:id="direction" />
</toggleGroup></ToggleButton>
<ChoiceBox fx:id="engineChoiceBox" prefWidth="150.0" />
<ToggleButton fx:id="engineFwdButton" mnemonicParsing="false" onAction="#handleEngineDirection" text="&gt;" toggleGroup="$direction" />
</children>
</HBox>
</children>
<opaqueInsets>
<Insets right="9.0" />
</opaqueInsets>
</VBox>
</children>
</AnchorPane>
File added
File added
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import org.controlsfx.control.StatusBar?>
<BorderPane prefHeight="600.0" prefWidth="340.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.view.RootLayoutController">
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<center>
<TabPane fx:id="rootTabPane" prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
<tabs>
</tabs>
</TabPane>
</center>
<bottom>
<VBox alignment="TOP_CENTER" BorderPane.alignment="CENTER">
<children>
<Button fx:id="emergencyStop" mnemonicParsing="false" onAction="#emergencyStopHandler" prefHeight="50.0" prefWidth="300.0" style="-fx-background-color: red;" text="NOTAUS" textFill="WHITE">
<padding>
<Insets bottom="10.0" left="5.0" right="5.0" top="5.0" />
</padding>
<font>
<Font name="System Bold" size="14.0" />
</font>
<VBox.margin>
<Insets bottom="10.0" top="10.0" />
</VBox.margin>
</Button>
<StatusBar fx:id="statusBar" />
</children>
</VBox>
</bottom>
</BorderPane>
File added
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.view.SettingsController">
<children>
<VBox prefHeight="200.0" prefWidth="100.0" AnchorPane.bottomAnchor="20.0" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="20.0">
<children>
<Label text="Server-IP" />
<TextField fx:id="serverIP" prefHeight="25.0" prefWidth="158.0" text="127.0.0.1">
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</TextField>
<Button fx:id="connectButton" mnemonicParsing="false" onAction="#connectHandler" text="Verbindung herstellen">
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</Button>
</children>
<padding>
<Insets top="20.0" />
</padding>
</VBox>
</children>
</AnchorPane>
File added
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.HBox?>
<?import org.controlsfx.control.ToggleSwitch?>
<fx:root alignment="TOP_CENTER" type="javafx.scene.layout.HBox" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1">
<Label fx:id="nameLabel" minWidth="75" prefHeight="25.0" prefWidth="75.0" text="Weiche">
<padding>
<Insets top="5.0" />
</padding>
</Label>
<ImageView fx:id="straightIcon" fitHeight="20.0" fitWidth="20.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../../../res/MagIcon_00_00_i.png" />
</image>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</ImageView>
<ToggleSwitch fx:id="stateToggleSwitch" prefWidth="32.0">
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
<padding>
<Insets top="1.0" />
</padding>
</ToggleSwitch>
<ImageView fx:id="bentIcon" fitHeight="20.0" fitWidth="20.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../../../res/MagIcon_00_01_i.png" />
</image>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</ImageView>
<padding>
<Insets bottom="5.0" top="5.0" />
</padding>
</fx:root>
File added
File added
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="340.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.view.SwitchListController">
<children>
<VBox fx:id="switchesVBox" alignment="TOP_CENTER" prefWidth="300.0">
<padding>
<Insets bottom="5.0" left="20.0" right="20.0" top="5.0" />
</padding></VBox>
</children>
</AnchorPane>
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment