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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Evan Edmond
fslpy
Commits
3d7d9131
Commit
3d7d9131
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Tooltips for overlay display, and ortho/lightbox settings panels
parent
d76f7418
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/fsleyes/controls/canvassettingspanel.py
+10
-6
10 additions, 6 deletions
fsl/fsleyes/controls/canvassettingspanel.py
fsl/fsleyes/controls/overlaydisplaypanel.py
+5
-2
5 additions, 2 deletions
fsl/fsleyes/controls/overlaydisplaypanel.py
fsl/fsleyes/tooltips.py
+2
-0
2 additions, 0 deletions
fsl/fsleyes/tooltips.py
with
17 additions
and
8 deletions
fsl/fsleyes/controls/canvassettingspanel.py
+
10
−
6
View file @
3d7d9131
...
...
@@ -9,10 +9,11 @@ import wx
import
props
import
pwidgets.widgetlist
as
widgetlist
import
pwidgets.widgetlist
as
widgetlist
import
fsl.data.strings
as
strings
import
fsl.fsleyes.panel
as
fslpanel
import
fsl.data.strings
as
strings
import
fsl.fsleyes.panel
as
fslpanel
import
fsl.fsleyes.tooltips
as
fsltooltips
_CANVASPANEL_PROPS
=
[
...
...
@@ -89,7 +90,8 @@ class CanvasSettingsPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
widget
,
strings
.
properties
[
canvasPanel
,
dispProp
.
key
],
displayName
=
strings
.
properties
[
canvasPanel
,
dispProp
.
key
],
tooltip
=
fsltooltips
.
properties
[
canvasPanel
,
dispProp
.
key
],
groupName
=
'
scene
'
)
opts
=
canvasPanel
.
getSceneOptions
()
...
...
@@ -103,7 +105,8 @@ class CanvasSettingsPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
widget
,
strings
.
properties
[
opts
,
dispProp
.
key
],
displayName
=
strings
.
properties
[
opts
,
dispProp
.
key
],
tooltip
=
fsltooltips
.
properties
[
opts
,
dispProp
.
key
],
groupName
=
'
scene
'
)
for
dispProp
in
panelProps
:
...
...
@@ -115,7 +118,8 @@ class CanvasSettingsPanel(fslpanel.FSLEyesPanel):
self
.
__widgets
.
AddWidget
(
widget
,
strings
.
properties
[
opts
,
dispProp
.
key
],
displayName
=
strings
.
properties
[
opts
,
dispProp
.
key
],
tooltip
=
fsltooltips
.
properties
[
opts
,
dispProp
.
key
],
groupName
=
panelGroup
)
self
.
__widgets
.
Expand
(
'
scene
'
)
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/controls/overlaydisplaypanel.py
+
5
−
2
View file @
3d7d9131
...
...
@@ -18,6 +18,7 @@ import pwidgets.widgetlist as widgetlist
import
fsl.utils.typedict
as
td
import
fsl.data.strings
as
strings
import
fsl.fsleyes.tooltips
as
fsltooltips
import
fsl.fsleyes.panel
as
fslpanel
import
fsl.fsleyes.actions.loadcolourmap
as
loadcmap
import
fsl.fsleyes.displaycontext
as
displayctx
...
...
@@ -221,7 +222,6 @@ class OverlayDisplayPanel(fslpanel.FSLEyesPanel):
self
.
__updateWidgets
(
display
,
'
display
'
)
self
.
__updateWidgets
(
opts
,
'
opts
'
)
self
.
__widgets
.
Expand
(
'
display
'
,
displayExpanded
)
self
.
__widgets
.
Expand
(
'
opts
'
,
optsExpanded
)
...
...
@@ -248,6 +248,8 @@ class OverlayDisplayPanel(fslpanel.FSLEyesPanel):
dispProps
=
_DISPLAY_PROPS
[
target
]
labels
=
[
strings
.
properties
[
target
,
p
.
key
]
for
p
in
dispProps
]
tooltips
=
[
fsltooltips
.
properties
.
get
((
target
,
p
.
key
),
None
)
for
p
in
dispProps
]
widgets
=
[]
...
...
@@ -266,10 +268,11 @@ class OverlayDisplayPanel(fslpanel.FSLEyesPanel):
widgets
.
append
(
widget
)
for
label
,
widget
in
zip
(
labels
,
widgets
):
for
label
,
tooltip
,
widget
in
zip
(
labels
,
tooltips
,
widgets
):
self
.
__widgets
.
AddWidget
(
widget
,
label
,
tooltip
=
tooltip
,
groupName
=
groupName
)
self
.
Layout
()
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/tooltips.py
+
2
−
0
View file @
3d7d9131
...
...
@@ -152,6 +152,8 @@ properties = TypeDict({
'
SceneOpts.showCursor
'
:
'
Show/hide the cursor which highlights
'
'
the current location.
'
,
'
SceneOpts.cursorColour
'
:
'
Colour of the location cursor.
'
,
'
SceneOpts.bgColour
'
:
'
Canvas background colour.
'
,
'
SceneOpts.showColourBar
'
:
'
If the currently selected overlay is a
'
'
volumetric image, show a colour bar
'
'
depicting the colour/data display
'
...
...
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