[Qgis-developer] Recent changes to legend

humarco marco.hugentobler at karto.baug.ethz.ch
Fri Jul 14 10:36:52 EDT 2006


Hi Gavin and Stephan,

I also don't like the new columns as they use too much space.

I may provide some background information why the support for overview glasses 
dropped away in 0.8. The main reason was that one legend layer may contain 
several files which can be in different editing/overview states. We had a 
similar problems with the 'allow editing' checkbox or the visibility checkbox 
at the legend layer level. The solutions for the first case was to grey out 
the 'allow editing' checkbox if there are several files in one layer. The 
solution for the second case was that the checkbox has an intermediate state 
which is displayed if several files under a legend layer have different 
visibilities.
Maybe a similar solution could be done for the icons: if there is only one 
file under a layer, the glasses/ pen is drawn on the layer pixmap (they of 
course have to be very small). If there are several files under a layer, they 
are drawn to the legend file pixmap.
What do you think?


See you after my holydays (back on monday, 24th),
Marco
 

Am Freitag, 14. Juli 2006 12:32 schrieb Stephan Holl:
> Hello Gavin,
>
> On Fri, 14 Jul 2006 21:09:38 +1200 (NZST) "Gavin Macaulay"
>
> <g.macaulay at niwa.co.nz> wrote:
> > Hi,
> >
> > SVN commit https://svn.qgis.org/trac/changeset/5594 made some changes
> > to the legend - two columns have been added to contain icons for
> > whether the layer is in the overview, and whether the layer is
> > editable. In my view, these extra columns make the legend unwieldy,
> > especially since the columns don't have anything in them for most of
> > the time (one needs to select 'Show File Groups', and then click on
> > the + symbol to see the icons).
> >
> > Version 0.7 of qgis did this much better, and I'd prefer to not have
> > the extra columns and icons in 0.8 until they can be better
> > integrated into the legend.
> >
> > Comments?
>
> Checked out and compiled. Nice. Let me post some comments from a
> user-view.
>
> I often have layers with long legend-names for classificated data. So
> with this new columns I need to horizontally scroll often, which is not
> very elegant.
>
> What do you think about changing the icon of the layer to something
> which indicates that it is editable (Pen?) or in overview (glasses?).
> There is the problem then, what should happen if the layer is editable
> and in the overview (pen with grasses?)
>
> Perhaps there is an easy option how to integrate the icons in the
> legend?
>
> Since I am no programmer I cannot give much input here.
>
> Cheers
> 	Stephan



More information about the Qgis-developer mailing list