Back to the main page.

Bug 1629 - ft_databrowser: implement right-click context menu for 'selfun'

Reported 2012-08-06 12:32:00 +0200
Modified 2013-01-17 10:39:20 +0100
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 enhancement
Assigned to: Roemer van der Meij
Depends on:
See also:

Roemer van der Meij - 2012-08-06 12:32:26 +0200

Time to start working on what was proposed a long time ago. Jorn, I added you this , because I (1) partly forgot what we all talked about :), and (2) whether the improvements still fit well with the idea/functionality of the selfun, so please correct me if I'm wrong, and join the discussion on what would be good functionality :). Situation now: cfg.selectmode - 'mark' or 'eval' cfg.selfun - when 'eval' above, function name to be executed on selection cfg.selcfg - Proposed situation: cfg.selectmode - *deprecate* cfg.selfun - as above (allow cell-array for multiple ones) cfg.selcfg - as above (allow cell-array for multiple ones) - left-clicking on selection always marks/unmarks - right-clicking on selection produces a context menu, containing: * the string name of the function in cellfun * 'standard selfuns' The standard functions should be functions callable with defaults: - the 'simplefft' option I added a long time a go, made into browse_XXX - browse_topoplotER? (error when no layout), - browse_movieplotER? (error when no layout) - browse_multiplotER? (error when no layout) - browse_topoplotVAR? (error when no layout) (what does this one do, does it makes sense to always be available?)

Roemer van der Meij - 2012-08-07 15:43:07 +0200

Alright, a lot of work has been finished, a lot of features added. The right-click menu fully works now, and has all browsefuns now implemented with basic options. The defaults work for the tutorial data, raw. I also added a browse_simpleFFT that shows a basic fft without tapering, with a toggle button for log/non-log space, and a channel selector. Useful for trying to find bad channels, weird spectral phenomena in the data, etc. Explicitly without tapering. Left click is now by default marking stuff, right click is the context menu. Cfg.selectmode has been set to unused. User-specified browse-funs are automatically added to the list, and are put on top. When a new figure window is created by the current browse-funs, the figure window name displays characteristics of the data being looked at, e.g. trial number/total, time-point to time-point, etc. I also activated by default the button for editing preproc settings on the fly. New default browse-funs can be easily added. When cfg.viewmode = vertical, and cfg.ylim = maxabs, the scale has been decreased by a factor of 10 as a default. If this isn't done, the data looks mostly like flat-lines zooming in is mandatory in most cases (see bug 1621).

Roemer van der Meij - 2012-08-08 14:32:10 +0200

Add documentation, and use the cfg-checking section to default all current browse-funs, do hard-coding elsewhere.

Roemer van der Meij - 2012-08-17 15:19:39 +0200


Roemer van der Meij - 2013-01-17 10:39:20 +0100

bug closing time