上传备份

master
王兵 2 months ago
parent ca195e6985
commit 28b2a1725c

@ -1,41 +1,56 @@
<?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>
<Label contentDisplay="CENTER" prefHeight="25.0" text="执行选项" /> <Label contentDisplay="CENTER" prefHeight="25.0" text="执行选项"/>
<ImageView fx:id="set" fitHeight="12.0" fitWidth="12.0" preserveRatio="true"> <ImageView fx:id="set" fitHeight="12.0" fitWidth="12.0" preserveRatio="true">
<image> <image>
<Image url="@set.png" /> <Image url="@set.png"/>
</image> </image>
<HBox.margin> <HBox.margin>
<Insets left="5.0" /> <Insets left="5.0"/>
</HBox.margin> </HBox.margin>
<cursor> <cursor>
<Cursor fx:constant="HAND" /> <Cursor fx:constant="HAND"/>
</cursor> </cursor>
</ImageView> </ImageView>
</children> </children>
@ -43,73 +58,88 @@
<HBox alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0"> <HBox alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
<children> <children>
<Label text="每" /> <Label text="每"/>
<TextField alignment="CENTER" prefWidth="35.0" promptText="时间" text="60"> <TextField alignment="CENTER" prefWidth="35.0" promptText="时间" text="60">
<HBox.margin> <HBox.margin>
<Insets left="3.0" right="3.0" /> <Insets left="3.0" right="3.0"/>
</HBox.margin> </HBox.margin>
</TextField> </TextField>
<Label text="秒执行1次" /> <Label text="秒执行1次"/>
<Label text="共" /> <Label text="共"/>
<TextField alignment="CENTER" prefWidth="35.0" promptText="次数" text="1"> <TextField alignment="CENTER" prefWidth="35.0" promptText="次数" text="1">
<HBox.margin> <HBox.margin>
<Insets left="3.0" right="3.0" /> <Insets left="3.0" right="3.0"/>
</HBox.margin> </HBox.margin>
</TextField> </TextField>
<Label text="次" /> <Label text="次"/>
</children> </children>
</HBox> </HBox>
<Label contentDisplay="CENTER" prefHeight="25.0" text="辅助工具" /> <Label contentDisplay="CENTER" prefHeight="25.0" text="辅助工具"/>
<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>
</Button> </Button>
</children> </children>
</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>
</ImageView> </ImageView>
</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.