Changeset 13026
- Timestamp:
- 08/14/12 09:54:53 (13 years ago)
- Location:
- issm/trunk-jpl/src/m/exp
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/exp/exptool.m
r12088 r13026 162 162 %display menu 163 163 title('Main Menu','FontSize',14); 164 button=menu('Menu','add a profile (open)',...%1 165 'add a contour (closed)',... %2 166 'remove a profile',... %3 167 'modify the position of a point',... %4 168 'add points inside a profile',... %5 169 'add points at the end of a profile',... %6 170 'remove points',... %7 171 'remove several points',... %8 172 'cut a segment',... %9 173 'cut a large area',... %10 174 'merge profiles',... %11 175 'close profile',... %12 176 'undo',... %13 177 'redo',... %14 178 'quit'); %15 179 164 UIControl_FontSize_bak = get(0, 'DefaultUIControlFontSize'); 165 set(0, 'DefaultUIControlFontSize',10); 166 button=menu('exptool menu',... 167 'add a profile (open)',... %1 168 'add a contour (closed)',... %2 169 'remove a profile',... %3 170 'modify the position of a point',... %4 171 'add points inside a profile',... %5 172 'add points at the end of a profile',... %6 173 'remove points',... %7 174 'remove several points',... %8 175 'cut a segment',... %9 176 'cut a large area',... %10 177 'merge profiles',... %11 178 'close profile',... %12 179 'change orientation',... %13 180 'undo',... %14 181 'redo',... %15 182 'quit'); %16 183 set(0, 'DefaultUIControlFontSize', UIControl_FontSize_bak); 180 184 181 185 %UNDO?? 182 if button==1 3;186 if button==14; 183 187 if counter==1 184 188 disp('Already at oldest change'); … … 190 194 closed=backup{counter,4}; 191 195 end 192 end193 194 196 %REDO?? 195 if button==14197 elseif button==15 196 198 if counter==size(backup,1) 197 199 disp('Already at newest change'); … … 316 318 backup{counter,4}=closed; 317 319 320 case 13 321 322 [A,numprofiles,numpoints,closed]=orientprofile(A,numprofiles,numpoints,closed,prevplot,root,options); 323 counter=counter+1; 324 backup{counter,1}=A; 325 backup{counter,2}=numprofiles; 326 backup{counter,3}=numpoints; 327 backup{counter,4}=closed; 328 318 329 %QUIT 319 case 1 5330 case 16 320 331 321 332 loop=0; 322 333 323 334 otherwise 324 325 335 %do nothing 326 327 336 end 328 337
Note:
See TracChangeset
for help on using the changeset viewer.