Lucio Andrés Illanes Albornoz
c6ab27c08c
Fixes memory leaks on {re,un}do state mutation & resize-related operations.
...
MiRCARTCanvas.py:__del__(): delete canvasMap w/ clear().
MiRCARTCanvasBackend.py:resize(): delete old canvasBitmap w/ Destroy().
MiRCARTCanvasJournal.py:reset{Cursor,Undo}(): delete patches{Cursor,Undo} w/ clear().
MiRCARTCanvasJournal.py:__del__(): provided explicitly to call reset{Cursor,Undo}().
MiRCARTFrame.py:__del__(): provided explicitly to delete panelCanvas.
2018-01-26 17:45:04 +01:00
Lucio Andrés Illanes Albornoz
92124dc34f
MiRCARTCanvas.py:resize(): clean up & fix.
...
MiRCARTCanvasInterface.py:_updateCanvasSize(): merged into ...Canvas.resize().
MiRCARTCanvasInterface.py:canvas{De,In}crCanvas{Height,Width}(): directly call ...Canvas.resize().
2018-01-25 15:02:09 +01:00
Lucio Andrés Illanes Albornoz
46258cde32
MiRCARTCanvas.py:MiRCARTCanvas.onPanelInput(): clip mapPoint to canvasSize.
2018-01-11 02:10:33 +01:00
Lucio Andrés Illanes Albornoz
33df272b39
MiRCARTCanvas.py:MiRCARTCanvas.resize(): call SetSize() w/o changing position.
...
MiRCARTCanvas.py:MiRCARTCanvas.resize(): call SetMinSize() in addition to SetSize().
MiRCARTCanvas.py:MiRCARTCanvas.resize(): call Layout() on canvas panel window and its parents.
MiRCARTCanvasInterface.py: always call SetCursor() w/ self.parentCanvas.
MiRCARTFrame.py: moves colour toolbar items to separate toolbar.
MiRCARTFrame.py:MiRCARTFrame.__init__(): add canvas panel to and initialise sizer.
MiRCARTGeneralFrame.py: adds support for multiple toolbars via vertical box sizer.
2018-01-10 22:06:48 +01:00
Lucio Andrés Illanes Albornoz
c9d6b90e68
MiRCART{anvas{,ImportStore,Interface},Frame}.py: pass & initialise from default canvas position, size, and cell size.
2018-01-10 15:04:59 +01:00
Lucio Andrés Illanes Albornoz
2254a0638b
MiRCART{Canvas{,Interface},Frame}.py: use dict() to cache canvas state in Frame.
2018-01-10 14:51:25 +01:00
Lucio Andrés Illanes Albornoz
a320c904fe
MiRCART{Canvas{,Interface},Frame}.py: remove undo level & show brush size in status bar.
2018-01-10 05:00:52 +01:00
Lucio Andrés Illanes Albornoz
e157f479ce
MiRCART{Canvas,Frame}.py: include canvas width and height in status bar.
2018-01-10 04:36:39 +01:00
Lucio Andrés Illanes Albornoz
f9f910160f
MiRCART{Canvas{,Interface},Frame}.py: merge on{StatusBar,Undo}Update() into onCanvasUpdate().
...
MiRCARTCanvas{Frame,Interface}.py: adds canvas{De,In}crCanvas{Height,Width}() & CID_*.
MiRCARTCanvasFrame.py:onCanvasUpdate(): updated.
2018-01-10 04:23:54 +01:00
Lucio Andrés Illanes Albornoz
3e03126006
MiRCARTCanvasInterface.py: split from MiRCARTCanvas.py.
...
MiRCART{Canvas,{,General}Frame}.py: updated.
2018-01-10 03:24:25 +01:00
Lucio Andrés Illanes Albornoz
398ee3af3d
MiRCARTCanvas{Export,Import}Store.py: split from MiRCARTCanvasStore.py.
...
IrcMiRCARTBot.py, MiRCART{Canvas,Frame,ToPngFile}.py: updated.
2018-01-10 00:48:13 +01:00
Lucio Andrés Illanes Albornoz
cd5ea1fab5
MiRCARTCanvas{,Journal,Store}.py: dispatch patches from tool event handlers directly.
...
MiRCARTTool{,Circle,Line,Rect,Text}.py: updated to new interface.
2018-01-10 00:35:08 +01:00
Lucio Andrés Illanes Albornoz
ed8ccab26f
MiRCART{Canvas{,Backend},Frame}.py: replace MemoryDC() w/ BufferedDC(canvasBitmap).
2018-01-09 22:23:27 +01:00
Lucio Andrés Illanes Albornoz
363a86fe81
MiRCARTCanvas.py: enable double buffering to eliminate brush flickering.
2018-01-09 05:07:04 +01:00
Lucio Andrés Illanes Albornoz
dec1e4c0d4
MiRCART.png: updates screenshot.
...
MiRCARTCanvas.py:onPanelKeyboardInput(): only handle {no,shift}-modifier keyboard events.
MiRCARTFrame.py: fix {de,in}crease canvas size accelerators (hotkeys.)
2018-01-09 04:17:24 +01:00
Lucio Andrés Illanes Albornoz
38e90f96ca
Initial release w/ circle, line, rectangle, and text tools.
2018-01-09 03:56:40 +01:00
Lucio Andrés Illanes Albornoz
195ddd9af8
MiRCART{Canvas,Frame}.py: adds circle & line tools.
...
MiRCARTTool{Circle,Line}.py: initial implementation.
2018-01-08 17:44:54 +01:00
Lucio Andrés Illanes Albornoz
1099341b5d
MiRCARTCanvas{,Journal}.py: fix {un,re}do regarding brush sizes >(1,1).
2018-01-08 02:45:03 +01:00
Lucio Andrés Illanes Albornoz
da82a543b5
MiRCARTCanvas.py: disable double buffering.
2018-01-08 01:11:00 +01:00
Lucio Andrés Illanes Albornoz
54adf3a95c
MiRCART{CanvasJournal,Frame,ToolRect}.py: implements variable brush size.
2018-01-08 00:33:47 +01:00
Lucio Andrés Illanes Albornoz
84ab4eee5a
Initial release sans tools.
2018-01-08 00:05:03 +01:00
Lucio Andrés Illanes Albornoz
3c28fa0071
MiRCARTCanvasStore.py: split & merge MiRCART{FromTextFile,ToPastebin,ToTextFile}.py.
2018-01-07 15:07:22 +01:00
Lucio Andrés Illanes Albornoz
115991736a
MiRCART.py: hand off to MiRCARTFrame().
...
MiRCARTCanvas.py: split from MiRCART.py.
MiRCARTCanvasJournal.py: split from MiRCART.py.
MiRCARTColours.py: split from MiRCART.py.
MiRCARTFrame.py: split from MiRCART.py.
MiRCARTFromTextFile.py: initial implementation.
MiRCARTToPastebin.py: initial implementation.
MiRCARTToPngFile.py, IrcMiRCARTBot.py: renamed MiRC2png to MiRCARTToPngFile.
MiRCARTToTextFile.py: split from MiRCART.py.
MiRCARTTool.py: split from MiRCART.py.
MiRCARTToolRect.py: split from MiRCART.py.
README.md: updated.
2018-01-07 03:45:18 +01:00