Changeset 34135 in osm for applications/editors/josm/plugins
- Timestamp:
- 2018-03-27T11:48: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
r34013 r34135 113 113 // Shortcuts 114 114 SpaceShortcut = Shortcut.registerShortcut("mapmode:space", 115 tr("ConfirmObjectDrawing"), KeyEvent.VK_SPACE, Shortcut.DIRECT);115 "ConfirmObjectDrawing", KeyEvent.VK_SPACE, Shortcut.DIRECT); 116 116 this.SpaceAction = new SpaceAction(); 117 117 MainApplication.registerActionShortcut(SpaceAction, SpaceShortcut); 118 118 119 119 EnterShortcut = Shortcut.registerShortcut("mapmode:enter", 120 tr("ConfirmMultipolygonSelection"), KeyEvent.VK_ENTER, Shortcut.DIRECT);120 "ConfirmMultipolygonSelection", KeyEvent.VK_ENTER, Shortcut.DIRECT); 121 121 this.EnterAction = new EnterAction(); 122 122 MainApplication.registerActionShortcut(EnterAction, EnterShortcut); … … 167 167 168 168 /** 169 * The listener which provides the handling of the apply button.169 * The listener which provides the handling of the applyButton. 170 170 * Gets the texts which were written by the user and writes them to the OSM-data. 171 171 * After that it checks the tagged data with the built-in validator file. … … 258 258 259 259 /** 260 * The listener which is called when the help button got pushed.260 * The listener which is called when the helpButton got pushed. 261 261 * 262 262 * @author rebsc … … 266 266 @Override 267 267 public void actionPerformed(ActionEvent e) { 268 String topic = "Plugin/ indoorHelper";268 String topic = "Plugin/IndoorHelper"; 269 269 //Open HelpBrowser for short description about the plugin 270 270 HelpBrowser.setUrlForHelpTopic(Optional.ofNullable(topic).orElse("/")); … … 273 273 274 274 /** 275 * The listener which is called when the add levelbutton got pushed.275 * The listener which is called when the addLevelButton got pushed. 276 276 * 277 277 * @author rebsc … … 498 498 499 499 /** 500 * Shortcut for Spacebar500 * Shortcut for spacebar 501 501 * @author rebsc 502 502 */ … … 540 540 541 541 /** 542 * Shortcut for Enter542 * Shortcut for enter 543 543 * @author rebsc 544 544 */ … … 562 562 563 563 /** 564 * Function which unset the disabled state of currently hidden and/or disabled objects which have a564 * Function which unsets the disabled state of currently hidden and/or disabled objects which have a 565 565 * specific tag (key). Just unsets the disabled state if object has a tag-value which is part of the 566 566 * current working level. 567 * Specific example: key: repeat_on ; value: 1-4; 568 * If current selected workinglevel is "3" all objects with the leveltag "level=3" are hidden but the 569 * objects with the key "repeat_on" and the value which includes "3" or is (minValue+1) - maxValue (4-...), 570 * because repeat_on tag starts on the current workinglevel+1. 567 * 571 568 * @author rebsc 572 569 * @param key sepcific key to unset hidden objects which contains it -
applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java
r34005 r34135 158 158 * 159 159 * @author rebsc 160 * @param Stringthe Multipolygon Role as String160 * @param role the Multipolygon Role as String 161 161 */ 162 162 public void addRelation(String role) { -
applications/editors/josm/plugins/indoorhelper/src/views/LevelSelectorView.java
r34024 r34135 85 85 86 86 //---- Label1 ---- 87 label1.setText(tr("<html> Please insert the new level number you want to add.<br> "87 label1.setText(tr("<html> Please insert the new level-tag number you want to add.<br> " 88 88 + " <i>Info</i>: <br> If the OK button got pressed you will switch to the drawing action.<br>" 89 + "To finish the new object please press thespacebar. The new level<br>will be tagged automatically. </html>"));89 + "To finish the new object please press spacebar. The new level<br>will be tagged automatically. </html>")); 90 90 infoBar.add(label1); 91 91 dialogPane.add(infoBar, BorderLayout.NORTH); … … 177 177 178 178 /** 179 * Set the listener for window {@ Link LevelSelectorView}179 * Set the listener for window {@link LevelSelectorView} 180 180 * 181 181 * @param l the listener to set -
applications/editors/josm/plugins/indoorhelper/src/views/ToolBoxView.java
r34005 r34135 337 337 338 338 //---- applyButton ---- 339 applyButton.setText( tr("Apply"));339 applyButton.setText("Apply"); 340 340 applyButton.setToolTipText(tr("Add selected tags and/or relations to obeject.")); 341 341 applyButton.setEnabled(false); … … 350 350 351 351 /** 352 * Enables or disables the interactive UI elements of the toolbox.352 * Enables or disables the interactive UI elements of {@link #ToolBoxView}. 353 353 * 354 354 * @param enabled set this true for enabled elements … … 380 380 381 381 /** 382 * Enables or disables the interactive text box elements {@link #name } and {@link #ref}.382 * Enables or disables the interactive text box elements {@link #nameField} and {@link #refField}. 383 383 * 384 384 * @param enabled set this true for enabled elements … … 391 391 392 392 /** 393 * Enables or disables the interactive text box element {@link #repeatOn }.393 * Enables or disables the interactive text box element {@link #repeatOnField}. 394 394 * @param enabled set this true for enabled elements 395 395 */ … … 399 399 400 400 /** 401 * Enables or disables the interactive text box element {@link #levelName }.401 * Enables or disables the interactive text box element {@link #levelNameField} and {@link #addLevelButton}. 402 402 * @param enabled set this true for enabled elements 403 403 */ … … 409 409 410 410 /** 411 * Enables or disables the interactive ComboBoxes {@link #multi RoleBox} and {@link #multiEditBox}.411 * Enables or disables the interactive ComboBoxes {@link #multiOuterButton} and {@link #multiInnerButton}. 412 412 * @param enabled set this true for enabled elements 413 413 */ … … 420 420 421 421 /** 422 * Resets the view by making the UI elements disabled and deleting the level list.422 * Resets the view by making the UI elements disabled. 423 423 */ 424 424 public void reset() { … … 427 427 428 428 /** 429 * Getter for the selected {@link IndoorObject} in the objectBox.429 * Getter for the selected {@link IndoorObject} in the {@link #objectBox}. 430 430 * 431 431 * @return the selected indoor object in the object ComboBox. … … 445 445 446 446 /** 447 * Setter for the level name field.447 * Setter for the {@link #levelNameField}. 448 448 * 449 449 * @param name the String for the {@link #levelNameField} … … 454 454 455 455 /** 456 * Getter for the name tag {@link TextField}.457 * 458 * @return {@link String}of the name text field456 * Getter for the {@link #nameField}. 457 * 458 * @return String of the name text field 459 459 */ 460 460 public String getNameText() { … … 463 463 464 464 /** 465 * Setter for the current level value tag 465 * Setter for the current level value tag {@link #levelLabel}. 466 466 * 467 467 * @author rebsc 468 * @param currentlevel value as String468 * @param levelTag level value as String 469 469 */ 470 470 public void setLevelLabel(String levelTag) { … … 481 481 482 482 /** 483 * Getter for the CheckBox Status483 * Getter for the {@link #levelCheckBox} status. 484 484 * 485 485 * @return boolean which tells if box is selected or not. … … 490 490 491 491 /** 492 * Getter for the ref {@link TextField}.493 * 494 * @return {@link String}of the ref text field492 * Getter for the {@link #refField}. 493 * 494 * @return String of the ref text field 495 495 */ 496 496 public String getRefText() { … … 499 499 500 500 /** 501 * Getter for the repeat on {@link TextField}.502 * @return {@link String}of the repeat on text field501 * Getter for the repeat on TextField. 502 * @return String of the repeat on text field 503 503 */ 504 504 public String getRepeatOnText() { … … 507 507 508 508 /** 509 * Clears the text boxes and sets an empty {@link String}.509 * Clears the text boxes and sets an empty String. 510 510 */ 511 511 public void resetUiElements() { … … 518 518 519 519 /** 520 * Set the listener for the apply button.520 * Set the listener for the {@link #applyButton}. 521 521 * 522 522 * @param l the listener to set … … 527 527 528 528 /** 529 * Set the listener for CheckBox.529 * Set the listener for {@link #levelCheckBox}. 530 530 * @param l the listener to set 531 531 */ … … 535 535 536 536 /** 537 * Set the listener for helpButton.537 * Set the listener for {@link #helpButton}. 538 538 * @param l the listener to set 539 539 */ … … 543 543 544 544 /** 545 * Set the listener for addLevelButton.545 * Set the listener for {@link #addLevelButton}. 546 546 * @param l the listener to set 547 547 */ … … 552 552 553 553 /** 554 * Set the listener for object box.554 * Set the listener for {@link #objectBox}. 555 555 * 556 556 * @param l the listener to set … … 561 561 562 562 /** 563 * Set the listener for the OUTTER button.563 * Set the listener for the {@link #multiOuterButton}. 564 564 * 565 565 * @param l the listener to set … … 570 570 571 571 /** 572 * Set the listener for the INNER button.572 * Set the listener for the {@link #multiInnerButton}. 573 573 * 574 574 * @param l the listener to set … … 579 579 580 580 /** 581 * Set the listener for the multi checkbox.581 * Set the listener for the {@link #multiCheckBox}. 582 582 * 583 583 * @param l the listener to set
Note:
See TracChangeset
for help on using the changeset viewer.