3 Mar 2006 12:23
Re: adding a method to KoCommandHistory
Clarence Dang <dang <at> kde.org>
2006-03-03 11:23:32 GMT
2006-03-03 11:23:32 GMT
On Wednesday 01 March 2006 22:14, David Faure wrote:
> On Wednesday 01 March 2006 06:14, Clarence Dang wrote:
> > On Monday 27 February 2006 01:27, Casper Boemann wrote:
> > > In order to solve a showstopper problem in krita I'm about to add a
> > > method to KoCommandHistory that returns a pointer to the present
> > > command in the undo stack. That is, the command that would be undone by
> > > the next undo().
> > >
> > > Krita will only use this to get information and will not modify the
> > > command in any way. This will not affect any other app or tool.
> > >
> > > I don't know if this is a viable longtime solution, but it does solve
> > > the krita problem and seem like a nice addition to the commandhistory
> > > interface. Comments ?
> >
> > KolourPaint has such a hack as well. Getting undo/redo right is tricky.
>
> For selection too?
Yes.
> > OTOH, the reason there is also a KolourPaint
> > kpCommandHistory is mainly due to licensing and supporting earlier
> > versions of KDE.
Also, I couldn't subclass {K,Ko}CommandHistory to do what I wanted: amount of
undo/redo history also bounded by estimated memory required.
> licensing? kdeui is LGPL, what's the problem?
(Continue reading)
RSS Feed