diff --git a/CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java b/CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java new file mode 100644 index 0000000000000000000000000000000000000000..df7ebaae17adc77124e38c5bb2b9061121efe224 --- /dev/null +++ b/CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java @@ -0,0 +1,24 @@ +package de.hft.stuttgart.citydoctor2.gui; + +import javafx.fxml.FXML; +import javafx.scene.control.Button; +import javafx.scene.control.TextArea; +import javafx.stage.Stage; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +public class ZipEntryPicker { + + private static final Logger logger = LogManager.getLogger(ZipEntryPicker.class); + + private Stage stage; + + @FXML + private Button cancelBtn; + + @FXML + private Button loadBtn; + + @FXML + private TextArea metaArea; +} diff --git a/CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.fxml b/CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.fxml new file mode 100644 index 0000000000000000000000000000000000000000..325a86032b176852e7476d970dd743237cd6fd27 --- /dev/null +++ b/CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.fxml @@ -0,0 +1,108 @@ +<?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.ProgressBar?> +<?import javafx.scene.control.ScrollPane?> +<?import javafx.scene.control.TextArea?> +<?import javafx.scene.control.TextField?> +<?import javafx.scene.control.TitledPane?> +<?import javafx.scene.control.TreeView?> +<?import javafx.scene.layout.HBox?> +<?import javafx.scene.layout.VBox?> +<?import javafx.scene.text.Font?> + + +<VBox xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"> + <children> + <Label fx:id="fileLabel" text="Zip-file path: "> + <padding> + <Insets left="5.0" right="5.0" top="5.0"/> + </padding> + <font> + <Font size="16.0"/> + </font> + </Label> + <HBox> + <children> + <TextField fx:id="pathField" prefColumnCount="25" HBox.hgrow="ALWAYS"> + <HBox.margin> + <Insets right="5.0"/> + </HBox.margin> + <font> + <Font size="14.0"/> + </font> + </TextField> + <Button fx:id="selectBtn" maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Select" + HBox.hgrow="SOMETIMES"> + <font> + <Font size="14.0"/> + </font> + </Button> + </children> + <padding> + <Insets bottom="5.0" left="5.0" right="5.0"/> + </padding> + <VBox.margin> + <Insets/> + </VBox.margin> + </HBox> + <HBox prefHeight="200.0" prefWidth="600.0"> + <children> + <TitledPane collapsible="false" text="Zip-entries"> + <font> + <Font size="14.0"/> + </font> + <content> + <ScrollPane prefHeight="200.0" prefWidth="300.0"> + <content> + <TreeView fx:id="entriesTree" prefHeight="200.0" prefWidth="280.0"/> + </content> + </ScrollPane> + </content> + </TitledPane> + <TitledPane fx:id="settingsPane1" collapsible="false" layoutX="10.0" layoutY="10.0" prefWidth="300.0" + text="Metadata"> + <font> + <Font size="14.0"/> + </font> + <content> + <ScrollPane prefHeight="200.0" prefWidth="200.0"> + <content> + <TextArea fx:id="metaArea" editable="false" prefHeight="200.0" prefWidth="280.0"/> + </content> + </ScrollPane> + </content> + </TitledPane> + </children> + </HBox> + <Button fx:id="loadBtn" alignment="CENTER" maxWidth="1.7976931348623157E308" mnemonicParsing="false" + text=" Load entry"> + <font> + <Font size="14.0"/> + </font> + </Button> + <HBox spacing="5.0"> + <children> + <ProgressBar fx:id="progress" maxWidth="1.7976931348623157E308" minHeight="40.0" prefHeight="40.0" + progress="0.0" HBox.hgrow="ALWAYS"> + <padding> + <Insets bottom="5.0" right="5.0" top="5.0"/> + </padding> + </ProgressBar> + <Button fx:id="cancelBtn" alignment="CENTER" mnemonicParsing="false" text="Cancel"> + <font> + <Font size="14.0"/> + </font> + <HBox.margin> + <Insets top="4.0"/> + </HBox.margin> + </Button> + </children> + <padding> + <Insets left="5.0" right="5.0"/> + </padding> + </HBox> + </children> +</VBox>