Undo/Redo logic.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Undo/Redo logic.

Gianluigi
In addition to what Gambas already provides for some controls, I would like
to implement undo/redo on the whole project level.
I tried to understand the logic of Gambas's IDE, unfortunately without
success.
Which is the right way forward.

Regards
Gianluigi
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: Undo/Redo logic.

jsbsan
Gianluigi:

I leave you an example where you can see the use of the Command pattern to
do and undo. Hope this can help you.

http://jsbsan.blogspot.com.es/2013/11/patron-command-implementar-deshacer-y.html


Regards

Julio



2017-07-18 14:05 GMT+02:00 Gianluigi <[hidden email]>:

> In addition to what Gambas already provides for some controls, I would like
> to implement undo/redo on the whole project level.
> I tried to understand the logic of Gambas's IDE, unfortunately without
> success.
> Which is the right way forward.
>
> Regards
> Gianluigi
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: Undo/Redo logic.

Gianluigi
Hi Julio,
only now I could take a look.
It looks like a very interesting code.
As soon as possible I go to study it, then I'll let you know.
Thank You very much.

Regards
Gianluigi

2017-07-18 19:31 GMT+02:00 Julio Sanchez <[hidden email]>:

> Gianluigi:
>
> I leave you an example where you can see the use of the Command pattern to
> do and undo. Hope this can help you.
>
> http://jsbsan.blogspot.com.es/2013/11/patron-command-
> implementar-deshacer-y.html
>
>
> Regards
>
> Julio
>
>
>
> 2017-07-18 14:05 GMT+02:00 Gianluigi <[hidden email]>:
>
> > In addition to what Gambas already provides for some controls, I would
> like
> > to implement undo/redo on the whole project level.
> > I tried to understand the logic of Gambas's IDE, unfortunately without
> > success.
> > Which is the right way forward.
> >
> > Regards
> > Gianluigi
> > ------------------------------------------------------------
> > ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Gambas-user mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: Undo/Redo logic.

Gianluigi
In reply to this post by jsbsan
Hi Julio,
That's exactly what I was asking.
I'm trying to put it into practice in a program that if I succeed, I will
post in the Farm.
Thank you very much

Regards
Gianluigi

2017-07-18 19:31 GMT+02:00 Julio Sanchez <[hidden email]>:

> Gianluigi:
>
> I leave you an example where you can see the use of the Command pattern to
> do and undo. Hope this can help you.
>
> http://jsbsan.blogspot.com.es/2013/11/patron-command-
> implementar-deshacer-y.html
>
>
> Regards
>
> Julio
>
>
>
> 2017-07-18 14:05 GMT+02:00 Gianluigi <[hidden email]>:
>
> > In addition to what Gambas already provides for some controls, I would
> like
> > to implement undo/redo on the whole project level.
> > I tried to understand the logic of Gambas's IDE, unfortunately without
> > success.
> > Which is the right way forward.
> >
> > Regards
> > Gianluigi
> > ------------------------------------------------------------
> > ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Gambas-user mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user