Slicer: 2145-support-for-installing-extension-from-file 67a8efe2

Author Committer Branch Timestamp Parent
johan.andruejol johan.andruejol 2145-support-for-installing-extension-from-file 2013-05-29 12:53:59 2145-support-for-installing-extension-from-file 014d84cd
Affected Issues 0001694: there should be a central place to set dimensionality
Changeset

ENH: Only one unit per quantity accessible to the user

Now only one unit per quantity is accessible to the user. This unit can
be customized and it's logged in the settings so it can be restored
when opening the application.
On the implementation side of things:

  • Add access method to all the referenced unit nodes in the selection node
  • Remove the unit widget
  • Hide module
  • Create the unit widget to easily customize units (add the plugins with
    it)
  • Create the unit settings widget using the unit widget. This widget
    is tailored to be used in the setting panel (no plugin)
  • Refactorize the setting panel to use the setting unit widget and
    log the unit node properties
  • Create only node for each quantity exposed to the user. The preset nodes
    are kept in a special scene in the logic.

See Issue 0001694

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22056 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/MRML/Core/Testing/vtkMRMLSelectionNodeTest1.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSelectionNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSelectionNode.h Diff File
mod - Modules/Loadable/Units/CMakeLists.txt Diff File
mod - Modules/Loadable/Units/Logic/vtkSlicerUnitsLogic.cxx Diff File
mod - Modules/Loadable/Units/Logic/vtkSlicerUnitsLogic.h Diff File
mod - Modules/Loadable/Units/Resources/UI/qSlicerUnitsSettingsPanel.ui Diff File
mod - Modules/Loadable/Units/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Units/Testing/Cxx/vtkSlicerUnitsLogicTest1.cxx Diff File
add - Modules/Loadable/Units/Widgets/CMakeLists.txt Diff File
add - Modules/Loadable/Units/Widgets/DesignerPlugins/CMakeLists.txt Diff File
add - Modules/Loadable/Units/Widgets/DesignerPlugins/qMRMLUnitWidgetPlugin.cxx Diff File
add - Modules/Loadable/Units/Widgets/DesignerPlugins/qMRMLUnitWidgetPlugin.h Diff File
add - Modules/Loadable/Units/Widgets/DesignerPlugins/qSlicerUnitsModuleWidgetsAbstractPlugin.h Diff File
add - Modules/Loadable/Units/Widgets/DesignerPlugins/qSlicerUnitsModuleWidgetsPlugin.cxx Diff File
add - Modules/Loadable/Units/Widgets/DesignerPlugins/qSlicerUnitsModuleWidgetsPlugin.h Diff File
add - Modules/Loadable/Units/Widgets/Resources/UI/qMRMLSettingsUnitWidget.ui Diff File
add - Modules/Loadable/Units/Widgets/qMRMLSettingsUnitWidget.cxx Diff File
add - Modules/Loadable/Units/Widgets/qMRMLUnitWidget.cxx Diff File
add - Modules/Loadable/Units/Widgets/qMRMLUnitWidget.h Diff File
mod - Modules/Loadable/Units/qSlicerUnitsModule.cxx Diff File
mod - Modules/Loadable/Units/qSlicerUnitsModule.h Diff File
rm - Modules/Loadable/Units/qSlicerUnitsModuleWidget.cxx Diff File
mod - Modules/Loadable/Units/qSlicerUnitsSettingsPanel.cxx Diff File
mod - Modules/Loadable/Units/qSlicerUnitsSettingsPanel.h Diff File