mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-23 12:56:37 +00:00
MiRCART.png: updates screenshot.
MiRCARTCanvas.py:onPanelKeyboardInput(): only handle {no,shift}-modifier keyboard events. MiRCARTFrame.py: fix {de,in}crease canvas size accelerators (hotkeys.)
This commit is contained in:
parent
14a4192442
commit
cc64e955e9
BIN
MiRCART.png
BIN
MiRCART.png
Binary file not shown.
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 43 KiB |
@ -71,7 +71,9 @@ class MiRCARTCanvas(wx.Panel):
|
||||
def onPanelKeyboardInput(self, event):
|
||||
eventDc, tmpDc = self.canvasBackend.getDeviceContexts(self)
|
||||
tool = self.canvasCurTool; mapPoint = self.brushPos;
|
||||
if event.GetModifiers() != wx.MOD_NONE:
|
||||
keyModifiers = event.GetModifiers()
|
||||
if keyModifiers != wx.MOD_NONE \
|
||||
and keyModifiers != wx.MOD_SHIFT:
|
||||
event.Skip()
|
||||
else:
|
||||
patches = tool.onKeyboardEvent( \
|
||||
|
@ -57,9 +57,9 @@ class MiRCARTFrame(MiRCARTGeneralFrame):
|
||||
CID_PASTE = [0x10c, TID_COMMAND, "Paste", "&Paste", ["", wx.ART_PASTE], None, False]
|
||||
CID_DELETE = [0x10d, TID_COMMAND, "Delete", "De&lete", ["", wx.ART_DELETE], None, False]
|
||||
CID_INCR_CANVAS = [0x10e, TID_COMMAND, "Increase canvas size", \
|
||||
"&Increase canvas size", ["", wx.ART_PLUS], [wx.ACCEL_SHIFT, ord("+")]]
|
||||
CID_DECR_CANVAS = [0x10f, TID_COMMAND, "Decrease brush size", \
|
||||
"&Decrease brush size", ["", wx.ART_MINUS], [wx.ACCEL_SHIFT, ord("-")]]
|
||||
"I&ncrease canvas size", ["", wx.ART_PLUS], [wx.ACCEL_ALT, ord("+")]]
|
||||
CID_DECR_CANVAS = [0x10f, TID_COMMAND, "Decrease canvas size", \
|
||||
"D&ecrease canvas size", ["", wx.ART_MINUS], [wx.ACCEL_ALT, ord("-")]]
|
||||
CID_INCR_BRUSH = [0x110, TID_COMMAND, "Increase brush size", \
|
||||
"&Increase brush size", ["", wx.ART_PLUS], [wx.ACCEL_CTRL, ord("+")]]
|
||||
CID_DECR_BRUSH = [0x111, TID_COMMAND, "Decrease brush size", \
|
||||
@ -120,7 +120,7 @@ class MiRCARTFrame(MiRCARTGeneralFrame):
|
||||
# {{{ Accelerators (hotkeys)
|
||||
AID_EDIT = (0x500, TID_ACCELS, ( \
|
||||
CID_NEW, CID_OPEN, CID_SAVE, CID_UNDO, CID_REDO, \
|
||||
CID_INCR_CANVAS, CID_INCR_BRUSH, CID_INCR_BRUSH, CID_DECR_BRUSH))
|
||||
CID_INCR_CANVAS, CID_DECR_CANVAS, CID_INCR_BRUSH, CID_DECR_BRUSH))
|
||||
# }}}
|
||||
# {{{ Lists
|
||||
LID_ACCELS = (0x600, TID_LIST, (AID_EDIT))
|
||||
|
Loading…
Reference in New Issue
Block a user