Commit 6491eabe authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: cli/gui interface for cursorwidth

parent 55c6d9bb
......@@ -118,6 +118,7 @@ class CanvasSettingsPanel(ctrlpanel.SettingsPanel):
sceneOptsProps = collections.OrderedDict((
('showCursor', props.Widget('showCursor')),
('cursorWidth', props.Widget('cursorWidth', spin=False)),
('bgColour', props.Widget('bgColour')),
('fgColour', props.Widget('fgColour')),
('cursorColour', props.Widget('cursorColour')),
......
......@@ -71,7 +71,7 @@ class SliceCanvasOpts(props.HasProperties):
voxel).
"""
cursorWidth = props.Real(minval=0.1, default=1, maxval=10)
cursorWidth = props.Real(minval=1, default=1, maxval=10)
"""Width in pixels (approx) of the location cursor. """
......
......@@ -418,6 +418,7 @@ OPTIONS = td.TypeDict({
# names of properties on them.
'SceneOpts' : ['showCursor',
'cursorWidth',
'bgColour',
'fgColour',
'cursorColour',
......@@ -794,6 +795,7 @@ ARGUMENTS = td.TypeDict({
'SceneOpts.colourBarLabelSide' : ('cbs', 'colourBarLabelSide', True),
'SceneOpts.colourBarSize' : ('cbi', 'colourBarSize', True),
'SceneOpts.showCursor' : ('hc', 'hideCursor', False),
'SceneOpts.cursorWidth' : ('cw', 'cursorWidth', True),
'SceneOpts.highDpi' : ('hd', 'highDpi', False),
'SceneOpts.movieSyncRefresh' : ('ms', 'movieSync', False),
'SceneOpts.labelSize' : ('ls', 'labelSize', True),
......@@ -1048,6 +1050,7 @@ HELP = td.TypeDict({
'SceneOpts.showCursor' : 'Do not display the green cursor '
'highlighting the current location',
'SceneOpts.cursorWidth' : 'Location cursor thickness',
'SceneOpts.bgColour' : 'Canvas background colour (0-1)',
'SceneOpts.fgColour' : 'Canvas foreground colour (0-1)',
'SceneOpts.cursorColour' : 'Cursor location colour (0-1)',
......
......@@ -1019,6 +1019,7 @@ properties = TypeDict({
'CanvasPanel.profile' : 'Mode',
'SceneOpts.showCursor' : 'Show location cursor',
'SceneOpts.cursorWidth' : 'Location cursor width',
'SceneOpts.cursorGap' : 'Show gap at cursor centre',
'SceneOpts.bgColour' : 'Background colour',
'SceneOpts.fgColour' : 'Foreground colour',
......
......@@ -465,6 +465,7 @@ properties = TypeDict({
# SceneOpts
'SceneOpts.showCursor' : 'Show/hide the cursor which highlights '
'the current location.',
'SceneOpts.cursorWidth' : 'Width/thickness of the location cursor.',
'SceneOpts.cursorGap' : 'Show a gap at the cursor centre.',
'SceneOpts.cursorColour' : 'Colour of the location cursor.',
'SceneOpts.bgColour' : 'Canvas background colour.',
......
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