Mercurial > hg > ltpda
comparison m-toolbox/classes/@repogui2/cb_select_repo.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 % CB_SELECT_REPO callback executed when the user selects a repository | |
2 % from the drop-down menu. | |
3 % | |
4 % M Hewitson 22-09-08 | |
5 % | |
6 % $Id: cb_select_repo.m,v 1.2 2011/04/08 08:56:36 hewitson Exp $ | |
7 % | |
8 function cb_select_repo(varargin) | |
9 | |
10 % Handles | |
11 myh = varargin{1}; | |
12 mainfig = varargin{end}; | |
13 | |
14 | |
15 % get selected server | |
16 val = get(myh, 'Value'); | |
17 strs = get(myh, 'String'); | |
18 server = strs{val}; | |
19 | |
20 % Set server | |
21 eh = findobj(mainfig.handle, 'Tag', 'RepoguiServerEdit'); | |
22 set(eh, 'string', server); | |
23 | |
24 end |