Ignore:
Timestamp:
2018-05-03T16:22:29+02:00 (7 years ago)
Author:
rebeccas95
Message:

Small changes on MapCSS, replace tag area=zone with indoor=area.

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  
    183183               // collecting all tags
    184184               List<Tag> tags = new ArrayList<>();
    185                if (toolboxView.getLevelCheckBoxStatus() == false && !levelValue.equals("")) {
     185               if (!toolboxView.getLevelCheckBoxStatus() && !levelValue.equals("")) {
    186186                   tags.add(new Tag("level", levelValue));
    187187               }
    188                   if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) {
     188               if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) {
    189189                      tags.add(new Tag("level_name", toolboxView.getLevelNameText()));
    190                   }
     190               }
    191191               if (!toolboxView.getNameText().isEmpty()) {
    192192                   tags.add(new Tag("name", toolboxView.getNameText()));
     
    196196               }
    197197               if (!toolboxView.getRepeatOnText().isEmpty()) {
    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                   }
     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               }
    203203
    204204           // Tagging to OSM Data
    205205           model.addTagsToOSM(indoorObject, tags);
    206206
    207            // Reset ui elements
     207           // Reset UI elements
    208208           toolboxView.resetUiElements();
    209209
  • applications/editors/josm/plugins/indoorhelper/src/model/PresetCounter.java

    r34005 r34179  
    6363        counterList.add(new ObjectCounter(IndoorObject.TOILET_FEMALE, 0));
    6464        counterList.add(new ObjectCounter(IndoorObject.TOILET_MALE, 0));
    65         counterList.add(new ObjectCounter(IndoorObject.ZONE, 0));
     65        counterList.add(new ObjectCounter(IndoorObject.AREA, 0));
    6666        counterList.add(new ObjectCounter(IndoorObject.BENCH, 0));
    6767    }
     
    138138        }
    139139    }
     140   
     141   
    140142}
  • applications/editors/josm/plugins/indoorhelper/src/model/TagCatalog.java

    r34005 r34179  
    9191            tagList.add(new Tag("amenity", "bench"));
    9292            return tagList;
    93         case ZONE:
    94             tagList.add(new Tag("area", "zone"));
     93        case AREA:
     94            tagList.add(new Tag("indoor", "area"));
    9595            return tagList;
    96         case NONE:
     96        case NONE :
    9797            return tagList;
    9898        default:
     
    100100            return tagList;
    101101        }
     102       
    102103    }
    103104
     
    109110     */
    110111    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;
    113114    }
    114115}
  • applications/editors/josm/plugins/indoorhelper/src/views/ToolBoxView.java

    r34135 r34179  
    286286           GridBagConstraints.CENTER, GridBagConstraints.BOTH,
    287287           new Insets(0, 0, 5, 5), 0, 0));
    288 
    289288       //---- preset3 ----
    290289       preset3.setEnabled(false);
     
    337336
    338337       //---- applyButton ----
    339        applyButton.setText("Apply");
     338       applyButton.setText(tr("Apply"));
    340339       applyButton.setToolTipText(tr("Add selected tags and/or relations to obeject."));
    341340       applyButton.setEnabled(false);
     
    506505   }
    507506
     507   
    508508   /**
    509509    * Clears the text boxes and sets an empty String.
    510510    */
    511511   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("");
    517517   }
    518518
Note: See TracChangeset for help on using the changeset viewer.