-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shortcuts to actions in 'Image info' dialog
Signed-off-by: Taylor Smock <tsmock@meta.com>
- Loading branch information
Showing
5 changed files
with
80 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/imageinfo/MapillaryAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// License: GPL. For details, see LICENSE file. | ||
package org.openstreetmap.josm.plugins.mapillary.gui.imageinfo; | ||
|
||
import javax.swing.Action; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
|
||
/** | ||
* A common class for Mapillary actions | ||
*/ | ||
abstract class MapillaryAction extends JosmAction { | ||
MapillaryAction(String name, String icon, String tooltip, Shortcut shortcut, boolean registerInToolbar, | ||
String toolbarId, boolean installAdapters) { | ||
super(name, icon, tooltip, shortcut, registerInToolbar, toolbarId, installAdapters); | ||
// We don't need the large icon, and it messes with spacing in buttons | ||
this.putValue(Action.LARGE_ICON_KEY, null); | ||
} | ||
} |
18 changes: 12 additions & 6 deletions
18
src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/imageinfo/WebLinkAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters