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

TimeSeries control panel has tooltips

parent 86ce96d2
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
import wx import wx
import props import props
import pwidgets.widgetlist as widgetlist import pwidgets.widgetlist as widgetlist
import fsl.fsleyes.panel as fslpanel import fsl.fsleyes.panel as fslpanel
import fsl.data.strings as strings import fsl.fsleyes.tooltips as fsltooltips
import fsl.data.strings as strings
class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
...@@ -47,6 +48,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -47,6 +48,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self.__widgets.AddWidget( self.__widgets.AddWidget(
props.makeWidget(self.__widgets, tsPanel, prop), props.makeWidget(self.__widgets, tsPanel, prop),
displayName=strings.properties[tsPanel, prop], displayName=strings.properties[tsPanel, prop],
tooltip=fsltooltips.properties[tsPanel, prop],
groupName='tsSettings') groupName='tsSettings')
self.__widgets.AddGroup( self.__widgets.AddGroup(
...@@ -57,6 +59,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -57,6 +59,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self.__widgets.AddWidget( self.__widgets.AddWidget(
props.makeWidget(self.__widgets, tsPanel, prop), props.makeWidget(self.__widgets, tsPanel, prop),
displayName=strings.properties[tsPanel, prop], displayName=strings.properties[tsPanel, prop],
tooltip=fsltooltips.properties[tsPanel, prop],
groupName='plotSettings') groupName='plotSettings')
xlabel = props.makeWidget(self.__widgets, tsPanel, 'xlabel') xlabel = props.makeWidget(self.__widgets, tsPanel, 'xlabel')
...@@ -82,15 +85,18 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -82,15 +85,18 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self.__widgets.AddWidget( self.__widgets.AddWidget(
labels, labels,
strings.labels[tsPanel, 'labels'], displayName=strings.labels[tsPanel, 'labels'],
tooltip=fsltooltips.misc[ tsPanel, 'labels'],
groupName='plotSettings') groupName='plotSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
xlims, xlims,
strings.labels[tsPanel, 'xlim'], displayName=strings.labels[tsPanel, 'xlim'],
tooltip=fsltooltips.misc[ tsPanel, 'xlim'],
groupName='plotSettings') groupName='plotSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
ylims, ylims,
strings.labels[tsPanel, 'ylim'], displayName=strings.labels[tsPanel, 'ylim'],
tooltip=fsltooltips.misc[ tsPanel, 'ylim'],
groupName='plotSettings') groupName='plotSettings')
displayCtx .addListener('selectedOverlay', displayCtx .addListener('selectedOverlay',
...@@ -147,18 +153,22 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -147,18 +153,22 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self.__widgets.AddWidget( self.__widgets.AddWidget(
colour, colour,
displayName=strings.properties[tsPanel, 'currentColour'], displayName=strings.properties[tsPanel, 'currentColour'],
tooltip=fsltooltips.properties[tsPanel, 'currentColour'],
groupName='currentSettings') groupName='currentSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
alpha, alpha,
displayName=strings.properties[tsPanel, 'currentAlpha'], displayName=strings.properties[tsPanel, 'currentAlpha'],
tooltip=fsltooltips.properties[tsPanel, 'currentAlpha'],
groupName='currentSettings') groupName='currentSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
lineWidth, lineWidth,
displayName=strings.properties[tsPanel, 'currentLineWidth'], displayName=strings.properties[tsPanel, 'currentLineWidth'],
tooltip=fsltooltips.properties[tsPanel, 'currentLineWidth'],
groupName='currentSettings') groupName='currentSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
lineStyle, lineStyle,
displayName=strings.properties[tsPanel, 'currentLineStyle'], displayName=strings.properties[tsPanel, 'currentLineStyle'],
tooltip=fsltooltips.properties[tsPanel, 'currentLineStyle'],
groupName='currentSettings') groupName='currentSettings')
...@@ -216,20 +226,24 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -216,20 +226,24 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
self.__widgets.AddWidget( self.__widgets.AddWidget(
data, data,
displayName=strings.properties[ts, 'plotData'], displayName=strings.properties[ts, 'plotData'],
tooltip=fsltooltips.properties[ts, 'plotData'],
groupName='currentFEATSettings') groupName='currentFEATSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
full, full,
displayName=strings.properties[ts, 'plotFullModelFit'], displayName=strings.properties[ts, 'plotFullModelFit'],
tooltip=fsltooltips.properties[ts, 'plotFullModelFit'],
groupName='currentFEATSettings') groupName='currentFEATSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
res, res,
displayName=strings.properties[ts, 'plotResiduals'], displayName=strings.properties[ts, 'plotResiduals'],
tooltip=fsltooltips.properties[ts, 'plotResiduals'],
groupName='currentFEATSettings') groupName='currentFEATSettings')
self.__widgets.AddWidget( self.__widgets.AddWidget(
reduced, reduced,
displayName=strings.properties[ts, 'plotReduced'], displayName=strings.properties[ts, 'plotReduced'],
tooltip=fsltooltips.properties[ts, 'plotReduced'],
groupName='currentFEATSettings') groupName='currentFEATSettings')
self.__widgets.AddSpace(groupName='currentFEATSettings') self.__widgets.AddSpace(groupName='currentFEATSettings')
...@@ -241,6 +255,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -241,6 +255,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
ev, ev,
displayName=strings.properties[ts, 'plotEVs'].format( displayName=strings.properties[ts, 'plotEVs'].format(
i + 1, evName), i + 1, evName),
tooltip=fsltooltips.properties[ts, 'plotEVs'],
groupName='currentFEATSettings') groupName='currentFEATSettings')
self.__widgets.AddSpace(groupName='currentFEATSettings') self.__widgets.AddSpace(groupName='currentFEATSettings')
...@@ -251,6 +266,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -251,6 +266,7 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
pe, pe,
displayName=strings.properties[ts, 'plotPEFits'].format( displayName=strings.properties[ts, 'plotPEFits'].format(
i + 1, evName), i + 1, evName),
tooltip=fsltooltips.properties[ts, 'plotPEFits'],
groupName='currentFEATSettings') groupName='currentFEATSettings')
self.__widgets.AddSpace(groupName='currentFEATSettings') self.__widgets.AddSpace(groupName='currentFEATSettings')
...@@ -261,4 +277,5 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel): ...@@ -261,4 +277,5 @@ class TimeSeriesControlPanel(fslpanel.FSLEyesPanel):
cope, cope,
displayName=strings.properties[ts, 'plotCOPEFits'].format( displayName=strings.properties[ts, 'plotCOPEFits'].format(
i + 1, name), i + 1, name),
tooltip=fsltooltips.properties[ts, 'plotCOPEFits'],
groupName='currentFEATSettings') groupName='currentFEATSettings')
...@@ -285,7 +285,7 @@ properties = TypeDict({ ...@@ -285,7 +285,7 @@ properties = TypeDict({
'time courses.', 'time courses.',
'FEATTimeSeries.plotPEFits' : 'Plot the model fit to each PE ' 'FEATTimeSeries.plotPEFits' : 'Plot the model fit to each PE '
'(parameter estimate).', '(parameter estimate).',
'FEATTimeSeries.plotCOPEFits' : 'Plot the model fit to each COPE' 'FEATTimeSeries.plotCOPEFits' : 'Plot the model fit to each COPE '
'(Contrast of Parameter Estimates).', '(Contrast of Parameter Estimates).',
'FEATTimeSeries.plotReduced' : 'Plot the raw data, after regression ' 'FEATTimeSeries.plotReduced' : 'Plot the raw data, after regression '
'against the selected PE/COPE.', 'against the selected PE/COPE.',
...@@ -372,7 +372,7 @@ actions = TypeDict({ ...@@ -372,7 +372,7 @@ actions = TypeDict({
misc = TypeDict({ misc = TypeDict({
'HistogramPanel.labels' : 'X/Y axis labels.', 'PlotPanel.labels' : 'X/Y axis labels.',
'HistogramPanel.xlim' : 'X axis data limits.', 'PlotPanel.xlim' : 'X axis data limits.',
'HistogramPanel.ylim' : 'Y axis data limits.' 'PlotPanel.ylim' : 'Y axis data limits.'
}) })
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