Changeset 34179 in osm for applications/editors/josm/plugins/indoorhelper/src
- Timestamp:
- 2018-05-03T16:22:29+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/indoorhelper/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java
r34135 r34179 183 183 // collecting all tags 184 184 List<Tag> tags = new ArrayList<>(); 185 if (toolboxView.getLevelCheckBoxStatus() == false&& !levelValue.equals("")) {185 if (!toolboxView.getLevelCheckBoxStatus() && !levelValue.equals("")) { 186 186 tags.add(new Tag("level", levelValue)); 187 187 } 188 188 if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) { 189 189 tags.add(new Tag("level_name", toolboxView.getLevelNameText())); 190 190 } 191 191 if (!toolboxView.getNameText().isEmpty()) { 192 192 tags.add(new Tag("name", toolboxView.getNameText())); … … 196 196 } 197 197 if (!toolboxView.getRepeatOnText().isEmpty()) { 198 199 200 201 202 198 tags.add(new Tag("repeat_on", toolboxView.getRepeatOnText())); 199 } 200 if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) { 201 tags.add(new Tag("level_name", toolboxView.getLevelNameText())); 202 } 203 203 204 204 // Tagging to OSM Data 205 205 model.addTagsToOSM(indoorObject, tags); 206 206 207 // Reset uielements207 // Reset UI elements 208 208 toolboxView.resetUiElements(); 209 209 -
applications/editors/josm/plugins/indoorhelper/src/model/PresetCounter.java
r34005 r34179 63 63 counterList.add(new ObjectCounter(IndoorObject.TOILET_FEMALE, 0)); 64 64 counterList.add(new ObjectCounter(IndoorObject.TOILET_MALE, 0)); 65 counterList.add(new ObjectCounter(IndoorObject. ZONE, 0));65 counterList.add(new ObjectCounter(IndoorObject.AREA, 0)); 66 66 counterList.add(new ObjectCounter(IndoorObject.BENCH, 0)); 67 67 } … … 138 138 } 139 139 } 140 141 140 142 } -
applications/editors/josm/plugins/indoorhelper/src/model/TagCatalog.java
r34005 r34179 91 91 tagList.add(new Tag("amenity", "bench")); 92 92 return tagList; 93 case ZONE:94 tagList.add(new Tag(" area", "zone"));93 case AREA: 94 tagList.add(new Tag("indoor", "area")); 95 95 return tagList; 96 case NONE: 96 case NONE : 97 97 return tagList; 98 98 default: … … 100 100 return tagList; 101 101 } 102 102 103 } 103 104 … … 109 110 */ 110 111 public enum IndoorObject { 111 CONCRETE_WALL, GLASS_WALL, ROOM, TOILET_MALE, TOILET_FEMALE, ELEVATOR, DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE, 112 ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC, STEPS, CORRIDOR, BENCH, ZONE, NONE;112 CONCRETE_WALL, GLASS_WALL, ROOM, TOILET_MALE, TOILET_FEMALE, ELEVATOR, DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE, 113 ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC, STEPS, CORRIDOR, BENCH, AREA, NONE; 113 114 } 114 115 } -
applications/editors/josm/plugins/indoorhelper/src/views/ToolBoxView.java
r34135 r34179 286 286 GridBagConstraints.CENTER, GridBagConstraints.BOTH, 287 287 new Insets(0, 0, 5, 5), 0, 0)); 288 289 288 //---- preset3 ---- 290 289 preset3.setEnabled(false); … … 337 336 338 337 //---- applyButton ---- 339 applyButton.setText( "Apply");338 applyButton.setText(tr("Apply")); 340 339 applyButton.setToolTipText(tr("Add selected tags and/or relations to obeject.")); 341 340 applyButton.setEnabled(false); … … 506 505 } 507 506 507 508 508 /** 509 509 * Clears the text boxes and sets an empty String. 510 510 */ 511 511 public void resetUiElements() { 512 this.nameField.setText( tr(""));513 this.levelNameField.setText( tr(""));514 this.refField.setText( tr(""));515 this.repeatOnField.setText( tr(""));516 this.levelNameField.setText( tr(""));512 this.nameField.setText(""); 513 this.levelNameField.setText(""); 514 this.refField.setText(""); 515 this.repeatOnField.setText(""); 516 this.levelNameField.setText(""); 517 517 } 518 518
Note:
See TracChangeset
for help on using the changeset viewer.