Ignore:
Timestamp:
2018-03-27T11:48:29+02:00 (7 years ago)
Author:
rebeccas95
Message:

Fixing helpbutton link and some small changes

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  
    113113       // Shortcuts
    114114       SpaceShortcut = Shortcut.registerShortcut("mapmode:space",
    115                tr("ConfirmObjectDrawing"), KeyEvent.VK_SPACE, Shortcut.DIRECT);
     115               "ConfirmObjectDrawing", KeyEvent.VK_SPACE, Shortcut.DIRECT);
    116116       this.SpaceAction = new SpaceAction();
    117117       MainApplication.registerActionShortcut(SpaceAction, SpaceShortcut);
    118118
    119119       EnterShortcut = Shortcut.registerShortcut("mapmode:enter",
    120                tr("ConfirmMultipolygonSelection"), KeyEvent.VK_ENTER, Shortcut.DIRECT);
     120               "ConfirmMultipolygonSelection", KeyEvent.VK_ENTER, Shortcut.DIRECT);
    121121       this.EnterAction = new EnterAction();
    122122       MainApplication.registerActionShortcut(EnterAction, EnterShortcut);
     
    167167
    168168   /**
    169     * The listener which provides the handling of the apply button.
     169    * The listener which provides the handling of the applyButton.
    170170    * Gets the texts which were written by the user and writes them to the OSM-data.
    171171    * After that it checks the tagged data  with the built-in validator file.
     
    258258
    259259   /**
    260     * The listener which is called when the helpbutton got pushed.
     260    * The listener which is called when the helpButton got pushed.
    261261    *
    262262    * @author rebsc
     
    266266           @Override
    267267           public void actionPerformed(ActionEvent e) {
    268                    String topic = "Plugin/indoorHelper";
     268                   String topic = "Plugin/IndoorHelper";
    269269                   //Open HelpBrowser for short description about the plugin
    270270                   HelpBrowser.setUrlForHelpTopic(Optional.ofNullable(topic).orElse("/"));
     
    273273
    274274   /**
    275     * The listener which is called when the addlevelbutton got pushed.
     275    * The listener which is called when the addLevelButton got pushed.
    276276    *
    277277    * @author rebsc
     
    498498
    499499   /**
    500     * Shortcut for Spacebar
     500    * Shortcut for spacebar
    501501    * @author rebsc
    502502    */
     
    540540
    541541   /**
    542     * Shortcut for Enter
     542    * Shortcut for enter
    543543    * @author rebsc
    544544    */
     
    562562
    563563   /**
    564     * Function which unset the disabled state of currently hidden and/or disabled objects which have a
     564    * Function which unsets the disabled state of currently hidden and/or disabled objects which have a
    565565    * specific tag (key). Just unsets the disabled state if object has a tag-value which is part of the
    566566    * 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    *
    571568    * @author rebsc
    572569    * @param key sepcific key to unset hidden objects which contains it
  • applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java

    r34005 r34135  
    158158     *
    159159     * @author rebsc
    160      * @param String the Multipolygon Role as String
     160     * @param role the Multipolygon Role as String
    161161     */
    162162    public void addRelation(String role) {
  • applications/editors/josm/plugins/indoorhelper/src/views/LevelSelectorView.java

    r34024 r34135  
    8585
    8686        //---- 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> "
    8888                + " <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 the spacebar. 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>"));
    9090        infoBar.add(label1);
    9191        dialogPane.add(infoBar, BorderLayout.NORTH);
     
    177177
    178178    /**
    179      * Set the listener for window {@Link LevelSelectorView}
     179     * Set the listener for window {@link LevelSelectorView}
    180180     *
    181181     * @param l the listener to set
  • applications/editors/josm/plugins/indoorhelper/src/views/ToolBoxView.java

    r34005 r34135  
    337337
    338338       //---- applyButton ----
    339        applyButton.setText(tr("Apply"));
     339       applyButton.setText("Apply");
    340340       applyButton.setToolTipText(tr("Add selected tags and/or relations to obeject."));
    341341       applyButton.setEnabled(false);
     
    350350
    351351   /**
    352     * Enables or disables the interactive UI elements of the toolbox.
     352    * Enables or disables the interactive UI elements of {@link #ToolBoxView}.
    353353    *
    354354    * @param enabled set this true for enabled elements
     
    380380
    381381   /**
    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}.
    383383    *
    384384    * @param enabled set this true for enabled elements
     
    391391
    392392   /**
    393     * Enables or disables the interactive text box element {@link #repeatOn}.
     393    * Enables or disables the interactive text box element {@link #repeatOnField}.
    394394    * @param enabled set this true for enabled elements
    395395    */
     
    399399
    400400   /**
    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}.
    402402    * @param enabled set this true for enabled elements
    403403    */
     
    409409
    410410   /**
    411     * Enables or disables the interactive ComboBoxes {@link #multiRoleBox} and {@link #multiEditBox }.
     411    * Enables or disables the interactive ComboBoxes {@link #multiOuterButton} and {@link #multiInnerButton}.
    412412    * @param enabled set this true for enabled elements
    413413    */
     
    420420
    421421   /**
    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.
    423423    */
    424424   public void reset() {
     
    427427
    428428   /**
    429     * Getter for the selected {@link IndoorObject} in the objectBox.
     429    * Getter for the selected {@link IndoorObject} in the {@link #objectBox}.
    430430    *
    431431    * @return the selected indoor object in the object ComboBox.
     
    445445
    446446   /**
    447     * Setter for the level name field.
     447    * Setter for the {@link #levelNameField}.
    448448    *
    449449    * @param name the String for the {@link #levelNameField}
     
    454454
    455455   /**
    456     * Getter for the  name tag {@link TextField}.
    457     *
    458     * @return {@link String} of the name text field
     456    * Getter for the  {@link #nameField}.
     457    *
     458    * @return String of the name text field
    459459    */
    460460   public String getNameText() {
     
    463463
    464464   /**
    465     * Setter for the current level value tag
     465    * Setter for the current level value tag {@link #levelLabel}.
    466466    *
    467467    * @author rebsc
    468     * @param current level value as String
     468    * @param levelTag level value as String
    469469    */
    470470   public void setLevelLabel(String levelTag) {
     
    481481
    482482   /**
    483     * Getter for the CheckBox Status
     483    * Getter for the {@link #levelCheckBox} status.
    484484    *
    485485    * @return boolean which tells if box is selected or not.
     
    490490
    491491   /**
    492     * Getter for the ref {@link TextField}.
    493     *
    494     * @return {@link String} of the ref text field
     492    * Getter for the {@link #refField}.
     493    *
     494    * @return String of the ref text field
    495495    */
    496496   public String getRefText() {
     
    499499
    500500   /**
    501     * Getter for the repeat on {@link TextField}.
    502     * @return {@link String} of the repeat on text field
     501    * Getter for the repeat on TextField.
     502    * @return String of the repeat on text field
    503503    */
    504504   public String getRepeatOnText() {
     
    507507
    508508   /**
    509     * Clears the text boxes and sets an empty {@link String}.
     509    * Clears the text boxes and sets an empty String.
    510510    */
    511511   public void resetUiElements() {
     
    518518
    519519   /**
    520     * Set the listener for the apply button.
     520    * Set the listener for the {@link #applyButton}.
    521521    *
    522522    * @param l the listener to set
     
    527527
    528528   /**
    529     * Set the listener for CheckBox.
     529    * Set the listener for {@link #levelCheckBox}.
    530530    * @param l the listener to set
    531531    */
     
    535535
    536536   /**
    537     * Set the listener for helpButton.
     537    * Set the listener for {@link #helpButton}.
    538538    * @param l the listener to set
    539539    */
     
    543543
    544544   /**
    545     * Set the listener for addLevelButton.
     545    * Set the listener for {@link #addLevelButton}.
    546546    * @param l the listener to set
    547547    */
     
    552552
    553553   /**
    554     * Set the listener for object box.
     554    * Set the listener for {@link #objectBox}.
    555555    *
    556556    * @param l the listener to set
     
    561561
    562562   /**
    563     * Set the listener for the OUTTER button.
     563    * Set the listener for the {@link #multiOuterButton}.
    564564    *
    565565    * @param l the listener to set
     
    570570
    571571   /**
    572     * Set the listener for the INNER button.
     572    * Set the listener for the {@link #multiInnerButton}.
    573573    *
    574574    * @param l the listener to set
     
    579579
    580580   /**
    581     * Set the listener for the multi checkbox.
     581    * Set the listener for the {@link #multiCheckBox}.
    582582    *
    583583    * @param l the listener to set
Note: See TracChangeset for help on using the changeset viewer.