Slicer4:Layouts

From Slicer Wiki
Jump to: navigation, search
Home < Slicer4:Layouts

XML specification for a layout

Adding a new layout to Slicer4

  1. Libs/MRML/vtkMRMLLayoutNode.h
    1. Add an enum to the list of available layouts
  2. Libs/MRMLLogic/vtkMRMLLayoutLogic.cxx
    1. Add a string constant containing the XML describing the layout
    2. Add a line to the AddDefaultsLayouts() method
  3. Libs/qMRMLWidgets/Resources/Icons/
    1. Add an icon
  4. Applications/SlicerQT/Resources/qSlicerMainWindow.ui
    1. Add an action using the Action Editor View
    2. Drag&Drop created action into the LayoutMenu (View->Layout)
    3. Drag&Drop created action into the LayoutToolbar
  5. Applications/SlicerQt/qSlicerMainWindow.cxx
    1. Add a line to setupMenuActions()