Changeset 78 for an2_maptool.m


Ignore:
Timestamp:
Feb 17, 2009, 3:00:56 PM (10 years ago)
Author:
tjniskan
Message:
  • Moved fMRI related plugins to their own subdirectories
  • Created a subdirectory for map calculation plugins and added a few

basic plugins for those. At the moment these plugins do not support
masking etc. and I didn't test them at all so be cautious...

  • Made a minor memory optimation to an2_readfid.m
  • Fixed a few issues in files related updating via SVN
  • Disabled some annoying warnings that Matlab R2008a and higher

generate from uitree and uitreenode functions inan2_juigetfiles.m

  • Coded something minor to an2_maptool.m. This is still stub and does

not work at all. Please don't try to use it.

  • Fixed a bug that caused Aedes to fail without generating an error

when reading VNMR FID-files that don't have PROCPAR in the same folder.

  • Fixed a javaFrame -warning (with R2008a and higher) in aedes.m

M an2_revision.m
M an2_data_read.m
M an2_maptool.m
M aedes.m
D plugins/calculate_t2_map.m
D plugins/calculate_t1r_map.m
D plugins/basic_fmri_analysis.m
D plugins/resting_state_fc.m
A plugins/fmri_plugins
A plugins/fmri_plugins/basic_fmri_analysis.m
A plugins/fmri_plugins/resting_state_fc.m
A plugins/map_plugins
A plugins/map_plugins/t2.m
A plugins/map_plugins/t1_3_parameter_fit.m
A plugins/map_plugins/t1_saturation_recovery.m
A plugins/map_plugins/t1_rho.m
A plugins/map_plugins/t2_rho.m
A plugins/map_plugins/t1_inversion_recovery.m
M an2_readfid.m
M an2_check_updates.m
M an2_juigetfiles.m
M an2_update.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • an2_maptool.m

    r45 r78  
    5858  'position',fig_pos,...
    5959  'NumberTitle','off',...
    60   'Name','Map Tool',...
     60  'Name','Aedes Map Tool',...
    6161  'Menubar','none',...
    6262  'toolbar','none',...
     
    8383
    8484
     85
     86%% OPTIONS %%%%%%%%%%%%%%%%%%%%%%%
     87
     88% Options uipanel ----------------------
     89H.OPTIONS_UIPANEL = uipanel('parent',H.FIG,...
     90  'units','pixels',...
     91  'position',[5 40 fig_w-10 300],...
     92  'BackGroundColor',GD.col.frame,...
     93  'title','Options',...
     94  'fontweight','bold');
     95tmp = get(H.OPTIONS_UIPANEL,'position');
     96
     97H.OUTDIR_UIPANEL = uipanel('parent',H.OPTIONS_UIPANEL,...
     98  'units','pixels',...
     99  'position',[5 5 tmp(3)-10 80],...
     100  'BackGroundColor',GD.col.frame);
     101tmp = get(H.OUTDIR_UIPANEL,'position');
     102
     103% Output directory editbox ---------------
     104
     105% Get default output folder from preferences
     106try
     107  DefaultOutputFolder = getpref('Aedes','MapToolDefaultOutputFolder');
     108catch
     109  if isunix
     110        DefaultOutputFolder = getenv('HOME');
     111  else
     112        DefaultOutputFolder = getenv('USERPROFILE');
     113  end
     114end
     115H.OUTDIR_EDIT = uicontrol('parent',H.OUTDIR_UIPANEL,...
     116  'style','edit',...
     117  'units','pixels',...
     118  'position',[5 5 tmp(3)-60 22],...
     119  'backgroundcolor',GD.col.edit,...
     120  'enable','off',...
     121  'horizontalalign','left',...
     122  'string',DefaultOutputFolder);
     123tmp = get(H.OUTDIR_EDIT,'position');
     124
     125% Output directory browse btn ------------
     126H.OUTDIR_BROWSE = uicontrol('parent',H.OUTDIR_UIPANEL,...
     127  'style','pushbutton',...
     128  'units','pixels',...
     129  'position',[tmp(1)+tmp(3)+3 tmp(2) 47 tmp(4)],...
     130  'string','...',...
     131  'enable','off');
     132tmp = get(H.OUTDIR_EDIT,'position');
     133
     134% Input dir as output dir
     135H.OUTDIR_RADIO1 = uicontrol('parent',H.OUTDIR_UIPANEL,...
     136  'units','pixels',...
     137  'position',[tmp(1) tmp(2)+tmp(4)+3 350 tmp(4)],...
     138  'style','radio',...
     139  'value',0,...
     140  'String','Use custom folder',...
     141  'BackGroundColor',GD.col.frame,...
     142  'callback',{@l_SelectOutputDir,'custom'});
     143tmp = get(H.OUTDIR_RADIO1,'position');
     144
     145H.OUTDIR_RADIO2 = uicontrol('parent',H.OUTDIR_UIPANEL,...
     146  'units','pixels',...
     147  'position',[tmp(1) tmp(2)+tmp(4)+3 tmp(3) tmp(4)],...
     148  'style','radio',...
     149  'value',1,...
     150  'String','Use data input folder as output folder',...
     151  'BackGroundColor',GD.col.frame,...
     152  'callback',{@l_SelectOutputDir,'input'});
     153
     154% Maptype and fit values uipanel ------------------
     155tmp = get(H.OUTDIR_UIPANEL,'position');
     156panel_w = 215;
     157panel_h = 190;
     158H.MAPTYPE_UIPANEL = uipanel('parent',H.OPTIONS_UIPANEL,...
     159  'units','pixels',...
     160  'position',[5 tmp(2)+tmp(4)+5 panel_w panel_h],...
     161  'backgroundcolor',GD.col.frame);
     162tmp = get(H.MAPTYPE_UIPANEL,'position');
     163
     164% Maptype popup --------------------------
     165H.MAPTYPE_TX = uicontrol('parent',H.MAPTYPE_UIPANEL,...
     166  'units','pixels',...
     167  'position',[5 tmp(4)-10-15 70 15],...
     168  'style','text',...
     169  'String','Map type',...
     170  'backgroundcolor',GD.col.frame,...
     171  'horizontalalign','left');
     172tmp = get(H.MAPTYPE_TX,'position');
     173maptypes = l_GetMapTypes;
     174H.MAPTYPE_POPUP = uicontrol('parent',H.MAPTYPE_UIPANEL,...
     175  'units','pixels',...
     176  'position',[tmp(1) tmp(2)-20-3 200 20],...
     177  'style','popup',...
     178  'string',maptypes);
     179tmp = get(H.MAPTYPE_TX,'position');
     180
     181% Fit values edit and popup -------------------
     182H.FITVALS_TX = uicontrol('parent',H.MAPTYPE_UIPANEL,...
     183  'units','pixels',...
     184  'position',[tmp(1) tmp(2)-15-40 tmp(3) 15],...
     185  'style','text',...
     186  'String','Fit values',...
     187  'backgroundcolor',GD.col.frame,...
     188  'horizontalalign','left');
     189tmp = get(H.FITVALS_TX,'position');
     190
     191H.FITVALS_EDIT = uicontrol('parent',H.MAPTYPE_UIPANEL,...
     192  'units','pixels',...
     193  'position',[tmp(1) tmp(2)-22-3 200 22],...
     194  'style','edit',...
     195  'String','',...
     196  'backgroundcolor',GD.col.edit,...
     197  'horizontalalign','left');
     198tmp = get(H.FITVALS_EDIT,'position');
     199
     200% % Fit value multiplication
     201% H.FITVALS_MULTI = uicontrol('parent',H.MAPTYPE_UIPANEL,...
     202%   'units','pixels',...
     203%   'position',[tmp(1) tmp(2)-22-2 tmp(3) 22],...
     204%   'style','popup',...
     205%   'String',{'Multiplication: 1',...
     206%   'Multiplication: 1000',...
     207%   'Multiplication: 100',...
     208%   'Multiplication: 10',...
     209%   'Multiplication: 0.1',...
     210%   'Multiplication: 0.01',...
     211%   'Multiplication: 0.001',...
     212%   'Multiplication: custom'});
     213% tmp = get(H.FITVALS_MULTI,'position');
     214
     215% Use procpar field --------------------------
     216H.FITVALS_USE_PROCPAR = uicontrol('parent',H.MAPTYPE_UIPANEL,...
     217  'units','pixels',...
     218  'position',[tmp(1) tmp(2)-22-2 tmp(3) 22],...
     219  'style','popup',...
     220  'tooltip',sprintf('Select the procpar field\n that contains the fit values'),...
     221  'String',{'Use procpar field...'},...
     222  'horizontalalign','left');
     223tmp = get(H.FITVALS_USE_PROCPAR,'position');
     224H.FITVALS_USE_PROCPAR_SAVE = uicontrol('parent',H.MAPTYPE_UIPANEL,...
     225  'units','pixels',...
     226  'position',[tmp(1) tmp(2)-20-2 tmp(3) 20],...
     227  'style','checkbox',...
     228  'tooltip',sprintf('Use this procpar field as\n default for this map type'),...
     229  'String','Use as default for this map type',...
     230  'horizontalalign','left',...
     231  'backgroundcolor',GD.col.frame,...
     232  'fontsize',8);
     233
     234
     235%% Output file name and mask file controls
     236tmp=get(H.MAPTYPE_UIPANEL,'position');
     237H.OUTPUTFILE_UIPANEL = uipanel('parent',H.OPTIONS_UIPANEL,...
     238  'units','pixels',...
     239  'position',[tmp(1)+tmp(3)+5 tmp(2) 270 tmp(4)],...
     240  'backgroundcolor',GD.col.frame);
     241tmp=get(H.OUTPUTFILE_UIPANEL,'position');
     242
     243% Output file name text and edit
     244H.OUTPUTFILE_TX = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     245  'units','pixels',...
     246  'position',[5 tmp(4)-15-10 120 15],...
     247  'style','text',...
     248  'String','Output File Name',...
     249  'backgroundcolor',GD.col.frame,...
     250  'horizontalalign','left');
     251tmp = get(H.OUTPUTFILE_TX,'position');
     252outputfile_tooltip = ...
     253  sprintf(['The following special formatting can be\n',...
     254  'used in this dialog:\n',...
     255  '%%m = map type identifier (t2map, t1rmap, etc.)\n',...
     256  '%%f = file name from input folder (e.g. MyData.fid -> %%f = MyData)\n',...
     257  ' \n',...
     258  'Note that numbering and file extension are handled automatically.']);
     259H.OUTPUTFILE_EDIT = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     260  'units','pixels',...
     261  'position',[tmp(1) tmp(2)-22-3 250 22],...
     262  'style','edit',...
     263  'String','%m_%f',...
     264  'backgroundcolor',GD.col.edit,...
     265  'horizontalalign','left',...
     266  'tooltip',outputfile_tooltip);
     267tmp = get(H.OUTPUTFILE_EDIT,'position');
     268
     269% Overwrite without warning checkbox
     270H.OUTPUTFILE_OVERWRITE = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     271  'units','pixels',...
     272  'position',[tmp(1) tmp(2)-20-2 tmp(3) 20],...
     273  'style','checkbox',...
     274  'value',0,...
     275  'String','Overwrite without warning',...
     276  'backgroundcolor',GD.col.frame,...
     277  'horizontalalign','left');
     278tmp = get(H.OUTPUTFILE_OVERWRITE,'position');
     279
     280% Fit type text
     281H.FITTYPE_TX = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     282  'units','pixels',...
     283  'position',[5 tmp(2)-15-20 120 15],...
     284  'style','text',...
     285  'String','Fit type',...
     286  'backgroundcolor',GD.col.frame,...
     287  'horizontalalign','left');
     288tmp = get(H.FITTYPE_TX,'position');
     289
     290% Linearized or non-linear fit
     291H.LINEARFIT_RADIO = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     292  'units','pixels',...
     293  'position',[tmp(1) tmp(2)-22-3 200 22],...
     294  'style','radio',...
     295  'value',1,...
     296  'string','Linearized fit',...
     297  'backgroundcolor',GD.col.frame);
     298tmp = get(H.LINEARFIT_RADIO,'position');
     299H.NONLINEARFIT_RADIO = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     300  'units','pixels',...
     301  'position',[tmp(1) tmp(2)-22-3 tmp(3) 22],...
     302  'style','radio',...
     303  'value',0,...
     304  'string','Non-linear fit',...
     305  'backgroundcolor',GD.col.frame);
     306tmp = get(H.NONLINEARFIT_RADIO,'position');
     307
     308% % Initial values -------------------------------
     309% H.INITIALVAL_TX = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     310%   'units','pixels',...
     311%   'position',[35 tmp(2)-15-3 90 15],...
     312%   'style','text',...
     313%   'String','Initial values',...
     314%   'backgroundcolor',GD.col.frame,...
     315%   'horizontalalign','left');
     316% tmp = get(H.INITIALVAL_TX,'position');
     317%
     318% H.INITIALVAL_POPUP = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     319%   'units','pixels',...
     320%   'position',[tmp(1)+tmp(3) tmp(2)-2 70 22],...
     321%   'style','popup',...
     322%   'string',{'Auto','Custom'},...
     323%   'enable','off');
     324% tmp = get(H.INITIALVAL_POPUP,'position');
     325% H.INITIALVAL_EDIT = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
     326%   'units','pixels',...
     327%   'position',[tmp(1)+tmp(3) tmp(2) 60 22],...
     328%   'style','edit',...
     329%   'String','',...
     330%   'backgroundcolor',GD.col.edit,...
     331%   'horizontalalign','left',...
     332%   'enable','off');
     333
     334% % Mask File ---------------------------------
     335% H.MASKFILE_TX = uicontrol('parent',H.MASK_UIPANEL,...
     336%   'units','pixels',...
     337%   'position',[tmp(1) tmp(2)-15-20 tmp(3) 15],...
     338%   'style','text',...
     339%   'String','Mask File',...
     340%   'backgroundcolor','r',...GD.col.frame,...
     341%   'horizontalalign','left');
     342% tmp = get(H.MASKFILE_TX,'position');
     343% H.MASKFILE_EDIT = uicontrol('parent',H.MASK_UIPANEL,...
     344%   'units','pixels',...
     345%   'position',[tmp(1) tmp(2)-22 tmp(3) 22],...
     346%   'style','edit',...
     347%   'String','',...
     348%   'backgroundcolor',GD.col.edit,...
     349%   'horizontalalign','left');
     350
     351% Add options to selected files -------------
     352tmp = get(H.OUTPUTFILE_UIPANEL,'position');
     353btn_h = 30;
     354btn_w = 130;
     355H.ADD_OPT_TO_SEL = uicontrol('parent',H.OPTIONS_UIPANEL,...
     356  'units','pixels',...
     357  'position',[tmp(1)+tmp(3)+5 tmp(2)+tmp(4)-btn_h btn_w btn_h],...
     358  'style','pushbutton',...
     359  'string','Add to selected',...
     360  'tooltip','Add options to selected files');
     361tmp = get(H.ADD_OPT_TO_SEL,'position');
     362H.ADD_OPT_TO_ALL = uicontrol('parent',H.OPTIONS_UIPANEL,...
     363  'units','pixels',...
     364  'position',[tmp(1) tmp(2)-btn_h-3 tmp(3) tmp(4)],...
     365  'style','pushbutton',...
     366  'string','Add to all',...
     367  'tooltip','Add options to all files');
     368
     369
    85370%% FILES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    86371
    87372% Files uipanel ---------------------
     373tmp = get(H.OPTIONS_UIPANEL,'position');
    88374H.FILES_UIPANEL = uipanel('parent',H.FIG,...
    89375  'units','pixels',...
    90   'position',[5 40 fig_w-10 220],...
     376  'position',[tmp(1) tmp(2)+tmp(4)+5 fig_w-10 220],...
    91377  'BackGroundColor',GD.col.frame,...
    92378  'title','Data Files',...
     
    160446
    161447
    162 %% OPTIONS %%%%%%%%%%%%%%%%%%%%%%%
    163 
    164 % Options uipanel ----------------------
    165 tmp = get(H.FILES_UIPANEL,'position');
    166 H.OPTIONS_UIPANEL = uipanel('parent',H.FIG,...
    167   'units','pixels',...
    168   'position',[tmp(1) tmp(2)+tmp(4)+5 fig_w-10 300],...
    169   'BackGroundColor',GD.col.frame,...
    170   'title','Options',...
    171   'fontweight','bold');
    172 tmp = get(H.OPTIONS_UIPANEL,'position');
    173 
    174 H.OUTDIR_UIPANEL = uipanel('parent',H.OPTIONS_UIPANEL,...
    175   'units','pixels',...
    176   'position',[5 5 tmp(3)-10 80],...
    177   'BackGroundColor',GD.col.frame);
    178 tmp = get(H.OUTDIR_UIPANEL,'position');
    179 
    180 % Output directory editbox ---------------
    181 
    182 % Get default output folder from preferences
    183 try
    184   DefaultOutputFolder = getpref('Aedes','MapToolDefaultOutputFolder');
    185 catch
    186   if isunix
    187         DefaultOutputFolder = getenv('HOME');
    188   else
    189         DefaultOutputFolder = getenv('USERPROFILE');
    190   end
    191 end
    192 H.OUTDIR_EDIT = uicontrol('parent',H.OUTDIR_UIPANEL,...
    193   'style','edit',...
    194   'units','pixels',...
    195   'position',[5 5 tmp(3)-60 22],...
    196   'backgroundcolor',GD.col.edit,...
    197   'enable','off',...
    198   'horizontalalign','left',...
    199   'string',DefaultOutputFolder);
    200 tmp = get(H.OUTDIR_EDIT,'position');
    201 
    202 % Output directory browse btn ------------
    203 H.OUTDIR_BROWSE = uicontrol('parent',H.OUTDIR_UIPANEL,...
    204   'style','pushbutton',...
    205   'units','pixels',...
    206   'position',[tmp(1)+tmp(3)+3 tmp(2) 47 tmp(4)],...
    207   'string','...',...
    208   'enable','off');
    209 tmp = get(H.OUTDIR_EDIT,'position');
    210 
    211 % Input dir as output dir
    212 H.OUTDIR_RADIO1 = uicontrol('parent',H.OUTDIR_UIPANEL,...
    213   'units','pixels',...
    214   'position',[tmp(1) tmp(2)+tmp(4)+3 350 tmp(4)],...
    215   'style','radio',...
    216   'value',0,...
    217   'String','Use custom folder',...
    218   'BackGroundColor',GD.col.frame,...
    219   'callback',{@l_SelectOutputDir,'custom'});
    220 tmp = get(H.OUTDIR_RADIO1,'position');
    221 
    222 H.OUTDIR_RADIO2 = uicontrol('parent',H.OUTDIR_UIPANEL,...
    223   'units','pixels',...
    224   'position',[tmp(1) tmp(2)+tmp(4)+3 tmp(3) tmp(4)],...
    225   'style','radio',...
    226   'value',1,...
    227   'String','Use data input folder as output folder',...
    228   'BackGroundColor',GD.col.frame,...
    229   'callback',{@l_SelectOutputDir,'input'});
    230 
    231 % Maptype and fit values uipanel ------------------
    232 tmp = get(H.OUTDIR_UIPANEL,'position');
    233 panel_w = 215;
    234 panel_h = 190;
    235 H.MAPTYPE_UIPANEL = uipanel('parent',H.OPTIONS_UIPANEL,...
    236   'units','pixels',...
    237   'position',[5 tmp(2)+tmp(4)+5 panel_w panel_h],...
    238   'backgroundcolor',GD.col.frame);
    239 tmp = get(H.MAPTYPE_UIPANEL,'position');
    240 
    241 % Maptype popup --------------------------
    242 H.MAPTYPE_TX = uicontrol('parent',H.MAPTYPE_UIPANEL,...
    243   'units','pixels',...
    244   'position',[5 tmp(4)-10-15 70 15],...
    245   'style','text',...
    246   'String','Map type',...
    247   'backgroundcolor',GD.col.frame,...
    248   'horizontalalign','left');
    249 tmp = get(H.MAPTYPE_TX,'position');
    250 maptypes = l_GetMapTypes;
    251 H.MAPTYPE_POPUP = uicontrol('parent',H.MAPTYPE_UIPANEL,...
    252   'units','pixels',...
    253   'position',[tmp(1) tmp(2)-20-3 200 20],...
    254   'style','popup',...
    255   'string',maptypes);
    256 tmp = get(H.MAPTYPE_TX,'position');
    257 
    258 % Fit values edit and popup -------------------
    259 H.FITVALS_TX = uicontrol('parent',H.MAPTYPE_UIPANEL,...
    260   'units','pixels',...
    261   'position',[tmp(1) tmp(2)-15-40 tmp(3) 15],...
    262   'style','text',...
    263   'String','Fit values',...
    264   'backgroundcolor',GD.col.frame,...
    265   'horizontalalign','left');
    266 tmp = get(H.FITVALS_TX,'position');
    267 
    268 H.FITVALS_EDIT = uicontrol('parent',H.MAPTYPE_UIPANEL,...
    269   'units','pixels',...
    270   'position',[tmp(1) tmp(2)-22-3 200 22],...
    271   'style','edit',...
    272   'String','',...
    273   'backgroundcolor',GD.col.edit,...
    274   'horizontalalign','left');
    275 tmp = get(H.FITVALS_EDIT,'position');
    276 
    277 % % Fit value multiplication
    278 % H.FITVALS_MULTI = uicontrol('parent',H.MAPTYPE_UIPANEL,...
    279 %   'units','pixels',...
    280 %   'position',[tmp(1) tmp(2)-22-2 tmp(3) 22],...
    281 %   'style','popup',...
    282 %   'String',{'Multiplication: 1',...
    283 %   'Multiplication: 1000',...
    284 %   'Multiplication: 100',...
    285 %   'Multiplication: 10',...
    286 %   'Multiplication: 0.1',...
    287 %   'Multiplication: 0.01',...
    288 %   'Multiplication: 0.001',...
    289 %   'Multiplication: custom'});
    290 % tmp = get(H.FITVALS_MULTI,'position');
    291 
    292 % Use procpar field --------------------------
    293 H.FITVALS_USE_PROCPAR = uicontrol('parent',H.MAPTYPE_UIPANEL,...
    294   'units','pixels',...
    295   'position',[tmp(1) tmp(2)-22-2 tmp(3) 22],...
    296   'style','popup',...
    297   'tooltip',sprintf('Select the procpar field\n that contains the fit values'),...
    298   'String',{'Use procpar field...'},...
    299   'horizontalalign','left');
    300 tmp = get(H.FITVALS_USE_PROCPAR,'position');
    301 H.FITVALS_USE_PROCPAR_SAVE = uicontrol('parent',H.MAPTYPE_UIPANEL,...
    302   'units','pixels',...
    303   'position',[tmp(1) tmp(2)-20-2 tmp(3) 20],...
    304   'style','checkbox',...
    305   'tooltip',sprintf('Use this procpar field as\n default for this map type'),...
    306   'String','Use as default for this map type',...
    307   'horizontalalign','left',...
    308   'backgroundcolor',GD.col.frame,...
    309   'fontsize',8);
    310 
    311 
    312 %% Output file name and mask file controls
    313 tmp=get(H.MAPTYPE_UIPANEL,'position');
    314 H.OUTPUTFILE_UIPANEL = uipanel('parent',H.OPTIONS_UIPANEL,...
    315   'units','pixels',...
    316   'position',[tmp(1)+tmp(3)+5 tmp(2) 270 tmp(4)],...
    317   'backgroundcolor',GD.col.frame);
    318 tmp=get(H.OUTPUTFILE_UIPANEL,'position');
    319 
    320 % Output file name text and edit
    321 H.OUTPUTFILE_TX = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    322   'units','pixels',...
    323   'position',[5 tmp(4)-15-10 120 15],...
    324   'style','text',...
    325   'String','Output File Name',...
    326   'backgroundcolor',GD.col.frame,...
    327   'horizontalalign','left');
    328 tmp = get(H.OUTPUTFILE_TX,'position');
    329 outputfile_tooltip = ...
    330   sprintf(['The following special formatting can be\n',...
    331   'used in this dialog:\n',...
    332   '%%m = map type identifier (t2map, t1rmap, etc.)\n',...
    333   '%%f = file name from input folder (e.g. MyData.fid -> %%f = MyData)\n',...
    334   ' \n',...
    335   'Note that numbering and file extension are handled automatically.']);
    336 H.OUTPUTFILE_EDIT = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    337   'units','pixels',...
    338   'position',[tmp(1) tmp(2)-22-3 250 22],...
    339   'style','edit',...
    340   'String','%m_%f',...
    341   'backgroundcolor',GD.col.edit,...
    342   'horizontalalign','left',...
    343   'tooltip',outputfile_tooltip);
    344 tmp = get(H.OUTPUTFILE_EDIT,'position');
    345 
    346 % Overwrite without warning checkbox
    347 H.OUTPUTFILE_OVERWRITE = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    348   'units','pixels',...
    349   'position',[tmp(1) tmp(2)-20-2 tmp(3) 20],...
    350   'style','checkbox',...
    351   'value',0,...
    352   'String','Overwrite without warning',...
    353   'backgroundcolor',GD.col.frame,...
    354   'horizontalalign','left');
    355 tmp = get(H.OUTPUTFILE_OVERWRITE,'position');
    356 
    357 % Fit type text
    358 H.FITTYPE_TX = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    359   'units','pixels',...
    360   'position',[5 tmp(2)-15-20 120 15],...
    361   'style','text',...
    362   'String','Fit type',...
    363   'backgroundcolor',GD.col.frame,...
    364   'horizontalalign','left');
    365 tmp = get(H.FITTYPE_TX,'position');
    366 
    367 % Linearized or non-linear fit
    368 H.LINEARFIT_RADIO = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    369   'units','pixels',...
    370   'position',[tmp(1) tmp(2)-22-3 200 22],...
    371   'style','radio',...
    372   'value',1,...
    373   'string','Linearized fit',...
    374   'backgroundcolor',GD.col.frame);
    375 tmp = get(H.LINEARFIT_RADIO,'position');
    376 H.NONLINEARFIT_RADIO = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    377   'units','pixels',...
    378   'position',[tmp(1) tmp(2)-22-3 tmp(3) 22],...
    379   'style','radio',...
    380   'value',0,...
    381   'string','Non-linear fit',...
    382   'backgroundcolor',GD.col.frame);
    383 tmp = get(H.NONLINEARFIT_RADIO,'position');
    384 
    385 % % Initial values -------------------------------
    386 % H.INITIALVAL_TX = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    387 %   'units','pixels',...
    388 %   'position',[35 tmp(2)-15-3 90 15],...
    389 %   'style','text',...
    390 %   'String','Initial values',...
    391 %   'backgroundcolor',GD.col.frame,...
    392 %   'horizontalalign','left');
    393 % tmp = get(H.INITIALVAL_TX,'position');
    394 %
    395 % H.INITIALVAL_POPUP = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    396 %   'units','pixels',...
    397 %   'position',[tmp(1)+tmp(3) tmp(2)-2 70 22],...
    398 %   'style','popup',...
    399 %   'string',{'Auto','Custom'},...
    400 %   'enable','off');
    401 % tmp = get(H.INITIALVAL_POPUP,'position');
    402 % H.INITIALVAL_EDIT = uicontrol('parent',H.OUTPUTFILE_UIPANEL,...
    403 %   'units','pixels',...
    404 %   'position',[tmp(1)+tmp(3) tmp(2) 60 22],...
    405 %   'style','edit',...
    406 %   'String','',...
    407 %   'backgroundcolor',GD.col.edit,...
    408 %   'horizontalalign','left',...
    409 %   'enable','off');
    410 
    411 % % Mask File ---------------------------------
    412 % H.MASKFILE_TX = uicontrol('parent',H.MASK_UIPANEL,...
    413 %   'units','pixels',...
    414 %   'position',[tmp(1) tmp(2)-15-20 tmp(3) 15],...
    415 %   'style','text',...
    416 %   'String','Mask File',...
    417 %   'backgroundcolor','r',...GD.col.frame,...
    418 %   'horizontalalign','left');
    419 % tmp = get(H.MASKFILE_TX,'position');
    420 % H.MASKFILE_EDIT = uicontrol('parent',H.MASK_UIPANEL,...
    421 %   'units','pixels',...
    422 %   'position',[tmp(1) tmp(2)-22 tmp(3) 22],...
    423 %   'style','edit',...
    424 %   'String','',...
    425 %   'backgroundcolor',GD.col.edit,...
    426 %   'horizontalalign','left');
    427 
    428 % Add options to selected files -------------
    429 tmp = get(H.OUTPUTFILE_UIPANEL,'position');
    430 btn_h = 30;
    431 btn_w = 130;
    432 H.ADD_OPT_TO_SEL = uicontrol('parent',H.OPTIONS_UIPANEL,...
    433   'units','pixels',...
    434   'position',[tmp(1)+tmp(3)+5 tmp(2)+tmp(4)-btn_h btn_w btn_h],...
    435   'style','pushbutton',...
    436   'string','Add to selected',...
    437   'tooltip','Add options to selected files');
    438 tmp = get(H.ADD_OPT_TO_SEL,'position');
    439 H.ADD_OPT_TO_ALL = uicontrol('parent',H.OPTIONS_UIPANEL,...
    440   'units','pixels',...
    441   'position',[tmp(1) tmp(2)-btn_h-3 tmp(3) tmp(4)],...
    442   'style','pushbutton',...
    443   'string','Add to all',...
    444   'tooltip','Add options to all files');
    445448
    446449
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008