Changeset 213 for aedes_juigetfiles.m


Ignore:
Timestamp:
Mar 30, 2015, 5:16:55 PM (4 years ago)
Author:
tjniskan
Message:
  • Fixed Aedes for Handle Graphics version 2 (HG2).

M aedes.m
M aedes_createmosaic.m
M aedes_export_gui.m
M aedes_gui_defaults.m
M aedes_headerbrowser.m
M aedes_helpabout.m
M aedes_inputdlg.m
M aedes_juigetfiles.m
M aedes_readfidprefs.m
M aedes_resviewer.m
M aedes_revision.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_juigetfiles.m

    r204 r213  
    8181          'Toolbar','none', ...
    8282          'Menubar','none', ...
    83           'DoubleBuffer','on', ...
    8483          'DockControls','off',...
    8584          'renderer','painters',...
     
    8988          'keypressfcn',@l_KeyPressFcn);
    9089H.fh=fh;
     90if ~GD.HG2graphics
     91        set(H.fh,'DoubleBuffer','on')
     92end
    9193%pos = [5 60 200 420];
    9294%pos=[5 60 320 420];
     
    125127end
    126128drawnow
    127 
     129drawnow
    128130
    129131%% Create uitree for files ---------------------------
     132pos_filetree = [pos(1)+pos(3)+5 pos(2) 220 pos(4)];
    130133if version_number>=7.06
    131   filetree = uitree('v0',fh,'position',[pos(1)+pos(3)+5 pos(2) 220 pos(4)]);
     134  filetree = uitree('v0',fh,'position',pos_filetree);
    132135else
    133   filetree = uitree(fh,'position',[pos(1)+pos(3)+5 pos(2) 220 pos(4)]);
    134 end
     136  filetree = uitree(fh,'position',pos_filetree);
     137end
     138drawnow
    135139drawnow
    136140
     
    144148filetree.reloadNode(fileroot);
    145149drawnow
     150drawnow
    146151
    147152
    148153%% Create selected files uitree
    149 pos2=get(filetree,'position');
     154pos_selfiletree=[pos(1)+220+pos(3)+100 pos(2) 220 pos(4)];
    150155if version_number>=7.06
    151156  selfiletreeroot = uitreenode('v0','Selected Files','0 Files Selected','',false);
    152   selfiletree = uitree('v0',fh,'Root',selfiletreeroot,'position',[pos(1)+pos2(3)+pos(3)+100 pos(2) 220 pos(4)]);
     157  selfiletree = uitree('v0',fh,'Root',selfiletreeroot,'position',pos_selfiletree);
    153158else
    154159  selfiletreeroot = uitreenode('Selected Files','0 Files Selected','',false);
    155   selfiletree = uitree(fh,'Root',selfiletreeroot,'position',[pos(1)+pos2(3)+pos(3)+100 pos(2) 220 pos(4)]);
     160  selfiletree = uitree(fh,'Root',selfiletreeroot,'position',pos_selfiletree);
    156161end
    157162drawnow
    158 
    159 
     163drawnow
    160164
    161165
    162166%% UICONTROLS ----------------------------------
    163167% Folders text
    164 tmp=get(tree,'position');
     168%tmp=get(tree,'position');
    165169dir_tx = uicontrol('parent',fh,...
    166                    'position',[tmp(1)+5 tmp(2)+tmp(4) 150 13],...
     170                   'position',[pos(1) pos(2)+pos(4)+5 150 13],...
    167171                   'style','text',...
    168172                   'string','Folders',...
     
    172176
    173177% Files text
    174 tmp=get(filetree,'position');
     178%tmp=get(filetree,'position');
    175179files_tx = uicontrol('parent',fh,...
    176                      'position',[tmp(1) tmp(2)+tmp(4) 150 13],...
     180                     'position',[pos(1)+pos(3)+5 pos(2)+pos(4)+5 150 13],...
    177181                     'style','text',...
    178182                     'string','Files',...
     
    182186
    183187% Selected Files text
    184 tmp=get(selfiletree,'position');
     188%tmp=get(selfiletree,'position');
    185189selfiles_tx = uicontrol('parent',fh,...
    186                         'position',[tmp(1) tmp(2)+tmp(4) 150 13],...
     190                        'position',[pos(1)+pos(3)+220+100+5 pos(2)+pos(4)+5 150 13],...
    187191                        'style','text',...
    188192                        'string','Selected Files',...
     
    194198
    195199% Add and Remove buttons
    196 tmp=get(filetree,'position');
     200tmp=pos_filetree;
    197201addallbnt = uicontrol('parent',fh,...
    198202  'units','pixel',...
     
    217221  'style','pushbutton',...
    218222  'callback',{@l_AddRemFiles,'remove',filetree,selfiletree});
    219 tmp=get(filetree,'position');
     223tmp=pos_filetree;
    220224rembtn = uicontrol('parent',fh,...
    221225  'units','pixel',...
     
    228232
    229233% Show path -checkbox
    230 tmp=get(selfiletree,'pos');
     234tmp=pos_selfiletree;
    231235showpathcb = uicontrol('parent',fh,...
    232236                       'units','pixel',...
     
    239243
    240244% Back/Forward buttons
    241 tmp=get(tree,'position');
     245tmp=pos;
    242246back_btn = uicontrol('parent',fh,...
    243247                     'units','pixel',...
     
    272276
    273277% Open and Cancel buttons
    274 tmp=get(selfiletree,'pos');
     278tmp=pos_selfiletree;
    275279openbtn = uicontrol('parent',fh,...
    276280                    'units','pixel',...
     
    291295
    292296% File Filter popup
    293 tmp=get(tree,'position');
     297tmp=pos;
    294298filefilter_popup = uicontrol('parent',fh,...
    295299                             'units','pixel',...
Note: See TracChangeset for help on using the changeset viewer.

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