Changeset 329 for trunk/src/series.m
- Timestamp:
- Dec 10, 2011, 2:24:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r276 r329 125 125 FieldCell{1}=param.list_fields{param.index_fields}; 126 126 end 127 set(hObject,'WindowButtonDownFcn',{'mouse_ alt_gui',handles}) %allows mouse action with right button (zoom for uicontrol display)127 set(hObject,'WindowButtonDownFcn',{'mouse_down'})%allows mouse action with right button (zoom for uicontrol display) 128 128 NomType_Callback(hObject, eventdata, handles) 129 129 130 130 %loads the information stored in prefdir to initiate the list of ACTION functions 131 fct_menu={'check_ files';'aver_stat';'time_series';'merge_proj';'clean_civ_cmx'};131 fct_menu={'check_data_files';'aver_stat';'time_series';'merge_proj';'clean_civ_cmx'}; 132 132 transform_menu={'';'phys';'px';'phys_polar'}; 133 133 nb_builtin_ACTION=numel(fct_menu); %number of functions … … 194 194 set(handles.transform_fct,'UserData',fct_handle)% store the list of path in UserData of ACTION 195 195 196 % display the GUI for the default action 'check_ files'196 % display the GUI for the default action 'check_data_files' 197 197 ACTION_Callback(hObject, eventdata, handles) 198 198 … … 216 216 RootFileCell=get(handles.RootFile,'String'); 217 217 oldfile=''; %default 218 if isempty(RootPathCell)| isequal(RootPathCell,{''})%loads the previously stored file name and set it as default in the file_input box218 if isempty(RootPathCell)||isequal(RootPathCell,{''})%loads the previously stored file name and set it as default in the file_input box 219 219 dir_perso=prefdir; 220 220 profil_perso=fullfile(dir_perso,'uvmat_perso.mat'); 221 221 if exist(profil_perso,'file') 222 222 h=load (profil_perso); 223 if isfield(h,'filebase')& ischar(h.filebase)223 if isfield(h,'filebase')&&ischar(h.filebase) 224 224 oldfile=h.filebase; 225 225 end 226 if isfield(h,'RootPath')& ischar(h.RootPath)226 if isfield(h,'RootPath')&&ischar(h.RootPath) 227 227 oldfile=h.RootPath; 228 228 end … … 743 743 last_i_Callback(hObject, eventdata, handles) 744 744 745 %------------------------------------------------------------ 745 %------------------------------------------------------------------------ 746 746 function RootPath_Callback(hObject, eventdata, handles) 747 %------------------------------------------------------------------------ 747 748 Val=get(handles.RootPath,'Value'); 748 749 synchronise_view(handles,Val) 749 750 NomType_Callback(hObject, eventdata, handles) 750 %------------------------------------------------------------ 751 751 752 %------------------------------------------------------------------------ 752 753 function synchronise_view(handles,Val) 754 %------------------------------------------------------------------------ 753 755 set(handles.RootPath,'Value',Val) 754 756 set(handles.SubDir,'Value',Val) … … 762 764 763 765 764 %--------------------------------------------------------- 766 %------------------------------------------------------------------------ 765 767 % Executes on carriage return on the subdir civ1 edit window 766 %--------------------------------------------------------767 768 function SubDir_Callback(hObject, eventdata, handles) 768 769 %------------------------------------------------------------------------ 769 770 Val=get(handles.SubDir,'Value'); 770 771 synchronise_view(handles,Val) 771 772 NomType_Callback(hObject, eventdata, handles) 772 773 773 %-------------------------------------------------------------- 774 %function activated when a new filebase (image series) is introduced 775 %------------------------------------------------------------ 774 %------------------------------------------------------------------------ 775 % --- function activated when a new filebase (image series) is introduced 776 776 function RootFile_Callback(hObject, eventdata, handles) 777 %------------------------------------------------------------------------ 777 778 Val=get(handles.RootFile,'Value'); 778 779 synchronise_view(handles,Val) … … 813 814 Val=get(handles.time_last,'Value'); 814 815 synchronise_view(handles,Val) 815 816 %--------------------------------------------------------------817 %function activated by NomType818 %------------------------------------------------------------819 816 NomType_Callback(hObject, eventdata, handles) 820 817
Note: See TracChangeset
for help on using the changeset viewer.