Future ideas for expression builder

Outline of some of the future ideas I (NathanW) have had for the expression builder widget

  • Add syntax highlighting
    • Basic highlighting is already added in master
    • Future support for highlighting matching brackets would be handy
  • Add support to use Python in the widget
    • Syntax highlighting
    • Allow Python expressions for labels and field calculator
  • Add loading and saving of expressions (Python and QgsExpression)
  • Apply widget to field calculator and raster calculator

Maybe

I am considering reworking the UI to use a TreeWidget (for the main headers and groups) and a ListBox (for the items of the groups) vs just one big TreeWidget e.g.

but I have a few ideas to make a better UI.