Commit graph

232 commits

Author SHA1 Message Date
ysj1173886760
72162c41b4 GRAPHICS: MACGUI: introduce _plainByteMode to mactext for working with plain bytes. introduce _encodeType to mactext for recording encoding type 2021-06-20 14:33:53 +02:00
ysj1173886760
d30e009eff GRAPHICS: MACGUI: fix regression of scrolling cursor in mactext 2021-06-13 00:41:26 +02:00
ysj1173886760
ce11b8efb9 GRAPHICS: MACGUI: small fix for getRowCol in mactext to suit for new offset system 2021-06-13 00:41:26 +02:00
ysj1173886760
e18b26d69e GRAPHICS: MACGUI: clean most of the offset in mactext 2021-06-13 00:41:26 +02:00
ysj1173886760
e575393e52 GRAPHICS: MACGUI: fix the cursor position calculating in mactext 2021-06-13 00:41:26 +02:00
djsrv
7baac7da4d GRAPHICS: MACGUI: Fix out of bounds array access 2021-06-10 10:58:27 -04:00
djsrv
8ac995cf8a GRAPHICS: MACGUI: Allow selection to be drawn on inactive text
Hilite can select text on an inactive text field
2021-06-10 10:57:19 -04:00
ysj1173886760
86e21663d5 GRAPHICS: MACGUI: fix setSelection offset in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
34972626d4 GRAPHICS: MACGUI: remove the selection after we set maxWidth in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
4c3630f648 GRAPHICS: MACGUI: undraw the cursor when we are selecting in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
9b262360ed GRAPHICS: MACGUI: complete setMaxWidth in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
24821716db GRAPHICS: MACGUI: fix drawing selection when we have a not complete line in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
8caf7abf4a GRAPHICS: MACGUI: fix getRowCol when we have text alignment, modify the behaviour when we drawing selection in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
68f0483458 GRAPHICS: MACGUI: enhance getRowCol in mactext by using bsearch 2021-06-10 13:58:41 +02:00
ysj1173886760
d02ec882de GRAPHICS: MACGUI: fix selection drawing when we have text alignments in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
5e734b0ca0 GRAPHICS: MACGUI: fix cursor drawing when we scroll the mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
51698610d2 GRAPHICS: MACGUI: inherit paragraphEnd when we adding new line in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
bdf81ad565 GRAPHICS: MACGUI: fix the copy/paste operations when we have multi-paragraph selection in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
88541a8303 GRAPHICS: MACGUI: fix the behaviour when the selEnd and selStart has the same value, currently, we will move the cursor here, just as director does 2021-06-10 13:58:41 +02:00
ysj1173886760
0f7e7bd462 GRAPHICS: MACGUI: disable the ability of setting active in setEditable. currently, director will only set the first editable text widget to active 2021-06-10 13:58:41 +02:00
ysj1173886760
dea9455a96 GRAPHICS: MACGUI: introduce two variable to lingo, _selEnd and _selStart, which has default value -1. selEnd and selStart specify the selection area every time you activated the mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
0467fa91cc GRAPHICS: MACGUI: clear the selection and cursor after we de-activated the mactext. refresh mactext every time we change the active status 2021-06-10 13:58:41 +02:00
ysj1173886760
4419ae9a0b GRAPHICS: MACGUI: add default format before we are using the text from global clipboard 2021-06-03 13:19:10 +02:00
ysj1173886760
c88b6e2e04 GRAPHICS: MACGUI: move WM clipboard operations from mactext to macwindowmanager 2021-06-03 13:19:10 +02:00
ysj1173886760
43826c7839 GRAPHICS: MACGUI: clean the code for stripFormat in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
a5e6f59533 GRAPHICS: MACGUI: implement getTextFromClipboard and setTextInClipboard for mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
f68b3736a3 GRAPHICS: MACGUI: add clipboard which can help saving format from mactext for wm 2021-06-03 13:19:10 +02:00
ysj1173886760
8f36696f0f GRAPHICS: MACGUI: clean code for code analyse 2021-06-03 13:19:10 +02:00
ysj1173886760
924b7e1e08 GRAPHICS: MACGUI: fix incorrect offset calculating when drawing selection in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
ecac522c7f GRAPHICS: MACGUI: make mactext can scrollable now 2021-06-03 13:19:10 +02:00
ysj1173886760
eda07a54be GRAPHICS: MACGUI: modify the behaviour when we inserting character when we have selection in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
f320de75ff GRAPHICS: MACGUI: implement delete to mactext by using existing functions 2021-06-03 13:19:10 +02:00
ysj1173886760
1b92db9f80 GRAPHICS: MACGUI: fix incorrect selection drawing when mactext is not active 2021-06-03 13:19:10 +02:00
ysj1173886760
f0763f44cc GRAPHICS: MACGUI: fix the cursor position when using paste in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
4d4ad3c310 GRAPHICS: MACGUI: bring copy, paste, cut to mactext. currently, we are using copy with formatting 2021-06-03 13:19:10 +02:00
ysj1173886760
73b10b3e5e GRAPHICS: MACGUI: clean the surface when we are drawing selection in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
bd6887a6ea GRAPHICS: MACGUI: implement deleteSelection by using deletePreviousChar 2021-06-03 13:19:10 +02:00
ysj1173886760
cfac0f0513 GRAPHICS: MACGUI: add offset to drawSelection 2021-06-03 13:19:10 +02:00
ysj1173886760
b11dfdfeaa GRAPHICS: MACGUI: change the behavior of cursor and selectedText, currently, we won't draw the cursor when we have selectedText 2021-06-03 13:19:10 +02:00
D G Turner
a51f5e9c1a GRAPHICS: Fix GCC Compiler Warnings 2021-05-05 11:36:04 +01:00
Eugene Sandulenko
6e17562492
GUI: MACGUI: Make MacTextWindow working with plain fonts 2021-05-02 01:03:02 +02:00
Eugene Sandulenko
738db125e3
GRAPHICS: MACGUI: Make MacText work with plain text 2021-05-01 01:49:48 +02:00
Eugene Sandulenko
7d4f064a2a
GRAPHICS: MACGUI: Streamlined MacText initialization 2021-05-01 01:49:48 +02:00
ysj1173886760
549511c4b5 GRAPHICS: MACGUI: add rgb parameter for appendText, which makes mactext draws text with color, fix the logic when appending text 2021-04-25 02:24:15 +02:00
ysj1173886760
0a9ffd5f06 GRAPHICS: MACGUI: remove unnecessary codes 2021-04-25 02:24:15 +02:00
ysj1173886760
ee8d9dea03 GRAPHICS: MACGUI: set fgcolor as default format color when we are in win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
a98097e8d2 GRAPHICS: MACGUI: set fgcolor as default color, fix the behaviour for appendText when _str is empty 2021-04-25 02:24:15 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
ysj1173886760
2ab965e53e GRAPHICS: MACGUI: fix the bug dumping when initializing Wage Engine 2021-04-01 16:08:56 +02:00
ysj1173886760
c5481d9c02 GRAPHICS: MACGUI: modify the logic of drawInput and appendText, in order to fix the bug of cursor dislocation and incorrectly drawing the input 2021-04-01 16:08:56 +02:00