Difference between revisions of "Slicer4:Layouts"

From Slicer Wiki
Jump to: navigation, search
(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: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 to the LayoutMenu
    2. Add an action to the LayoutToolbar (can these be the same action?)
  5. Applications/SlicerQt/qSlicerMainWindow.cxx
    1. Add a line to setupMenuActions()
  6. Libs/qMRMLWidgets/qMRMLLayoutManager.h
    1. Add a method switchToXXXView()
    2. Implement switchToXX() in the header
  7. Libs/qMRMLWidgets/qMRMLLayoutWidget.h
    1. Add a method switchToXXXView()
  8. Libs/qMRMLWidgets/qMRMLLayoutWidget.cxx
    1. Implement method switchToXXXView() - Not currently used in Slicer4
  9. What about Libs/qMRMLWidgets/qMRMLLayoutManager_p.h?
    1. There are methods there to setXXX(). But there are no implementations. Is this still used?