140216

2/16/14

cfgUISecure.m:
- Created ‘forceSLSelect1’ to force selection to 1 for saccade plot
tricking
- Disables changing selection value.
cfgSaccCB/addDblClick:
- Added cfgUISecure('forceSLSelect1') on valid double click
cfg_datatool.m:
- Initialize cfgRangeSlider, and turn off Visible
cfgAddNew.m:
- Makes slider visible.
- Sets minimum/maximum to indices for current trial
- Takes padding into consideration
cfgRangeSlider.m:
- Initializes a Jide RangeSlider at some default values.
- Applies callback properties to an EDT
- Attaches slider with javacomponent.
- Sets slider ‘MouseReleasedCallback’ to plotting callback.  (Can’t use
StateChangedCallback)
cfgRangeSlider.m/plotFunc:
- Call back to plot on slider ‘MouseReleasedCallback’
- Uses drawnow in case of racing threads
- Uses persistent variables to check if low and high values have
changed.
- Ignore if no change.
- To prevent data being received from two components (low and high
sliders seem to both send events)
- To prevent performing plotting if no change was made after release
- Tricks ilab plotting by setting AP.saccade.list to a 1-row vector
containing only trial

ToDo:
- Restrict “Scan Plot” option.
- Parameter default starting slider positions
- Proper re-enabling after “Add”/”Modify”
- cfgAddNew: Remove 10 pix buffer on maximum
- Set index to maximum if slider is beyond trial data maximum.  Will
need to pass PP data to slider callback
- Pop-up window during to confirm/deny, and present
- Callback will update cfg_datatool
- Callback will revert AP.saccade.list and ‘SaccadeListbox’ handle
- ListBox selection cleared.
- Jide RangeSlider
- Parameterize default values
- Dotted lines attached to thumbs
- May be possible to use StateChangeCallback for this.
- Need to change trial number value, needs PP for trialList or selRow
from cfgAddNew
- Call back:
- ilabPlotSaccade
- Need velocity calculations (see previous ToDo’s)
- Reset AP parameters
- Release saccade table selection, opposite of
cfgUISecure(‘forceSLSelect1’);
- Need to add and relocate:
- cfgUISecure('apReturn'), cfgUISecure('clearsaccaction'),
cfgUISecure('mainUIOn')
- Currently, commented out in cfgSaccCB
- Need to relocate main window UI functions in cfgSaccSB.m/addDblClickCB
- Fix addDblClickCB bug.
- cfgParams(‘setsacc’)
- Remove cfgShow/uiTblCB if it has no use.
- Finalize saccade action restrictions
- User prompt to stop current action, or continue
- Include “Are you sure?” text if selected saccade already has saccade
data inputted for that initial/final trial.  Do same for Modify, Add,
Select, and Clear
- Checking for “NaN”, or never modified/cleared saccades.
- This will allow “Modify” to function, and also prevent overwrite.
- Add method to cfgParams for loading experimental data. Write up
specifications.  Add file string to data structure.  Add ui text to
“General Info”.  Edit CFG.CFG_TAGS.  Maybe modify menu item (Import
trial data)
- Add clear saccade data function
- Add saccade function mode to window title, when active.