Mercurial > hg > easaier-soundaccess
comparison widgets/RealTimeFilterPropertyStack.cpp @ 79:afcf540ae3a2
add the real time filter stack to manage real time filters and their attributes
author | lbajardsilogic |
---|---|
date | Tue, 19 Jun 2007 15:15:12 +0000 |
parents | |
children | be6d31baecb9 |
comparison
equal
deleted
inserted
replaced
78:d99441818cd9 | 79:afcf540ae3a2 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* Sound Access | |
4 EASAIER client application. | |
5 Silogic 2007. Laure Bajard. | |
6 | |
7 This program is free software; you can redistribute it and/or | |
8 modify it under the terms of the GNU General Public License as | |
9 published by the Free Software Foundation; either version 2 of the | |
10 License, or (at your option) any later version. See the file | |
11 COPYING included with this distribution for more information. | |
12 */ | |
13 | |
14 #include "RealTimeFilterPropertyStack.h" | |
15 #include "ItemAudioFilterList.h" | |
16 | |
17 RealTimeFilterPropertyStack::RealTimeFilterPropertyStack() : AudioFilterViewerWidget() | |
18 {} | |
19 | |
20 RealTimeFilterPropertyStack::~RealTimeFilterPropertyStack() | |
21 {} | |
22 | |
23 void RealTimeFilterPropertyStack::filterAdded(Filter * filter) | |
24 { | |
25 PropertyBox *box = new PropertyBox(filter); | |
26 | |
27 ItemAudioFilterList *itAudio = new ItemAudioFilterList; | |
28 itAudio->setName(filter->objectName()); | |
29 itAudio->setToolTip(filter->objectName()); | |
30 itAudio->setIcon(QString(":icons/easaier.png")); | |
31 itAudio->setPropertyBox(box); | |
32 | |
33 addItem(itAudio); | |
34 | |
35 } | |
36 | |
37 void RealTimeFilterPropertyStack::filterRemoved(QString name) | |
38 { | |
39 removeItem(name); | |
40 } |