Changeset 38 for trunk/src/series.m
- Timestamp:
- Mar 7, 2010, 6:30:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r36 r38 55 55 %-------------------------------------------------------------------------- 56 56 function series_OpeningFcn(hObject, eventdata, handles,param) 57 global nb_builtin 57 global nb_builtin nb_transform 58 58 % Choose default command line output for series 59 59 handles.output = hObject; … … 133 133 134 134 %loads the information stored in prefdir to initiate the browser and the list of functions 135 menu_str={'check_files';'aver_stat';'time_series';'merge_proj';'clean_civ_cmx'}; 136 nb_builtin=numel(menu_str); %number of functions 135 fct_menu={'check_files';'aver_stat';'time_series';'merge_proj';'clean_civ_cmx'}; 136 transform_menu={'';'phys';'px';'phys_polar'}; 137 nb_builtin=numel(fct_menu); %number of functions 138 nb_transform=numel(transform_menu); 137 139 [path_series,name,ext]=fileparts(which('series')); 138 140 path_series=fullfile(path_series,'series');%path of the function 'series' 139 140 for ilist=1:length( menu_str)141 path_transform=fullfile(path_series,'transform_field');%path of the function 'series' 142 for ilist=1:length(fct_menu) 141 143 fct_path{ilist,1}=path_series;%paths of the fuctions buil-in in 'series.m' 144 end 145 for ilist=1:length(transform_menu) 146 transform_path{ilist,1}=path_transform; 142 147 end 143 148 % read the list of functions stored in the personal file 'uvmat_perso.mat' in prefdir … … 150 155 [path,file]=fileparts(h.series_fct{ilist}); 151 156 fct_path=[fct_path; {path}];%concatene the list of paths 152 menu_str=[menu_str; {file}];157 transform_menu=[transform_menu; {file}]; 153 158 end 154 159 end 155 end 156 157 menu_str=[menu_str;{'more...'}]; 158 set(handles.ACTION,'String',menu_str) 160 if isfield(h,'transform_fct') && iscell(h.transform_fct) 161 for ilist=1:length(h.transform_fct) 162 [path,file]=fileparts(h.transform_fct{ilist}); 163 transform_path=[transform_path; {path}];%concatene the list of paths 164 transform_menu=[transform_menu;{file}]; 165 end 166 end 167 end 168 fct_menu=[fct_menu;{'more...'}]; 169 set(handles.ACTION,'String',fct_menu) 159 170 set(handles.ACTION,'UserData',fct_path)% store the list of path in UserData of ACTION 171 transform_menu=[transform_menu;{'more...'}]; 172 set(handles.CoordType,'String',transform_menu) 173 set(handles.CoordType,'UserData',transform_path)% store the list of path in UserData of ACTION 160 174 161 175 % display the GUI for the default action 'check_files'
Note: See TracChangeset
for help on using the changeset viewer.