"edit separator" in text widget undo/redo mecanism
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

"edit separator" in text widget undo/redo mecanism

From: <moumou@igbmc.u-strasbg.fr>
Date: Thu Mar 02 2006 - 17:39:18 CET

Hello,

Just a remark about separator in undo/redo mecanism in text widget.

I'm writing an app with two text widgets, linked to each other, i.e.
what happened in one widget has an influence in the other widget. I
create a "undo/redo" mecanism acting simultaneously on the two widgets.
So, after user operations (cut, paste, edition), I insert an "edit
separator" in both widget (I disabled the "autoseparator option). In
some cases, I can act only on one widget, without affecting the other.
In order to get "synchronized" in the undo/redo mecanism, I'm then
obliged to generate dummy action in the other widget, as the "edit
separator" are not able to stack on each other.

The solution consisting of creating two separated "redo/undo" mecanisms
is not relevant, as the two widgets are for too connected to each
other.

I'm then wondering if a flag allowing the stacking of separators could
be done

Thanks !
Received on Sun Apr 30 02:20:50 2006