Changeset 17021 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-09-12T20:48:56+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DrawBoundariesOfDownloadedDataAction.java
r16529 r17021 8 8 import org.openstreetmap.josm.gui.MainApplication; 9 9 import org.openstreetmap.josm.gui.preferences.display.DrawingPreference; 10 import org.openstreetmap.josm.tools.ImageProvider; 10 11 11 12 /** … … 21 22 public DrawBoundariesOfDownloadedDataAction() { 22 23 super(tr("Draw boundaries of downloaded data"), 24 new ImageProvider("hatched.svg"), 23 25 tr("Enable/disable hatched background rendering of areas outside of the downloaded areas."), 24 26 DrawingPreference.SOURCE_BOUNDS_PROP -
trunk/src/org/openstreetmap/josm/actions/PreferenceToggleAction.java
r16529 r17021 10 10 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; 11 11 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener; 12 import org.openstreetmap.josm.tools.ImageProvider; 12 13 13 14 /** … … 29 30 */ 30 31 public PreferenceToggleAction(String name, String tooltip, BooleanProperty pref) { 31 super(name, null, tooltip, null, false); 32 this(name, null, tooltip, pref); 33 } 34 35 /** 36 * Create a new PreferenceToggleAction. 37 * @param name the (translated) title 38 * @param icon icon to display e.g. in menu 39 * @param tooltip tooltip text 40 * @param pref the preference to toggle 41 * @since 17021 42 */ 43 public PreferenceToggleAction(String name, ImageProvider icon, String tooltip, BooleanProperty pref) { 44 super(name, icon, tooltip, null, false, null, true); 32 45 setToolbarId("toggle-" + pref.getKey()); 33 46 this.pref = pref; -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r16967 r17021 133 133 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetSearchPrimitiveDialog; 134 134 import org.openstreetmap.josm.spi.preferences.Config; 135 import org.openstreetmap.josm.tools.ImageProvider; 135 136 import org.openstreetmap.josm.tools.PlatformManager; 136 137 import org.openstreetmap.josm.tools.Shortcut; … … 828 829 viewMenu.addSeparator(); 829 830 viewMenu.add(new PreferenceToggleAction(tr("Main toolbar"), 831 new ImageProvider("dialogs/main_toolbar.svg"), 830 832 tr("Toggles the visibility of the main toolbar (i.e., the horizontal toolbar)"), 831 833 MapFrame.TOOLBAR_VISIBLE).getCheckbox()); 832 834 viewMenu.add(new PreferenceToggleAction(tr("Edit toolbar"), 835 new ImageProvider("dialogs/edit_toolbar.svg"), 833 836 tr("Toggles the visibility of the edit toolbar (i.e., the vertical tool)"), 834 837 MapFrame.SIDE_TOOLBAR_VISIBLE).getCheckbox());
Note:
See TracChangeset
for help on using the changeset viewer.