Lucio Andrés Illanes Albornoz
40c893139a
assets/images/tool{Erase,PickColour}.png: updated.
2019-09-23 22:18:40 +02:00
Lucio Andrés Illanes Albornoz
79d310d331
Implements pick colour tool.
...
assets/text/TODO: updated.
2019-09-23 22:12:20 +02:00
Lucio Andrés Illanes Albornoz
51498169e0
Implements erase tool.
...
assets/text/TODO: updated.
2019-09-23 21:59:41 +02:00
Lucio Andrés Illanes Albornoz
16ec68e845
Allow purging MRU list manually & on failure.
...
assets/text/TODO: updated.
2019-09-23 21:37:52 +02:00
Lucio Andrés Illanes Albornoz
87fa2d3a60
Fix ANSI underline encoding,
2019-09-23 20:42:30 +02:00
Lucio Andrés Illanes Albornoz
e789aac228
Fix ANSI<->mIRC colour conversion.
2019-09-23 20:34:55 +02:00
Lucio Andrés Illanes Albornoz
31bd138570
Fix canvas windows size regarding scrollbars.
2019-09-23 20:24:18 +02:00
Lucio Andrés Illanes Albornoz
ccb7a68208
Convert tabs to position-modulated run of whitespaces.
2019-09-23 19:56:10 +02:00
Lucio Andrés Illanes Albornoz
572cbf5b49
Fix dirty flag updating on {new,open,resize}.
...
assets/text/hotkeys.txt: updated.
assets/text/TODO: updated.
2019-09-23 19:55:31 +02:00
Lucio Andrés Illanes Albornoz
f8aff213de
{assets/tools,lib{canvas,gui,roar,rtl,tools}}/*.py: fix formatting.
2019-09-23 19:21:06 +02:00
Lucio Andrés Illanes Albornoz
c6c7e1ca33
Allow cancelling & setting object selection w/ <Esc>.
2019-09-23 19:19:43 +02:00
Lucio Andrés Illanes Albornoz
71057c2177
assets/images/roar.png: updated.
2019-09-23 19:02:15 +02:00
Lucio Andrés Illanes Albornoz
35498eca38
libroar/RoarCanvasCommands.py:update(): shorten {file,operator,tool} status bar items.
...
assets/text/TODO: updated.
2019-09-23 18:59:18 +02:00
Lucio Andrés Illanes Albornoz
ced45fa0d4
Various bugfixes & usability improvements.
...
1) Add background colour toolbar beneath (foreground) colour toolbar.
2) Add colour flipping command w/ {accelerator,{menu,toolbar} item}.
3) Add {de,in}crease {brush,canvas} size accelerator.
4) Add {hide,show} assets window toolbar item.
5) Circle tool: draw outline with foreground colour.
6) Circle tool: honour transparency.
7) Fill tool: change comprehensive fill modifier key from <Shift> to <Ctrl>.
8) Fill tool: fill with {back,fore}ground colour given <[RL]MB>
9) Fix arrow keys cursor motion when scrolled down.
10 Instantly reflect {brush size,colour,tool} changes in canvas.
11) Object tool: honour transparency w/ non-external objects.
12) Object tool: update selection rectangle during <LMB> whilst dragging, set w/ release of <LMB>.
13) Rectangle tool: draw outline with foreground colour.
14) Rectangle tool: honour transparency.
15) Replace wx.ToolBar() w/ wx.lib.agw.aui.AuiToolBar() & custom wx.lib.agw.aui.AuiDefaultToolBarArt().
16) Restore scrolling position after resizing canvas.
.TODO: deleted.
assets/audio/roar{arab8,spoke11}.wav: added.
assets/text/hotkeys.txt: added to document hotkeys.
assets/text/requirements.txt, requirements.txt: moved.
assets/text/TODO: updated.
{assets/tools,lib{canvas,gui,roar,rtl,tools}}/*.py: remove Vim fold markers.
libroar/RoarCanvasCommandsFile.py:_importFile(): update wx.FileDialog() message.
libroar/RoarCanvasCommandsOperators.py:canvasOperator(): update invert colours {caption,label}.
2019-09-23 18:49:33 +02:00
Lucio Andrés Illanes Albornoz
14d3560b70
Initial {rotate,tile} operator implementation.
2019-09-23 09:21:57 +02:00
Lucio Andrés Illanes Albornoz
f569b32606
assets/tools/deploy-python.sh: updated.
2019-09-19 13:40:58 +02:00
Lucio Andrés Illanes Albornoz
743ae06ff0
assets/audio/roar{arab7,spoke10}.wav: added.
2019-09-19 13:37:51 +02:00
Lucio Andrés Illanes Albornoz
2e2a729db6
assets/text/TODO: updated.
2019-09-19 07:52:45 +02:00
Lucio Andrés Illanes Albornoz
f172f64535
.env: added.
...
.vscode/{roar.code-workspace,settings.json}: added.
2019-09-18 21:12:42 +02:00
Lucio Andrés Illanes Albornoz
5f3ed4347e
assets/audio/roar{arab6,spoke9}.wav: added.
...
libroar/RoarWindowAbout.py: correctly pick random soundBitePathName.
2019-09-17 08:50:33 +02:00
Lucio Andrés Illanes Albornoz
09c0df13cf
libroar/RoarCanvasWindow.py:onKeyboardInput(): simulate LMB & advance to the right w/ space key except w/ Text tool.
2019-09-16 17:31:17 +02:00
Lucio Andrés Illanes Albornoz
e21bb17e51
assets/images/toolCursor.png: fix mode bits.
...
libroar/RoarCanvasWindow.py: remove trailing SP.
2019-09-16 17:17:04 +02:00
Lucio Andrés Illanes Albornoz
621254a99a
Implements foreground colour accelerators.
...
libgui/GuiFrame.py:onMenu(): don't call wx.SafeYield() because wxPython doesn't actually know what it wants from you EVER.
libroar/RoarCanvasCommands.py:update(): select tool corresponding to new foreground colour on change thereof.
libroar/RoarCanvasCommandsEdit.py:canvasColour(): specify <Control> <[0-9]> & <Control> <Shift> <[0-5]> accelerators.
libroar/RoarCanvasCommandsEdit.py:canvasColourAlpha(): specify <Control> <Shift> 6 accelerator.
2019-09-16 17:13:55 +02:00
Lucio Andrés Illanes Albornoz
cc3f6958c4
Decisively vanquish the lion's share of ftupid fucking fcrolling.
...
libgui/GuiCanvasWxBackend.py: rOAorAoARRAORA ROaroAR RAOAr roar RAOAAAR...
libroar/Roar{AssetsWindow,Canvas{CommandsOperators,Window}}.py: RoaWORAROORAOARORARARRA!!
libtools/Tool{,Circle,Fill,Line,Object,Rect,Text}.py: ROAOaRoaROAROAROOAAAARORORAOR?
assets/text/TODO: updated.
2019-09-16 16:54:07 +02:00
Lucio Andrés Illanes Albornoz
e68a46f196
libtools/ToolText.py:arabicCombiningRegEx: added.
...
libtools/ToolText.py:onKeyboardEvent(): skip combining Arabic characters.
2019-09-16 14:52:11 +02:00
Lucio Andrés Illanes Albornoz
8ab52e7ff1
Initial implementation of Arabic character reshaping & handling.
...
libgui/GuiCanvasWxBackend.py:{arabicShapes{},_reshapeArabic()}: initial implementation.
libgui/GuiCanvasWxBackend.py:draw{CursorMaskWithJournal,Patch}(): update type signature.
libgui/GuiCanvasWxBackend.py:drawPatch(): call _reshapeArabic() on Arabic character patches.
libroar/Roar{Assets,Canvas}Window.py: pass updated set of arguments to backend.draw{CursorWithMask,Patch}().
libtools/ToolText.py:{arabicRegEx{},_checkRtl()}: initial implementation.
libtools/ToolText.py:_processKeyChar(): call _checkRtl().
libtools/ToolText.py:onKeyboardEvent(): initial implementation of RTL backspace support.
assets/text/TODO: updated.
2019-09-16 14:13:44 +02:00
Lucio Andrés Illanes Albornoz
02887e1542
libtools/ToolObject.py:_mouseEventTsTarget(): fix return value.
2019-09-16 11:42:50 +02:00
Lucio Andrés Illanes Albornoz
447d068c8b
libroar/RoarCanvasCommandsOperators.py:canvasOperator(): correctly {pass,set} parentCanvas.dirty.
...
assets/text/TODO: updated.
2019-09-16 11:38:14 +02:00
Lucio Andrés Illanes Albornoz
4d4ce6f86e
libroar/RoarCanvasCommandsTools.py:canvasTool(): call dropTarget.done() when setting new tool from external object as current tool.
2019-09-16 11:23:47 +02:00
Lucio Andrés Illanes Albornoz
2834fe531b
Allow pasting text when using text tool.
...
libtools/ToolText.py:{_processKeyChar,onKeyboardEvent}(): split from onKeyboardEvent().
libtools/ToolText.py:onKeyboardEvent(): obtain & iteratively _processKeyChar() clipboard text on <Control> V.
libtools/ToolText.py:onKeyboardEvent(): dispatch cursor patch once after {drawing,pasting}.
assets/text/TODO: updated.
2019-09-16 11:15:23 +02:00
Lucio Andrés Illanes Albornoz
e6bdc52af2
Honour RTL flow in text tool.
...
libtools/ToolText.py:rtlRegEx: added.
libtools/ToolText.py:onKeyboardEvent(): move backwards given RTL keyChar.
assets/text/TODO: updated.
2019-09-16 10:09:25 +02:00
Lucio Andrés Illanes Albornoz
f2a19e0bf3
Fully implement {{arrow keys,backspace,enter},arrow keys} in {text,} tool{,s}.
...
libroar/RoarCanvasWindow.py:applyTool(): delegate updating of brushPos to ToolText if current tool.
libroar/RoarCanvasWindow.py:applyTool(): fix function result.
libroar/RoarCanvasWindow.py:applyTool(): pass updated set of arguments to on{Keyboard,Mouse}Event().
libroar/RoarCanvasWindow.py:onKeyboardInput(): allow wrapping around canvas when receiving cursor key input.
libroar/RoarCanvasWindow.py:onKeyboardInput(): supply keyCode or None to applyTool().
libroar/RoarCanvas{CommandsTools,Window}.py: supply keyCode or None to applyTool().
libtools/Tool{,Circle,Fill,Line,Object,Rect}.py:on{Keyboard,Mouse}Event(): update type signature.
libtools/ToolText.py:onKeyboardEvent(): fully implement {arrow keys,backspace,enter}.
libtools/ToolText.py:onKeyboardEvent(): update cursor when necessary.
libtools/ToolText.py:onMouseEvent(): correctly set brushPos if mouseLeftDown or mouseRightDown.
libtools/ToolText.py:__init__(): removed.
assets/text/TODO: updated.
2019-09-16 09:55:30 +02:00
Lucio Andrés Illanes Albornoz
1f7d63802c
libcanvas/CanvasExportStore.py:exportTextBuffer(): correctly encode {bold,underline} cell state changes.
2019-09-16 08:52:04 +02:00
Lucio Andrés Illanes Albornoz
0c1b62a609
libtools/ToolFill.py: honour cell background colour & character on LMB, cell background colour only on RMB.
2019-09-16 08:45:03 +02:00
Lucio Andrés Illanes Albornoz
da15324fee
Fix underlined cells rendering.
...
libgui/GuiCanvasWxBackend.py: FUCK YOU WXPYTHON
assets/text/TODO: updated.
2019-09-16 08:39:55 +02:00
Lucio Andrés Illanes Albornoz
9de2f906ba
liboperators/OperatorFlipVertical.py:{flipPairs,apply()}: correctly flip flippable text characters.
...
assets/text/TODO: updated.
2019-09-16 08:13:55 +02:00
Lucio Andrés Illanes Albornoz
a295d2c524
libroar/RoarCanvasCommandsFile.py:canvasSaveAs(): fix self.canvasPathName reference.
...
libroar/RoarCanvasWindow.py:applyTool(): don't dispatch cursor patch if mapPoint == None.
libroar/RoarCanvasWindow.py:applyTool(): correctly handle cursor tool.
assets/text/TODO: updated.
2019-09-16 08:05:50 +02:00
Lucio Andrés Illanes Albornoz
55dfbbb13f
Implements cursor tool & arrow keys navigation.
...
assets/images/toolCursor.png: added.
libroar/Roar{CanvasCommands{,Tools},Client}.py: adds cursor tool.
libroar/RoarCanvasWindow.py:applyTool(): dummy-handle cursor tool.
libroar/RoarCanvasWindow.py:onKeyboardInput(): update cursor position & cursor on {down,left,right,up} arrow key input.
assets/text/TODO: updated.
2019-09-15 21:33:19 +02:00
Lucio Andrés Illanes Albornoz
738b1db74e
Implements invert colours operator.
...
liboperators/OperatorInvert.py: initial implementation.
libroar/RoarCanvasCommandsOperators.py: adds OperatorInvert.
assets/text/TODO: updated.
2019-09-15 20:43:49 +02:00
Lucio Andrés Illanes Albornoz
498a20cd28
assets/images/roar.png: updated.
2019-09-15 20:31:40 +02:00
Lucio Andrés Illanes Albornoz
cad73fd135
libtools/ToolObject.py:_mouseEventTsSelect(): reset object{Map,Size} when resetting to TS_NONE.
2019-09-15 19:37:10 +02:00
Lucio Andrés Illanes Albornoz
0d5f588108
Fix assets management canvas panel scrolling.
...
libgui/GuiWindow.py: ONCE, THERE WAS A _LETHALLY FUCKING WOUNDED_ WXPYTHON
libroar/RoarAssetsWindow.py: ON THE VERY EDGE OF ITS MISERABLE EXISTENCE
libroar/RoarCanvasWindow.py: BECAUSE A LION VICIOUSLY MAULED IT AND TORTURED IT FOR 392 DAYS AND TWO (2) SECONDS
2019-09-15 16:54:19 +02:00
Lucio Andrés Illanes Albornoz
209b908fb4
Inhibit {drag & drop,{un,re}do} during object tool usage.
...
libroar/RoarCanvasCommands.py:update(): disable {re,un}do {menu,toolbar} items on lastPanelState["undoInhibit"].
libroar/RoarCanvasWindow.py:applyTool(): call commands.update(undoInhibit=True) after active object tool usage.
libroar/RoarCanvasWindow.py:OnDropText(): inhibit during active object tool usage.
2019-09-15 16:04:38 +02:00
Lucio Andrés Illanes Albornoz
80b6b151db
libroar/RoarCanvasWindow.py:onKeyboardInput(): enter pdb on <Shift> <Pause>.
2019-09-15 15:17:27 +02:00
Lucio Andrés Illanes Albornoz
bc50a0ca43
libroar/RoarCanvasWindow.py:RoarCanvasWindowDropTarget.{done,OnDropText,__init__}(): {honour,set} inProgress.
...
libroar/RoarCanvasWindow.py:applyTool(): call dropTarget.done() when resetting to last tool.
2019-09-15 13:57:41 +02:00
Lucio Andrés Illanes Albornoz
9c6b7fa9b2
Implements object tool operators context menu.
...
libgui/GuiFrame.py: _FUCK_ _YOU_ WXPYTHON
libroar/RoarCanvasCommandsOperators.py: I _FUCKING_ _HATE_ WXPYTHON
libroar/RoarCanvasWindow.py: DIE IN A DITCH WXPYTHON YOU ROTTING PILE OF FUCKING HIPPOPOTAMUS SHIT
libroar/RoarClient.py: I HATE WXPYTHON I HATE WXPYTHON I HATE WXPYTHON I HATE WXPYTHON I HATE WXPYTHON
2019-09-15 13:52:44 +02:00
Lucio Andrés Illanes Albornoz
dd5dcdcdd4
libroar/RoarCanvasWindow.py:onPaint(): invariably remove cursor prior to calling backend.onPaint().
...
libroar/RoarCanvasWindow.py:onScroll(): removed.
2019-09-15 12:58:39 +02:00
Lucio Andrés Illanes Albornoz
9d045fe455
libroar/RoarCanvasCommands.py:update(): disable undo if on last undo item.
2019-09-15 12:52:27 +02:00
Lucio Andrés Illanes Albornoz
eda8034075
libgui/GuiFrame.py:{_init,load}Menu(): split from loadMenu(), implement nested (sub)menus.
...
libroar/RoarCanvasCommandsEdit.py: put {brush,canvas} size commands into submenu.
libroar/RoarCanvasCommandsFile.py: put {ex,im}port commands into submenu.
assets/text/TODO: updated.
2019-09-15 12:41:14 +02:00
Lucio Andrés Illanes Albornoz
4b89180efe
Replace RMB w/ LMB outside of region as end selection UI.
...
libtools/ToolObject.py: cleanup.
assets/text/TODO: updated.
2019-09-15 11:55:59 +02:00