Difference between revisions of "Slicer4:Layouts"
From Slicer Wiki
(Created page with '= 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/vtkMRMLLa…') |
|||
Line 21: | Line 21: | ||
## Add a method switchToXXXView() | ## Add a method switchToXXXView() | ||
# Libs/qMRMLWidgets/qMRMLLayoutWidget.cxx | # Libs/qMRMLWidgets/qMRMLLayoutWidget.cxx | ||
− | ## Implement method switchToXXXView() | + | ## Implement method switchToXXXView() - Not currently used in Slicer4 |
# What about Libs/qMRMLWidgets/qMRMLLayoutManager_p.h? | # What about Libs/qMRMLWidgets/qMRMLLayoutManager_p.h? | ||
− | # There are methods there to setXXX(). But there are no implementations. Is this still used? | + | ## There are methods there to setXXX(). But there are no implementations. Is this still used? |
Revision as of 15:54, 1 April 2011
Home < Slicer4:LayoutsXML 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() - Not currently used in Slicer4
- What about Libs/qMRMLWidgets/qMRMLLayoutManager_p.h?
- There are methods there to setXXX(). But there are no implementations. Is this still used?