Mercurial > hg > ltpda
comparison m-toolbox/classes/@sigBuilder/cb_sigListClick.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_SIGLISTCLICK fires when the user clicks on the signal list table | |
2 % | |
3 % M Hewitson | |
4 % | |
5 % $Id: cb_sigListClick.m,v 1.1 2008/10/19 11:42:40 hewitson Exp $ | |
6 % | |
7 function cb_sigListClick(varargin) | |
8 | |
9 % inputs | |
10 myh = varargin{1}; | |
11 mainfig = varargin{end}; | |
12 | |
13 % pop-up menu | |
14 | |
15 % get row that is clicked | |
16 if ~isempty(mainfig.SigSelected.Indices) | |
17 row = mainfig.SigSelected.Indices(1); | |
18 % get object | |
19 obj = mainfig.signals(row); | |
20 | |
21 hcmenu = uicontextmenu; | |
22 item1 = uimenu(hcmenu, 'Label', 'plot', 'Callback', {'iplot', obj}); | |
23 item2 = uimenu(hcmenu, 'Label', 'plot PSD', 'Callback', {'iplot', obj.psd}); | |
24 item3 = uimenu(hcmenu, 'Label', 'display', 'Callback', {'display', obj}); | |
25 set(myh,'uicontextmenu',hcmenu) | |
26 end | |
27 | |
28 end |