Slicer4:Layouts

From Slicer Wiki
Revision as of 15:53, 1 April 2011 by Millerjv (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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()
  9. What about Libs/qMRMLWidgets/qMRMLLayoutManager_p.h?
  10. There are methods there to setXXX(). But there are no implementations. Is this still used?