-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333 from scenerygraphics/i2k-fixes-take-2
#I2K2020 fixes, take 2
- Loading branch information
Showing
5 changed files
with
33 additions
and
31 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
28 changes: 0 additions & 28 deletions
28
src/main/java/sc/iview/commands/edit/settings/InputBindingsSettings.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/main/java/sc/iview/commands/edit/settings/KeyBindings.kt
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,26 @@ | ||
package sc.iview.commands.edit.settings | ||
|
||
import org.scijava.command.Command | ||
import org.scijava.plugin.Menu | ||
import org.scijava.plugin.Parameter | ||
import org.scijava.plugin.Plugin | ||
import sc.iview.SciView | ||
import sc.iview.commands.MenuWeights | ||
import sc.iview.commands.MenuWeights.EDIT_SETTINGS | ||
import sc.iview.commands.MenuWeights.EDIT_SETTINGS_BINDINGS | ||
|
||
/** | ||
* A command for interactively editing input controls. | ||
* @author Vladimir Ulman | ||
* @author Ulrik Guenther | ||
*/ | ||
@Plugin(type = Command::class, menuRoot = "SciView", menu = [Menu(label = "Edit", weight = MenuWeights.EDIT), Menu(label = "Settings", weight = EDIT_SETTINGS), Menu(label = "Key Bindings", weight = EDIT_SETTINGS_BINDINGS)]) | ||
class KeyBindings : Command { | ||
|
||
@Parameter | ||
private lateinit var sciView: SciView | ||
|
||
override fun run() { | ||
sciView.publicGetInputHandler().openKeybindingsGuiEditor("SciView's Key bindings editor", ".sciview.keybindings.yaml", "all") | ||
} | ||
} |