Skip to content

WIP: Preset for plot colors

Features

  • Add preset dialog for series
    • Choose Preset button to load a preset. Try to use annotation to find corresponding color. If no matching found, use order.
    • Save As button that allow to choose the new name
    • Save button to override current preset
  • Supports line reorder by drag'n'drop

Internal modifications

  • Refactor with pqColorAnnotationsPropertyWidget
  • Refactor table model

out Limitations

  • Does not supports column sort
    • sort is done on the view by a QSortFilterProxyModel, but drag'n'drop works directly on model. Needs a refactor to have both working (d'n'd should probably modify only the view)

TODO

  • use current preset when adding new row (instead of default one)
  • allow to sort column (variable name and legend)
  • rename Annotations in 'SavePresetDialog' (legend name ore something else)
  • preset color name (save or save as)
Edited by Nicolas Vuaille

Merge request reports