- Timestamp:
- 2009-11-28T16:22:54+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/FullscreenToggleAction.java
r2533 r2534 46 46 return Main.platform instanceof PlatformHookUnixoid && gd.isFullScreenSupported(); 47 47 } 48 /*49 final JCheckBoxMenuItem fullscreen = new JCheckBoxMenuItem(tr("Full Screen"));50 fullscreen.setSelected(Main.pref.getBoolean("draw.fullscreen", false));51 fullscreen.setAccelerator(Shortcut.registerShortcut("menu:view:fullscreen", tr("Toggle Full Screen view"),52 KeyEvent.VK_F11, Shortcut.GROUP_DIRECT).getKeyStroke());53 54 fullscreen.addActionListener(new ActionListener() {55 public void actionPerformed(ActionEvent ev) {56 Main.pref.put("draw.fullscreen", fullscreen.isSelected());57 58 if (Main.pref.getBoolean("draw.fullscreen")) {59 Frame frame = (Frame)Main.parent;60 gd.setFullScreenWindow(frame);61 } else {62 gd.setFullScreenWindow(null);63 }64 }65 });66 viewMenu.addSeparator();67 viewMenu.add(fullscreen);68 }69 */70 48 71 49 public void addButtonModel(ButtonModel model) {
Note:
See TracChangeset
for help on using the changeset viewer.