Slicer4:Layouts
From Slicer Wiki
Home < Slicer4:Layouts
XML specification for a layout
Adding a new layout to Slicer4
- Libs/MRML/vtkMRMLLayoutNode.h
- Add an enum to the list of available layouts
- Libs/MRMLLogic/vtkMRMLLayoutLogic.cxx
- Add a string constant containing the XML describing the layout
- Add a line to the AddDefaultsLayouts() method
- Libs/qMRMLWidgets/Resources/Icons/
- Add an icon
- Applications/SlicerQT/Resources/qSlicerMainWindow.ui
- Add an action to the LayoutMenu
- Add an action to the LayoutToolbar (can these be the same action?)
- Applications/SlicerQt/qSlicerMainWindow.cxx
- Add a line to setupMenuActions()
- Libs/qMRMLWidgets/qMRMLLayoutManager.h
- Add a method switchToXXXView()
- Implement switchToXX() in the header
- Libs/qMRMLWidgets/qMRMLLayoutWidget.h
- Add a method switchToXXXView()
- Libs/qMRMLWidgets/qMRMLLayoutWidget.cxx
- Implement method switchToXXXView()
- What about Libs/qMRMLWidgets/qMRMLLayoutManager_p.h?
- There are methods there to setXXX(). But there are no implementations. Is this still used?