Changeset 2534 in josm for trunk/src


Ignore:
Timestamp:
2009-11-28T16:22:54+01:00 (15 years ago)
Author:
Gubaer
Message:

applied #4033: patch by avar: "Fullscreen View" should be turned into a JosmAction (update)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/FullscreenToggleAction.java

    r2533 r2534  
    4646        return Main.platform instanceof PlatformHookUnixoid && gd.isFullScreenSupported();
    4747    }
    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         */
    7048
    7149    public void addButtonModel(ButtonModel model) {
Note: See TracChangeset for help on using the changeset viewer.