Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
ef7e3f6b
Commit
ef7e3f6b
authored
3 months ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Feat: Add ZipEntryPicker
parent
f72363c4
master
dev
dev_cpp_code_conversion
dev_gui_features_zip_loading
3.17.0
archive/dev_gui_features_zip_loading
2 merge requests
!28
Version 3.17.0 Release
,
!26
Add ZIP-archive support
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
+24
-0
...java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.fxml
+108
-0
...rces/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.fxml
with
132 additions
and
0 deletions
+132
-0
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
0 → 100644
+
24
-
0
View file @
ef7e3f6b
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
;
}
This diff is collapsed.
Click to expand it.
CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.fxml
0 → 100644
+
108
-
0
View file @
ef7e3f6b
<?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>
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets