Changeset 33997 in osm for applications
- Timestamp:
- 2018-01-12T16:06:40+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/indoorhelper
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/README
r33974 r33997 5 5 6 6 Indoorhelper is a JOSM plugin to support users when creating their own indoor maps. 7 Copyright (C) 2016 Erik Gruschka 7 Copyright (C) 2016 Erik Gruschka, Rebecca Schmidt 8 8 9 9 This program is free software: you can redistribute it and/or modify -
applications/editors/josm/plugins/indoorhelper/build.xml
r33974 r33997 10 10 See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins 11 11 --> 12 <property name="plugin.author" value="Erik Gruschka"/> 13 <property name="plugin.author" value="Rebecca Schmidt"/> 12 <property name="plugin.author" value="Erik Gruschka, Rebecca Schmidt"/> 14 13 <property name="plugin.class" value="org.openstreetmap.josm.plugins.indoorhelper.IndoorHelperPlugin"/> 15 14 <property name="plugin.description" value="Gives assistance for the mapping process of indoor OSM building data. Includes a validator and a mappaint style for indoor-data."/> -
applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java
r33976 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify … … 112 113 // Shortcuts 113 114 SpaceShortcut = Shortcut.registerShortcut("mapmode:space", 114 tr("IndoorHelper <SPACE> Shortcut"), KeyEvent.VK_SPACE, Shortcut.DIRECT);115 "", KeyEvent.VK_SPACE, Shortcut.DIRECT); 115 116 this.SpaceAction = new SpaceAction(); 116 117 MainApplication.registerActionShortcut(SpaceAction,SpaceShortcut); 117 118 118 119 EnterShortcut = Shortcut.registerShortcut("mapmode:ALT", 119 tr("IndoorHelper <ENTER> Shortcut"), KeyEvent.VK_ENTER, Shortcut.DIRECT);120 "", KeyEvent.VK_ENTER, Shortcut.DIRECT); 120 121 this.EnterAction = new EnterAction(); 121 122 MainApplication.registerActionShortcut(EnterAction,EnterShortcut); … … 188 189 List<Tag> tags = new ArrayList<>(); 189 190 if (toolboxView.getLevelCheckBoxStatus() == false && !levelValue.equals("")) { 190 tags.add(new Tag( tr("level"),levelValue));191 tags.add(new Tag("level",levelValue)); 191 192 } 192 193 if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) { 193 tags.add(new Tag( tr("level_name"),toolboxView.getLevelNameText()));194 tags.add(new Tag("level_name",toolboxView.getLevelNameText())); 194 195 } 195 196 if (!toolboxView.getNameText().isEmpty()) { 196 tags.add(new Tag( tr("name"), toolboxView.getNameText()));197 tags.add(new Tag("name", toolboxView.getNameText())); 197 198 } 198 199 if (!toolboxView.getRefText().isEmpty()) { 199 tags.add(new Tag( tr("ref"), toolboxView.getRefText()));200 tags.add(new Tag("ref", toolboxView.getRefText())); 200 201 } 201 202 if (!toolboxView.getRepeatOnText().isEmpty()){ 202 tags.add(new Tag( tr("repeat_on"),toolboxView.getRepeatOnText()));203 tags.add(new Tag("repeat_on",toolboxView.getRepeatOnText())); 203 204 } 204 205 if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) { 205 tags.add(new Tag( tr("level_name"),toolboxView.getLevelNameText()));206 tags.add(new Tag("level_name",toolboxView.getLevelNameText())); 206 207 } 207 208 … … 273 274 @Override 274 275 public void actionPerformed(ActionEvent e) { 275 String topic = tr("ToolB"); 276 HelpBrowser.setUrlForHelpTopic(Optional.ofNullable(topic).orElse(tr("/"))); 276 String topic = "indoorHelper"; 277 //Open HelpBrowser for short description about the plugin 278 HelpBrowser.setUrlForHelpTopic(Optional.ofNullable(topic).orElse("/")); 277 279 } 278 280 } … … 545 547 546 548 List<Tag> tags = new ArrayList<>(); 547 tags.add(new Tag( tr("level"),levelNum));549 tags.add(new Tag("level",levelNum)); 548 550 549 551 //Add level tag -
applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java
r33974 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify -
applications/editors/josm/plugins/indoorhelper/src/model/PresetCounter.java
r33974 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify -
applications/editors/josm/plugins/indoorhelper/src/model/TagCatalog.java
r33974 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify … … 18 19 19 20 package model; 20 21 /**22 * Class to provide the indoor tagging catalog.23 *24 * @author egru25 * @author rebsc26 *27 */28 21 29 22 /** … … 55 48 switch(o) { 56 49 case CONCRETE_WALL: 57 tagList.add(new Tag( tr("indoor"), tr("wall")));58 tagList.add(new Tag( tr("material"), tr("concrete")));50 tagList.add(new Tag("indoor", "wall")); 51 tagList.add(new Tag("material", "concrete")); 59 52 return tagList; 60 53 case DOOR_PRIVATE: 61 tagList.add(new Tag( tr("door"), tr("yes")));54 tagList.add(new Tag("door", "yes")); 62 55 tagList.add(new Tag ("access","private")); 63 56 return tagList; 64 57 case DOOR_PUBLIC: 65 tagList.add(new Tag( tr("door"), tr("yes")));66 tagList.add(new Tag ( tr("access"),tr("public")));58 tagList.add(new Tag("door", "yes")); 59 tagList.add(new Tag ("access","public")); 67 60 return tagList; 68 61 case ELEVATOR: 69 tagList.add(new Tag( tr("highway"), tr("elevator")));62 tagList.add(new Tag("highway", "elevator")); 70 63 return tagList; 71 64 case ENTRANCE: 72 tagList.add(new Tag( tr("entrance"), tr("yes")));65 tagList.add(new Tag("entrance", "yes")); 73 66 return tagList; 74 67 case ENTRANCE_EXIT_ONLY: 75 tagList.add(new Tag( tr("entrance"), tr("exit")));68 tagList.add(new Tag("entrance", "exit")); 76 69 return tagList; 77 70 case ACCESS_PRIVATE: 78 tagList.add(new Tag( tr("access"),tr("private")));71 tagList.add(new Tag("access","private")); 79 72 return tagList; 80 73 case ACCESS_PUBLIC: 81 tagList.add(new Tag( tr("access"),tr("public")));74 tagList.add(new Tag("access","public")); 82 75 return tagList; 83 76 case TOILET_FEMALE: 84 tagList.add(new Tag( tr("indoor"), tr("room")));85 tagList.add(new Tag( tr("amenity"), tr("toilets")));86 tagList.add(new Tag( tr("female"), tr("yes")));77 tagList.add(new Tag("indoor", "room")); 78 tagList.add(new Tag("amenity", "toilets")); 79 tagList.add(new Tag("female", "yes")); 87 80 return tagList; 88 81 case GLASS_WALL: 89 tagList.add(new Tag( tr("indoor"), tr("wall")));90 tagList.add(new Tag( tr("material"), tr("glass")));82 tagList.add(new Tag("indoor", "wall")); 83 tagList.add(new Tag("material", "glass")); 91 84 return tagList; 92 85 case TOILET_MALE: 93 tagList.add(new Tag( tr("indoor"), tr("room")));94 tagList.add(new Tag( tr("amenity"), tr("toilets")));95 tagList.add(new Tag( tr("male"), tr("yes")));86 tagList.add(new Tag("indoor", "room")); 87 tagList.add(new Tag("amenity", "toilets")); 88 tagList.add(new Tag("male", "yes")); 96 89 return tagList; 97 90 case ROOM: 98 tagList.add(new Tag( tr("indoor"), tr("room")));91 tagList.add(new Tag("indoor", "room")); 99 92 return tagList; 100 93 case STEPS: 101 tagList.add(new Tag( tr("highway"), tr("steps")));94 tagList.add(new Tag("highway", "steps")); 102 95 return tagList; 103 96 case CORRIDOR: 104 tagList.add(new Tag( tr("indoor"), tr("corridor")));97 tagList.add(new Tag("indoor", "corridor")); 105 98 return tagList; 106 99 case BENCH: 107 tagList.add(new Tag( tr("amenity"),tr("bench")));100 tagList.add(new Tag("amenity","bench")); 108 101 return tagList; 109 102 case ZONE: 110 tagList.add(new Tag( tr("area"),tr("zone")));103 tagList.add(new Tag("area","zone")); 111 104 return tagList; 112 105 case NONE: -
applications/editors/josm/plugins/indoorhelper/src/org/openstreetmap/josm/plugins/indoorhelper/IndoorHelperPlugin.java
r33974 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify -
applications/editors/josm/plugins/indoorhelper/src/views/LevelSelectorView.java
r33974 r33997 1 /* 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 1 19 package views; 2 20 -
applications/editors/josm/plugins/indoorhelper/src/views/PresetButton.java
r33974 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify -
applications/editors/josm/plugins/indoorhelper/src/views/ToolBoxView.java
r33974 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify … … 16 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 */ 18 19 19 package views; 20 20
Note:
See TracChangeset
for help on using the changeset viewer.