[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Re: dxf?



> I will help some more with testing.  I gave DJ's plugin code examples a look, ( 
>     *  RenumberBlock  * Teardrops ), and they are maybe obvious to him, but the 
> c language without comments was opaque to me...  I will welcome a script interface.

The only thing you really need to understand is the very last bit:

static HID_Action teardrops_action_list[] = {
  {"Teardrops", NULL, teardrops,
   NULL, NULL}
};

REGISTER_ACTIONS (teardrops_action_list)

void
pcb_plugin_init()
{
  register_teardrops_action_list();
}

If you read src/hid.h in pcb's source tree, it tells you all about how
these work.  The net result of the above, is to add an action called
Teardrops() to the master action list in pcb.  Once you've done that,
it is available to the :command window and the action-script command
line options, and with the lesstif hid, you can bind it to a menu
entry or hotkey.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user