You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
66 lines
1.3 KiB
//
|
|
// C++ Implementation: effectstack
|
|
//
|
|
// Description:
|
|
//
|
|
//
|
|
// Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2004
|
|
//
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
//
|
|
//
|
|
|
|
// TQt includes
|
|
#include <tqstringlist.h>
|
|
|
|
// KDE includes
|
|
#include <kdebug.h>
|
|
|
|
// App specific includes
|
|
#include "effectstack.h"
|
|
#include "fxpluginhandler.h"
|
|
|
|
EffectStack::EffectStack(FXPluginHandler *pluginhandler, TDEConfig *config)
|
|
:
|
|
dispatcher(), server(),
|
|
m_pluginhandler(pluginhandler),
|
|
m_config(config)
|
|
{
|
|
}
|
|
|
|
|
|
EffectStack::~EffectStack()
|
|
{
|
|
}
|
|
|
|
bool EffectStack::loadEffects()
|
|
{
|
|
kdDebug(100200) << "EffectStack::loadEffects()" << endl;
|
|
|
|
TQStringList c_active;
|
|
TQStringList::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;
|
|
}
|
|
|