Commit graph

52 commits

Author SHA1 Message Date
rinevard
1e763a8afe GRAPHICS: MACGUI: Adding getLineHeight() to MacTextWindow 2025-03-18 13:32:56 +08:00
Scott Percival
2d58f99fd6 DIRECTOR: Overhaul TextCastMember
Include new properties/aliases introduced in D5, fixes crashes related
to incorrect casting to MacText.
2025-02-04 15:24:17 +01:00
Eugene Sandulenko
5719847354 GRAPHICS: MACGUI: Pass setMarkdownText through MacTextWindow 2023-09-17 00:56:28 +02:00
Harishankar Kumar
442c1a5d41 DIRECTOR: Implement events for scroll type text cast
This patch implements events for scrolltype text cast members, callbacks
in MacTextWindow is used to redirect events to director engine.

`ATD\HD\bbTWRFL2.DXR@392` of 'totaldistortion-win' uses `mouseUp` score
script attached to scrolltype text cast member, which when clicked calls
`getMouseLine` to find the clicked book, thus opening it.
2023-08-03 09:49:20 +02:00
Harishankar Kumar
23f1229e67 GRAPHICS: MACGUI: Refactor resize() to extract inner window resizing
resize function is extracted to new function resize and resizeInner,
also a new private function rebuildSurface is created to handle common
code of refreshing/rebuilding surface after modifying inner or outer
window dimensions.
2023-05-31 13:29:33 +02:00
Eugene Sandulenko
4bce66edbb
GRAPHICS: MACGUI: Fix warnings 2022-08-05 20:20:53 +02:00
Avijeet
02194c87af GRAPHICS: MACGUI: Make MacText editable when MacTextWindow is editable 2022-08-05 20:15:03 +02:00
Avijeet
d933b504ed GRAPHICS: MACGUI: Change MacText's dimensions when MacTextWindow's dimensions are changed 2022-08-05 20:15:03 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko
6e17562492
GUI: MACGUI: Make MacTextWindow working with plain fonts 2021-05-02 01:03:02 +02:00
ysj1173886760
fb7ed6f845 GRAPHICS: MACGUI: add textRGB for mactextwindow to suit new logic of mactext when drawing the text with color. add window feature DynamicScrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760
d437b22b6b GRAPHICS: MACGUI: fix the behaviour of scrollbar of win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
7ef3b88a94 GRAPHICS: MACGUI: save background color for mactextwindow, add new behaviour for win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
0dcde7c96a GRAPHICS: MACGUI: add new feature that when scroll wheel, the scroll bar will also display 2021-04-01 16:08:56 +02:00
Eugene Sandulenko
927825f6ac GRAPHICS: MACGUI: Fix overridden method footprint 2020-07-07 12:17:18 +02:00
Nathanael Gentry
45937130dd GRAPHICS: MACGUI: Begin reorganizing text classes
MacEditableText has been merged into MacText. The Director engine, which relies
upon MacEditableText, is also updated here.
2020-06-12 15:27:37 -04:00
Eugene Sandulenko
430915ce00 GRAPHICS: MACGUI: Const'ness 2020-04-27 13:57:35 +02:00
Eugene Sandulenko
2fb21ba90a GRAPHICS: MACGUI: Split drawing and blitting operations for widgets 2020-04-14 00:42:39 +02:00
Eugene Sandulenko
419cb1e7c7 GRAPHICS: MACGUI: Switched MacText to U32String internally 2019-10-18 17:20:27 +02:00
Eugene Sandulenko
695ba47063 GRAPHICS: MACGUI: Added possibility to create read only text windows 2019-10-15 23:58:00 +02:00
Andrei Prykhodko
75eceedfa5 GRAPHICS: MACGUI: add additional arg to MacTextWindow's constructor to disable cursor handler 2018-07-29 21:23:04 +03:00
Eugene Sandulenko
8458630e50 GRAPHICS: MACGUI: Added support for scrolling with mouse wheel 2017-08-22 10:25:00 +02:00
Eugene Sandulenko
615af937df GRAPHICS: MACGUI: Initial code for MacTextWindow::cutSelection() 2017-08-14 09:19:41 +02:00
Eugene Sandulenko
0e2d14ac41 GRAPHICS: MACGUI: Initial code for Cutting/Paste multiline input texts 2017-08-08 11:25:55 +02:00
Eugene Sandulenko
6e690dbca9 GRAPHICS: MACGUI: Do not draw selection in the initial state 2017-08-07 12:18:20 +02:00
Eugene Sandulenko
4fea533dfd GRAPHICS: MACGUI: Added more selection manipulation methods to MacTextWindow 2017-08-05 00:05:44 +02:00
Eugene Sandulenko
dd2123f8bf GRAPHICS: MACGUI: Added method to append input to MacTextWindow 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
23649e8d87 GRAPHICS: MACGUI: Initial code for copying selection to clipboard 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
afb664df29 GRAPHICS: MACGUI: Made selection affecting the MacMenu 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
145b7c9ec9 GRAPHICS: MACGUI: Initial selection drawing code to MacTextWindow 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
b3c8a8e129 GRAPHICS: MACGUI: Align and store MacText selection coordinates 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
c5da0bece4 GRAPHICS: MACGUI: Remove redundant method from MacTextWindow 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
c25a26d11c GRAPHICS: MACGUI: Event processing code for text selection in MacTextWindow 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
04bb7c3e7a GRAPHICS: MACGUI: Reduce constant scope 2017-08-04 21:54:20 +02:00
Eugene Sandulenko
4e044d7bd3 GRAPHICS: MACGUI: Do not add input line to the original MacText content
During resize we were replaying all MacText appends, which was including
whole history of the input. Eek.
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
59d6b63b0f GRAPHICS: MACGUI: undraw input text before resizing MacTextWindow 2017-08-04 21:54:19 +02:00
Eugene Sandulenko
8609572b87 GRAPHICS: MACGUI: Correctly set MacTextWindow internal MacText size 2017-08-04 21:54:19 +02:00
Eugene Sandulenko
b6970ade92 GRAPHICS: MACGUI: Remove redundant method from MacTextWindow 2017-08-04 21:54:19 +02:00
Eugene Sandulenko
bc8d059f38 GRAPHICS: MACGUI: Draw input on MacTextWindow redraw 2017-08-04 21:54:19 +02:00
Eugene Sandulenko
a5c99c99f5 GRAPHICS: MACGUI: Remove redundant method from MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko
81c26caaf8 GRAPHICS: MACGUI: Exposed input text from the MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko
e832f1d650 GRAPHICS: MACGUI: Update cursor position as text being added to MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko
c2944fb5b8 GRAPHICS: MACGUI: Simplified cursor code is MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko
a2427fddd7 GRAPHICS: MACGUI: Initial code for cursor drawing in MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko
511b21d3cf GRAPHICS: MACGUI: Added font specifying to MacTextWindow 2017-08-01 10:42:21 +02:00
Eugene Sandulenko
9fe79b9e19 GRAPHICS: MACGUI: Made MacTextWindow processing keyboard input 2017-08-01 10:42:21 +02:00
Eugene Sandulenko
49c72c884a MACGUI: Fix compilation 2017-07-18 00:01:46 +02:00
VelocityRa
3a2ce12288 WAGE: Fix resizing and text selection bug
Revise/Simplify old optional text rendering
Set things up a bit for selected text rendering
Add MacTextWindow::clearText and MacTextWindow::setSelection
Add MacTextWindow::appendText variant that accepts a MacFont
2017-07-17 23:45:22 +02:00
VelocityRa
a169c7efb3 GRAPHICS: Use MacText::appendText to render formatted text
With this we can specify font, character size and slant that each
appended text will use.
2017-07-17 23:45:22 +02:00
VelocityRa
fe63eb7644 GRAPHICS: Introduce drawText, appendText and font in MacTextWindow 2017-07-17 23:45:22 +02:00