2026-05-11 19:40:18 +02:00

43 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns:fx="http://javafx.com/fxml"
fx:controller="de.opcua.app.ui.MainController"
prefWidth="1262" prefHeight="619">
<!-- Top buttons at y=12, x=30 -->
<Button fx:id="connectButton" text="Connect" layoutX="30" layoutY="12" prefWidth="78" prefHeight="23"
onAction="#connectButton_Click"/>
<Button fx:id="saveButton" text="Save" layoutX="114" layoutY="12" prefWidth="80" prefHeight="23"
onAction="#onSave"/>
<Button fx:id="settingsButton" text="Settings" layoutX="200" layoutY="12" prefWidth="75" prefHeight="23"
onAction="#onSettings"/>
<!-- TreeView at (30,50) size (200,540) -->
<TreeView fx:id="myTreeView" layoutX="30" layoutY="50" prefWidth="200" prefHeight="540"
onMouseClicked="#myTreeView_AfterSelect"/>
<!-- Data table at (276,25) size approx (913,540) -->
<TableView fx:id="nodeListview" layoutX="276" layoutY="25" prefWidth="913" prefHeight="540">
<columns>
<TableColumn fx:id="checkBoxColumn" text="Select" prefWidth="70"/>
<TableColumn fx:id="colDisplayName" text="DisplayName" prefWidth="160"/>
<TableColumn fx:id="colNodeType" text="NodeType" prefWidth="110"/>
<TableColumn fx:id="colNodeId" text="NodeId" prefWidth="240"/>
<TableColumn fx:id="colNamespaceIndex" text="NamespaceIndex" prefWidth="120"/>
<TableColumn fx:id="colIdentifierType" text="IdentifierType" prefWidth="120"/>
<TableColumn fx:id="colValue" text="Value" prefWidth="120"/>
</columns>
</TableView>
<!-- Bottom scripting + log (extra, not in WinForms, but useful; can be removed) -->
<Label text="JS:" layoutX="276" layoutY="575"/>
<TextField fx:id="scriptField" layoutX="306" layoutY="571" prefWidth="770" prefHeight="23"/>
<Button fx:id="runScriptButton" text="Run" layoutX="1085" layoutY="571" prefWidth="55" prefHeight="23"
onAction="#runScript"/>
<TextArea fx:id="logArea" layoutX="30" layoutY="595" prefWidth="1159" prefHeight="0" visible="false"/>
</AnchorPane>