Sorry to bother the list once more, but I can see that in some controls
(wxTextCtrl) in particular there are evidence of some form of undo
framework. Is this framework useable "out-of-the-box" or do I need to
make my own undo code?
If it is useable, how do I use it?
This is yet another thing I can't easily find in the wxWindows
documentation..
···
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
Sorry to bother the list once more, but I can see that in some controls
(wxTextCtrl) in particular there are evidence of some form of undo
framework. Is this framework useable "out-of-the-box" or do I need to
make my own undo code?
If it is useable, how do I use it?
This is yet another thing I can't easily find in the wxWindows
documentation..
I did just an implementation of the Command design pattern (from GoF) to give me unlimited undo/redo, etc. I'd be interested in comparing implementations and APIs if anyone else has done this...
On Fri, Dec 13, 2002 at 04:46:11PM -0800, Robb Shecter wrote:
>Sorry to bother the list once more, but I can see that in some controls
>(wxTextCtrl) in particular there are evidence of some form of undo
>framework. Is this framework useable "out-of-the-box" or do I need to
>make my own undo code?
>If it is useable, how do I use it?
>This is yet another thing I can't easily find in the wxWindows
>documentation..
I did just an implementation of the Command design pattern (from GoF) to
give me unlimited undo/redo, etc. I'd be interested in comparing
implementations and APIs if anyone else has done this...
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
the Command design pattern (from GoF) to give me unlimited undo/redo, etc.
Do you have a URL for this?
It's pretty much all over the web. It's one of the most amazing books out there, and there's a lot of sites with info about this stuff. Search for "Design Patterns"; authors names are Gamma, Helm, Johnson and Vlissides. The book is well worth the investment.
On Fri, Dec 13, 2002 at 07:58:33PM -0800, Robb Shecter wrote:
>>the Command design pattern (from GoF) to
>>give me unlimited undo/redo, etc.
>Do you have a URL for this?
It's pretty much all over the web. It's one of the most amazing books
out there, and there's a lot of sites with info about this stuff.
Search for "Design Patterns"; authors names are Gamma, Helm, Johnson
and Vlissides. The book is well worth the investment.
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
I didn't read GoF yet, but found some description about UndoManager
on developer.apple.com and this gave me some ideas about how to
implement undo/redo for XRCed. You can look in undo.py file. Maybe
something more generic can be written.
Regards,
Roman
···
On Fri, Dec 13, 2002 at 04:46:11PM -0800, Robb Shecter wrote:
I did just an implementation of the Command design pattern (from GoF) to
give me unlimited undo/redo, etc. I'd be interested in comparing
implementations and APIs if anyone else has done this...