[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Patch for KPresenter (Undo and Redo with Text Object)
From: David Faure <david () mandrakesoft ! com>
Date: 2001-05-24 12:09:47
[Download RAW message or body]
On Thursday 24 May 2001 14:28, Werner Trobin wrote:
> David Faure wrote:
> >
> > On Thursday 24 May 2001 08:11, Werner Trobin wrote:
> > > Toshitaka Fujioka wrote:
> > > >
> > > > On Tuesday 22 May 2001 19:44, Toshitaka Fujioka wrote:
> > > > [snip]
> > > > > 2. Crash assumes that I execute Redo after I select it more than
> > > > > one character, and pushed Del or Back Space or Ctrl+X key.
> > > > > (Even if this problem doesn't apply a patch, it is generated.)
> > > >
> > > > Sorry, it is not Redo. It is Undo.
> > >
> > > I'm sorry, but I don't have the time right now (exams,
> > > projects,...). Anyone?
> >
> > Hmm, ok, but you wrote this undo/redo integration (between the text-object
> > and kpresenter's global history). Does the patch look sensible at first sight
> > (i.e. not necessarily testing it) ?
>
> The problem I see is that it manipulates the local text object
> history and not the global one. I didn't test it, but I can
> imagine that some commands are undone and still are "scheduled
> for undo" in the global history.
I see.
> The connection between those histories is really simple: Every time
> a text object creates a command for its history we store a fake
> command in the global history. If we undo that one, we forward the
> undo request to the local history. Period. This will get out of
> sync with this patch :}
Yes, that's exactly how I did it in KWord too.
If the problem is with "redo" only, doesn't that mean that you forgot to
do the same with redo ?
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic