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
fad3c6f2
Commit
fad3c6f2
authored
2 months ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Style: Rename ids of zipBtn and -View
parent
946bd130
master
dev
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
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
+10
-3
...e/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/MainToolBar.java
+6
-6
...in/java/de/hft/stuttgart/citydoctor2/gui/MainToolBar.java
CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/MainToolBar.fxml
+3
-2
...sources/de/hft/stuttgart/citydoctor2/gui/MainToolBar.fxml
with
19 additions
and
11 deletions
+19
-11
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
+
10
-
3
View file @
fad3c6f2
...
...
@@ -30,6 +30,7 @@ import org.xml.sax.SAXParseException;
import
java.io.File
;
import
java.io.IOException
;
import
java.nio.file.Path
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.function.Function
;
...
...
@@ -46,7 +47,7 @@ public class CityDoctorController {
private
ParserConfiguration
currentConfig
;
private
String
sourceFile
;
private
CityGmlZipArchive
zipArchive
;
private
ZipEntryPicker
currentZipEntryPicker
;
private
Checker
currentChecker
;
private
HighlightController
highlightController
;
...
...
@@ -136,6 +137,7 @@ public class CityDoctorController {
mainWindow
.
getSaveBtn
().
setDisable
(
false
);
mainWindow
.
getResetCameraBtn
().
setDisable
(
false
);
mainWindow
.
getHideRoofBtn
().
setDisable
(
false
);
mainWindow
.
getZipManagerBtn
().
setDisable
(
true
);
mainWindow
.
getNorthArrow
().
setVisible
(
true
);
mainWindow
.
alignNorthArrow
();
setupFeatureTabs
();
...
...
@@ -154,8 +156,8 @@ public class CityDoctorController {
Platform
.
runLater
(()
->
{
try
{
ZipEntryPicker
picker
=
new
ZipEntryPicker
(
mainWindow
.
getMainStage
(),
this
);
p
icker
.
show
();
current
ZipEntryPicker
=
new
ZipEntryPicker
(
mainWindow
.
getMainStage
(),
this
);
currentZipEntryP
icker
.
show
();
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -202,6 +204,7 @@ public class CityDoctorController {
mainWindow
.
getSaveBtn
().
setDisable
(
false
);
mainWindow
.
getResetCameraBtn
().
setDisable
(
false
);
mainWindow
.
getHideRoofBtn
().
setDisable
(
false
);
mainWindow
.
getZipManagerBtn
().
setDisable
(
false
);
mainWindow
.
getNorthArrow
().
setVisible
(
true
);
mainWindow
.
alignNorthArrow
();
setupFeatureTabs
();
...
...
@@ -213,6 +216,10 @@ public class CityDoctorController {
}
public
void
showZipManager
()
{
Platform
.
runLater
(()
->
currentZipEntryPicker
.
show
());
}
private
void
setupFeatureTabs
()
{
mainWindow
.
setDisableOfFeatureTab
(
FeatureType
.
BUILDING
,
model
.
getBuildings
().
isEmpty
());
mainWindow
.
setDisableOfFeatureTab
(
FeatureType
.
VEGETATION
,
model
.
getVegetation
().
isEmpty
());
...
...
This diff is collapsed.
Click to expand it.
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/MainToolBar.java
+
6
-
6
View file @
fad3c6f2
...
...
@@ -86,10 +86,10 @@ public class MainToolBar {
private
ImageView
lod4View
;
@FXML
private
Button
zipBtn
;
private
Button
zip
Manager
Btn
;
@FXML
private
ImageView
zipView
;
private
ImageView
zip
Manager
View
;
@FXML
private
Button
aboutBtn
;
...
...
@@ -234,7 +234,7 @@ public class MainToolBar {
}
try
(
InputStream
inStream
=
MainWindow
.
class
.
getResourceAsStream
(
"icons/zip.png"
))
{
Image
img
=
new
Image
(
inStream
);
zipView
.
setImage
(
img
);
zip
Manager
View
.
setImage
(
img
);
}
}
catch
(
IOException
e
)
{
// ignore close exception
...
...
@@ -348,9 +348,9 @@ public class MainToolBar {
}
private
void
setupZipButton
()
{
zipBtn
.
setDisable
(
true
);
zipBtn
.
setTooltip
(
new
Tooltip
(
Localization
.
getText
(
"MainToolBar.zip"
)));
zipBtn
.
setOnAction
(
ae
->
{
zip
Manager
Btn
.
setDisable
(
true
);
zip
Manager
Btn
.
setTooltip
(
new
Tooltip
(
Localization
.
getText
(
"MainToolBar.zip"
)));
zip
Manager
Btn
.
setOnAction
(
ae
->
{
//TODO: Implement Zipfile viewer
});
}
...
...
This diff is collapsed.
Click to expand it.
CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/MainToolBar.fxml
+
3
-
2
View file @
fad3c6f2
...
...
@@ -78,9 +78,10 @@
</HBox>
<HBox
fx:id=
"spacer"
alignment=
"TOP_RIGHT"
maxHeight=
"1.7976931348623157E308"
maxWidth=
"1.7976931348623157E308"
spacing=
"5.0"
HBox.hgrow=
"ALWAYS"
>
<children>
<Button
id=
"loadBtn"
fx:id=
"zipBtn"
disable=
"true"
mnemonicParsing=
"false"
>
<Button
id=
"loadBtn"
fx:id=
"zip
Manager
Btn"
disable=
"true"
mnemonicParsing=
"false"
>
<graphic>
<ImageView
fx:id=
"zipView"
fitHeight=
"32.0"
fitWidth=
"32.0"
pickOnBounds=
"true"
preserveRatio=
"true"
/>
<ImageView
fx:id=
"zipManagerView"
fitHeight=
"32.0"
fitWidth=
"32.0"
pickOnBounds=
"true"
preserveRatio=
"true"
/>
</graphic>
</Button>
<Separator
orientation=
"VERTICAL"
/>
...
...
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