Commit Graph

733 Commits

Author SHA1 Message Date
ysj1173886760
36be209490 GRAPHICS: MACGUI: modify macbutton to fit new logic of mactext 2021-06-20 14:33:53 +02:00
ysj1173886760
3817c90148 GRAPHICS: MACGUI: deal with plain bytes specially when we calculating the string width. 2021-06-20 14:33:53 +02:00
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
3098ff11b4 GRAPHICS: MACGUI: parse slant directly from name when we didn't get any slants. 2021-06-20 14:33:53 +02:00
ysj1173886760
931817d907 GRAPHICS: MACGUI: restore the cursorType when we pop the cursor, currently we use kMacCursorArrow for the default one 2021-06-20 14:33:53 +02:00
ysj1173886760
112765eb6c GRAPHICS: MACGUI: add _inEditableArea to WM, to distinguish whether the cursor type is set by director or ourself 2021-06-20 14:33:53 +02:00
ysj1173886760
c8f603262b GRAPHICS: MACGUI: fix incorrect memory accessing 2021-06-20 14:33:53 +02:00
ysj1173886760
d31331eb9a DIRECTOR: modify the behaviour of resizeScreen to avoid memory leaks. Introduce _surface to director which will provide consistency for those engines which uses macgui. 2021-06-20 14:33:53 +02:00
ysj1173886760
4928f35aac GRAPHICS: MACGUI: create function "resizeScreen" to creating and resizing screen for WM 2021-06-20 14:33:53 +02:00
ysj1173886760
3517801f05 GRAPHICS: MACGUI: introduce different checkBoxType to macbutton 2021-06-20 14:33:53 +02:00
ysj1173886760
c9c3428ed6 DIRECTOR: use getDrawPixel instead of getDrawInvertPixel to invert button 2021-06-20 14:33:53 +02:00
ysj1173886760
3644f25946 DIRECTOR: fix button hilite 2021-06-20 14:33:53 +02:00
ysj1173886760
29cf9f1454 GRAPHICS: MACGUI: fix macbutton to suit for new mactext code. 2021-06-20 14:33:53 +02:00
ysj1173886760
c9091e8a46 GRAPHICS: MACGUI: add the check when we are disabling the screen copy 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
73916d9aca GRAPHICS: MACGUI: remove a case which has already been checked before in macWM 2021-06-10 13:58:41 +02: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
777a8c1d17 GRAPHICS: MACGUI: modify the logic when we are calculating PureTextSize in 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
12232c992a GRAPHICS: MACGUI: fix calculating the pure text size 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
d4abe958bd GRAPHICS: MACGUI: clean code for WM clipboard operations 2021-06-03 13:19:10 +02:00
ysj1173886760
e7e09e6bee GRAPHICS: MACGUI: make mactextwindow suit for new WM 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
f89977b4a2 GRAPHICS: MACGUI: fix and add the basic text operations in mactextwindow which is used in WAGE 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