On May 3, 2011, at 12:49 AM, Martin Nordholts wrote:
> I'm convinced (others are not) we should use the proven
> http://en.wikipedia.org/wiki/Command_pattern and
> http://en.wikipedia.org/wiki/Composite_pattern for macro recording and
> wrote some patches a while ago that introduced a GimpCommand and a
> GimpGroupCommand class. I didn't have time to even turn it into a
> working prototype however.

Hi Martin,

It sounds like that there are other thoughts about how to implement the macro 
system? During my GIMP hack last year, my impression was that macro recording 
should be done in PDB. And I did not do so because not every functions went 
through PDB, e.g. those stroke functions (please correct me if my memory did 
not serve me right). 

> This is not a trivial refactoring, but we need to do it eventually.

Yes, this is non-trivial and I am certainly not the best one to do such heavy 
duty stuff. And I still don't feel too comfortable seeing all those GObject and 
Glib stuffs...I guess I will first release my hacked and messy GIMP version for 
researchers first...

In any case, the GIMP community helps me a lot and I do like to contribute 
something back, i.e. integrate my system into GIMP core.


Gimp-developer mailing list

Reply via email to