On 2005-04-03, 17:46, Lars Clausen wrote:
> On Sun, 2005-04-03 at 16:19 +0200, Simon Kagstrom wrote:
> > On 2005-04-03, 16:11, Lars Clausen wrote:
> > > We could do a slight hack and say that if the argument to
> > > --export-layers is in [0-9,-] then it's layer numbers, otherwise it's
> > > layer names.  If somebody names all their layers just numbers, they
> > > might get confused, and we could emit a warning if a layer name is just
> > > digits and dashes.
> > 
> > True. Well, I could try to do some reworking of the patch to integrate it 
> > into
> > the --show-layers= option instead. The only thing that would worry me then 
> > is
> > that the option can be hard to understand in the start since it comes in 
> > many
> > forms. On the other hand, I guess it could be useful to do something like
> > 
> > --show-layers=background,2-4,image
> 
> That could be useful.  There also ought to be a warning if a layer is
> specified multiple times.

I reimplemented the patch to support both named layers and ranges of numbered
layers. Things like

app/run_dia.sh -e tst.eps dijkstra_execution.dia --show-layers="Step 
5",0-1,Graph

work now and will issue warnings like "Warning: Layer 1 (Graph) selected more
than once." if a layer is selected more than once (but it still works). If
--show-layers= is given, no layers are exported.

The patch is available at

http://bugzilla.gnome.org/show_bug.cgi?id=172507

I'm afraid I uploaded an incorrect version first, sorry for that. I also
didn't touch the ChangeLog or the manual, but I can do that if I'm supposed to
do it :-)

// Simon
_______________________________________________
Dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia

Reply via email to