Mercurial > hg > ltpda
comparison m-toolbox/classes/@LTPDARepositoryManager/showGui.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % SHOWGUI opens a GUI which displays the repository manager. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: SHOWGUI opens a GUI which displays the repository manager. | |
5 % | |
6 % CALL: rm.showGui | |
7 % showGui(rm) | |
8 % | |
9 % <a href="matlab:web(LTPDARepositoryManager.getInfo('showGui').tohtml, '-helpbrowser')">Parameters Description</a> | |
10 % | |
11 % VERSION: $Id: showGui.m,v 1.4 2011/04/08 08:56:35 hewitson Exp $ | |
12 % | |
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
14 | |
15 function varargout = showGui(varargin) | |
16 | |
17 % Check if this is a call for parameters | |
18 if utils.helper.isinfocall(varargin{:}) | |
19 varargout{1} = getInfo(varargin{3}); | |
20 return | |
21 end | |
22 | |
23 rm = varargin{1}; | |
24 if isempty(rm.gui) | |
25 rm.initGUI; | |
26 end | |
27 awtinvoke(rm.gui, 'setVisible', 'true'); | |
28 end | |
29 | |
30 %-------------------------------------------------------------------------- | |
31 % Get Info Object | |
32 %-------------------------------------------------------------------------- | |
33 function ii = getInfo(varargin) | |
34 if nargin == 1 && strcmpi(varargin{1}, 'None') | |
35 sets = {}; | |
36 pl = []; | |
37 else | |
38 sets = {'Default'}; | |
39 pl = getDefaultPlist; | |
40 end | |
41 % Build info object | |
42 ii = minfo(mfilename, 'LTPDARepositoryManager', 'ltpda', utils.const.categories.gui, '$Id: showGui.m,v 1.4 2011/04/08 08:56:35 hewitson Exp $', sets, pl); | |
43 ii.setModifier(false); | |
44 ii.setOutmin(0); | |
45 end | |
46 | |
47 %-------------------------------------------------------------------------- | |
48 % Get Default Plist | |
49 %-------------------------------------------------------------------------- | |
50 function pl = getDefaultPlist() | |
51 pl = plist(); | |
52 end |