Changeset 3732 in josm for trunk/src/org
- Timestamp:
- 2010-12-19T17:08:47+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/RemoteControlPreference.java
r3715 r3732 45 45 private JCheckBox enableRemoteControl; 46 46 47 private JCheckBox permissionLoadData = new JCheckBox(tr(" load data from API"));48 private JCheckBox permissionImportData = new JCheckBox(tr(" import data from URL"));49 private JCheckBox permissionLoadImagery = new JCheckBox(tr(" load imagery layers"));50 private JCheckBox permissionCreateObjects = new JCheckBox(tr(" create new objects"));51 private JCheckBox permissionChangeSelection = new JCheckBox(tr(" change the selection"));52 private JCheckBox permissionChangeViewport = new JCheckBox(tr(" change the viewport"));53 private JCheckBox permissionReadProtocolversion = new JCheckBox(tr(" read protocol version"));54 private JCheckBox alwaysAskUserConfirm = new JCheckBox(tr(" confirm all Remote Control actions manually"));47 private JCheckBox permissionLoadData = new JCheckBox(tr("Load data from API")); 48 private JCheckBox permissionImportData = new JCheckBox(tr("Import data from URL")); 49 private JCheckBox permissionLoadImagery = new JCheckBox(tr("Load imagery layers")); 50 private JCheckBox permissionCreateObjects = new JCheckBox(tr("Create new objects")); 51 private JCheckBox permissionChangeSelection = new JCheckBox(tr("Change the selection")); 52 private JCheckBox permissionChangeViewport = new JCheckBox(tr("Change the viewport")); 53 private JCheckBox permissionReadProtocolversion = new JCheckBox(tr("Read protocol version")); 54 private JCheckBox alwaysAskUserConfirm = new JCheckBox(tr("Confirm all Remote Control actions manually")); 55 55 56 public void addGui(final PreferenceTabbedPane gui) 57 { 56 public void addGui(final PreferenceTabbedPane gui) { 58 57 59 JPanel remote = gui.createPreferenceTab("remotecontrol.gif", tr("Remote Control"), tr("Settings for the Remote Control freature."));58 JPanel remote = gui.createPreferenceTab("remotecontrol.gif", tr("Remote Control"), tr("Settings for the remote control feature.")); 60 59 61 60 remote.add(enableRemoteControl = new JCheckBox(tr("Enable remote control"), RemoteControl.PROP_REMOTECONTROL_ENABLED.get()), GBC.eol()); … … 87 86 wrapper.add(alwaysAskUserConfirm, GBC.eol().fill(GBC.HORIZONTAL)); 88 87 89 final JLabel portLabel = new JLabel("<html>"+tr("JOSM will always listen onport 8111 on localhost." +90 "Th eport is not configurable because it is referenced by external applications talking to JOSM.") + "</html>");88 final JLabel portLabel = new JLabel("<html>"+tr("JOSM will always listen at port 8111 on localhost." + 89 "This port is not configurable because it is referenced by external applications talking to JOSM.") + "</html>"); 91 90 portLabel.setFont(portLabel.getFont().deriveFont(Font.PLAIN)); 92 91 … … 104 103 alwaysAskUserConfirm.setSelected(Main.pref.getBoolean(RequestHandler.globalConfirmationKey, RequestHandler.globalConfirmationDefault)); 105 104 106 ActionListener remoteControlEnabled = new ActionListener(){ 105 ActionListener remoteControlEnabled = new ActionListener() { 107 106 public void actionPerformed(ActionEvent e) { 108 107 boolean enabled = enableRemoteControl.isSelected(); … … 131 130 Main.pref.put(RequestHandler.globalConfirmationKey, alwaysAskUserConfirm.isSelected()); 132 131 } 133 // FIXME confirm return value - really no restart needed?134 132 return changed; 135 133 }
Note:
See TracChangeset
for help on using the changeset viewer.