Changeset 143 for aedes_juigetfiles.m


Ignore:
Timestamp:
Oct 13, 2010, 10:18:52 AM (9 years ago)
Author:
tjniskan
Message:
  • Fixed a bug in detecting Matlab version in aedes_resviewer.m, which

resulted in a crash in Matlab R2010a and newer.

  • Fixed a bunch of warnings that were generated in aedes_juigetfiles.m with newer Matlab

versions

M aedes_resviewer.m
M aedes_revision.m
M aedes_juigetfiles.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_juigetfiles.m

    r141 r143  
    121121if version_number>=7.06
    122122  rootnode = uitreenode('v0','My Computer','My Computer',rooticonpath,false);
     123  tree = uitree('v0',fh,'Root',rootnode,'position',pos);%,'ExpandFcn',@l_ExpFcn);
    123124else
    124125  rootnode = uitreenode('My Computer','My Computer',rooticonpath,false);
    125 end
    126 tree = uitree(fh,'Root',rootnode,'position',pos);%,'ExpandFcn',@l_ExpFcn);
     126  tree = uitree(fh,'Root',rootnode,'position',pos);%,'ExpandFcn',@l_ExpFcn);
     127end
     128
    127129set(tree,'NodeExpandedCallback',{@l_ExpFcnAlt,tree})
    128130
    129131%% Create uitree for files ---------------------------
    130 filetree = uitree(fh,'position',[pos(1)+pos(3)+5 pos(2) 220 pos(4)]);
     132if version_number>=7.06
     133  filetree = uitree('v0',fh,'position',[pos(1)+pos(3)+5 pos(2) 220 pos(4)]);
     134else
     135  filetree = uitree(fh,'position',[pos(1)+pos(3)+5 pos(2) 220 pos(4)]);
     136end
    131137set(filetree,'MultipleSelectionEnabled',true,...
    132138             'NodeCollapsedCallback',{@l_FileTreeNodeCollapsed,filetree},...
     
    148154if version_number>=7.06
    149155  selfiletreeroot = uitreenode('v0','Selected Files','0 Files Selected','',false);
     156  selfiletree = uitree('v0',fh,'Root',selfiletreeroot,'position',[pos(1)+pos2(3)+pos(3)+100 pos(2) 220 pos(4)]);
    150157else
    151158  selfiletreeroot = uitreenode('Selected Files','0 Files Selected','',false);
    152 end
    153 selfiletree = uitree(fh,'Root',selfiletreeroot,'position',[pos(1)+pos2(3)+pos(3)+100 pos(2) 220 pos(4)]);
     159  selfiletree = uitree(fh,'Root',selfiletreeroot,'position',[pos(1)+pos2(3)+pos(3)+100 pos(2) 220 pos(4)]);
     160end
    154161set(selfiletree,'DndEnabled',true);
    155162set(selfiletree,'MultipleSelectionEnabled',true);
Note: See TracChangeset for help on using the changeset viewer.

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