Changeset 569 for trunk/src/update_project.m
- Timestamp:
- Feb 19, 2013, 7:19:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/update_project.m
r488 r569 22 22 function varargout = update_project(varargin) 23 23 24 % Last Modified by GUIDE v2.5 01-Jul-2012 15:47:4824 % Last Modified by GUIDE v2.5 15-Feb-2013 19:22:23 25 25 26 26 % Begin initialization code - DO NOT EDIT … … 45 45 %------------------------------------------------------------------------ 46 46 % --- Executes just before update_project is made visible. 47 function update_project_OpeningFcn(hObject, eventdata, handles, Root Dir, SubCampaignTst,GeometryCalib)47 function update_project_OpeningFcn(hObject, eventdata, handles, RootXml, SubCampaignTst,GeometryCalib) 48 48 %------------------------------------------------------------------------ 49 49 % Choose default command line output for update_project … … 94 94 set(handles.SubCampaignTest,'Value',1); 95 95 end 96 if exist('RootDir','var') 97 set(handles.SourceDir,'String',RootDir); 98 set(handles.clean_civ_cmx,'Visible','off') 96 if exist('RootXml','var') 97 RootDir=fileparts(RootXml); 98 [s,Heading]=xml2struct(RootXml);%read the xml file 99 if isfield(s,'SourceDir') 100 set(handles.SourceDir,'String',s.SourceDir);%display the source dir if a mirror has been opened 101 set(handles.MirrorDir,'String',RootDir);%display the opened mirror dir 102 set(handles.CreateMirror,'String','update_mirror') 103 else %a source dir has been opened 104 set(handles.SourceDir,'String',RootDir); 105 set(handles.CreateMirror,'String','create_mirror') 106 end 107 SourceDir_Callback([],[], handles) 108 % set(handles.clean_civ_cmx,'Visible','off') 99 109 set(handles.edit_xml,'Visible','off') 100 110 set(handles.HELP,'Visible','off') … … 104 114 set(hObject,'Visible','on') 105 115 drawnow 106 RootDirectory_Callback(hObject, eventdata, handles)116 % RootDirectory_Callback(hObject, eventdata, handles) 107 117 % UIWAIT makes translate_points wait for user response (see UIRESUME) 108 118 uiwait(handles.figure); … … 198 208 idir=idir+1; 199 209 ExpName{idir}=hdir(ilist).name; 200 mirror=fullfile(MirrorDir,ExpName{idir}) 210 mirror=fullfile(MirrorDir,ExpName{idir}); 201 211 if ~exist(mirror,'dir') 202 212 mkdir(mirror) … … 818 828 uiresume(handles.figure); 819 829 end 820 821 822
Note: See TracChangeset
for help on using the changeset viewer.