- Timestamp:
- Feb 12, 2014, 12:02:04 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/check_files.m
r679 r705 160 160 %% check svn status 161 161 [status,result]=system('svn --help'); 162 if status==0 162 if status==0 % if a svn line command is available 163 163 svn_info.rep_rev=0;svn_info.cur_rev=0; 164 [tild,result]=system(['svn info ' dir_fct]); 165 t=regexp(result,'R.vision\s*:\s*(?<rev>\d+)','names'); 164 [tild,result]=system(['svn info ' dir_fct]); %get info fromn the svn server 165 t=regexp(result,'R.vision\s*:\s*(?<rev>\d+)','names');%detect 'révision' or 'Revision' in the text 166 166 if ~isempty(t) 167 svn_info.cur_rev=str2double(t.rev); 167 svn_info.cur_rev=str2double(t.rev); %version nbre of the current package 168 168 end 169 169 [tild,result]=system(['svn info -r ''HEAD'' ' pathuvmat]); 170 170 t=regexp(result,'R.vision\s*:\s*(?<rev>\d+)','names'); 171 171 if ~isempty(t) 172 svn_info.rep_rev=str2double(t.rev); 172 svn_info.rep_rev=str2double(t.rev); % version nbre available on the svn repository 173 173 end 174 174 [tild,result]=system(['svn status ' pathuvmat]); 175 175 svn_info.status=result; 176 checkmsg =[checkmsg {['SVN revision : ' num2str(svn_info.cur_rev)]}]; 177 if svn_info.rep_rev>svn_info.cur_rev 176 checkmsg =[checkmsg {['SVN revision : ' num2str(svn_info.cur_rev)]}];%display version nbre of the current uvmat package 177 if svn_info.rep_rev>svn_info.cur_rev %if the repository has a more advanced version than the uvmat package, warning msge 178 178 checkmsg =[checkmsg ... 179 179 {['Repository now at revision ' num2str(svn_info.rep_rev) '. Please type svn update in uvmat folder']}]; 180 180 end 181 modifications=regexp(svn_info.status,'M\s[^(\n|\>)]+','match'); 181 modifications=regexp(svn_info.status,'M\s[^(\n|\>)]+','match');% detect the files modified compared to the repository 182 182 if ~isempty(modifications) 183 183 for ilist=1:numel(modifications) … … 186 186 end 187 187 end 188 else 188 else % no svn line command available 189 189 checkmsg=[checkmsg {'SVN not available'}]; 190 190 end -
trunk/src/series.m
r694 r705 1424 1424 %% settings of the button RUN 1425 1425 set(handles.RUN,'BusyAction','queue');% activation of STOP button will set BusyAction to 'cancel' 1426 %set(0,'CurrentFigure',handles.series); % display the GUI series1427 1426 set(handles.RUN, 'Enable','Off')% avoid further RUN action until the current one is finished 1428 1427 set(handles.RUN,'BackgroundColor',[1 1 0])%show activation of RUN by yellow color … … 1875 1874 function ActionName_Callback(hObject, eventdata, handles) 1876 1875 %------------------------------------------------------------------------ 1876 1877 1877 %% stop any ongoing series processing 1878 1878 if isequal(get(handles.RUN,'Value'),1) … … 2187 2187 %% Expected nbre of output files 2188 2188 if isfield(ParamOut,'OutputFileMode') 2189 StatusData.OutputFileMode=ParamOut.OutputFileMode;2190 set(handles.status,'UserData',StatusData)2189 StatusData.OutputFileMode=ParamOut.OutputFileMode; 2190 set(handles.status,'UserData',StatusData) 2191 2191 end 2192 2192 … … 2216 2216 %------------------------------------------------------------------------ 2217 2217 if get(handles.ActionInputView,'Value') 2218 ActionName_Callback(hObject, eventdata, handles)2218 ActionName_Callback(hObject, eventdata, handles) 2219 2219 end 2220 2220 … … 2652 2652 2653 2653 InputTable=get(handles.InputTable,'Data'); 2654 filexml=uigetfile_uvmat('pick a xml parameter file',InputTable{1,1},'.xml'); 2654 filexml=uigetfile_uvmat('pick a xml parameter file',InputTable{1,1},'.xml');% get the xml file containing processing parameters 2655 2655 if ~isempty(filexml)%abandon if no file is introduced by the browser 2656 2656 Param=xml2struct(filexml); 2657 fill_GUI(Param,handles.series) 2657 % stop current Action if button RUN has been activated 2658 if isequal(get(handles.RUN,'Value'),1) 2659 answer= msgbox_uvmat('INPUT_Y-N','stop current Action process?'); 2660 if strcmp(answer,'Yes') 2661 STOP_Callback(hObject, eventdata, handles) 2662 else 2663 return 2664 end 2665 end 2666 Param.Action.RUN=0; %deactivate the RUN button 2667 fill_GUI(Param,handles.series)% fill the elements of the GUI series with the input parameters 2658 2668 REFRESH_Callback([],[],handles)% refresh data relative to the input files 2659 2669 SeriesData=get(handles.series,'UserData'); 2660 if isfield(Param,'ActionInput') 2670 if isfield(Param,'ActionInput')% introduce parameters specific to an Action fct, for instance PIV parameters 2661 2671 set(handles.ActionInput,'Visible','on') 2662 2672 set(handles.ActionInput_title,'Visible','on') … … 2665 2675 SeriesData.ActionInput=Param.ActionInput; 2666 2676 end 2667 if isfield(Param,'ProjObject') 2677 if isfield(Param,'ProjObject') %introduce projection object if relevant 2668 2678 SeriesData.ProjObject=Param.ProjObject; 2669 2679 end 2670 2680 set(handles.series,'UserData',SeriesData) 2671 ActionName_Callback([],[],handles)2681 %ActionName_Callback([],[],handles) 2672 2682 end 2673 2683 … … 2724 2734 set(handles.status,'BackgroundColor',[1 1 0]) 2725 2735 drawnow 2726 %StatusData.time_ref=get(handles.RUN,'UserData');% get the time of launch2727 2736 Param=read_GUI(handles.series); 2728 2737 RootPath=Param.InputTable{1,1}; -
trunk/src/set_object.m
r684 r705 36 36 function varargout = set_object(varargin) 37 37 38 % Last Modified by GUIDE v2.5 02-Sep-2013 11:39:5638 % Last Modified by GUIDE v2.5 11-Feb-2014 20:08:17 39 39 40 40 % Begin initialization code - DO NOT REFRESH … … 82 82 set(0,'Unit','pixels') 83 83 ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right 84 Width=300;% fig width in pixels 85 Height=600; 84 PosGUI=get(handles.set_object,'Position');% fig width in pixels 85 Width=PosGUI(3);%width of the gui set_object in pixels 86 Height=PosGUI(4); 86 87 Left=ScreenSize(3)- Width-40; %right edge close to the right, with margin=40 87 88 Bottom=ScreenSize(4)-Height-40; %put fig at top right … … 650 651 def=[Object.Style '.xml']; 651 652 end 652 displ_txt={ 'save object as an .xml file in';dir_save};%default display653 displ_txt={['save object in' dir_save]; 'with file name (.xml):'};%default display 653 654 menu=get(handles.ProjMode,'String'); 654 655 value=get(handles.ProjMode,'Value'); 655 656 ProjMode=menu{value}; 656 657 if strcmp(ProjMode,'mask_inside')||strcmp(ProjMode,'mask_outside') 657 displ_txt={ 'save mask contour as an .xml file:'; 'to create a mask image, use save_mask on the GUI uvmat (lower right)'};658 displ_txt={displ_txt; '(to create a mask image, use save_mask on the GUI uvmat upper menu)'}; 658 659 end 659 660 answer=msgbox_uvmat('INPUT_TXT',displ_txt,def); 660 if isc ell(answer)661 FullName=fullfile(dir_save,answer {1});661 if ischar(answer) 662 FullName=fullfile(dir_save,answer); 662 663 t=struct2xml(Object); 663 664 t=set(t,1,'name','ProjObject'); … … 784 785 set(handles.Coord,'Data',Coord); 785 786 end 786 787 788
Note: See TracChangeset
for help on using the changeset viewer.