Changeset 146 for aedes.m


Ignore:
Timestamp:
Oct 18, 2010, 11:09:40 AM (7 years ago)
Author:
tjniskan
Message:
  • Renamed aedes_viewprocpar.m to aedes_headerbrowser.m, since it's now

a more generic file header viewer. The favourite parameters are also
file format dependent. Aedes_headerbrowser should work in Matlab R2007b and
newer. Keyboard shortcuts don't work in Matlab R2007b if the uitable
has focus. Might work with older Matlab versions too, but I haven't
tried.

  • Added a shortcut to aedes_headerbrowser.m in Aedes menubar

View->File Header. Keyboard shortcut CTRL-H can also be used to launch
the aedes_headerbrowser.m.

  • Fixed a small bug in aedes_data_read.m. The file header information

from DICOM files was placed in a wrong field in Aedes DATA-structure.

D aedes_viewprocpar.m
M aedes_data_read.m
M aedes.m
A + aedes_headerbrowser.m
M aedes_revision.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes.m

    r142 r146  
    462462% View axes ticks and grid
    463463H.UIVIEW_GRID = uimenu(view_h,'Label','Show Grid',...
    464                               'callback',{@l_ViewAxesUnits,'pixel'},...
    465                               'separator','on',...
    466                               'checked','off');
     464  'callback',{@l_ViewAxesUnits,'pixel'},...
     465  'separator','on',...
     466  'checked','off');
     467
     468% View Header in aedes_headerbrowser
     469H.viewheader_h = uimenu(view_h,'Label','File Header',...
     470  'callback',@l_LaunchHeaderBrowser,...
     471  'enable','on','Accelerator','H',...
     472  'separator','on');
    467473
    468474% Show Info text background
     
    539545                 'enable','on');
    540546vnmredit_h = uimenu(tools_h,'Label','Edit VNMR defaults', ...
    541                    'callback','aedes_readfidprefs',...
    542                    'enable','on');
    543 resview_h = uimenu(tools_h,'Label','Results Viewer', ...
    544                    'callback','aedes_resviewer',...
    545                    'enable','on',...
    546                    'separator','on');
     547  'callback','aedes_readfidprefs',...
     548  'enable','on');
     549resview_h = uimenu(tools_h,'Label','Results Viewer', ...  'callback','aedes_resviewer',...
     550  'enable','on',...
     551  'separator','on');
    547552update_h = uimenu(tools_h,'Label','Check for updates', ...
    548553  'callback',@l_CheckUpdates,...
     
    19361941H.UICH_ENABLED(end+1)=roi_tools_h;
    19371942H.UICH_ENABLED(end+1)=closefile_h;
     1943%H.UICH_ENABLED(end+1)=H.viewprocpar_h;
    19381944H.UICH_ENABLED(end+1)=H.UIOVERLAY;
    19391945H.UICH_ENABLED(end+1)=H.UIPUSH_SAVE;
     
    33473353set(H.UICH_ENABLED,'enable','on')
    33483354
     3355% Disable "View VNMR Procpar" for non-VNMR data
     3356%if ~isfield(DATA{1},'PROCPAR') || isempty(DATA{1}.PROCPAR)
     3357%  set(H.viewprocpar_h,'enable','off')
     3358%end
     3359
    33493360% If data is mixed type, disable rotate and image stack buttons
    33503361if ~Dat.isDataMixed
     
    1050610517end % function l_ExecutePlugin(h,
    1050710518
     10519%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     10520% Launch Header Browser
     10521%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     10522  function l_LaunchHeaderBrowser(fh,evd)
     10523   %try
     10524    if ( isfield(DATA{Dat.DataInd},'PROCPAR') && ~isempty(DATA{Dat.DataInd}.PROCPAR) ) || ...
     10525        ( isfield(DATA{Dat.DataInd},'HDR') && ~isempty(DATA{Dat.DataInd}.HDR) )
     10526      aedes_headerbrowser(DATA{Dat.DataInd});
     10527    else
     10528      errordlg('Cannot open file header browser. File header not found!','File Header Not Found!','modal');
     10529    end
     10530    %catch
     10531    %  aedes_errordump(lasterror);
     10532    %end
     10533  end
     10534
    1050810535function l_PrintLicense(h,evd)
    1050910536
     
    1051110538  fprintf(1,'* Aedes - A graphical tool for analyzing medical images\n');
    1051210539  fprintf(1,'*\n')
    10513   fprintf(1,'* Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>\n');
     10540  fprintf(1,'* Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uef.fi>\n');
    1051410541  fprintf(1,'*\n')
    1051510542  fprintf(1,'* Department of Physics, Department of Neurobiology\n');
    10516   fprintf(1,'* University of Kuopio, FINLAND\n');
     10543  fprintf(1,'* University of Eastern Finland, FINLAND\n');
    1051710544  fprintf(1,'*\n')
    1051810545  fprintf(1,'* This program may be used under the terms of the GNU General Public\n');
Note: See TracChangeset for help on using the changeset viewer.

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