Skip to content

New operation "toolbox" widget

David Thompson requested to merge dcthomp/smtk:operation-model into master

This MR adds new Qt classes that present registered operations in a "tool palette":

  • qtOperationAction – a QWidgetAction for operation-type that emits acceptDefaults() (i.e., run with defaults) when clicked and editParameters() (i.e., prompt user with an operation editor) when long-clicked.
  • qtOperationTypeModel – a QAbstractListModel for operation-types. It provides a qtOperationAction for each operation class in an operation manager.
  • qtOperationTypeView – a QScrollArea populated with QToolButtons tied to the qtOperationAction instances from the model.

image

Edited by David Thompson

Merge request reports