Changeset 128 for trunk/src/dataview.m
- Timestamp:
- Nov 21, 2010, 10:06:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dataview.m
r127 r128 32 32 'gui_LayoutFcn', [] , ... 33 33 'gui_Callback', []); 34 if nargin & ischar(varargin{1})34 if nargin && ischar(varargin{1}) && ~isempty(regexp(varargin{1},'_Callback','once')) 35 35 gui_State.gui_Callback = str2func(varargin{1}); 36 36 end … … 119 119 function browser_Callback(hObject, eventdata, handles) 120 120 %------------------------------------------------------------------------ 121 CurrentFile='/raid/PROJETS';%get(handles.RootDirectory,'String'); 121 CurrentFile=fileparts(get(handles.RootDirectory,'String')); 122 if ~exist(CurrentFile,'dir') 123 CurrentFile='/fsnet/project/coriolis'; 124 end 122 125 set(handles.SubCampaignTest,'Value',0) 123 126 CampaignDir=uigetdir(CurrentFile,'Open the Campaign directory'); %file browser … … 129 132 function OpenSubCampaign_Callback(hObject, eventdata, handles) 130 133 %------------------------------------------------------------------------ 131 CurrentFile='/coriolis/bigone/PROJETS';%get(handles.RootDirectory,'String'); 134 CurrentFile=get(handles.RootDirectory,'String'); 135 if ~exist(CurrentFile,'dir') 136 CurrentFile='/fsnet/project/coriolis'; 137 end 132 138 set(handles.SubCampaignTest,'Value',1) 133 139 CampaignDir=uigetdir(CurrentFile,'Open the Campaign directory'); %file browser … … 184 190 set(handles.ListDevices,'String',[{'*'};ListDevices']) 185 191 set(handles.ListXml,'String',[{'*'};ListXml']) 192 'TEST' 193 testList 186 194 if testList 187 195 DataviewData=get(handles.figure,'UserData'); 188 Data View.List=List;196 DataviewData.List=List; 189 197 set(handles.figure,'UserData',DataviewData) 190 198 end … … 502 510 message='this function will delete all files with extensions .log, .bat, .cmx,.cmx2,.errors in the input directory(ies)'; 503 511 answer=msgbox_uvmat('INPUT_Y-N',message); 504 if ~isequal(answer {1},'OK')512 if ~isequal(answer,'Yes') 505 513 return 506 514 end 507 515 set(handles.ListExperiments,'Value',1) 508 516 ListExperiments_Callback(hObject, eventdata, handles)%update the overview of the experiment directories 509 DataviewData=get(handles.figure,'UserData') ;517 DataviewData=get(handles.figure,'UserData') 510 518 List=DataviewData.List; 511 519 Currentpath=get(handles.RootDirectory,'String');
Note: See TracChangeset
for help on using the changeset viewer.