- Timestamp:
- May 1, 2018, 4:31:01 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PARAM.xml.default
r501 r1037 2 2 <UvmatParam> 3 3 <RunParam> 4 <RunTime>${MCRROOT712}</RunTime>5 4 <CivBin>bin/civ<!--binary for the new civx version (relative or 6 5 absolute path)--></CivBin> … … 14 13 </RunParam> 15 14 <BatchParam> 16 <BatchMode>oar</BatchMode>17 <RunTime>${MCRROOT712}</RunTime>18 15 <CivBin>bin/civ</CivBin> 19 16 <Civ1Bin>bin/civ1</Civ1Bin> … … 23 20 <PatchBin>bin/patch_up</PatchBin> 24 21 </BatchParam> 25 <SchemaPath>XML_SCHEMAS <!--directory of xml schemas(relative or absolut26 e path)--></SchemaPath>27 22 </UvmatParam> -
trunk/src/browse_data.m
r1027 r1037 87 87 88 88 %% initialize the GUI 89 if ~(exist('DataSeries','var') && ischar(DataSeries) && exist(DataSeries,'dir'))89 if isempty(regexp(DataSeries,'^http:'))&& ~(exist('DataSeries','var') && ischar(DataSeries) && exist(DataSeries,'dir')) 90 90 DataSeries=pwd;% current dir is the starting data series by default 91 91 end … … 210 210 %------------------------------------------------------------------------ 211 211 errormsg=''; 212 if exist(Campaign,'dir')213 ListStruct=dir (Campaign); %list files and dirs212 if ~isempty(regexp(Campaign,'^http'))|| exist(Campaign,'dir') 213 ListStruct=dir_uvmat(Campaign); %list files and dirs 214 214 if numel(ListStruct)>1000% A campaign folder must contain maily a list of 'experiment' sub-folders 215 215 errormsg=[Campaign ' contains too many items (>1000) to be a Campaign folder']; -
trunk/src/dir_uvmat.m
r1033 r1037 27 27 %======================================================================= 28 28 29 function [ ListFiles] = dir_uvmat(DirName) 29 function [ ListFiles,errormsg] = dir_uvmat(DirName) 30 errormsg=''; 30 31 if regexp(DirName,'^http://') 31 32 catalog=[DirName,'/catalog.xml']; 33 try 32 34 str=urlread(catalog); 33 ListFiles=(regexp(str,'xlink:title="(?<name>[^"]+)"','names'))'; 35 catch ME 36 ListFiles=[]; 37 errormsg=ME.message; 38 return 39 end 40 ListFiles=(regexp(str,'xlink:title="(?<name>[^"]+)"','names'))';%list subfolders 34 41 NumDir=numel(ListFiles); 35 ListFiles=[ListFiles;(regexp(str,'dataset name="(?<name>[^"]+)"','names'))']; 42 ListFiles=[ListFiles;(regexp(str,'dataset name="(?<name>[^"]+)"','names'))'];% append files to the list 36 43 for ilist=1:numel(ListFiles) 37 44 ListFiles(ilist).date=0; … … 43 50 ListFiles(ilist).isdir=true; 44 51 end 52 ListFiles(NumDir+1)=[]; 45 53 else 46 54 ListFiles=dir(DirName); -
trunk/src/editxml.m
r1027 r1037 55 55 % varargin command line arguments to editxml (see VARARGIN) 56 56 57 % set(handles.replicate,'String',['copy';'<---'])58 57 if nargin 59 58 CurrentFile=varargin{1}; … … 61 60 CurrentFile=[]; 62 61 end 63 % if exist('varargin') & length(varargin)>=1 64 % CurrentFile=cell2mat(varargin{1}); 65 % else 66 % CurrentFile=[]; 67 % end 62 68 63 % Choose default command line output for editxml 69 64 handles.output = hObject; 70 % set(hObject,'Units','pixel')71 65 if exist(CurrentFile,'file') 72 66 [PathName,Nme,FileExt]=fileparts(CurrentFile); … … 118 112 DataIn.CurrentUid=[DataIn.CurrentUid NewRootUid];%record new current uid 119 113 DataIn.xs_CurrentUid=[DataIn.xs_CurrentUid xs_node];%record the new curent schema uid 120 end 121 122 % %update the import file display 123 % if isfield(DataIn,'h_ref')&ishandle(DataIn.h_ref) 124 % tag0_ref=find(t_ref,['/' path '/' xs_element.key]); 125 % node_ref=list.index(ind); 126 % if length(tag0_ref)<node_ref 127 % node_ref=length(tag0_ref); 128 % end 129 % [ref_element,ref_subelem]=get_xml(t_ref,path,xs_element,node_ref,xs_subelem); 130 % update_ref_list(DataIn.h_ref,xs_element,ref_element,node_ref,xs_subelem,ref_subelem); 131 % end 114 end 132 115 set(get(hObject,'Parent'),'UserData',DataIn); 133 116 else%no schema … … 164 147 else 165 148 xs_nodeup=[]; 166 % if isfield(DataIn,'xs_UpUid')167 149 if isfield(DataIn,'xs_CurrentUid')&length(DataIn.xs_CurrentUid)>1 168 % xs_nodeup=DataIn.xs_UpUid169 150 xs_nodeup=DataIn.xs_CurrentUid(end-1); 170 151 DataIn.xs_CurrentUid(end)=[];%uid of the root element in the schema … … 245 226 update_list(handles,path,xs_element,element,DataIn.CurrentUid(end),xs_subelem,subelem); 246 227 set(handles.list_element,'Value',element_index); 247 248 %249 % % --- Executes on button press in inport_file.250 % function inport_file_Callback(hObject, eventdata, handles)251 % CurrentFile=get(handles.RefFile,'String');252 % if isempty(CurrentFile)|isequal(CurrentFile,'')253 % CurrentFile=get(handles.CurrentFile,'String')254 % end255 % [FileName, PathName]=uigetfile( ...256 % {'*.xml', '(*.xml)';257 % '*.xml', '.xml files '; ...258 % '*.*', 'All Files (*.*)'}, ...259 % 'Pick a file',CurrentFile); %file browser260 % fileinput=fullfile(PathName,FileName);261 % sizf=size(fileinput);262 % if (~ischar(fileinput)|~isequal(sizf(1),1)),return;end% keep only character strings as input file name263 % if exist(fileinput,'file')264 % set(handles.RefFile,'Visible','on')265 % set(handles.replicate,'Visible','on')266 % set(handles.RefFile,'String',fileinput)267 % RefFile_Callback(handles.RefFile, eventdata, handles)268 % end269 270 228 271 229 %------------------------------------------------------ … … 287 245 if (~ischar(CurrentFile)||~isequal(sizf(1),1)),return;end% keep only character strings as input file name 288 246 if exist(CurrentFile,'file') 289 % set(handles.CurrentAttributes,'UserDataIn',PathName); %store the path to the xml file290 247 [CurPath,CurName,CurExt]=fileparts(CurrentFile); 291 248 if isequal(CurExt,'.xls') … … 333 290 %Path to shemas: 334 291 path_uvmat=fileparts(which('editxml'));% check the path detected for source file uvmat 335 % path_UVMAT=fileparts(path_uvmat); %path to UVMAT336 % xmlparam=fullfile(path_UVMAT,'PARAM.xml');337 % xmlparam='PARAM.xml'; %will find PARAM.xml whose path is set in priority338 % if exist(xmlparam,'file')339 % tparam=xmltree(xmlparam);340 % sparam=convert(tparam);341 % if isfield(sparam,'SchemaPath')342 292 schemafile=[fullfile(path_uvmat,'xml_shemas',head_name) '.xsd']; 343 293 if ~exist(schemafile,'file') … … 347 297 xs=xmltree(schemafile); 348 298 else 349 % msgbox_uvmat('WARNING','The xml schema is not found, check the file PARAM.xml')350 % [FileName, PathName]=uigetfile( ...351 % {'*.xsd', '(*.xsd)';352 % '*.xsd', '.xsd files '; ...353 % '*.*', 'All Files (*.*)'}, ...354 % 'Pick a .xsd schema' ,schemafile); %file browser355 % if ischar(PathName) && ischar(FileName) && exist(fullfile(PathName,FileName),'file')356 % DataIn.Schema=fullfile(PathName,FileName);357 % xs=xmltree(DataIn.Schema);%open the associated schema file358 % else359 299 xs=[]; 360 % 361 362 end 363 % end 364 % end 300 end 365 301 end 366 302 DataIn.CurrentUid=1; … … 533 469 xs_subelem(k).minOccurs=1; %default 534 470 xs_subelem(k).maxOccurs=1; %default 535 % pref{k}=[]; %default536 471 if isequal(node_content.name,'xs:element') 537 472 attr=node_content.attributes; 538 % attr{:}.key539 473 for l=1:length(attr) 540 474 if isequal(attr{l}.key,'name') … … 561 495 end 562 496 end 563 564 497 end 565 498 end … … 576 509 node1=children(xs,node_type(i)); 577 510 node2=find(xs,node1,'name','xs:restriction'); 578 % nodename1=find(xs,579 511 node3=children(xs,node2); 580 512 node4=find(xs,node3,'name','xs:enumeration'); … … 621 553 element.attr_val='';%default 622 554 element.val=''; 623 % element.type='';624 % element.testmanual=testmanual %inheritates the input manual editing flag by default625 555 subelem=[]; %default 626 556 attrup=[]; 627 % node=[];628 557 629 558 % %find the element properties in the xml file … … 635 564 element.val=[]; 636 565 else 637 element.val=elem_contents.value 566 element.val=elem_contents.value; 638 567 end 639 568 end … … 643 572 element.attr_key{iattr}=elem_attr{iattr}.key ; 644 573 element.attr_val{iattr}=elem_attr{iattr}.val; 645 % attrup=setfield(attrup,elem_attr{iattr}.key,elem_attr{iattr}.val);646 574 breakdetect=find(elem_attr{iattr}.key=='/'| elem_attr{iattr}.key==':'| elem_attr{iattr}.key=='.');% find '/' 647 575 if isempty(breakdetect) 648 % comline=['attrup.' elem_attr{iattr}.key '=' elem_attr{iattr}.val ';']649 576 eval(['attrup.' elem_attr{iattr}.key '=''' elem_attr{iattr}.val ''';']) 650 577 end … … 678 605 iline=0; 679 606 for k=1:length(xs_subelem)%node2: list of subelements in the sub-sequence 680 % attr=attributes(xs,'get',node2(i),1);%681 % element=attr.val;%name of the element682 607 tag=find(t,['/' path '/' xs_element.key '/' xs_subelem(k).key]);%look for the corresponding element node in the .xml tree 683 608 struct_element=get(t,tag);%get the content of the element … … 687 612 subelem(iline).xsindex=k; 688 613 subelem(iline).index=0; 689 % subelem(iline).testmanual=element.testmanual;% inheritates the manual editing flag by default690 614 if isequal(xs_subelem(k).minOccurs,'0') 691 615 subelem(iline).val='[]';%element value not mandatory in the schema … … 693 617 subelem(iline).val='[MISSING]';%element value mandatory in the schema 694 618 end 695 % subelem(iline).attrup=attrup; %inheritated attributes696 619 elseif isequal(length(struct_element),1) 697 620 contents=get(t,struct_element.contents); … … 700 623 subelem(iline).xsindex=k; 701 624 subelem(iline).index=1; 702 % subelem(iline).testmanual=element.testmanual;%703 625 if isfield(contents,'value') & ~isempty(contents.value) 704 626 subelem(iline).val=contents.value; … … 710 632 subelem(iline).val='[MISSING]';%element value mandatory in the schema 711 633 end 712 % subelem(iline).attrup=attrup; %inheritated attributes713 634 if isfield(struct_element,'attributes') 714 635 element_attr=struct_element.attributes; 715 636 attr_display=[]; 716 637 for iattr=1:length(element_attr) 717 % attr_display{iline}=[attr_display ' , ' element_attr{iattr}.key ' = ' element_attr{iattr}.val];718 638 subelem(iline).val=[subelem(iline).val attr_display ' , ' element_attr{iattr}.key ' = ' element_attr{iattr}.val]; 719 % subelem(iline).attrup=setfield(subelem(iline).attrup,element_attr{iattr}.key,element_attr{iattr}.val);720 639 end 721 640 end … … 726 645 subelem(iline).index=subindex;%index of the element 727 646 subelem(iline).xsindex=k; 728 % subelem(iline).testmanual=element.testmanual;%729 647 if isfield(contents,'value')& ~isempty(contents.value) 730 648 subelem(iline).val=contents.value; … … 734 652 subelem(iline).val='[]'; 735 653 end 736 % subelem(iline).attrup=attrup; %inheritated attributes737 654 if isfield(struct_element{subindex},'attributes') 738 655 element_attr=struct_element{subindex}.attributes; 739 656 attr_display=[]; 740 657 for iattr=1:length(element_attr) 741 % attr_display{iline}=[attr_display ' , ' element_attr{iattr}.key ' = ' element_attr{iattr}.val];742 658 subelem(iline).val=[subelem(iline).val attr_display ' , ' element_attr{iattr}.key ' = ' element_attr{iattr}.val]; 743 % subelem(iline).attrup=setfield(subelem(iline).attrup,element_attr{iattr}.key,element_attr{iattr}.val);744 659 end 745 660 end … … 757 672 set(handles.export_list,'String','')%flush the export list 758 673 set(handles.CurrentElement,'String',[path '/' xs_element.key]) 759 % title_element.key=[path '/' xs_element.key];760 % if ~isempty(path)761 % xsnode_index=get(handles.list_element,'UserDataIn');762 % ind=get(handles.list_element,'Value');763 % title_element.index=xsnode_index(2,ind);764 % else765 % title_element.index=1;766 % end767 % title_element.xsnode=xs_element.uid;768 % title_element.node=node;769 % set(handles.CurrentFile,'UserDataIn',title_element)%element corresponding to the title770 674 set(handles.CurrentAnnotation,'String',xs_element.annot) 771 675 attr_col=[]; 772 676 testedit=0;% cannot edit elements by default 773 677 for iattr=1:length(element.attr_key) 774 % if isequal(element.attr_key{iattr},'source') & isequal(element.attr_val{iattr},'manual')775 % testedit=1;776 % end777 678 attr_col=strvcat(attr_col,[element.attr_key{iattr} ' = ' element.attr_val{iattr}]); 778 679 end … … 792 693 end 793 694 node(iline)=xs_subelem(xsindex).node; 794 % testmanual(iline)=subelem(iline).testmanual;795 695 ikey=xs_subelem(xsindex).key; 796 696 if xs_subelem(xsindex).testsub … … 812 712 set(handles.element_value,'Visible','off') 813 713 else % we edit an element 814 815 714 export_list=get(handles.export_list,'String');%export list 816 715 testadd=1; … … 840 739 testedit=0;% cannot edit element by default 841 740 for iattr=1:length(element.attr_key) 842 % if isequal(element.attr_key{iattr},'source') & isequal(element.attr_val{iattr},'manual')843 % testedit=1;844 % end845 741 attr_col=strvcat(attr_col,[element.attr_key{iattr} ' = ' element.attr_val{iattr}]); 846 742 end 847 743 set(handles.element_attrib,'String',attr_col) 848 744 set(handles.element_key,'String',xs_element.key) 849 850 851 745 if isempty(xs_element.enum) 852 746 set(handles.element_value,'Value',1) … … 890 784 CurrentFile=get(handles.CurrentFile,'String'); 891 785 if isfield(DataIn,'Schema') 892 if ~isempty(DataIn.Schema)% update ref to schema 893 attrxsd=attributes(t,'get',1);894 setest=0;895 for iattr=1:length(attrxsd)896 if isequal(attrxsd{iattr}.key,'xsi:noNamespaceSchemaLocation')897 t= attributes(t,'set',1,iattr,'xsi:noNamespaceSchemaLocation',DataIn.Schema);898 setest=1;899 end900 end901 if setest==0;902 t=attributes(t,'add',1,'xmlns:xsi','http://www.w3.org/2001/XMLSchema-instance');903 t= attributes(t,'add',1,'xsi:noNamespaceSchemaLocation',DataIn.Schema);904 end905 end786 if ~isempty(DataIn.Schema)% update ref to schema 787 attrxsd=attributes(t,'get',1); 788 setest=0; 789 for iattr=1:length(attrxsd) 790 if isequal(attrxsd{iattr}.key,'xsi:noNamespaceSchemaLocation') 791 t= attributes(t,'set',1,iattr,'xsi:noNamespaceSchemaLocation',DataIn.Schema); 792 setest=1; 793 end 794 end 795 if setest==0; 796 t=attributes(t,'add',1,'xmlns:xsi','http://www.w3.org/2001/XMLSchema-instance'); 797 t= attributes(t,'add',1,'xsi:noNamespaceSchemaLocation',DataIn.Schema); 798 end 799 end 906 800 end 907 801 copyfile(CurrentFile,[CurrentFile '.bak']); … … 939 833 % Hints: contents = get(hObject,'String') returns element_attr_val contents as cell array 940 834 % contents{get(hObject,'Value')} returns selected item from element_attr_val 941 942 943 % --- Executes on button press in ADD.944 function ADD_Callback(hObject, eventdata, handles)945 % hObject handle to ADD (see GCBO)946 % eventdata reserved - to be defined in a future version of MATLAB947 % handles structure with handles and user data (see GUIDATA)948 835 949 836 %---------------------------------------- … … 999 886 for iattr_up=1:nbattrib_up 1000 887 attr= attributes(t,'get',uidparent,iattr_up); 1001 % if isequal(attr.key,'source')&isequal(attr.val,'directory')% look for 'source' attribute1002 888 if isequal(attr.key,'DirName') 1003 889 cur_file=fullfile(attr.val,cur_file); … … 1031 917 end 1032 918 end 1033 %elseif isequal(attr.val,'dir') A FAIRE : check directory1034 %else A FAIRE: edit the element1035 919 end 1036 920 end … … 1042 926 if ~testsimple 1043 927 list_element=[]; 1044 % Data.CurrentUid=[Data.CurrentUid root_uid]%record new current uid1045 928 for iline=1:length(list_uid) 1046 929 element=get(t,list_uid(iline)); … … 1097 980 index(iline)=indexcur; 1098 981 node(iline)=xs_subelem(xsindex).node; 1099 % testmanual(iline)=subelem(iline).testmanual;1100 982 ikey=xs_subelem(xsindex).key; 1101 983 if xs_subelem(xsindex).testsub … … 1114 996 set(hh,'UserData',RefDataIn) 1115 997 1116 %1117 % function RefFile_Callback(hObject, eventdata, handles)1118 % global t_ref xs1119 % t_ref=xmltree(get(hObject,'String'));%open the xml file fileinput1120 % heditxml=get(hObject,'parent');1121 % DataIn=get(get(hObject,'parent'),'UserData');1122 % % set(heditxml,'Units','pixel')1123 % figpos=get(heditxml,'Position')1124 % % title_element=get(handles.element_cur,'UserDataIn');1125 % % xs_node=xsnode_index(1,ind);1126 % % index_chosen=xsnode_index(2,ind);1127 % if isfield(DataIn,'fig_ref')&ishandle(DataIn.fig_ref)1128 % figure(DataIn.fig_ref);1129 % else1130 % DataIn.fig_ref=figure;1131 % end1132 % set(DataIn.fig_ref,'Name',get(hObject,'String'))1133 % set(DataIn.fig_ref,'MenuBar','none')1134 % newfigpos=[figpos(1)+figpos(3) figpos(2)+0.4*figpos(4) 0.5*figpos(3) 0.3*figpos(4)];1135 % set(DataIn.fig_ref,'Units','normalized')1136 % set(DataIn.fig_ref,'Position',newfigpos)1137 % DataIn.h_ref=uicontrol('Style','listbox', 'Max',2,'Units','pixel','Position', [0 0 newfigpos(3) newfigpos(4)], ...1138 % 'FontName','FixedWidth','Tag','listbox');1139 % if isfield(DataIn,'xs_CurrentUid');1140 % xs_CurrentUid=DataIn.xs_CurrentUid(end);1141 % else1142 % DataIn.xs_CurrentUid=find(xs,'/xs:schema/xs:element');%uid of the root element in the schema1143 % end1144 % [nodeup,path,xs_element,xs_subelem]=scan_schema(xs,xs_CurrentUid(end));1145 % xs_element.key1146 % tag0=find(t_ref,['/' path '/' xs_element.key]);1147 % if length(tag0)>=11148 % CurrentRefNode=tag0(1);%chose the first occurence of the element1149 % else1150 % CurrentRefNode=0;1151 % end1152 % [ref_element,ref_subelem]=get_xml(t_ref,path,xs_element,CurrentRefNode,xs_subelem);1153 % update_ref_list(DataIn.h_ref,xs_element,ref_element,CurrentRefNode,xs_subelem,ref_subelem);1154 % siztext=size(get(DataIn.h_ref,'String'));1155 % set(DataIn.h_ref,'Value',[1:siztext(1)]); %select the whole list by default1156 % set(heditxml,'UserData',DataIn)1157 % set(handles.ref_data,'Value',siztext(1)); %select the whole list by default1158 % 'TESTimport'1159 % title_element=get(handles.element_cur,'UserDataIn')1160 % xs_node=title_element.xsnode;%uid of the element in the schema1161 % node=title_element.node;1162 % t=flush(t,node);%removes the corresponding subtree in t1163 % [nodeup,path,xs_element,xs_subelem]=scan_schema(xs,xs_node);%scan the schema1164 % tag0=find(t_import,['/' path '/' xs_element.key])1165 % if isempty(tag)1166 % errordlg(['element /' path '/' xs_element.key ' not found in' fileinput])1167 % return1168 % end1169 % % [element_import,node_import]=get_xml(t_import,path,xs_element,1,xs_subelem);% read the corresponding xml data1170 % node2_import=children(t_import,tag0);1171 % % t_import=branch(t_import,node_import);% extract branch of the new file1172 % % %removes the corresponding subtree in t1173 % for inode=1:length(node2_import)1174 % struct=get(t_import,node2_import(inode))1175 % if isfield(struct,'type') & isfield(struct,'name')%if the node is an elmeent type1176 % node3_import=children(t_import,node2_import(inode))1177 % [t,newuid]=add(t,node,struct.type,struct.name);1178 % for inode2=1:length(node3_import)1179 % struct2=get(t_import,node3_import(inode2))1180 % if isequal(struct2.type,'chardata')1181 % t=add(t,newuid,'chardata',struct2.value);1182 % end1183 % end1184 % end1185 % end1186 998 % --- Executes on button press in replicate. 1187 999 function replicate_Callback(hObject, eventdata, handles) … … 1191 1003 export_val=get(handles.export_list,'UserData'); 1192 1004 heditxml=get(handles.replicate,'parent'); 1193 Data=get(heditxml,'UserData') 1194 1195 hdataview=findobj(allchild(0),'Name','dataview') 1005 Data=get(heditxml,'UserData'); 1006 1007 hdataview=findobj(allchild(0),'Name','dataview'); 1196 1008 if isempty(hdataview) 1197 1009 hdataview=dataview; … … 1215 1027 ListRecords=ListRecords(Value); 1216 1028 end 1217 % uvmat('runplus_Callback',hObject,eventdata,handleshaxes)1218 1029 [ListDevices,ListRecords,ListXml,List]=ListDir(CurrentPath,ListExperiments,ListDevices,ListRecords); 1219 1030 ListXml=get(hhdataview.ListXml,'String'); … … 1268 1079 end 1269 1080 end 1270 % [Title,test]=check_heading(Currentpath,Campaign,ExpName,DeviceName,[],FileName,SubCampaignTest);1271 % if test1272 % [List.Experiment{iexp}.Device{idevice}.xmlfile{ixml} ' , Heading updated']1273 % end1274 1081 end 1275 1082 elseif isfield(List.Experiment{iexp}.Device{idevice},'Record') … … 1285 1092 end 1286 1093 end 1287 % [Title,test]=check_heading(Currentpath,Campaign,ExpName,DeviceName,RecordName,FileName,SubCampaignTest);1288 % if test1289 % [FileName ' , Heading updated']1290 % end1291 1094 end 1292 1095 end … … 1350 1153 [element,subelem]=get_xml(t,path,xs_element,DataIn.CurrentUid(end),xs_subelem); 1351 1154 update_list(handles,path,xs_element,element,DataIn.CurrentUid(end),xs_subelem,subelem); 1352 % t=set_xml(t,xs_DataIn,subelem) 1155 1353 1156 %edit list of subelments: 1354 1157 … … 1538 1341 1539 1342 1540 % --- Executes on button press in pushbutton9. 1541 function pushbutton9_Callback(hObject, eventdata, handles) 1542 % hObject handle to pushbutton9 (see GCBO) 1543 % eventdata reserved - to be defined in a future version of MATLAB 1544 % handles structure with handles and user data (see GUIDATA) 1545 1546 1343 -
trunk/src/read_xls.m
r1027 r1037 101 101 ExpDocName=fullfile(ExpPath,[ExpName '.xml']);% full name of the .xml file ExpDoc 102 102 if exist(ExpDocName,'file') 103 hh=editxml({ExpDocName}) 104 % [FileName, PathName, filterindex] = uigetfile( ... 105 % {'*.xml','(*.xml)'; 106 % '*.xml', '.xml files '; 107 % '*.*', 'All Files (*.*)'}, ... 108 % 'Pick a file',ExpDocName); 109 % fileinput=[PathName FileName];%complete file name 110 % sizf=size(fileinput); 111 % if (~ischar(fileinput)|~isequal(sizf(1),1)),return;end 112 % [path,name,ext]=fileparts(fileinput); 113 % if isequal(ext,'.civ') | isequal(ext,'.log') | isequal(ext,'.cmx') isequal(ext,'.txt') 114 % edit(fileinput) 115 % elseif isequal(ext,'.xml') 116 % varargin{1}=fileinput; 117 % editxml(varargin) 118 % elseif isequal(ext,'.fig') 119 % open(fileinput) 120 % elseif isequal(ext,'.xls') 121 % xlsdisplay(fileinput) 122 % else 123 % uvmat({fileinput}) 124 % end 103 hh=editxml({ExpDocName}); 125 104 else 126 105 answer=questdlg({['ExpDoc file ' ExpDocName ' does not exist, create the experiment?'];''}) -
trunk/src/series.m
r1036 r1037 486 486 InputTable=get(handles.InputTable,'Data'); 487 487 if ~isempty(InputTable) 488 oldfile= fullfile(InputTable{1,1},InputTable{1,2});488 oldfile=[InputTable{1,1} InputTable{1,2}]; 489 489 else 490 490 % use a file name stored in prefdir -
trunk/src/series.xml.default
r1019 r1037 12 12 <LaunchCmdFcn>cluster_command</LaunchCmdFcn> <!--name of the function used to create job launch commmand--> 13 13 </ClusterParam> 14 <SgeParam>15 </SgeParam>16 14 </SeriesParam> -
trunk/src/uigetfile_uvmat.m
r1031 r1037 73 73 end 74 74 75 hfig=findobj(allchild(0),'tag',option); 76 if isempty(hfig) 75 hfig=findobj(allchild(0),'tag',option);%look for existing browser fig 76 if isempty(hfig)% create the browser fig if it does not exist 77 77 set(0,'Unit','points') 78 78 ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right … … 149 149 function OK_Callback(option,filter_ext,hObject,event) 150 150 set(hObject,'backgroundColor',[1 1 0])% indicate button activation 151 hfig=get(hObject,'parent');%handle of the fig 151 fig_struct=get(hObject,'parent'); 152 if isstruct(fig_struct);%recent Matlab 153 hfig=fig_struct.Number; 154 else 155 hfig=fig_struct; 156 end 152 157 htitlebox=findobj(hfig,'tag','titlebox'); % display the current dir name 153 158 DirName=get(htitlebox,'String'); … … 192 197 end 193 198 set(hObject,'backgroundColor',[0 1 0])% indicate end button activatio 194 fig_struct=get(hObject,'parent');195 if isstruct(fig_struct);%recent Matlab196 uiresume(fig_struct.Number)197 else198 uiresume(fig_struct)199 end200 199 201 200 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.