Commit 89586646 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Renamed FSLView to FSLEyes

parent 48a93f9e
......@@ -6,7 +6,7 @@
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""The :mod:`fsl` package contains front ends to various FSL tools,
including 'FSLView2', the Python based image viewer.
including 'FSLEyes', the Python based image viewer.
This file contains the function :func:`main`, the application entry
point. When invoked with the name of a tool, the :mod:`fsl.tools` package
......@@ -83,7 +83,7 @@ logging.addLevelName(logging.MEMORY, 'MEMORY')
# the latest version) - it calls logging.basicConfig(), and
# thus screws up our own logging. We overcome this by configuring
# the root logger before OpenGL.GL.shaders is imported (which
# occurs when fsl.fslview.gl.slicecanvas.SliceCanvas is imported).
# occurs when fsl.fsleyes.gl.slicecanvas.SliceCanvas is imported).
logFormatter = logging.Formatter('%(levelname)8.8s '
'%(filename)20.20s '
......@@ -286,8 +286,8 @@ def parseArgs(argv, allTools):
log.setLevel(logging.DEBUG)
# make some noisy things quiet
logging.getLogger('fsl.fslview.gl') .setLevel(logging.MEMORY)
logging.getLogger('fsl.fslview.views').setLevel(logging.MEMORY)
logging.getLogger('fsl.fsleyes.gl') .setLevel(logging.MEMORY)
logging.getLogger('fsl.fsleyes.views').setLevel(logging.MEMORY)
logging.getLogger('props') .setLevel(logging.WARNING)
logging.getLogger('pwidgets') .setLevel(logging.WARNING)
elif namespace.verbose == 2:
......
......@@ -16,8 +16,8 @@ messages = TypeDict({
'FSLDirDialog.selectFSLDir' : 'Select the directory in which '
'FSL is installed',
'fslview.loading' : 'Loading {}',
'FSLViewSplash.default' : 'Loading ...',
'fsleyes.loading' : 'Loading {}',
'FSLEyesSplash.default' : 'Loading ...',
'image.saveImage.error' : 'An error occurred saving the file. '
'Details: {}',
......@@ -161,7 +161,7 @@ actions = TypeDict({
'SaveOverlayAction' : 'Save overlay',
'LoadColourMapAction' : 'Load custom colour map',
'FSLViewFrame.closeViewPanel' : 'Close',
'FSLEyesFrame.closeViewPanel' : 'Close',
'CanvasPanel.screenshot' : 'Take screenshot',
'CanvasPanel.showCommandLineArgs' : 'Show command line for scene',
......
#!/usr/bin/env python
#
# __init__.py - FSLView - a python based OpenGL image viewer.
# __init__.py - FSLEyes - a python based OpenGL image viewer.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
......@@ -30,7 +30,7 @@ The application logic is spread across several sub-packages:
- :mod:`widgets` - General purpose custom :mod:`wx` widgets.
A :class:`FSLViewFrame` is a container for one or more 'views' - all of the
A :class:`FSLEyesFrame` is a container for one or more 'views' - all of the
possible views are contained within the :mod:`.views` sub-package, and the
views which may be opened by the user are defined by the
:func:`.views.listViewPanels` function. View panels may contain one or more
......@@ -38,7 +38,7 @@ views which may be opened by the user are defined by the
provide an interface allowing the user to control the view.
All view (and control) panels are derived from the :class:`.FSLViewPanel`
All view (and control) panels are derived from the :class:`.FSLEyesPanel`
which, in turn, is derived from the :class:`.ActionProvider` class.
As such, view panels may expose both actions, and properties, which can be
performed or modified by the user.
......
......@@ -15,8 +15,8 @@ Some 'global' actions are provided in this package, for example the
:class:`.OpenFileAction`, and the :class:`.OpenStandardAction`.
The :class:`ActionProvider` class represents some entity which can perform one
or more actions. As the :class:`.FSLViewPanel` class derives from
:class:`ActionProvider` pretty much everything in FSLView is an
or more actions. As the :class:`.FSLEyesPanel` class derives from
:class:`ActionProvider` pretty much everything in FSLEyes is an
:class:`ActionProvider`.
"""
......@@ -50,7 +50,7 @@ def listGlobalActions():
class ActionButton(props.Button):
"""Extends the :class:`props.Button` class to encapsulate an
:class:`~fsl.fslview.actions.Action` instance.
:class:`Action` instance.
"""
def __init__(self, actionName, classType=None, **kwargs):
......
......@@ -10,7 +10,7 @@ log = logging.getLogger(__name__)
import numpy as np
import fsl.fslview.actions as actions
import fsl.fsleyes.actions as actions
import fsl.data.image as fslimage
......
......@@ -9,8 +9,8 @@ import logging
import os.path as op
import fsl.data.strings as strings
import fsl.fslview.actions as actions
import fsl.fslview.colourmaps as fslcmap
import fsl.fsleyes.actions as actions
import fsl.fsleyes.colourmaps as fslcmap
......
......@@ -8,7 +8,7 @@
import logging
log = logging.getLogger(__name__)
import fsl.fslview.actions as actions
import fsl.fsleyes.actions as actions
class OpenFileAction(actions.Action):
def doAction(self):
......
......@@ -11,7 +11,7 @@ import os.path as op
import logging
log = logging.getLogger(__name__)
import fsl.fslview.actions as actions
import fsl.fsleyes.actions as actions
class OpenStandardAction(actions.Action):
def __init__(self, overlayList, displayCtx):
......
......@@ -8,7 +8,7 @@
import logging
import fsl.data.image as fslimage
import fsl.fslview.actions as actions
import fsl.fsleyes.actions as actions
log = logging.getLogger(__name__)
......
......@@ -10,7 +10,7 @@ overlay rendering.
The :func:`init` function must be called before any colour maps or lookup
tables can be accessed. When :func:`init` is called, it searches in the
``fsl/fslview/colourmaps/`` and ``fsl/fslview/luts/``directories, and attempts
``fsl/fsleyes/colourmaps/`` and ``fsl/fsleyes/luts/``directories, and attempts
to load all files within which have the suffix ``.cmap`` or ``.lut``
respectively.
......@@ -38,7 +38,7 @@ name prefix as the colour map name), and thus made available for rendering
purposes.
If a file named ``order.txt`` exists in the ``fsl/fslview/colourmaps/``
If a file named ``order.txt`` exists in the ``fsl/fsleyes/colourmaps/``
directory, it is assumed to contain a list of colour map names, and colour map
identifiers, defining the order in which the colour maps should be displayed
to the user. Any colour maps which are not listed in the ``order.txt`` file
......@@ -200,7 +200,7 @@ class _Map(object):
:arg installed: ``True`` if this is a built in :mod:`matplotlib`
colourmap or is installed in the
``fsl/fslview/colourmaps/`` or ``fsl/fslview/luts/``
``fsl/fsleyes/colourmaps/`` or ``fsl/fsleyes/luts/``
directory, ``False`` otherwise.
"""
self.key = key
......@@ -562,7 +562,7 @@ def registerColourMap(cmapFile,
log.debug('Patching VolumeOpts instances and class '
'to support new colour map {}'.format(key))
import fsl.fslview.displaycontext as fsldisplay
import fsl.fsleyes.displaycontext as fsldisplay
# update the VolumeOpts colour map property
# for any existing VolumeOpts instances
......@@ -636,7 +636,7 @@ def registerLookupTable(lut,
log.debug('Patching LabelOpts classes to support '
'new LookupTable {}'.format(key))
import fsl.fslview.displaycontext as fsldisplay
import fsl.fsleyes.displaycontext as fsldisplay
# Update the lut property for
# any existing label overlays
......@@ -712,7 +712,7 @@ def isLookupTableInstalled(lutName):
def installColourMap(cmapName):
"""Attempts to install a previously registered colourmap into the
``fsl/fslview/colourmaps`` directory.
``fsl/fsleyes/colourmaps`` directory.
"""
# keyerror if not registered
......@@ -737,7 +737,7 @@ def installColourMap(cmapName):
def installLookupTable(lutName):
"""Attempts to install/save a previously registered lookup table into
the ``fsl/fslview/luts`` directory.
the ``fsl/fsleyes/luts`` directory.
"""
# keyerror if not registered
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment