Modules -> Effects, for consistent naming (not sure if the calls
are used somewhere). Also fix the strange indent. CCMAIL: Laurent Montel <montel@kde.org> svn path=/trunk/KDE/kdebase/workspace/; revision=818994
This commit is contained in:
parent
3f4a2dfaed
commit
e2f835e142
5 changed files with 29 additions and 32 deletions
28
effects.cpp
28
effects.cpp
|
@ -716,31 +716,29 @@ void EffectsHandlerImpl::toggleEffect( const QString& name )
|
|||
loadEffect( name );
|
||||
}
|
||||
|
||||
QStringList EffectsHandlerImpl::loadedModules() const
|
||||
QStringList EffectsHandlerImpl::loadedEffects() const
|
||||
{
|
||||
QStringList listModules;
|
||||
for(QVector< EffectPair >::const_iterator it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it)
|
||||
QStringList listModules;
|
||||
for(QVector< EffectPair >::const_iterator it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it)
|
||||
{
|
||||
listModules <<(*it).first;
|
||||
listModules <<(*it).first;
|
||||
}
|
||||
return listModules;
|
||||
return listModules;
|
||||
}
|
||||
|
||||
|
||||
QStringList EffectsHandlerImpl::listOfModulesEffect() const
|
||||
QStringList EffectsHandlerImpl::listOfEffects() const
|
||||
{
|
||||
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
|
||||
QStringList listOfModules;
|
||||
// First unload necessary effects
|
||||
foreach( const KService::Ptr &service, offers )
|
||||
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
|
||||
QStringList listOfModules;
|
||||
// First unload necessary effects
|
||||
foreach( const KService::Ptr &service, offers )
|
||||
{
|
||||
KPluginInfo plugininfo( service );
|
||||
listOfModules<<plugininfo.pluginName();
|
||||
KPluginInfo plugininfo( service );
|
||||
listOfModules<<plugininfo.pluginName();
|
||||
}
|
||||
return listOfModules;
|
||||
return listOfModules;
|
||||
}
|
||||
|
||||
|
||||
bool EffectsHandlerImpl::loadEffect( const QString& name )
|
||||
{
|
||||
Workspace::self()->addRepaintFull();
|
||||
|
|
|
@ -142,8 +142,8 @@ class EffectsHandlerImpl : public EffectsHandler
|
|||
void unloadEffect( const QString& name );
|
||||
void reloadEffect( const QString& name );
|
||||
bool isEffectLoaded( const QString& name );
|
||||
QStringList loadedModules() const;
|
||||
QStringList listOfModulesEffect() const;
|
||||
QStringList loadedEffects() const;
|
||||
QStringList listOfEffects() const;
|
||||
|
||||
QList<EffectWindow*> elevatedWindows() const;
|
||||
|
||||
|
|
|
@ -47,10 +47,10 @@
|
|||
<method name="reloadEffect">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
</method>
|
||||
<method name="loadedModules">
|
||||
<method name="loadedEffects">
|
||||
<arg type="as" direction="out"/>
|
||||
</method>
|
||||
<method name="listOfModulesEffect">
|
||||
<method name="listOfEffects">
|
||||
<arg type="as" direction="out"/>
|
||||
</method>
|
||||
<method name="decorationSupportedColors">
|
||||
|
|
|
@ -734,23 +734,22 @@ void Workspace::reloadEffect( const QString& name )
|
|||
static_cast<EffectsHandlerImpl*>(effects)->reloadEffect( name );
|
||||
}
|
||||
|
||||
QStringList Workspace::loadedModules() const
|
||||
QStringList Workspace::loadedEffects() const
|
||||
{
|
||||
QStringList listModulesLoaded;
|
||||
if ( effects )
|
||||
listModulesLoaded = static_cast<EffectsHandlerImpl*>(effects)->loadedModules();
|
||||
return listModulesLoaded;
|
||||
QStringList listModulesLoaded;
|
||||
if ( effects )
|
||||
listModulesLoaded = static_cast<EffectsHandlerImpl*>(effects)->loadedEffects();
|
||||
return listModulesLoaded;
|
||||
}
|
||||
|
||||
QStringList Workspace::listOfModulesEffect() const
|
||||
QStringList Workspace::listOfEffects() const
|
||||
{
|
||||
QStringList listModules;
|
||||
if ( effects )
|
||||
listModules = static_cast<EffectsHandlerImpl*>(effects)->listOfModulesEffect();
|
||||
return listModules;
|
||||
QStringList listModules;
|
||||
if ( effects )
|
||||
listModules = static_cast<EffectsHandlerImpl*>(effects)->listOfEffects();
|
||||
return listModules;
|
||||
}
|
||||
|
||||
|
||||
void Workspace::slotActivateAttentionWindow()
|
||||
{
|
||||
if( attention_chain.count() > 0 )
|
||||
|
|
|
@ -213,8 +213,8 @@ class Workspace : public QObject, public KDecorationDefines
|
|||
|
||||
void unloadEffect( const QString& name );
|
||||
|
||||
QStringList loadedModules() const;
|
||||
QStringList listOfModulesEffect() const;
|
||||
QStringList loadedEffects() const;
|
||||
QStringList listOfEffects() const;
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue