上传备份

master
王兵 2 months ago
parent ca195e6985
commit 28b2a1725c

@ -1,25 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?> <?import javafx.geometry.Insets?>
<?import javafx.scene.*?> <?import javafx.geometry.Rectangle2D?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.Button?>
<?import javafx.scene.image.*?> <?import javafx.scene.control.Label?>
<?import javafx.scene.layout.*?> <?import javafx.scene.control.Separator?>
<?import javafx.scene.control.TextArea?>
<AnchorPane prefHeight="300.0" prefWidth="600.0" stylesheets="@main.css" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="xyz.wbsite.jmacro.JMainController"> <?import javafx.scene.control.TextField?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<AnchorPane prefHeight="300.0" prefWidth="600.0" stylesheets="@main.css" xmlns="http://javafx.com/javafx/17.0.2-ea"
xmlns:fx="http://javafx.com/fxml/1" fx:controller="xyz.wbsite.jmacro.JMainController">
<children> <children>
<Separator layoutY="-1.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" /> <Separator layoutY="-1.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="0.0"
<VBox maxWidth="204.0" minWidth="204.0" prefWidth="204.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0"> AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"/>
<VBox maxWidth="204.0" minWidth="204.0" prefWidth="204.0" AnchorPane.bottomAnchor="0.0"
AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
<children> <children>
<HBox alignment="CENTER_LEFT" prefHeight="35.0" prefWidth="200.0"> <HBox alignment="CENTER_LEFT" prefHeight="35.0" prefWidth="200.0">
<children> <children>
<Button fx:id="start" focusTraversable="false" mnemonicParsing="false" onMouseClicked="#onStart" prefHeight="30.0" prefWidth="100.0" text="开始F1" /> <Button fx:id="start" focusTraversable="false" mnemonicParsing="false" onMouseClicked="#onStart"
<Button fx:id="stop" disable="true" focusTraversable="false" mnemonicParsing="false" onMouseClicked="#onStop" prefHeight="30.0" prefWidth="100.0" text="停止F2"> prefHeight="30.0" prefWidth="100.0" text="开始F1"/>
<Button fx:id="stop" disable="true" focusTraversable="false" mnemonicParsing="false"
onMouseClicked="#onStop" prefHeight="30.0" prefWidth="100.0" text="停止F2">
<HBox.margin> <HBox.margin>
<Insets left="10.0"/> <Insets left="10.0"/>
</HBox.margin> </HBox.margin>
</Button> </Button>
</children> </children>
<VBox.margin>
<Insets top="10.0"/>
</VBox.margin>
</HBox> </HBox>
<HBox alignment="CENTER_LEFT"> <HBox alignment="CENTER_LEFT">
<children> <children>
@ -64,18 +79,22 @@
<HBox alignment="CENTER_LEFT" prefHeight="35.0"> <HBox alignment="CENTER_LEFT" prefHeight="35.0">
<children> <children>
<Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#pickPoint" prefHeight="25.0" prefWidth="50.0" text="采点" /> <Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#pickPoint"
<Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#pickRect" prefHeight="25.0" prefWidth="50.0" text="采区"> prefHeight="25.0" prefWidth="50.0" text="采点"/>
<Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#pickRect"
prefHeight="25.0" prefWidth="50.0" text="采区">
<HBox.margin> <HBox.margin>
<Insets left="5.0"/> <Insets left="5.0"/>
</HBox.margin> </HBox.margin>
</Button> </Button>
<Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#pickLegend" prefHeight="25.0" prefWidth="50.0" text="采图"> <Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#pickLegend"
prefHeight="25.0" prefWidth="50.0" text="采图">
<HBox.margin> <HBox.margin>
<Insets left="5.0"/> <Insets left="5.0"/>
</HBox.margin> </HBox.margin>
</Button> </Button>
<Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#measure" prefHeight="25.0" prefWidth="50.0" text="测距"> <Button focusTraversable="false" mnemonicParsing="false" onMouseClicked="#measure"
prefHeight="25.0" prefWidth="50.0" text="测距">
<HBox.margin> <HBox.margin>
<Insets left="5.0"/> <Insets left="5.0"/>
</HBox.margin> </HBox.margin>
@ -84,9 +103,12 @@
</HBox> </HBox>
<Label prefHeight="25.0" prefWidth="204.0" text="焦点预览"/> <Label prefHeight="25.0" prefWidth="204.0" text="焦点预览"/>
<AnchorPane maxHeight="108.0" maxWidth="192.0" minHeight="108.0" minWidth="192.0" prefHeight="108.0" prefWidth="192.0" style="-fx-border-color: #ddd;"> <AnchorPane maxHeight="108.0" maxWidth="192.0" minHeight="108.0" minWidth="192.0" prefHeight="108.0"
prefWidth="192.0" style="-fx-border-color: #ddd;">
<children> <children>
<ImageView fx:id="preview" pickOnBounds="true" preserveRatio="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <ImageView fx:id="preview" pickOnBounds="true" preserveRatio="true"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<viewport> <viewport>
<Rectangle2D height="100.0" width="188.0"/> <Rectangle2D height="100.0" width="188.0"/>
</viewport> </viewport>
@ -94,22 +116,30 @@
</children> </children>
</AnchorPane> </AnchorPane>
<Label alignment="CENTER" contentDisplay="CENTER" prefHeight="35.0" prefWidth="188.0" text="©2025 一团芝麻糊" /> <Label alignment="CENTER" contentDisplay="CENTER" prefHeight="35.0" prefWidth="188.0"
text="©2025 一团芝麻糊"/>
</children> </children>
<padding> <padding>
<Insets left="6.0" right="6.0"/> <Insets left="6.0" right="6.0"/>
</padding> </padding>
</VBox> </VBox>
<Separator opacity="0.5" orientation="VERTICAL" prefHeight="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="204.0" AnchorPane.topAnchor="0.0" /> <Separator opacity="0.5" orientation="VERTICAL" prefHeight="200.0" AnchorPane.bottomAnchor="0.0"
<AnchorPane layoutX="262.0" layoutY="14.0" prefHeight="250.0" prefWidth="400.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="204.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> AnchorPane.leftAnchor="204.0" AnchorPane.topAnchor="0.0"/>
<AnchorPane layoutX="262.0" layoutY="14.0" prefHeight="250.0" prefWidth="400.0" AnchorPane.bottomAnchor="0.0"
AnchorPane.leftAnchor="204.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children> <children>
<Label layoutY="4.0" prefHeight="40.0" prefWidth="60.0" text="日志输出" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <Label layoutY="4.0" prefHeight="40.0" prefWidth="60.0" text="日志输出" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<padding> <padding>
<Insets left="10.0" right="10.0"/> <Insets left="10.0" right="10.0"/>
</padding> </padding>
</Label> </Label>
<Separator layoutX="-3.0" layoutY="39.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="41.0" /> <Separator layoutX="-3.0" layoutY="39.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="1.0"
<TextArea fx:id="console" editable="false" layoutX="1.0" layoutY="41.0" prefHeight="270.0" style="-fx-background-color: transparent; -fx-focus-color: no; -fx-control-inner-background: transparent;-fx-text-fill: #444444;" wrapText="true" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="45.0"> AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="41.0"/>
<TextArea fx:id="console" editable="false" layoutX="1.0" layoutY="41.0" prefHeight="270.0"
style="-fx-background-color: transparent; -fx-focus-color: no; -fx-control-inner-background: transparent;-fx-text-fill: #444444;"
wrapText="true" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="0.0"
AnchorPane.topAnchor="45.0">
</TextArea> </TextArea>
</children> </children>

Loading…
Cancel
Save

Powered by TurnKey Linux.