%figure
%---------------
figure1=figure('units','normalized','position',[0.28047     0.68262        0.15     0.22852],'units','normalized',
'color',[0.4        0.55         0.7],'Name','file rename options:','Numbertitle','off','Menubar','none','units','normalized');

%   This software is protected by german copyright and international treaties.             
%   Copyright 2004 Markus Junghöfer & Peter Peyk. All Rights Reserved.                     
%                                                                                          
%   THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE        
%   NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,    
%   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE    
%   OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
%   TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT,       
%   INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE      
%   OR DOCUMENTATION.                                                                      
%logicpopup
%----------------
logicpopup= uicontrol('units','inches','style','popupmenu',...
'position',[0.052083      1.1771     0.54167     0.23958],...
'backgroundcolor',[1  1  1],...
'foregroundcolor',[0  0  0],...
'Value',1,...
'tag','logicpopup',...
'String',{'contains','does not contain','is equal','is unequal'},...
'HorizontalAlignment','left');

%findtypepopup
%----------------
findtypepopup= uicontrol('units','characters','style','popupmenu',...
'position',[15.6      11.0769         21.2      1.61538],...
'backgroundcolor',[1  1  1],...
'foregroundcolor',[0  0  0],...
'Value',1,...
'tag','findtypepopup',...
'String',{'filepath','filename','extension','version'},...
'HorizontalAlignment','center');

%text6
%----------------
text6= uicontrol('units','inches','style','text',...
'position',[0.10417      1.5208       0.375     0.16667],...
'backgroundcolor',[0.4        0.55         0.7],...
'foregroundcolor',[0  0  0],...
'Value',0,...
'tag','text6',...
'String','Find:',...
'HorizontalAlignment','left');

%findedit
%----------------
findedit= uicontrol('units','inches','style','edit',...
'position',[0.79167      1.1875       1.125     0.22917],...
'backgroundcolor',[1  1  1],...
'foregroundcolor',[0  0  0],...
'Value',0,...
'tag','findedit',...
'HorizontalAlignment','left');

%inclsubdirradio
%----------------
inclsubdirradio= uicontrol('units','characters','style','radiobutton',...
'position',[1      15.6154         17.6            2],...
'backgroundcolor',[0.4        0.55         0.7],...
'foregroundcolor',[0  0  0],...
'Value',0,...
'tag','inclsubdirradio',...
'String','include subdir',...
'HorizontalAlignment','center');

%cancelbutton
%----------------
cancelbutton= uicontrol('units','inches','style','pushbutton',...
'position',[0.052083      0.0625     0.96875     0.22917],...
'backgroundcolor',[0.83137     0.81569     0.78431],...
'foregroundcolor',[0  0  0],...
'Callback','close',...
'Value',0,...
'tag','cancelbutton',...
'String','Cancel',...
'HorizontalAlignment','center');

%copyreplaceradio
%----------------
copyreplaceradio= uicontrol('units','inches','style','radiobutton',...
'position',[0.052083      1.8542      1.0938     0.28125],...
'backgroundcolor',[0.4        0.55         0.7],...
'foregroundcolor',[0  0  0],...
'Value',0,...
'tag','copyreplaceradio',...
'String','Copy & replace',...
'HorizontalAlignment','center');

%pushbutton1
%----------------
pushbutton1= uicontrol('units','inches','style','pushbutton',...
'position',[1.125      0.0625     0.79167     0.22917],...
'backgroundcolor',[0.83137     0.81569     0.78431],...
'foregroundcolor',[0  0  0],...
'Callback','renamemanage(filename,filepath,mode)',...
'Value',0,...
'tag','pushbutton1',...
'String','Replace',...
'HorizontalAlignment','center');

%text2
%----------------
text2= uicontrol('units','inches','style','text',...
'position',[0.052083     0.35417     0.45833     0.27083],...
'backgroundcolor',[0.4        0.55         0.7],...
'foregroundcolor',[0  0  0],...
'Value',0,...
'tag','text2',...
'String','Replace:',...
'HorizontalAlignment','left');

%text1
%----------------
text1= uicontrol('units','inches','style','text',...
'position',[0.052083     0.64583     0.60417     0.28125],...
'backgroundcolor',[0.4        0.55         0.7],...
'foregroundcolor',[0  0  0],...
'Value',0,...
'tag','text1',...
'String','Find-String:',...
'HorizontalAlignment','left');

%replaceedit
%----------------
replaceedit= uicontrol('units','inches','style','edit',...
'position',[0.79167     0.41667       1.125     0.23958],...
'backgroundcolor',[1  1  1],...
'foregroundcolor',[0  0  0],...
'Callback','replaceedit',...
'Value',0,...
'tag','replaceedit',...
'HorizontalAlignment','left');

%findstringedit
%----------------
findstringedit= uicontrol('units','inches','style','edit',...
'position',[0.79167     0.76042       1.125     0.22917],...
'backgroundcolor',[1  1  1],...
'foregroundcolor',[0  0  0],...
'Callback','findedit',...
'Value',0,...
'tag','findstringedit',...
'HorizontalAlignment','left');

