Skip to content
Snippets Groups Projects
Commit 058a5541 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Tweaked views/controls package namespaces a bit.

parent b0df467d
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
#
# __init__.py - This package contains a collection of wx.Panel subclasses
# which provide some sort of interface for controlling
# aspects of the image display.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This package contains a collection of :class:`wx.Panel` subclasses which
provide some sort of interface for controlling aspects of the image display.
"""
import locationpanel
import imagelistpanel
import imagedisplaypanel
LocationPanel = locationpanel .LocationPanel
ImageListPanel = imagelistpanel .ImageListPanel
ImageDisplayPanel = imagedisplaypanel.ImageDisplayPanel
...@@ -16,12 +16,9 @@ import wx.aui as aui ...@@ -16,12 +16,9 @@ import wx.aui as aui
import props import props
import fsl.fslview.views.orthopanel as orthopanel import fsl.fslview.views as views
import fsl.fslview.views.lightboxpanel as lightboxpanel import fsl.fslview.controls as controls
import fsl.fslview.controls.locationpanel as locationpanel import fsl.fslview.strings as strings
import fsl.fslview.controls.imagelistpanel as imagelistpanel
import fsl.fslview.controls.imagedisplaypanel as imagedisplaypanel
import fsl.fslview.strings as strings
class FSLViewFrame(wx.Frame): class FSLViewFrame(wx.Frame):
"""A frame which implements a 3D image viewer. """A frame which implements a 3D image viewer.
...@@ -223,9 +220,9 @@ class FSLViewFrame(wx.Frame): ...@@ -223,9 +220,9 @@ class FSLViewFrame(wx.Frame):
to the central :class:`~wx.aui.AuiNotebook` widget. to the central :class:`~wx.aui.AuiNotebook` widget.
""" """
panel = orthopanel.OrthoPanel(self._centrePane, panel = views.OrthoPanel(self._centrePane,
self._imageList, self._imageList,
glContext=self._glContext) glContext=self._glContext)
if self._glContext is None: if self._glContext is None:
self._glContext = panel.xcanvas.glContext self._glContext = panel.xcanvas.glContext
...@@ -239,9 +236,9 @@ class FSLViewFrame(wx.Frame): ...@@ -239,9 +236,9 @@ class FSLViewFrame(wx.Frame):
display to the central :class:`~wx.aui.AuiNotebook` widget. display to the central :class:`~wx.aui.AuiNotebook` widget.
""" """
panel = lightboxpanel.LightBoxPanel(self._centrePane, panel = views.LightBoxPanel(self._centrePane,
self._imageList, self._imageList,
glContext=self._glContext) glContext=self._glContext)
if self._glContext is None: if self._glContext is None:
self._glContext = panel.canvas.glContext self._glContext = panel.canvas.glContext
...@@ -279,7 +276,7 @@ class FSLViewFrame(wx.Frame): ...@@ -279,7 +276,7 @@ class FSLViewFrame(wx.Frame):
widget to this panel (defaults to the bottom, according to the widget to this panel (defaults to the bottom, according to the
:class:`wx.aui.AuiManager`). :class:`wx.aui.AuiManager`).
""" """
panel = imagedisplaypanel.ImageDisplayPanel(self, self._imageList) panel = controls.ImageDisplayPanel(self, self._imageList)
self._addControlPanel(panel, strings.imageDisplayTitle) self._addControlPanel(panel, strings.imageDisplayTitle)
...@@ -289,7 +286,7 @@ class FSLViewFrame(wx.Frame): ...@@ -289,7 +286,7 @@ class FSLViewFrame(wx.Frame):
widget to this panel (defaults to the bottom, according to the widget to this panel (defaults to the bottom, according to the
:class:`wx.aui.AuiManager`). :class:`wx.aui.AuiManager`).
""" """
panel = imagelistpanel.ImageListPanel(self, self._imageList) panel = controls.ImageListPanel(self, self._imageList)
self._addControlPanel(panel, strings.imageListTitle) self._addControlPanel(panel, strings.imageListTitle)
...@@ -298,7 +295,7 @@ class FSLViewFrame(wx.Frame): ...@@ -298,7 +295,7 @@ class FSLViewFrame(wx.Frame):
widget to this panel (defaults to the bottom, according to the widget to this panel (defaults to the bottom, according to the
:class:`wx.aui.AuiManager`). :class:`wx.aui.AuiManager`).
""" """
panel = locationpanel.LocationPanel(self, self._imageList) panel = controls.LocationPanel(self, self._imageList)
self._addControlPanel(panel, strings.locationTitle) self._addControlPanel(panel, strings.locationTitle)
......
#!/usr/bin/env python
#
# __init__.py - This package contains a collection of wx.Panel subclasses
# which provide a view of an image collection.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This package contains a collection of :class:`wx.Panel` subclasses
which provide a view of an image collection (see
:class:`~fsl.data.fslimage.ImageList`).
"""
import orthopanel
import lightboxpanel
OrthoPanel = orthopanel .OrthoPanel
LightBoxPanel = lightboxpanel.LightBoxPanel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment