gEDA-dev: [PATCH] gattrib: reorganize file opening code

Peter TB Brett peter at peter-b.co.uk
Wed Aug 1 18:17:47 EDT 2007


On Wednesday 18 July 2007 12:18:30 Stuart Brorson wrote:

> I'd be willing to hear of other example uses from others who have a
> different opinion.

Firstly, a gsch2pcb project file already contains all of the information 
needed about which schematics belong together.  Perhaps formalizing the file 
format and extension (useful for xgsch2pcb) would provide a good way to sort 
this problem out.  Then the File menu could look something like:

  Open...

  Add Schematic...

  Save

  Quit

Open Schematic: prompt to save if there are extant modifications, then show 
file selector for schematic files or project files.  N.b. that you should 
probably be allowed to select multiple project files, but only a single 

Add Schematic: show file selector for schematic files.  The selected schematic 
is added to the 

Save: Save all schematics.  If there is a current project, update the list of 
schematics in the on-disk file; otherwise, ask the user if he wants to save 
the project file, and show a Save As... dialog if he accepts.

Does this sound reasonable?  (Or if not hopefully a useful discussion 
point. ;)

                      Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.seul.org/pipermail/geda-dev/attachments/20070801/128604a3/attachment-0001.pgp 


More information about the geda-dev mailing list