Changeset 6066 in josm
- Timestamp:
- 2013-07-16T17:59:27+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/oauth/OsmPrivileges.java
r3083 r6066 8 8 private boolean allowReadPrefs; 9 9 private boolean allowWritePrefs; 10 private boolean allowModifyNotes; 10 11 11 12 public boolean isAllowWriteApi() { … … 39 40 this.allowWritePrefs = allowWritePrefs; 40 41 } 42 43 public boolean isAllowModifyNotes() { 44 return allowModifyNotes; 45 } 46 47 public void setAllowModifyNotes(boolean allowModifyNotes) { 48 this.allowModifyNotes = allowModifyNotes; 49 } 41 50 } -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r5874 r6066 468 468 parameters.put("allow_read_prefs", "yes"); 469 469 } 470 if(privileges.isAllowModifyNotes()) { 471 parameters.put("allow_write_notes", "yes"); 472 } 470 473 471 474 parameters.put("commit", "Save changes"); -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmPrivilegesPanel.java
r3530 r6066 22 22 private JCheckBox cbWritePrefs; 23 23 private JCheckBox cbReadPrefs; 24 private JCheckBox cbModifyNotes; 24 25 25 26 protected void build() { … … 71 72 cbWritePrefs.setSelected(true); 72 73 74 gc.gridy = 5; 75 add(cbModifyNotes = new JCheckBox(), gc); 76 cbModifyNotes.setText(tr("Allow modifications of notes")); 77 cbModifyNotes.setToolTipText(tr("Select to grant JOSM the right to modify notes on your behalf")); 78 cbModifyNotes.setSelected(true); 79 73 80 // filler - grab remaining space 74 gc.gridy = 5;81 gc.gridy = 6; 75 82 gc.fill = GridBagConstraints.BOTH; 76 83 gc.weightx = 1.0; … … 95 102 privileges.setAllowWritePrefs(cbWritePrefs.isSelected()); 96 103 privileges.setAllowReadPrefs(cbReadPrefs.isSelected()); 104 privileges.setAllowModifyNotes(cbModifyNotes.isSelected()); 97 105 return privileges; 98 106 }
Note:
See TracChangeset
for help on using the changeset viewer.