-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
80 additions
and
77 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ plugins { | |
} | ||
|
||
group = "net.pryoscode" | ||
version = "0.4.0" | ||
version = "0.4.1" | ||
|
||
kotlin { | ||
jvmToolchain { | ||
|
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
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/edit/items/Copy.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.pryoscode.decompiler.window.menu.edit.items | ||
|
||
import java.awt.event.ActionEvent | ||
import java.awt.event.ActionListener | ||
import java.awt.event.KeyEvent | ||
import javax.swing.JMenuItem | ||
import javax.swing.KeyStroke | ||
|
||
class Copy : JMenuItem("Copy", KeyEvent.VK_C) { | ||
class Copy : JMenuItem("Copy", KeyEvent.VK_C), ActionListener { | ||
|
||
init { | ||
isEnabled = false | ||
accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.CTRL_DOWN_MASK) | ||
addActionListener(::actionListener) | ||
addActionListener(this) | ||
} | ||
|
||
private fun actionListener(event: ActionEvent) {} | ||
override fun actionPerformed(e: ActionEvent?) {} | ||
|
||
} |
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/edit/items/Find.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.pryoscode.decompiler.window.menu.edit.items | ||
|
||
import java.awt.event.ActionEvent | ||
import java.awt.event.ActionListener | ||
import java.awt.event.KeyEvent | ||
import javax.swing.JMenuItem | ||
import javax.swing.KeyStroke | ||
|
||
class Find : JMenuItem("Find", KeyEvent.VK_F) { | ||
class Find : JMenuItem("Find", KeyEvent.VK_F), ActionListener { | ||
|
||
init { | ||
isEnabled = false | ||
accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_DOWN_MASK) | ||
addActionListener(::actionListener) | ||
addActionListener(this) | ||
} | ||
|
||
private fun actionListener(event: ActionEvent) {} | ||
override fun actionPerformed(e: ActionEvent?) {} | ||
|
||
} |
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/edit/items/SelectAll.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.pryoscode.decompiler.window.menu.edit.items | ||
|
||
import java.awt.event.ActionEvent | ||
import java.awt.event.ActionListener | ||
import java.awt.event.KeyEvent | ||
import javax.swing.JMenuItem | ||
import javax.swing.KeyStroke | ||
|
||
class SelectAll : JMenuItem("Select All", KeyEvent.VK_A) { | ||
class SelectAll : JMenuItem("Select All", KeyEvent.VK_A), ActionListener { | ||
|
||
init { | ||
isEnabled = false | ||
accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.CTRL_DOWN_MASK) | ||
addActionListener(::actionListener) | ||
addActionListener(this) | ||
} | ||
|
||
private fun actionListener(event: ActionEvent) {} | ||
override fun actionPerformed(e: ActionEvent?) {} | ||
|
||
} |
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/file/items/CloseFile.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.pryoscode.decompiler.window.menu.file.items | ||
|
||
import java.awt.event.ActionEvent | ||
import java.awt.event.ActionListener | ||
import java.awt.event.KeyEvent | ||
import javax.swing.JMenuItem | ||
import javax.swing.KeyStroke | ||
|
||
class CloseFile : JMenuItem("Close File", KeyEvent.VK_W) { | ||
class CloseFile : JMenuItem("Close File", KeyEvent.VK_W), ActionListener { | ||
|
||
init { | ||
isEnabled = false | ||
accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_W, KeyEvent.CTRL_DOWN_MASK) | ||
addActionListener(::actionListener) | ||
addActionListener(this) | ||
} | ||
|
||
private fun actionListener(event: ActionEvent) {} | ||
override fun actionPerformed(e: ActionEvent?) {} | ||
|
||
} |
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
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/help/items/About.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
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/view/items/ZoomIn.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.pryoscode.decompiler.window.menu.view.items | ||
|
||
import java.awt.event.ActionEvent | ||
import java.awt.event.ActionListener | ||
import java.awt.event.KeyEvent | ||
import javax.swing.JMenuItem | ||
import javax.swing.KeyStroke | ||
|
||
class ZoomIn : JMenuItem("Zoom In", KeyEvent.VK_PLUS) { | ||
class ZoomIn : JMenuItem("Zoom In", KeyEvent.VK_PLUS), ActionListener { | ||
|
||
init { | ||
isEnabled = false | ||
accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_PLUS, KeyEvent.CTRL_DOWN_MASK) | ||
addActionListener(::actionListener) | ||
addActionListener(this) | ||
} | ||
|
||
private fun actionListener(event: ActionEvent) {} | ||
override fun actionPerformed(e: ActionEvent?) {} | ||
|
||
} |
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/view/items/ZoomOut.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.pryoscode.decompiler.window.menu.view.items | ||
|
||
import java.awt.event.ActionEvent | ||
import java.awt.event.ActionListener | ||
import java.awt.event.KeyEvent | ||
import javax.swing.JMenuItem | ||
import javax.swing.KeyStroke | ||
|
||
class ZoomOut : JMenuItem("Zoom Out", KeyEvent.VK_MINUS) { | ||
class ZoomOut : JMenuItem("Zoom Out", KeyEvent.VK_MINUS), ActionListener { | ||
|
||
init { | ||
isEnabled = false | ||
accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_MINUS, KeyEvent.CTRL_DOWN_MASK) | ||
addActionListener(::actionListener) | ||
addActionListener(this) | ||
} | ||
|
||
private fun actionListener(event: ActionEvent) {} | ||
override fun actionPerformed(e: ActionEvent?) {} | ||
|
||
} |
7 changes: 4 additions & 3 deletions
7
src/main/kotlin/net/pryoscode/decompiler/window/menu/view/items/ZoomReset.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.pryoscode.decompiler.window.menu.view.items | ||
|
||
import java.awt.event.ActionEvent | ||
import java.awt.event.ActionListener | ||
import java.awt.event.KeyEvent | ||
import javax.swing.JMenuItem | ||
import javax.swing.KeyStroke | ||
|
||
class ZoomReset : JMenuItem("Zoom Reset", KeyEvent.VK_0) { | ||
class ZoomReset : JMenuItem("Zoom Reset", KeyEvent.VK_0), ActionListener { | ||
|
||
init { | ||
isEnabled = false | ||
accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_0, KeyEvent.CTRL_DOWN_MASK) | ||
addActionListener(::actionListener) | ||
addActionListener(this) | ||
} | ||
|
||
private fun actionListener(event: ActionEvent) {} | ||
override fun actionPerformed(e: ActionEvent?) {} | ||
|
||
} |
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