TransferBot/src/main/resources/it/cavallium/primary.fxml
Andrea Cavalli a5b06b8d47 Done
2020-10-20 02:14:04 +02:00

162 lines
8.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ChoiceBox?>
<?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.ProgressBar?>
<?import javafx.scene.control.SeparatorMenuItem?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.control.cell.PropertyValueFactory?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<VBox fx:id="main" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="it.cavallium.PrimaryController">
<children>
<MenuBar VBox.vgrow="NEVER">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" onAction="#openSettings" text="Preferences…" />
<SeparatorMenuItem mnemonicParsing="false" />
<MenuItem mnemonicParsing="false" onAction="#quit" text="Quit" />
</items>
</Menu>
</menus>
</MenuBar>
<SplitPane dividerPositions="0.8237442922374429" orientation="VERTICAL" prefHeight="9999.0">
<items>
<SplitPane dividerPositions="0.35" focusTraversable="true" prefHeight="-1.0" prefWidth="-1.0">
<items>
<BorderPane maxWidth="250.0" prefWidth="250.0">
<top>
<Label alignment="CENTER" prefWidth="-1.0" style="&#10;" text="Userbots" textAlignment="CENTER" wrapText="false" BorderPane.alignment="CENTER">
<font>
<Font size="18.0" fx:id="x1" />
</font>
<textFill>
<Color blue="0.624" green="0.624" red="0.624" fx:id="x2" />
</textFill>
</Label>
</top>
<center>
<ListView fx:id="userbotsList" BorderPane.alignment="CENTER" />
</center>
<bottom>
<ToolBar prefHeight="40.0" BorderPane.alignment="CENTER">
<items>
<TextField fx:id="phoneNumber" onAction="#addUserbot" prefHeight="25.0" promptText="Phone number">
<font>
<Font size="9.0" />
</font>
</TextField>
<Button mnemonicParsing="false" onAction="#addUserbot" prefHeight="25.0" text="Add" />
<Button fx:id="removeUserbotBtn" mnemonicParsing="false" onAction="#removeUserbot" prefHeight="25.0" text="Remove" />
</items>
</ToolBar>
</bottom>
</BorderPane>
<BorderPane>
<top>
<Label alignment="CENTER" prefWidth="-1.0" style="&#10;" text="Transfer" textAlignment="CENTER" wrapText="false" BorderPane.alignment="CENTER">
<font>
<Font size="18.0" fx:id="x11" />
</font>
<textFill>
<Color blue="0.624" green="0.624" red="0.624" fx:id="x21" />
</textFill>
</Label>
</top>
<center>
<GridPane BorderPane.alignment="CENTER">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<VBox maxHeight="-Infinity" minHeight="-Infinity" spacing="10.0" GridPane.columnSpan="2">
<children>
<ChoiceBox fx:id="sourceGroupCombo" minWidth="200.0" prefHeight="28.0" />
<ChoiceBox fx:id="destGroupCombo" minWidth="200.0" prefHeight="28.0" />
<Button fx:id="transferBtn" mnemonicParsing="false" onAction="#onDoTransfer" text="Transfer" />
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</VBox>
<TableView fx:id="statusTable" style="-fx-font-size: 10; -fx-font-family: monospace" GridPane.columnSpan="2" GridPane.rowIndex="1">
<columns>
<TableColumn maxWidth="300.0" minWidth="100.0" prefWidth="-1.0" text="User">
<cellValueFactory>
<PropertyValueFactory property="user" />
</cellValueFactory>
</TableColumn>
<TableColumn maxWidth="1.7976931348623157E308" minWidth="100.0" prefWidth="300.0" text="Status">
<cellValueFactory>
<PropertyValueFactory property="status" />
</cellValueFactory>
</TableColumn>
</columns>
<columnResizePolicy>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
</columnResizePolicy>
</TableView>
</children>
</GridPane>
</center>
</BorderPane>
</items>
</SplitPane>
<BorderPane>
<top>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Log">
<BorderPane.margin>
<Insets left="5.0" right="5.0" top="5.0" />
</BorderPane.margin>
</Text>
</top>
<center>
<ListView fx:id="log" style="-fx-font-size: 10" BorderPane.alignment="CENTER" />
</center>
</BorderPane>
</items>
</SplitPane>
<HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0" VBox.vgrow="NEVER">
<children>
<Label fx:id="statusTxt" maxHeight="1.7976931348623157E308" maxWidth="-1.0" text="Done." HBox.hgrow="ALWAYS">
<font>
<Font size="11.0" fx:id="x3" />
</font>
<textFill>
<Color blue="0.625" green="0.625" red="0.625" fx:id="x4" />
</textFill>
</Label>
<ProgressBar fx:id="statusBar" disable="true" maxWidth="1.7976931348623157E308" prefHeight="20.0" progress="0.0" HBox.hgrow="ALWAYS" />
<Label fx:id="statusPercentage" font="$x3" maxWidth="-1.0" text="0%" textFill="$x4" HBox.hgrow="NEVER" />
</children>
<padding>
<Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
</padding>
</HBox>
</children>
</VBox>