Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
fix GUI Layout to use uix package
Browse files Browse the repository at this point in the history
  • Loading branch information
MPIBR-tushevg committed Aug 2, 2017
1 parent 10bd4be commit 3fc0ea4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions WidgetFolderBrowserUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@
function obj = render(obj)

%%% --- create widget panel --- %%%
obj.panel = uiextras.Panel(...
obj.panel = uix.Panel(...
'Parent', obj.parent,...
'Padding', obj.UIGRID_PADDING,...
'Title', 'FolderBrowser');

obj.layout = uiextras.VBoxFlex(...
obj.layout = uix.VBoxFlex(...
'Parent', obj.panel,...
'Padding', obj.UIGRID_PADDING);

Expand All @@ -105,7 +105,7 @@
'FontSize', obj.UIFONT_SIZE,...
'String', '0 / 0');

obj.buttonGroup_Load = uiextras.HButtonBox(...
obj.buttonGroup_Load = uix.HButtonBox(...
'Parent', obj.layout,...
'Padding', obj.UIGRID_PADDING,...
'Spacing', obj.UIGRID_SPACING,...
Expand All @@ -125,7 +125,7 @@
'Enable', 'on',...
'Callback', @obj.onClick_pushButton_LoadFolder);

obj.buttonGroup_Navigate = uiextras.HButtonBox(...
obj.buttonGroup_Navigate = uix.HButtonBox(...
'Parent', obj.layout,...
'Padding', obj.UIGRID_PADDING,...
'Spacing', obj.UIGRID_SPACING,...
Expand Down
4 changes: 3 additions & 1 deletion test/test.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
% Aug 2017
%

addpath(genpath('../'));
[qry_path, ~, ~] = fileparts(mfilename('fullpath'));

addpath(genpath([qry_path,'../']));

obj = WidgetFolderBrowser();

0 comments on commit 3fc0ea4

Please sign in to comment.