On 2/3/06, Gustav Broberg <broberg@...370...> wrote:
Would it be a good solution to declare an extra set of verbs (describing events on a more fine-grained level than event-context), and then pass one of those to sp_document_done()?
We already have verbs, but they are too crude for this. Many undoable actions are not done by verbs, and within a single verb there may be several undo commits with different annotations. Besides, these annotations will have to have a special grammatical form, so we can't reuse for example verb descriptions (e.g. "Moves selected object(s) to top" is the description, "moving object(s) to top" is the annotation of what has been done). Finally an annotation may contain changeable parts, e.g. the text that you have typed. So, I think adding a new argument of sp_document_done and writing/constructing an annotation string for each call is the best approach.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org