Feature #1878

GUI: provide prototype of ComponentEditor not relying on qtpropertybrowser framework

Added by pospelov over 2 years ago. Updated over 2 years ago.

Status:ResolvedStart date:06 Nov 2017
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 36

Description

Provide replacement of Component Editor for SampleView and similar.
  • To make whole application more QAbstractItemModel like
  • To remove qtpropertybrowser framework (20k loc)
  • To get rid from ugly layer because of ComponentEditor (2k loc)
  • To potentially simplify real time tuning widget (no LinkedItem)
  • To switch SessionItem editors without affecting back compatibility (ScientificDoubleProperty problem)

and many little features, like setting number of digits on the fly

Steps

  • Prove that QTreeView working on SessionModel can be styled exactly as QTreeView from qtpropertybrowser framework

propertybrowser framework looks fancy and it would be pity to loose this look and feel

  • Find solution to exclude extra level introduced by GroupProperty
    • Get rid from GroupProperty?
    • Special QAbstractProxyModel?
    • Special SessionModel-like wrapper?
    • Temporary model generated explicitly for editor's purposes?
  • Replace component editor everywhere except InstrumentView
  • Introduce SessionItem editor role
  • Provide possibility to switch between scientific/normal double editing on the fly
  • Remove SceintificDoubleProperty
  • Replace ColorProperty and MaterialProperty with universal EditorProperty

Further actions

  • Develop "flat" version of ComponentEditor intended for InstrumentView and similar.

QModelMapper can be our friend here

  • Remove qtpropertybrowser framework from dependencies.

History

#1 Updated by pospelov over 2 years ago

  • Description updated (diff)

#2 Updated by pospelov over 2 years ago

  • Status changed from Sprint to Resolved

All editors replaced.
At the end of the sprint one have to remove qtpropertybrowser framework and clean
GUI/coregui/Views/PropertyEditor from all Obsolete* files.

Also available in: Atom PDF