Browse code

almost all "change study" features implemented. needs testing.

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@199 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on30/07/2009 18:46:52
Showing1 changed files
... ...
@@ -5,5 +5,9 @@ uimenu(menu,...
5 5
 end
6 6
 
7 7
 function mcb_load_study(src,blah,filename,uimodel)
8
+    %save current study
9
+    studyID = get(uimodel.txtStudyID,'String');
10
+    saveStudy(studyID,uimodel);
11
+    %load selected study
8 12
     load_study(filename,uimodel);
9 13
 end
Browse code

first eventually working study switch functionality

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@198 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on29/07/2009 15:51:21
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+function addStudyToMenu(menu,label,callbackargs)
2
+uimenu(menu,...
3
+    'Label',label,...
4
+    'Callback',{@mcb_load_study,label,callbackargs});
5
+end
6
+
7
+function mcb_load_study(src,blah,filename,uimodel)
8
+    load_study(filename,uimodel);
9
+end