Difference between revisions of "Slicer4:Layouts"
From Slicer Wiki
Line 11: | Line 11: | ||
## Add an icon | ## Add an icon | ||
# Applications/SlicerQT/Resources/qSlicerMainWindow.ui | # Applications/SlicerQT/Resources/qSlicerMainWindow.ui | ||
− | ## Add an action | + | ## Add an action using the Action Editor View |
− | ## | + | ## Drag&Drop created action into the LayoutMenu (View->Layout) |
+ | ## Drag&Drop created action into the LayoutToolbar | ||
# Applications/SlicerQt/qSlicerMainWindow.cxx | # Applications/SlicerQt/qSlicerMainWindow.cxx | ||
## Add a line to setupMenuActions() | ## Add a line to setupMenuActions() | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 20:22, 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 using the Action Editor View
- Drag&Drop created action into the LayoutMenu (View->Layout)
- Drag&Drop created action into the LayoutToolbar
- Applications/SlicerQt/qSlicerMainWindow.cxx
- Add a line to setupMenuActions()