Re: Edditting - Re: Generic Embeddable plugins

From: J.M. Maurer <j.m.maurer_at_student.utwente.nl>
Date: Wed Jan 12 2005 - 22:10:54 CET

On Wed, 2005-01-12 at 14:10 +1100, msevior@physics.unimelb.edu.au wrote:
> HI Everyone,
>
> I just realized that it is easy to add editting to plugins by have having
> a single extra method to the pluginManager class.
>
> virtual bool editMe(UT_sint32 uid);
>
> Executing this method edits the object. This can be a simple fork/exec
> with the contents of the description passed to the external program. After
> a save operation the altered contents are re-rendered on screen via a
> changeObject(..) call to the PD_Document. This causes the object and
> surrounding text to be re-rendered.

neato, except for your function names :-P

s/createMe/construct
s/editMe/edit or s/editMe/modify

... or something like that ;-)

Rock on,
  Marc
Received on Wed Jan 12 22:10:48 2005

This archive was generated by hypermail 2.1.8 : Wed Jan 12 2005 - 22:10:48 CET