[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Undo system
From:       "Sven Langkamp" <sven.langkamp () gmail ! com>
Date:       2007-03-08 17:21:08
Message-ID: 478b087a0703080921x7adf66efxe6c24c83e6f5ae59 () mail ! gmail ! com
[Download RAW message or body]

Hi,

I have been working on the undo system and there are some issues that
I would like to discuss:

- Currently most of the commands are inside an anonymous namespace, so
that you can only create commands in the class they belong to. With
the new undo system the classes don't have access to the undoadapter
anymore and need to be added to the undo stack outside of it.

There are two ways:  Either add methods to KisImage etc. which create
every command or seperate the commands from the main class.

I prefer the second way as is more flexible. On the other hand it
would be needed to expose more of the internals.


- At the moment the commands in KisImage work recursive, which should
be avoided. It's not clear who is responsible for the locking of the
image. There are cases where the image is locked and unlocked three
times.

I think the locking of the image should be done by the command only.


- There isn't a KisCommandHistoryListener at the moment, but it's
needed for the transform tools. My idea was that KisDoc2 could
override the addCommand function, but would make the transform tool
Krita only.

Comments?


Sven
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic