-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make reviewing faster with Ctrl+Alt+Enter
Now toggling feature actually becomes useful, no need to use mouse any more... New icons..
- Loading branch information
1 parent
29e3781
commit 98bf78e
Showing
31 changed files
with
686 additions
and
334 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.openstreetmap.josm' version '0.8.2' | ||
} | ||
|
||
josm { | ||
debugPort = 2019 | ||
} |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
plugin.main.version = 18822 | ||
plugin.compile.version = 18822 | ||
plugin.canloadatruntime = true | ||
plugin.author = David Karlaš | ||
plugin.class = org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.JosmReviewPlugin | ||
plugin.icon = images/dialogs/reviewPlugin/icon.svg | ||
plugin.link = https://github.com/DavidKarlas/JosmReviewPlugin | ||
plugin.description = JOSM plugin for reviewing changes before upload. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...a/org/openstreetmap/josm/plugins/davidkarlas/JosmReviewPlugin/Actions/NextItemAction.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,28 @@ | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.Actions; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.KeyEvent; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.gui.MainApplication; | ||
import org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.ReviewListDialog; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
import org.openstreetmap.josm.tools.ImageProvider; | ||
|
||
public class NextItemAction extends JosmAction { | ||
|
||
public NextItemAction() { | ||
super(null, new ImageProvider("dialogs/reviewPlugin/down-c"), | ||
"Moves to next item in Review plugin list.", | ||
Shortcut.registerShortcut("Moves to next item in Review plugin", | ||
"Moves to next item in Review plugin list.", | ||
KeyEvent.VK_DOWN, Shortcut.ALT_CTRL), | ||
false, "reviewChanges", true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent event) { | ||
ReviewListDialog reviewListDialog = MainApplication.getMap().getToggleDialog(ReviewListDialog.class); | ||
reviewListDialog.NextItem(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...streetmap/josm/plugins/davidkarlas/JosmReviewPlugin/Actions/NextUnreviewedItemAction.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,28 @@ | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.Actions; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.KeyEvent; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.gui.MainApplication; | ||
import org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.ReviewListDialog; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
import org.openstreetmap.josm.tools.ImageProvider; | ||
|
||
public class NextUnreviewedItemAction extends JosmAction { | ||
|
||
public NextUnreviewedItemAction() { | ||
super(null, new ImageProvider("dialogs/reviewPlugin/circle-double-down"), | ||
"Moves to next unreviewed item in list.", | ||
Shortcut.registerShortcut("Moves to next unreviewed item in Review plugin list.", | ||
"Moves to next unreviewed item in Review plugin list.", | ||
KeyEvent.VK_RIGHT, Shortcut.ALT_CTRL), | ||
false, "reviewChanges", true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent event) { | ||
ReviewListDialog reviewListDialog = MainApplication.getMap().getToggleDialog(ReviewListDialog.class); | ||
reviewListDialog.NextUnreviewedItem(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...g/openstreetmap/josm/plugins/davidkarlas/JosmReviewPlugin/Actions/PreviousItemAction.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,28 @@ | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.Actions; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.KeyEvent; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.gui.MainApplication; | ||
import org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.ReviewListDialog; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
import org.openstreetmap.josm.tools.ImageProvider; | ||
|
||
public class PreviousItemAction extends JosmAction { | ||
|
||
public PreviousItemAction() { | ||
super(null, new ImageProvider("dialogs/reviewPlugin/up-c"), | ||
"Moves to previous item in Review plugin list.", | ||
Shortcut.registerShortcut("Moves to previous item in Review plugin", | ||
"Moves to previous item in Review plugin list.", | ||
KeyEvent.VK_UP, Shortcut.ALT_CTRL), | ||
false, "reviewChanges", true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent event) { | ||
ReviewListDialog reviewListDialog = MainApplication.getMap().getToggleDialog(ReviewListDialog.class); | ||
reviewListDialog.PreviousItem(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...etmap/josm/plugins/davidkarlas/JosmReviewPlugin/Actions/PreviousUnreviewedItemAction.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,28 @@ | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.Actions; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.KeyEvent; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.gui.MainApplication; | ||
import org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.ReviewListDialog; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
import org.openstreetmap.josm.tools.ImageProvider; | ||
|
||
public class PreviousUnreviewedItemAction extends JosmAction { | ||
|
||
public PreviousUnreviewedItemAction() { | ||
super(null, new ImageProvider("dialogs/reviewPlugin/circle-double-up"), | ||
"Moves to previous unreviewed item in list.", | ||
Shortcut.registerShortcut("Moves to previous unreviewed item in Review plugin list.", | ||
"Moves to previous unreviewed item in Review plugin list.", | ||
KeyEvent.VK_LEFT, Shortcut.ALT_CTRL), | ||
false, "reviewChanges", true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent event) { | ||
ReviewListDialog reviewListDialog = MainApplication.getMap().getToggleDialog(ReviewListDialog.class); | ||
reviewListDialog.PreviousUnreviewedItem(); | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
...s/JosmReviewPlugin/StartReviewAction.java → ...viewPlugin/Actions/StartReviewAction.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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin; | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.Actions; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.KeyEvent; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.gui.MainApplication; | ||
import org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.ReviewListDialog; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
import org.openstreetmap.josm.tools.ImageProvider; | ||
|
||
public class StartReviewAction extends JosmAction { | ||
|
||
public StartReviewAction() { | ||
super("Start Review", new ImageProvider("dialogs/reviewPlugin/icon"), | ||
"Shows 'Review Changes' pad and updates content with latest changes to be reviewed.", | ||
Shortcut.registerShortcut("Start Review", | ||
super(null, new ImageProvider("dialogs/reviewPlugin/icon"), | ||
"Updates list with latest changes to be reviewed.", | ||
Shortcut.registerShortcut("Start Review plugin", | ||
"Shows 'Review Changes' pad and updates content with latest changes to be reviewed.", | ||
KeyEvent.VK_R, Shortcut.CTRL_SHIFT), | ||
KeyEvent.VK_R, Shortcut.ALT_CTRL), | ||
false, "reviewChanges", true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent event) { | ||
ReviewListDialog reviewListDialog = MainApplication.getMap().getToggleDialog(ReviewListDialog.class); | ||
reviewListDialog.StartReview(); | ||
reviewListDialog.buttonShown(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ava/org/openstreetmap/josm/plugins/davidkarlas/JosmReviewPlugin/Actions/ToggleAction.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,28 @@ | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.Actions; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.KeyEvent; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.gui.MainApplication; | ||
import org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.ReviewListDialog; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
import org.openstreetmap.josm.tools.ImageProvider; | ||
|
||
public class ToggleAction extends JosmAction { | ||
|
||
public ToggleAction() { | ||
super(null, new ImageProvider("dialogs/reviewPlugin/checklist"), | ||
"Toggles review state of selected item.", | ||
Shortcut.registerShortcut("Toggle item in Review plugin", | ||
"Toggles review state of selected item.", | ||
KeyEvent.VK_SPACE, Shortcut.ALT_CTRL), | ||
false, "reviewChanges", true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent event) { | ||
ReviewListDialog reviewListDialog = MainApplication.getMap().getToggleDialog(ReviewListDialog.class); | ||
reviewListDialog.ToggleReviewed(false); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...openstreetmap/josm/plugins/davidkarlas/JosmReviewPlugin/Actions/ToggleMoveNextAction.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,29 @@ | ||
package org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.Actions; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.KeyEvent; | ||
|
||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.gui.MainApplication; | ||
import org.openstreetmap.josm.plugins.davidkarlas.JosmReviewPlugin.ReviewListDialog; | ||
import org.openstreetmap.josm.tools.Shortcut; | ||
import org.openstreetmap.josm.tools.ImageProvider; | ||
|
||
public class ToggleMoveNextAction extends JosmAction { | ||
|
||
public ToggleMoveNextAction() { | ||
super(null, new ImageProvider("dialogs/reviewPlugin/check-one"), | ||
"Marks selected item as reviewed and moves to next unreviewed item.", | ||
Shortcut.registerShortcut("Review and move to next", | ||
"Marks selected item as reviewed and moves to next unreviewed item.", | ||
KeyEvent.VK_ENTER, Shortcut.ALT_CTRL), | ||
false, "reviewChanges", true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent event) { | ||
ReviewListDialog reviewListDialog = MainApplication.getMap().getToggleDialog(ReviewListDialog.class); | ||
reviewListDialog.ToggleReviewed(true); | ||
reviewListDialog.NextUnreviewedItem(); | ||
} | ||
} |
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
Oops, something went wrong.