From 5380e899e427034c3e8dedd5da7d5ceec1e8b754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 11 Jan 2018 02:49:53 +0100 Subject: [PATCH] MiRCARTFrame.py: add {in,de}crease {height,width} toolbar items. assets/tool{De,In}crCanvas{H,W}.png: added. --- MiRCARTFrame.py | 9 +++++---- assets/toolDecrCanvasH.png | Bin 0 -> 271 bytes assets/toolDecrCanvasW.png | Bin 0 -> 250 bytes assets/toolIncrCanvasH.png | Bin 0 -> 236 bytes assets/toolIncrCanvasW.png | Bin 0 -> 232 bytes 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 assets/toolDecrCanvasH.png create mode 100644 assets/toolDecrCanvasW.png create mode 100644 assets/toolIncrCanvasH.png create mode 100644 assets/toolIncrCanvasW.png diff --git a/MiRCARTFrame.py b/MiRCARTFrame.py index 05dbeb8..7def5e7 100644 --- a/MiRCARTFrame.py +++ b/MiRCARTFrame.py @@ -55,13 +55,13 @@ class MiRCARTFrame(MiRCARTGeneralFrame): CID_PASTE = [0x10c, TID_COMMAND, "Paste", "&Paste", ["", wx.ART_PASTE], None, False, MiRCARTCanvasInterface.canvasPaste] CID_DELETE = [0x10d, TID_COMMAND, "Delete", "De&lete", ["", wx.ART_DELETE], None, False, MiRCARTCanvasInterface.canvasDelete] CID_INCRW_CANVAS = [0x10e, TID_COMMAND, "Increase canvas width", \ - "Increase canvas &width", ["", wx.ART_PLUS], [wx.ACCEL_ALT, ord("D")], None, MiRCARTCanvasInterface.canvasIncrCanvasWidth] + "Increase canvas &width", ["toolIncrCanvasW.png"], [wx.ACCEL_ALT, ord("D")], None, MiRCARTCanvasInterface.canvasIncrCanvasWidth] CID_DECRW_CANVAS = [0x10f, TID_COMMAND, "Decrease canvas width", \ - "Decrease canvas w&idth", ["", wx.ART_MINUS], [wx.ACCEL_ALT, ord("A")], None, MiRCARTCanvasInterface.canvasDecrCanvasWidth] + "Decrease canvas w&idth", ["toolDecrCanvasW.png"], [wx.ACCEL_ALT, ord("A")], None, MiRCARTCanvasInterface.canvasDecrCanvasWidth] CID_INCRH_CANVAS = [0x110, TID_COMMAND, "Increase canvas height", \ - "Increase canvas &height", ["", wx.ART_PLUS], [wx.ACCEL_ALT, ord("S")], None, MiRCARTCanvasInterface.canvasIncrCanvasHeight] + "Increase canvas &height", ["toolIncrCanvasH.png"], [wx.ACCEL_ALT, ord("S")], None, MiRCARTCanvasInterface.canvasIncrCanvasHeight] CID_DECRH_CANVAS = [0x111, TID_COMMAND, "Decrease canvas height", \ - "Decrease canvas h&eight", ["", wx.ART_MINUS], [wx.ACCEL_ALT, ord("W")], None, MiRCARTCanvasInterface.canvasDecrCanvasHeight] + "Decrease canvas h&eight", ["toolDecrCanvasH.png"], [wx.ACCEL_ALT, ord("W")], None, MiRCARTCanvasInterface.canvasDecrCanvasHeight] CID_INCR_BRUSH = [0x112, TID_COMMAND, "Increase brush size", \ "I&ncrease brush size", ["", wx.ART_PLUS], [wx.ACCEL_CTRL, ord("+")], None, MiRCARTCanvasInterface.canvasIncrBrush] CID_DECR_BRUSH = [0x113, TID_COMMAND, "Decrease brush size", \ @@ -112,6 +112,7 @@ class MiRCARTFrame(MiRCARTGeneralFrame): CID_UNDO, CID_REDO, NID_TOOLBAR_HSEP, \ CID_CUT, CID_COPY, CID_PASTE, CID_DELETE, NID_TOOLBAR_HSEP, \ CID_INCR_BRUSH, CID_DECR_BRUSH, NID_TOOLBAR_HSEP, \ + CID_INCRW_CANVAS, CID_DECRW_CANVAS, CID_INCRH_CANVAS, CID_DECRH_CANVAS, NID_TOOLBAR_HSEP, \ CID_RECT, CID_CIRCLE, CID_FILL, CID_LINE, CID_TEXT, CID_CLONE_SELECT, CID_MOVE_SELECT, \ NID_TOOLBAR_VSEP, \ CID_COLOUR00, CID_COLOUR01, CID_COLOUR02, CID_COLOUR03, CID_COLOUR04, \ diff --git a/assets/toolDecrCanvasH.png b/assets/toolDecrCanvasH.png new file mode 100644 index 0000000000000000000000000000000000000000..6b372738c70ceac3d8eb7dfb8d14e1aecd9592be GIT binary patch literal 271 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DkxK$!8B)5ZfpLCF%=h?3y^w370~qEv>0#LT=By}Z;C1rt33JwwYY*EXd974>+! zIEGmGFYR&UJ8ZzgGTE#>PV4Fa`KlXC-$_jfUOmmNEiyrP;(m>%T#*jFdB<*KyxuVX zqwcMsKkrW{>1_KR!l!NFJkO=}!O|NO-&N0Jk=?NCQ1O`pW=H0I0v~0J?>HQ3Ja0X9 zyXYK6|3!8iwE2Om?{#mJ_#gJT@_bM4Hoo7IkvclkOJf#J*{^(?HHWADxK5Y(A)vb$ NJYD@<);T3K0RX`gV}t+z literal 0 HcmV?d00001 diff --git a/assets/toolDecrCanvasW.png b/assets/toolDecrCanvasW.png new file mode 100644 index 0000000000000000000000000000000000000000..64e964b41c9004f4b29f1a2f3d913cd380de3c9a GIT binary patch literal 250 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DkxK$!8B)5ZfpLCF%=h?3y^w370~qEv>0#LT=By}Z;C1rt33JwwYY*EXd96_tCs zIEGmGFYO8BYcSw&?zKO*;=8@xI&PoFT^6d9o|PrDU7m=C^f^4`h-+@SY6GAX7(8A5T-G@yGywpyLR4%3 literal 0 HcmV?d00001 diff --git a/assets/toolIncrCanvasH.png b/assets/toolIncrCanvasH.png new file mode 100644 index 0000000000000000000000000000000000000000..157c81aaea85d69d2dbd72735fe95810ac6ed72a GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DkxK$!8B)5ZfpLCF%=h?3y^w370~qEv>0#LT=By}Z;C1rt33JwwYY*EXd96=iz5 zIEGmGukDHEJD|Y9viJYel@sz#t&Z3tFMMZWs=!6Tm2U)EHC}7w%n;0o|7i1W(tPbj z9$jzl@wt6`&M0F0W4f%Y%L-Nz8!%%B>y9(Vfp6pvG|krrYY=o@d}hfeXRZCtkC`es W*5-#79$yQzl)=;0&t;ucLK6UCCs9ZM literal 0 HcmV?d00001 diff --git a/assets/toolIncrCanvasW.png b/assets/toolIncrCanvasW.png new file mode 100644 index 0000000000000000000000000000000000000000..6790bfc4babf737cd7a644743ccb6e1109550703 GIT binary patch literal 232 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DkxL735kHCP2GC|TkfQ4*Y=R#Ki=l*&+$n3-3imzP?iV4`QBXJ~ol+NKnsqEt^8 z#}EturM--N2NXD%|NdV-b4J3F5{nrpC3iCM3I1fAD!O8g!&1ZkxX&kxTfG+VJ-{aT zCb%g=h>aIWS)63!)#|<0l+%#9Z^xfy3H{t!Ev&08n#?z(+i&xjw&9GZ?212qJ?vA? Wtj!nQwL=