Opened 6 years ago

Last modified 6 years ago

#9382 new enhancement

[StyledEdit] implement unlimited undo functionality

Reported by: diver Owned by: korli
Priority: normal Milestone: R1
Component: Applications/StyledEdit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by diver)

Currently StyledEdit supports one step undo only. Let's make it actually usable :-)

Change History (4)

comment:1 Changed 6 years ago by axeld

Component: Applications/ShowImageApplications/StyledEdit
Owner: changed from leavengood to korli

comment:2 Changed 6 years ago by diver

Description: modified (diff)

comment:3 Changed 6 years ago by jackburton

Might not be so simple. As you know, StyledEdit is simply using BTextView functionalities, and that class only supports one step undo. Maybe it's possible to create a derived class and implement a new undo "stack" in there.

comment:4 Changed 6 years ago by leavengood

It is API-creep going into R1, but adding a simple Undo API and then just using that in BTextView would be a good solution.

Even if it is kept private for now there are several places an undo API could be used within the Haiku applications. Even the new ResourceEdit application has an ad hoc undo system created by an GCI student.

Note: See TracTickets for help on using tickets.