History log of /haiku/src/apps/haikudepot/textview/TextDocumentView.cpp
Revision Date Author Comments
# 4f9df95d 23-Nov-2023 PulkoMandy <pulkomandy@pulkomandy.tk>

HaikuDepot TextView: add a way to relayout when document changed

When adding new paragraphs or otherwise editing a document from outside
the view, the layout needs to be recomputed and the view invalidated.
Otherwise, the changed text is not shown.

Change-Id: Id3c60d8b510443f71ebbc805b7b7ca5b35220fd5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7131
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 6af13813 23-Nov-2023 PulkoMandy <pulkomandy@pulkomandy.tk>

HaikuDepot TextView: add support for hyperlinks/clikable areas

Specific text spans can be assigned a cursor and BMessage to send when
they are clicked. This allows for implementing hyperlinks, specific
popup menus, and clickable text of any type.

With some extra work it can also be used to implement spell checking
suggestions, buttons, and so on.

Change-Id: I390e0c44656da76a950c432bdd934bd51af49baf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7130
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 779ab335 09-Dec-2020 X512 <danger_mail@list.ru>

use .IsSet() instead if .Get() != NULL

Change-Id: Ia2b7a719fd398e78cc3b11d4f7b02cb81179f65f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3488
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


# 1fa37d5a 13-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: Text: Fix regression for B_SELECT_ALL

An Invalidate() was removed, since I originally planned to remove the need
to invalidate on selection changes, but then saved it for later.


# 8d611f17 10-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

TextDocumentView: Fixed leak of BMessageRunner.


# 81f55cc8 10-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot, text framework: Rework blinking the caret

Make sure that the caret starts blinking half a second after it last moved.
The previous solution using Pulse() had a number of problems:
* The caret could be hidden during moving it or during typing. It would then
be shown again very soon after, i.e. when typing the next character or
when moving it to the next offset. But it looks bad anyway.
* When the caret stopped moving, it started blinking a random amount of
time afterwards, getting back into the rhythm of Pulse() messages.
However, starting to blink a constant time after the caret last moved,
looks much more satisfying.


# 87084745 07-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

HaikuDepot: Clean up trailing whitespace.


# 6e2ac177 09-Nov-2014 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: Added SetSelectable(bool) to TextDocumentView.


# 96ebc1d6 12-Oct-2014 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: React to B_SELECT_ALL in custom text view


# d7f7bf2d 24-Mar-2014 Axel Dörfler <axeld@pinc-software.de>

Renamed HaikuDepot's home to haikudepot.

* This closes #10699. I mentioned that to stippi after his first commit
of HaikuDepot, anyway :-)


# 1fa37d5af89141df852e589279511e395194efe6 13-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: Text: Fix regression for B_SELECT_ALL

An Invalidate() was removed, since I originally planned to remove the need
to invalidate on selection changes, but then saved it for later.


# 8d611f17a760bdc44f17b5596cb7d0ce0fd60c7e 10-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

TextDocumentView: Fixed leak of BMessageRunner.


# 81f55cc89634031595877920f30a8460c305ccdd 10-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot, text framework: Rework blinking the caret

Make sure that the caret starts blinking half a second after it last moved.
The previous solution using Pulse() had a number of problems:
* The caret could be hidden during moving it or during typing. It would then
be shown again very soon after, i.e. when typing the next character or
when moving it to the next offset. But it looks bad anyway.
* When the caret stopped moving, it started blinking a random amount of
time afterwards, getting back into the rhythm of Pulse() messages.
However, starting to blink a constant time after the caret last moved,
looks much more satisfying.


# 8708474567be756984f35cd6c5bfcc2c9546dc1e 07-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

HaikuDepot: Clean up trailing whitespace.


# 6e2ac1775ee301662cf7121b5c451d39b3c84459 09-Nov-2014 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: Added SetSelectable(bool) to TextDocumentView.


# 96ebc1d602e35ec14d1cf269415b4cbfce7ba06b 12-Oct-2014 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: React to B_SELECT_ALL in custom text view


# d7f7bf2d890f652e20b8cf34e9b4c6ae1d3e20eb 24-Mar-2014 Axel Dörfler <axeld@pinc-software.de>

Renamed HaikuDepot's home to haikudepot.

* This closes #10699. I mentioned that to stippi after his first commit
of HaikuDepot, anyway :-)