History log of /haiku/src/apps/haikudepot/textview/TextDocument.cpp
Revision Date Author Comments
# 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>


# f5ea62c4 24-Mar-2022 Augustin Cavalier <waddlesplash@gmail.com>

HaikuDepot: Fix another instance of std::remove.


# 79a174c7 23-Mar-2022 Augustin Cavalier <waddlesplash@gmail.com>

HaikuDepot: Fix usage of std::remove.

That's right kids, std::remove doesn't (and can't) actually remove
things from containers! Instead you have to pass its results into
container::erase in order to do anything at all.

Fixes #17579, and in my testing at least, the strange crashes
and heap corruptions.


# dfbcbde1 01-Mar-2021 Andrew Lindesay <apl@lindesay.co.nz>

HaikuDepot: Remove Custom List

Closes #15534

Change-Id: I23fa60145607c3e8f25552f24c5e2c630b940537
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3758
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 3d2fd2ac 18-Feb-2021 Andrew Lindesay <apl@lindesay.co.nz>

HaikuDepot: Remove Custom List

Further removal of the use of custom list class;
this time part of the test engine inside HD.

Relates To #15534

Change-Id: Ia1f1d7c2577f92bba96da392fd48949a13b5a169
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3745
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 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>


# 5f80d48a 20-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

TextDocument: Extended comment in _Insert().


# f890fab6 20-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

TextDocument: Change _Insert() to use TextDocument

In preparation for implementing Undo/Redo support, we need _Insert() to
take a TextDocument instead of a BString, CharacterStyle and ParagraphStyle.
When a chunk of the TextDocument has been removed, we need to be able to
Insert() that as part of the Undo operation. Not well tested, but typing
still works.


# 4a96bcda 06-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

Text frame work: Implement sending TextChangedEvents

TextDocument:
* Moved implementation of Remove() and Insert() into private methods.
* Reimplement all public Insert() methods and Remove() on top of Replace().
* In Replace(), send a TextChangedEvent. Added TODO for sending a
TextChangingEvent, although at this point, I am not sure if it will be
needed at all.


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

HaikuDepot: Clean up trailing whitespace.


# 4bf45bfb 22-Feb-2015 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: Added UndoableEditListener list to TextDocument

This is all work in progress. The plan is to move the code that does any
actual changes to the TextDocument into UndoableEdit implementations, then
emit these edits to interesed listeners. They can then store them to
implement the edit history. If there are not listeners, the edits will
simply be released after they've done their work.
Implemented so far is only the support for storing the edit listeners.


# 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 :-)


# 5f80d48a76353e7bf18a7ad69462974e0db1d455 20-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

TextDocument: Extended comment in _Insert().


# f890fab65b6370c2fa9cf5b840b1b01161dee7c0 20-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

TextDocument: Change _Insert() to use TextDocument

In preparation for implementing Undo/Redo support, we need _Insert() to
take a TextDocument instead of a BString, CharacterStyle and ParagraphStyle.
When a chunk of the TextDocument has been removed, we need to be able to
Insert() that as part of the Undo operation. Not well tested, but typing
still works.


# 4a96bcdafa42c26c252a8a2d1029fe96cea565ec 06-Sep-2015 Stephan Aßmus <superstippi@gmx.de>

Text frame work: Implement sending TextChangedEvents

TextDocument:
* Moved implementation of Remove() and Insert() into private methods.
* Reimplement all public Insert() methods and Remove() on top of Replace().
* In Replace(), send a TextChangedEvent. Added TODO for sending a
TextChangingEvent, although at this point, I am not sure if it will be
needed at all.


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

HaikuDepot: Clean up trailing whitespace.


# 4bf45bfb5d2366ab2e4b7d1cdd427729ed449c73 22-Feb-2015 Stephan Aßmus <superstippi@gmx.de>

HaikuDepot: Added UndoableEditListener list to TextDocument

This is all work in progress. The plan is to move the code that does any
actual changes to the TextDocument into UndoableEdit implementations, then
emit these edits to interesed listeners. They can then store them to
implement the edit history. If there are not listeners, the edits will
simply be released after they've done their work.
Implemented so far is only the support for storing the edit listeners.


# 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 :-)