[Qgis-developer] Legend context menu

Martin Dobias wonder.sk at gmail.com
Sat Apr 26 11:27:30 PDT 2014


Hi

While doing some work on legend refactoring, I have realized how messy
the context menu in legend widget got. Some of the findings:
- there can be way too many actions... 23 items for a layer if you are
lucky. Usually less, it depends on various conditions
- some actions act upon the current layer (even if more layers are
selected), some actions act upon all selected layers and some actions
are even acting globally. A bit strange for a _context_ menu... vector
layers get one more separator in the menu than raster layers
- the shortcuts (the letter with underscore) are often used for more actions
- sometimes the actions that are not available are disabled, sometimes hidden
- the ordering of actions could be better

It would be good to do some consolidation - remove rarely used
actions, think about grouping of the items etc. I am afraid that with
time the things will get only worse if we freely keep adding more
features to the menu... (how long is your plugin menu? :-)

If you are interested in more details, I have tried to summarize the
actions in a spreadsheet here:
https://docs.google.com/spreadsheets/d/1f8t3e11Cb999zQMuRJ32Y-yHmNvvKC5w_lq-cm2GbrM/edit?usp=sharing

Your input is most welcome!

Cheers
Martin


More information about the Qgis-developer mailing list