140227 #2

cfgIlabJavaInterface.m implementations for cfgConfirm
Need debugging.

2/27/14

Renamed cfgConfirm.m to cfgConfirmJFrame.m
Renamed cfgSliderInterface.m to cfgIlabJavaInterface.m

cfgIlabJavaInterface.m:
- Added cfgConfirmJFrame call and set-up
- Fixed some issues with ‘slider’ persistent variable
- Added cfgConfirmJFrame items
- Fixed original AP saving

cfgIlabJavaInterface.m/trickPlotSaccade:
- Now updates cfgConfirmJFrame

cfgUISecure.m:
- Added ‘enableSLSelect’

cfgConfirm.m:
- Pop-up window during to confirm/cancel
- Prevents closing
- Created own Java Frame
- setUndecorated(1)
- Update start/end saccade values
- Function handle passed to outer workspace
- Locked with a given Matlab figure
- Done with JFrame ‘ComponentMovedCallback’
- Function handle passed to outer workspace

- cfgConfirm.m/applyCmpMvFnc:
- Function to be applied to a handle and utilized in base workspace
- Needed to apply ‘ComponentMovedCallack’, which can only be done with
underlying java component
- Pass any figure handle and JFrame (presumably declared by
cfgConfirm.m)
- Initial setting of location
- Apply updateFrameLocation callback

- cfgConfirm.m/updateFrameLocation:
- ‘ComponentMovedCallback’ function
- Source of callback contains X, Y, and width
- Set location of JFrame  (presumably declared by cfgConfirm.m)

- cfgConfirm.m/updateLabelTxt:
- Gets app data applied to frame
- Output function handle to locate JLabels of cfgConfirm Java component
- Sets text to JLabel on JFrame

ToDo:

Warning: checkbox control requires a scalar Value
Control will not be rendered until all of its
parameter values are valid

cfgConfirm.m:
- Pop-up occurrence
- Modify for other functions
- Confirm
- Callback will update cfg_datatool
- cfgParams(‘setsacc’)
- Cancel
- Revert state handling
- Finalize saccade action restrictions

cfgSliderInterface.m:
- Update Confirm text values from RangeSlider
- Pass RangeSlider updateLabelTxt function and frame
- Convert with acquisition interval
- Update on Slider ‘MouseReleasedCallback’
(cfgSliderInterface.m/trickPlotSaccade)

- Proper re-enabling after “Add”/”Modify”
- Callback will revert AP.saccade.list and ‘SaccadeListbox’ handle
- ListBox selection cleared.
- 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

- 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.

- Need velocity calculations (see previous ToDo’s)

- Remove cfgShow/uiTblCB if it has no use.

- 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.

- Export data as is

- Drop/error:
- Error on initial, but
- No errors for final, but they are not synced (initial/final)