Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Terminology manual editing works from Colors module
- Move Colors widget classes into Colors module - The Colors module related widget classes have been in Libs/MRML/Widgets, but that way they cannot possibly use Terminology features. They need to be moved to the Colors module to facilitate this - Classes in Testing and DesignerPlugins folders using the moved classes have also been moved to Colors module - Remove FileName member from vtkMRMLColorNode, as it was not used (moreover, there were comments explaining why it is not used) - Move roles enum to qMRMLItemDelegate to consolidate access: Previously the qMRMLColorModel was in MRMLWidgets, but after moving it to the Colors module (so that the Color widgets have access to Terminologies widgets) the delegate did not have access to the enum. With the enum moved to the delegate now this is solved. The PointerRole was deleted from the enum because it was not used anywhere. - Create terminology editor widgets for editing from item delegate - Get and set model data correctly in the new item delegate - Add functions to color node for get/set terminology as/from string (also add GetColorNameAutoGenerated) - Make coded entries in color property struct in color node simple pointer, and delete them in destructor - Add back PointerRole to be able to access the color node from a model item - Allow empty terminology and anatomic region context names in terminologies logic - Change CSV column separator to underscore - Style fixes Re Slicer#6975, Slicer#7593
- Loading branch information