diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 00bb99ac80741fc50ef8a289719373032f2391eb (patch) | |
tree | 3a5a9bf72f942784b38bf77dd66c534662fab5f2 /ksayit/src/effectstack.cpp | |
download | tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.tar.gz tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit/src/effectstack.cpp')
-rw-r--r-- | ksayit/src/effectstack.cpp | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/ksayit/src/effectstack.cpp b/ksayit/src/effectstack.cpp new file mode 100644 index 0000000..7497847 --- /dev/null +++ b/ksayit/src/effectstack.cpp @@ -0,0 +1,65 @@ +// +// C++ Implementation: effectstack +// +// Description: +// +// +// Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2004 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +// Qt includes +#include <qstringlist.h> + +// KDE includes +#include <kdebug.h> + +// App specific includes +#include "effectstack.h" +#include "fxpluginhandler.h" + +EffectStack::EffectStack(FXPluginHandler *pluginhandler, KConfig *config) + : + dispatcher(), server(), + m_pluginhandler(pluginhandler), + m_config(config) +{ +} + + +EffectStack::~EffectStack() +{ +} + +bool EffectStack::loadEffects() +{ + kdDebug(100200) << "EffectStack::loadEffects()" << endl; + + QStringList c_active; + QStringList::Iterator fx_it; + + // create filterstack + FX_Stack = server.server().outstack(); + + m_config->setGroup("Effect Stack Configuration"); + c_active = m_config->readListEntry("Activated"); + for(fx_it=c_active.begin(); fx_it!=c_active.end(); ++fx_it){ + + m_pluginhandler->activateEffect(*fx_it, &server, &FX_Stack); + + } + return true; +} + + +bool EffectStack::unloadEffects() +{ + kdDebug(100200) << "EffectStack::unloadEffects()" << endl; + // remove all effects + m_pluginhandler->deactivateEffects(&FX_Stack); + + return true; +} + |