qgis / qgis3_UIX_discussion

Issue list to sum up and discuss UI/UX related issues
1 stars 2 forks source link

Fix non-standard widgets #2

Open nyalldawson opened 7 years ago

nyalldawson commented 7 years ago

Qgis has some really nice dedicated widgets like the layer, field and projection pickers, but they aren't used everywhere.

It would be good if someone can sweep through all the dialogs and look for:

DelazJ commented 7 years ago

@nyalldawson could you please precise with some images (or link to the icons?). I fail to visualize what you are talking about.

nyalldawson commented 7 years ago

@DelazJ sorry, mega delayed response.

Here's what I'm referring to. The standard layer picker includes an icon for the layer type (here it's a point geometry layer). The standard field picker shows icons for field types (the 'abc' icon here for a string field): screenshot from 2017-01-09 10-38-43

Non -standard widgets are usually missing these icons

The standard items also correctly sort layer names/field names.

Another way of identifying non-standard layer pickers is that the standard layer picker will show a tooltip identifying the layer path when you drop down the combo and hover over individual layer items.

The standard CRS selector should look like this:

screenshot from 2017-01-09 10-42-31

It can be identified by the presence of items like "default CRS", "project CRS" and recently used CRSes in the drop down combo, and by the button which opens the full projection selector with the globe icon. Non-standard ones are things like just a label with a button to open the full selector dialog.

DelazJ commented 7 years ago

@nyalldawson I'd finally found what it was about. Another item I could add to this is the data-defined widget. And I think the Layer's properties --> Diagrams tab is a good candidate for this issue, using simple combobox for data-defined options. However, this seems to be more than simple replacement of widgets and I wonder if it's not already part of your grant proposal. Am I right?

nyalldawson commented 7 years ago

I'd finally found what it was about. Another item I could add to this is the data-defined widget. And I think the Layer's properties --> Diagrams tab is a good candidate for this issue, using simple combobox for data-defined options.

Yes - that's a perfect example.

However, this seems to be more than simple replacement of widgets and I wonder if it's not already part of your grant proposal. Am I right?

And yes - 100% correct. It's been addressed in this work and changed to the normal data defined widget which allows expressions/etc. Coming soon to master!

DelazJ commented 7 years ago

@nyalldawson I've made replacement of comboboxes into QgsFieldComboBox or QgsMapLayerComboBox (couldn't find any possible replacement for the crs selector :-( ) but given that there are some c++ things to change to have them totally active (e.g., QGIS crashes when the spatial query plugin is launched) , I keep them in my branch http://github.com/DelazJ/QGIS/tree/nonstandardicons. If someone wants to finish the work...

PS: I didn't touch the vector layer diagrams properties

DelazJ commented 7 years ago

Finally, I got one crs widget to replace :)