gEDA-dev: PCB patch for "SetChangedFlag" action, work on project manager

Peter Clifton pcjc2 at cam.ac.uk
Fri Aug 25 07:45:40 EDT 2006


Hi,

Attached is a patch for PCB to add an action "SetChangedFlag" which sets
the changed flag on a layout.

We are intending to script PCB from our project manager application over
a pipe, and need a way to remotely save an open layout to a temporary
file, make a few edits, and get PCB to reload it for the user. The
project manager then needs to get PCB to mark the layout as changed, so
they are prompted to save it to keep the changes.


I'm investigating whether we need to backup, replace and then restore
the user's layout file to make PCB use the right filename when they then
use "File -> Save", or if futher scripting can be used to open a file
from a temporary file, but instruct that PCB saves it as a different
file name when using File -> Save.


We intend to have a project manager update the layout using gschem2pcb,
but update a currently loaded layout updated on the fly with stdin
scripting to the PCB session.

My feeling is that if done cleverly, the user may revert this with a
simple "Edit -> Undo" if they don't like the changes made. I'd intended
deletions to "just happen", and new components to be loaded, eg. from
"foo.new.pcb", to be placed into the user's paste buffer and paste mode
be selected.

I appreciate that this will over-write what the user has in their paste
buffer, but perhaps I can prompt to ask if this is ok first. Perhaps I
could add an action to prompt the user with a dialog, questioning if it
ok to make changes to bring the layout up to date.

Regards

Peter Clifton

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcb_set_changed.patch
Type: text/x-patch
Size: 1154 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20060825/301daca3/pcb_set_changed.bin


More information about the geda-dev mailing list