Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
c24b7869
Commit
c24b7869
authored
Apr 29, 2026
by
Luna Riegel
Browse files
Docs: Add Localization
parent
696f259f
Changes
4
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization.properties
View file @
c24b7869
...
@@ -209,4 +209,5 @@ WriteReportDialog.selectPdfBtn=Select
...
@@ -209,4 +209,5 @@ WriteReportDialog.selectPdfBtn=Select
WriteReportDialog.selectXmlFile
=
Select
WriteReportDialog.selectXmlFile
=
Select
WriteReportDialog.writeBtn
=
Save
WriteReportDialog.writeBtn
=
Save
WriteReportDialog.xAxisLabel
=
Error
WriteReportDialog.xAxisLabel
=
Error
WriteReportDialog.yAxisLabel
=
Count
WriteReportDialog.yAxisLabel
=
Count
\ No newline at end of file
CheckDialog.topologyChecksLabel
=
Topology Checks
\ No newline at end of file
CityDoctorParent/CityDoctorModel/src/main/resources/CityDoctorLocalization_de.properties
View file @
c24b7869
...
@@ -209,4 +209,5 @@ WriteReportDialog.selectPdfBtn=Ausw\u00e4hlen
...
@@ -209,4 +209,5 @@ WriteReportDialog.selectPdfBtn=Ausw\u00e4hlen
WriteReportDialog.selectXmlFile
=
Ausw
\u
00e4hlen
WriteReportDialog.selectXmlFile
=
Ausw
\u
00e4hlen
WriteReportDialog.writeBtn
=
Speichern
WriteReportDialog.writeBtn
=
Speichern
WriteReportDialog.xAxisLabel
=
Fehler
WriteReportDialog.xAxisLabel
=
Fehler
WriteReportDialog.yAxisLabel
=
Anzahl
WriteReportDialog.yAxisLabel
=
Anzahl
\ No newline at end of file
CheckDialog.topologyChecksLabel
=
Topologische Pr
\u
00fcfungen
\ No newline at end of file
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CheckDialog.java
View file @
c24b7869
...
@@ -85,6 +85,10 @@ public class CheckDialog {
...
@@ -85,6 +85,10 @@ public class CheckDialog {
@FXML
@FXML
private
TreeTableView
<
TreeRequirement
>
semanticTable
;
private
TreeTableView
<
TreeRequirement
>
semanticTable
;
@FXML
private
TreeTableView
<
TreeRequirement
>
topologyTable
;
@FXML
@FXML
private
TableView
<
GlobalParameter
>
globalParametersTable
;
private
TableView
<
GlobalParameter
>
globalParametersTable
;
...
@@ -133,12 +137,27 @@ public class CheckDialog {
...
@@ -133,12 +137,27 @@ public class CheckDialog {
@FXML
@FXML
private
Button
selectNoneSCBtn
;
private
Button
selectNoneSCBtn
;
@FXML
private
Button
selectAllTCBtn
;
@FXML
private
Button
selectNoneTCBtn
;
@FXML
@FXML
private
TextField
schematronField
;
private
TextField
schematronField
;
@FXML
@FXML
private
Tab
checksTab
;
private
Tab
checksTab
;
@FXML
private
TabPane
modeTabPane
;
@FXML
private
Tab
cdTab
;
@FXML
private
Tab
udtTab
;
@FXML
@FXML
private
Label
globalParametersLabel
;
private
Label
globalParametersLabel
;
...
@@ -151,6 +170,9 @@ public class CheckDialog {
...
@@ -151,6 +170,9 @@ public class CheckDialog {
@FXML
@FXML
private
Label
semanticChecksLabel
;
private
Label
semanticChecksLabel
;
@FXML
private
Label
topologyChecksLabel
;
@FXML
@FXML
private
Label
schematronFileLabel
;
private
Label
schematronFileLabel
;
...
@@ -201,61 +223,18 @@ public class CheckDialog {
...
@@ -201,61 +223,18 @@ public class CheckDialog {
public
void
initialize
()
{
public
void
initialize
()
{
createEnableColumn
(
geometricTable
);
setupCheckTables
();
createNameColumn
(
geometricTable
);
createValueColumn
(
geometricTable
);
createUnitColumn
(
geometricTable
);
createEnableColumn
(
semanticTable
);
createNameColumn
(
semanticTable
);
createValueColumn
(
semanticTable
);
createUnitColumn
(
semanticTable
);
checksTab
.
setText
(
Localization
.
getText
(
"CheckDialog.checksTab"
));
checksTab
.
setText
(
Localization
.
getText
(
"CheckDialog.checksTab"
));
filterTab
.
setText
(
Localization
.
getText
(
"CheckDialog.filterTab"
));
filterTab
.
setText
(
Localization
.
getText
(
"CheckDialog.filterTab"
));
globalParametersLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.globalParametersLabel"
));
availableChecksLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.availableChecksLabel"
));
availableChecksLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.availableChecksLabel"
));
geometricChecksLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.geometricChecksLabel"
));
semanticChecksLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.semanticChecksLabel"
));
schematronFileLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.schematronFileLabel"
));
schematronFileLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.schematronFileLabel"
));
checkDescriptionsLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.checkDescriptionsLabel"
));
checkDescriptionsLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.checkDescriptionsLabel"
));
homepageHyperlink
.
setText
(
Localization
.
getText
(
"CheckDialog.clickHereToOpen"
));
homepageHyperlink
.
setText
(
Localization
.
getText
(
"CheckDialog.clickHereToOpen"
));
selectBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.selectBtn"
));
selectBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.selectBtn"
));
checkBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.checkBtn"
));
checkBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.checkBtn"
));
cancelBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.cancelBtn"
));
cancelBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.cancelBtn"
));
selectAllGCBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.selectAllChecksBtn"
));
selectNoneGCBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.unselectAllChecksBtn"
));
selectAllSCBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.selectAllChecksBtn"
));
selectNoneSCBtn
.
setText
(
Localization
.
getText
(
"CheckDialog.unselectAllChecksBtn"
));
List
<
TableColumn
<
GlobalParameter
,
?>>
columns
=
globalParametersTable
.
getColumns
();
TableColumn
<
GlobalParameter
,
String
>
nameCol
=
new
TableColumn
<>(
NAME
);
columns
.
add
(
nameCol
);
nameCol
.
setMinWidth
(
200
);
nameCol
.
setPrefWidth
(
325
);
nameCol
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"name"
));
setupValueColumns
(
columns
);
TableColumn
<
GlobalParameter
,
Unit
>
unitCol
=
new
TableColumn
<>(
UNIT
);
columns
.
add
(
unitCol
);
unitCol
.
setMinWidth
(
50
);
unitCol
.
setPrefWidth
(
75
);
unitCol
.
setMaxWidth
(
100
);
unitCol
.
setEditable
(
false
);
unitCol
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"unit"
));
unitCol
.
setCellFactory
(
TextFieldTableCell
.
forTableColumn
(
new
StringConverter
<
Unit
>()
{
@Override
public
String
toString
(
Unit
object
)
{
return
object
.
getRepresentation
();
}
@Override
public
Unit
fromString
(
String
string
)
{
return
Unit
.
valueOf
(
string
);
}
}));
loadImages
();
loadImages
();
...
@@ -263,11 +242,7 @@ public class CheckDialog {
...
@@ -263,11 +242,7 @@ public class CheckDialog {
setupSaveButton
();
setupSaveButton
();
setupLoadButton
();
setupLoadButton
();
populateTreeWithChecks
(
geometricTable
,
RequirementType
.
GEOMETRY
,
true
);
populateTreeWithChecks
(
semanticTable
,
RequirementType
.
SEMANTIC
,
false
);
globalParametersTable
.
getItems
().
add
(
new
GlobalParameter
(
NUMBER_OF_ROUNDING_PLACES
,
"8"
,
Unit
.
NONE
));
globalParametersTable
.
getItems
().
add
(
new
GlobalParameter
(
"minVertexDistance"
,
"0.0001"
,
Unit
.
METER
));
cancelBtn
.
setOnAction
(
ea
->
stage
.
close
());
cancelBtn
.
setOnAction
(
ea
->
stage
.
close
());
setupCheckButton
();
setupCheckButton
();
...
@@ -293,17 +268,7 @@ public class CheckDialog {
...
@@ -293,17 +268,7 @@ public class CheckDialog {
}
}
}
}
selectAllGCBtn
.
setOnAction
(
ae
->
geometricTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
true
)));
selectNoneGCBtn
.
setOnAction
(
ae
->
geometricTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
false
)));
selectAllSCBtn
.
setOnAction
(
ae
->
semanticTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
true
)));
selectNoneSCBtn
.
setOnAction
(
ae
->
semanticTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
false
)));
try
{
try
{
homepageHyperlink
.
setTooltip
(
new
Tooltip
(
Localization
.
getText
(
"CheckDialog.homepageHyperlink"
)));
homepageHyperlink
.
setTooltip
(
new
Tooltip
(
Localization
.
getText
(
"CheckDialog.homepageHyperlink"
)));
...
@@ -337,6 +302,91 @@ public class CheckDialog {
...
@@ -337,6 +302,91 @@ public class CheckDialog {
}
}
private
void
setupCheckTables
(){
createEnableColumn
(
geometricTable
);
createNameColumn
(
geometricTable
);
createValueColumn
(
geometricTable
);
createUnitColumn
(
geometricTable
);
createEnableColumn
(
semanticTable
);
createNameColumn
(
semanticTable
);
createValueColumn
(
semanticTable
);
createUnitColumn
(
semanticTable
);
createEnableColumn
(
topologyTable
);
createNameColumn
(
topologyTable
);
createValueColumn
(
topologyTable
);
createUnitColumn
(
topologyTable
);
List
<
TableColumn
<
GlobalParameter
,
?>>
columns
=
globalParametersTable
.
getColumns
();
TableColumn
<
GlobalParameter
,
String
>
nameCol
=
new
TableColumn
<>(
NAME
);
columns
.
add
(
nameCol
);
nameCol
.
setMinWidth
(
200
);
nameCol
.
setPrefWidth
(
325
);
nameCol
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"name"
));
setupValueColumns
(
columns
);
TableColumn
<
GlobalParameter
,
Unit
>
unitCol
=
new
TableColumn
<>(
UNIT
);
columns
.
add
(
unitCol
);
unitCol
.
setMinWidth
(
50
);
unitCol
.
setPrefWidth
(
75
);
unitCol
.
setMaxWidth
(
100
);
unitCol
.
setEditable
(
false
);
unitCol
.
setCellValueFactory
(
new
PropertyValueFactory
<>(
"unit"
));
unitCol
.
setCellFactory
(
TextFieldTableCell
.
forTableColumn
(
new
StringConverter
<
Unit
>()
{
@Override
public
String
toString
(
Unit
object
)
{
return
object
.
getRepresentation
();
}
@Override
public
Unit
fromString
(
String
string
)
{
return
Unit
.
valueOf
(
string
);
}
}));
geometricChecksLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.geometricChecksLabel"
));
semanticChecksLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.semanticChecksLabel"
));
topologyChecksLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.topologyChecksLabel"
));
globalParametersLabel
.
setText
(
Localization
.
getText
(
"CheckDialog.globalParametersLabel"
));
populateTreeWithChecks
(
geometricTable
,
RequirementType
.
GEOMETRY
,
true
);
populateTreeWithChecks
(
semanticTable
,
RequirementType
.
SEMANTIC
,
false
);
populateTreeWithChecks
(
topologyTable
,
RequirementType
.
TOPOLOGY
,
false
);
globalParametersTable
.
getItems
().
add
(
new
GlobalParameter
(
NUMBER_OF_ROUNDING_PLACES
,
"8"
,
Unit
.
NONE
));
globalParametersTable
.
getItems
().
add
(
new
GlobalParameter
(
"minVertexDistance"
,
"0.0001"
,
Unit
.
METER
));
selectAllGCBtn
.
setOnAction
(
ae
->
geometricTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
true
)));
selectAllSCBtn
.
setOnAction
(
ae
->
semanticTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
true
)));
selectAllTCBtn
.
setOnAction
(
ae
->
topologyTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
true
)));
selectNoneGCBtn
.
setOnAction
(
ae
->
geometricTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
false
)));
selectNoneSCBtn
.
setOnAction
(
ae
->
semanticTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
false
)));
selectNoneTCBtn
.
setOnAction
(
ae
->
topologyTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
false
)));
String
selectAllText
=
Localization
.
getText
(
"CheckDialog.selectAllChecksBtn"
);
String
selectNoneText
=
Localization
.
getText
(
"CheckDialog.unselectAllChecksBtn"
);
selectAllGCBtn
.
setText
(
selectAllText
);
selectAllSCBtn
.
setText
(
selectAllText
);
selectAllTCBtn
.
setText
(
selectAllText
);
selectNoneSCBtn
.
setText
(
selectNoneText
);
selectNoneGCBtn
.
setText
(
selectNoneText
);
selectNoneTCBtn
.
setText
(
selectNoneText
);
}
private
void
setupValueColumns
(
List
<
TableColumn
<
GlobalParameter
,
?>>
columns
)
{
private
void
setupValueColumns
(
List
<
TableColumn
<
GlobalParameter
,
?>>
columns
)
{
TableColumn
<
GlobalParameter
,
String
>
valueCol
=
new
TableColumn
<>(
VALUE
);
TableColumn
<
GlobalParameter
,
String
>
valueCol
=
new
TableColumn
<>(
VALUE
);
...
@@ -433,6 +483,7 @@ public class CheckDialog {
...
@@ -433,6 +483,7 @@ public class CheckDialog {
});
});
}
}
private
void
applyConfig
(
ValidationConfiguration
config
)
throws
IOException
{
private
void
applyConfig
(
ValidationConfiguration
config
)
throws
IOException
{
FilterConfiguration
filter
=
config
.
getFilter
();
FilterConfiguration
filter
=
config
.
getFilter
();
if
(
filter
!=
null
)
{
if
(
filter
!=
null
)
{
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/resources/de/hft/stuttgart/citydoctor2/gui/CheckDialog.fxml
View file @
c24b7869
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<Hyperlink
fx:id=
"homepageHyperlink"
alignment=
"CENTER"
text=
"Hyperlink"
/>
<Hyperlink
fx:id=
"homepageHyperlink"
alignment=
"CENTER"
text=
"Hyperlink"
/>
</children>
</children>
</HBox>
</HBox>
<TabPane
VBox.vgrow=
"ALWAYS"
>
<TabPane
fx:id=
"modeTab"
VBox.vgrow=
"ALWAYS"
>
<tabs>
<tabs>
<Tab
text=
"CityDoctor"
>
<Tab
text=
"CityDoctor"
>
<content>
<content>
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
<children>
<children>
<VBox
alignment=
"CENTER_LEFT"
maxHeight=
"1.7976931348623157E308"
>
<VBox
alignment=
"CENTER_LEFT"
maxHeight=
"1.7976931348623157E308"
>
<children>
<children>
<Label
fx:id=
"
geometric
ChecksLabel
1
"
text=
"Topology Checks:"
>
<Label
fx:id=
"
topology
ChecksLabel"
text=
"Topology Checks:"
>
<font>
<font>
<Font
size=
"16.0"
/>
<Font
size=
"16.0"
/>
</font>
</font>
...
...
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