Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
058a5541
Commit
058a5541
authored
10 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Tweaked views/controls package namespaces a bit.
parent
b0df467d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fsl/fslview/controls/__init__.py
+19
-0
19 additions, 0 deletions
fsl/fslview/controls/__init__.py
fsl/fslview/fslviewframe.py
+12
-15
12 additions, 15 deletions
fsl/fslview/fslviewframe.py
fsl/fslview/views/__init__.py
+17
-0
17 additions, 0 deletions
fsl/fslview/views/__init__.py
with
48 additions
and
15 deletions
fsl/fslview/controls/__init__.py
+
19
−
0
View file @
058a5541
#!/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
This diff is collapsed.
Click to expand it.
fsl/fslview/fslviewframe.py
+
12
−
15
View file @
058a5541
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
fsl/fslview/views/__init__.py
+
17
−
0
View file @
058a5541
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment