Lucio Andrés Illanes Albornoz
cab0478c39
roar.py: fix argument handling.
2019-09-14 11:21:40 +02:00
Lucio Andrés Illanes Albornoz
b1cc38a8e7
requirements.txt: added (via Civil.)
2019-09-14 11:05:05 +02:00
Lucio Andrés Illanes Albornoz
5123a016e8
libroar/RoarAssetsWindow.py:{_load_list,onLoadList}(): split from onLoadList().
...
roar.py: optionally load assets list from argv[2].
2019-09-14 10:52:05 +02:00
Lucio Andrés Illanes Albornoz
243311c091
libtools/ToolObject.py:onSelectEvent(): obtain correct canvas map cell given transparent object selection cell.
2019-09-14 10:49:11 +02:00
Lucio Andrés Illanes Albornoz
f65fe72cea
libroar/RoarCanvasCommandsFile.py:canvasSave{,As}(): don't reset dirty on canvasSaveAs().
2019-09-13 21:14:11 +02:00
Lucio Andrés Illanes Albornoz
74e2bf7f49
libgui/GuiCanvasWxBackend.py:GuiBufferedDC.__init__(): directly select buffer into DC.
...
libroar/RoarCanvasWindow.py:applyTool(): normalise mapPoint w/ viewRect if mapPoint != None.
2019-09-13 21:09:51 +02:00
Lucio Andrés Illanes Albornoz
2fa06043c6
libroar/RoarCanvasWindow.py:applyTool(): only call tool.onMouseEvent() if mouse state has changed since the last call & update lastCellState.
...
libroar/RoarCanvasWindow.py:{on{Enter,Leave}Window,__init__}(): reset lastCellState.
2019-09-13 20:20:26 +02:00
Lucio Andrés Illanes Albornoz
2c8fa89eda
libgui/GuiCanvasWxBackend.py:{resize,__init__}(): restrict external font loading to Windows (via sym.)
...
assets/text/TODO: updated.
2019-09-13 10:03:39 +02:00
Lucio Andrés Illanes Albornoz
6e470c93d0
libgui/GuiCanvasWxBackend.py: render transparent cells as dark grey `░'.
2019-09-12 21:01:06 +02:00
Lucio Andrés Illanes Albornoz
a4a9c9a2d5
libtools/ToolSelectMove.py: exclude sub-cells of both of {select,src}Rect from being cleared.
...
libtools/ToolSelect.py: minor cleanup.
2019-09-12 20:09:11 +02:00
Lucio Andrés Illanes Albornoz
ec515d4ed4
libroar/RoarCanvasWindow.py:dispatchDeltaPatches(): remove cursor prior to updating canvas.
2019-09-12 17:03:21 +02:00
Lucio Andrés Illanes Albornoz
3e4644122b
libtools/ToolSelect.py: fix function signatures.
2019-09-12 16:55:03 +02:00
Lucio Andrés Illanes Albornoz
31b45d1076
libcanvas/CanvasJournal.py:end(): purge patchesUndo if at patchesUndoLevel > 0.
...
assets/text/TODO: updated.
2019-09-12 16:39:17 +02:00
Lucio Andrés Illanes Albornoz
6e05238efa
libcanvas/CanvasJournal.py:{begin,end,updateCurrentDeltas}(): {insert,delete,append} at patchesUndoLevel.
...
libgui/GuiWindow.py:{onEnterWindow,__init__}(): bind wx.EVT_ENTER_WINDOW.
libroar/RoarCanvasWindow.py:applyTool(): only call tool.onMouseEvent() if mouse has moved to another cell since the last dirtying call & update lastDirtyCell.
libroar/RoarCanvasWindow.py:{onEnterWindow,onLeaveWindow,__init__}(): reset lastDirtyCell.
libroar/RoarCanvasWindow.py:__init__():
assets/text/TODO: updated.
2019-09-12 16:24:53 +02:00
Lucio Andrés Illanes Albornoz
b6c063c5d3
Initial implementation of assets window & external object tool.
...
libgui/GuiFrame.py:GuiMiniFrame(): added as sub-class of wx.MiniFrame().
libgui/GuiWindow.py:RoarCanvasWindowDropTarget(): initial implementation.
libgui/GuiWindow.py:__init__(): receive & pass optional style parameter.
libgui/GuiWindow.py:__init__(): set drop target.
libroar/RoarAssetsWindow.py: initial implementation.
libroar/RoarClient.py:__init__(): add RoarAssetsWindow().
libtools/ToolObject.py: initial implementation.
assets/text/TODO: updated.
2019-09-12 12:49:53 +02:00
Lucio Andrés Illanes Albornoz
99e746f090
libgui/GuiCanvasWxBackend.py:_drawCharPatch(): fix underscore rendering.
...
libgui/GuiCanvasWxBackend.py:_get{Brush,Char}PatchColours(): fix {back,fore}ground colour {brush{,es},pen}.
assets/text/TODO: updated.
2019-09-12 11:26:17 +02:00
Lucio Andrés Illanes Albornoz
6dad3c7798
libtools/ToolText.py: ignore non-printable key events.
2019-09-12 10:28:56 +02:00
Lucio Andrés Illanes Albornoz
3f992ec44f
assets/text/{arab-spokelion,spoke-arablion}.txt: ROAR!
2019-09-12 10:09:41 +02:00
Lucio Andrés Illanes Albornoz
9de3372a80
libtools/Tool{,Circle,Fill,Line,Rect,Select,Text}.py: sync function signature comments.
2019-09-12 10:08:14 +02:00
Lucio Andrés Illanes Albornoz
8485ab568d
libroar/RoarCanvasCommandsEdit.py:canvasColourAlpha_(): fix signature.
2019-09-12 10:03:29 +02:00
Lucio Andrés Illanes Albornoz
7a4e1b23e9
libcanvas/CanvasExportStore.py:exportTextBuffer(): fix transparent colour processing.
...
libcanvas/CanvasImportStore.py:importTextBuffer(): fix transparent colour processing.
2019-09-12 10:02:41 +02:00
Lucio Andrés Illanes Albornoz
0f88a78639
libgui/GuiCanvasWxBackend.py:resize(): load font named by fontName instead of wx.FONTFAMILY_TELETYPE.
...
libgui/GuiCanvasWxBackend.py:__init__(): receive & set font{Name,PathName}.
libgui/GuiCanvasWxBackend.py:__init__(): call AddFontResourceW() in lieu of WxPython support FOR ANYTHING THAT GOES BEYOND BEING A BLOODY NON-STOP HINDRANCE.
2019-09-11 15:33:15 +02:00
Lucio Andrés Illanes Albornoz
418d16a81a
libgui/GuiFrame.py:{load{Accel,Menu,ToolBar}s,__init__}(): replace lastId w/ wx.NewId().
2019-09-11 14:45:59 +02:00
Lucio Andrés Illanes Albornoz
3be34bc657
libgui/GuiFrame.py:onMenu(): only dispatch events via itemsById[eventId] if present, skip otherwise.
2019-09-11 14:43:55 +02:00
Lucio Andrés Illanes Albornoz
e30628f28d
libroar/RoarCanvasCommandsFile.py:_import(): handle FileNotFoundError exception.
2019-09-11 13:53:48 +02:00
Lucio Andrés Illanes Albornoz
6109e9b38c
libgui/GuiCanvasWxBackend.py:GuiBufferedDC(): implement double-buffered wx.MemoryDC() honouring view{Rect,Size}.
...
libgui/GuiCanvasWxBackend.py:{getDeviceContext,onPaint}(): use GuiBufferedDC() if viewRect > (0, 0).
libroar/RoarCanvas{CommandsTools,Window}.py: updated.
assets/text/TODO: updated.
2019-09-11 09:39:36 +02:00
Lucio Andrés Illanes Albornoz
968e7d45c5
assets/images/logo[12].bmp: updated.
...
libroar/RoarWindowAbout.py: switch to wx.FlexGridSizer().
assets/text/TODO: updated.
2019-09-10 18:43:08 +02:00
Lucio Andrés Illanes Albornoz
af1ef072ab
libroar/RoarWindowAbout.py: cleanup.
2019-09-10 13:24:47 +02:00
Lucio Andrés Illanes Albornoz
5f7f2b0f9c
assets/tools/deploy-python.sh: updated.
2019-09-10 12:32:09 +02:00
Lucio Andrés Illanes Albornoz
1156f8b5c3
libroar/RoarCanvasCommands.py: fix base classes order.
2019-09-10 12:30:35 +02:00
Lucio Andrés Illanes Albornoz
bb23efac56
libgui/GuiFrame.py:loadAccels(): obtain from {menu,Toolbar}s[].
...
libroar/RoarCanvasCommands{,Edit,File,Help,Tools}.py: remove self.accels[].
libroar/RoarClient.py: updated.
2019-09-10 12:28:26 +02:00
Lucio Andrés Illanes Albornoz
309e8cf089
libtools/ToolText.py:onKeyboardEvent(): correctly return (rc, dirty).
2019-09-10 12:20:23 +02:00
Lucio Andrés Illanes Albornoz
fb274c0d66
libroar/RoarCanvas{CommandsTools,Window}.py: explicitly pass canvas.
...
libtools/Tool{,Circle,Fill,Line,Rect,Select,Text}.py: explicitly receive canvas.
2019-09-10 12:12:12 +02:00
Lucio Andrés Illanes Albornoz
f23101f511
libgui/GuiFrame.py: updated.
...
libroar/RoarCanvasCommands{,Edit,File,Help,Tools}.py: split from libroar/RoarCanvasInterface.py.
libroar/RoarCanvasWindow.py: updated.
libroar/RoarClient.py: updated.
libroar/RoarWindowAbout.py: renamed from libroar/RoarClientAboutWindow.py.
roar.py: updated.
2019-09-10 12:06:56 +02:00
Lucio Andrés Illanes Albornoz
01ca10be21
libroar/RoarCanvasInterface.py, libgui/GuiCanvasInterface.py: split from libgui/GuiCanvasInterface.py.
...
libroar/RoarClientAboutWindow.py: merged from libgui/GuiCanvasInterfaceAbout.py.
libgui/GuiFrame.py:Gui{Command{,List},Select}Decorator(): moved from libroar/RoarCanvasInterface.py.
libroar/RoarClient.py: updated.
2019-09-10 10:22:02 +02:00
Lucio Andrés Illanes Albornoz
8fd0294ef8
libroar/RoarClient.py, libgui/GuiFrame.py: split from libgui/GuiFrame.py.
...
libroar/RoarCanvasWindow.py, libgui/GuiWindow.py: split from libgui/GuiCanvasPanel.py.
roar.py: updated.
2019-09-10 10:14:12 +02:00
Lucio Andrés Illanes Albornoz
116e5915dc
libgui/GuiCanvasInterface.py:_import(): call reset{Cursor,Undo}() on journal after importing.
2019-09-09 20:10:52 +02:00
Lucio Andrés Illanes Albornoz
c1ce141700
libcanvas/CanvasJournal.py:begin(): don't reset patchesUndo{[],Level}.
...
assets/text/TODO: updated.
2019-09-09 19:59:57 +02:00
Lucio Andrés Illanes Albornoz
5f00b60cdd
assets/text/TODO: updated.
2019-09-09 19:43:07 +02:00
Lucio Andrés Illanes Albornoz
649f118b20
libgui/GuiCanvasInterfaceAbout.py: update legend.
2019-09-09 19:34:22 +02:00
Lucio Andrés Illanes Albornoz
b50879db5f
assets/tools/deploy-python.sh: updated.
2019-09-09 19:33:16 +02:00
Lucio Andrés Illanes Albornoz
a4ee9e9083
libcanvas/CanvasImportStore.py:importTextBuffer(): correctly process mIRC foreground colour sequences.
...
assets/images/roar.png: updated.
assets/text/arab-puke.txt: removed.
assets/text/spoke-vxplion.txt: added.
2019-09-09 19:29:50 +02:00
Lucio Andrés Illanes Albornoz
bfd8e17b2b
libgui/GuiCanvasPanel.py:{onPanelScroll,__init__}(): reset cursor on EVT_SCROLLWIN_LINE{DOWN,UP}.
2019-09-09 19:03:14 +02:00
Lucio Andrés Illanes Albornoz
c2f8fb272e
assets/text/TODO: updated.
2019-09-09 18:47:39 +02:00
Lucio Andrés Illanes Albornoz
0fe6899d05
libcanvas/Canvas.py:dispatchPatchSingle(): cloned from dispatchPatch().
...
lib{canvas/Canvas{,Journal},gui/GuiCanvasPanel}.py: replace dirtyJournal & pushDeltas() w/ explicit {begin,end}().
libgui/GuiCanvasPanel.py:applyTool(): updated.
libgui/GuiCanvasPanel.py:dispatchPatchSingle(): cloned from dispatchPatch().
libtools/Tool{,Circle,Fill,Line,Rect,Select{,Clone,Move},Text}.py:on{Mouse,Keyboard}Event(): return rc, dirty.
libtools/ToolSelect{Clone,Move}.py:onSelectEvent(): return rc, dirty.
2019-09-09 18:43:33 +02:00
Lucio Andrés Illanes Albornoz
b3f587fc73
libgui/GuiCanvasInterface.py:canvasTool(): call applyTool() w/ new tool post-selection.
...
libgui/GuiCanvasPanel.py:{applyTool,onPanelInput}(): split from onPanelInput().
libtools/Tool{,Circle,Fill,Line,Rect,Select,Text}.py:on{Keyboard,Mouse}Event(): updated.
libtools/ToolFill.py:onMouseEvent(): display cursor.
libtools/ToolSelect{,Clone,Move}.py:onSelectEvent(): updated.
2019-09-09 18:18:54 +02:00
Lucio Andrés Illanes Albornoz
1fe5db9fa6
libgui/GuiCanvasPanel.py:{onPanelSize,__init__}(): call _updateScrollBars() on EVT_SIZE.
2019-09-09 17:34:50 +02:00
Lucio Andrés Illanes Albornoz
c2657eeefd
libgui/GuiCanvasPanel.py:_updateScrollBars(): split from resize().
...
libgui/GuiCanvasPanel.py:_updateScrollBars(): reduce flickering induced by calling SetVirtualSize() when scrollbars are not required.
libgui/GuiCanvasPanel.py:{resize,update}(): updated.
libgui/GuiCanvasWxBackend.py:{reset,__init__}(): removes obsolete reset().
2019-09-09 17:27:37 +02:00
Lucio Andrés Illanes Albornoz
04430e7c0c
lib{canvas,gui,rtl,tools}/*.py: remove trailing SP.
2019-09-09 12:46:52 +02:00
Lucio Andrés Illanes Albornoz
56a3b748cc
libgui/GuiCanvasPanel.py:{onPanelEnterWindow,__init__}(): don't steal focus when entering window.
...
libgui/GuiCanvasPanel.py:__init__(): bind EVT_CHAR to self vs. parentFrame.
libgui/GuiFrame.py:{onChar,__init__}(): forward EVT_CHAR to canvasPanel.onPanelInput().
2019-09-09 12:44:32 +02:00