[Qgis-developer] Discussion on browser and file extensions
etourigny.dev at gmail.com
Wed May 23 04:35:41 PDT 2012
I propose that a reasonable compromise would be the following (by
default) for 1.8:
- show extensions in browser (it is a "file browser" after all, and a
majority have shown support for it)
- no extension in legend nor anywhere else (ui noise, a minority support it)
This can be solved in code by removing the extension in the
QgsDataItem name() member, this way it does not have to be stripped in
and adding a QgsDataItem::fileName() member which the browser would
use for layer items. It very simple to fix now.
And if people really want choice: have an option to disable/enable the
extension display in browser and legend, but do this after 1.8.
On Wed, May 23, 2012 at 6:12 AM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
> I agree. Showing filetype in the legend is just ui noise that isn't needed. How
> often do you open the same layer from different sources with the same name.
> Even if people do I doubt it would be more then a couple and then the tooltips
> would do fine. Don't add something that adds UI noise for a 5% use case.
> Like Martain said, keep it simple. This is what QGIS should aim to excel at.
> I'm am in two minds about if extensions should be shown in the browser, again
> I worry that it is UI noise.
> - Nathan
> On Wed, May 23, 2012 at 7:01 PM, Giuseppe Sucameli
> <brush.tyler at gmail.com> wrote:
>> Hi Etienne,
>> On Wed, May 23, 2012 at 1:07 AM, Etienne Tourigny
>> <etourigny.dev at gmail.com> wrote:
>>> How about in the legend? I am 50/50 on that as there is always the
>>> option to change the layer names manually, and the tooltip does give a
>>> clue on the filetype.
>> IMHO no extensions should be displayed in the legend as well.
>> I thought I replied, now I notice it's not so clear I was talking about
>> layers in legend.
>> I quote myself:
>>> On Tue, May 22, 2012 at 7:58 PM, Giuseppe Sucameli
>>> <brush.tyler at gmail.com> wrote:
>>>> I guess a layer is just a layer. Distinguishing them by extensions just
>>>> means the base name is not complete.
>>>> If you have 2 layers with the same name probably they are different
>>>> and then you should consider to assign them different names.
>> Shortly, neither the drag'n'drop of files from the browser should append
>> the suffix nor the legend should display them, that's my opinion.
>> Giuseppe Sucameli
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
More information about the Qgis-developer