Remove kwineffects config module as it's functionality is now offered by kwincompositing module

svn path=/trunk/KDE/kdebase/workspace/; revision=714019
This commit is contained in:
Rivo Laks 2007-09-18 14:44:03 +00:00
parent 9f95efdc27
commit 89b9872eef
7 changed files with 2 additions and 281 deletions

View file

@ -2,6 +2,5 @@
add_subdirectory( kwinoptions )
add_subdirectory( kwindecoration )
add_subdirectory( kwinrules )
add_subdirectory( kwineffects )
add_subdirectory( kwincompositing )
add_subdirectory( kwincompositing )

View file

@ -1,13 +0,0 @@
########### next target ###############
set(kcm_kwineffects_PART_SRCS main.cpp )
kde4_add_plugin(kcm_kwineffects ${kcm_kwineffects_PART_SRCS})
target_link_libraries(kcm_kwineffects ${KDE4_KUTILS_LIBS})
install(TARGETS kcm_kwineffects DESTINATION ${PLUGIN_INSTALL_DIR} )
########### install files ###############
install( FILES kwineffects.desktop DESTINATION ${SERVICES_INSTALL_DIR} )

View file

@ -1,2 +0,0 @@
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/kcmkwineffects.pot

View file

@ -1,92 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Exec=kcmshell kwineffects
Icon=preferences-system-windows-effects
Type=Service
ServiceTypes=KCModule
DocPath=kcontrol/kwineffects/index.html
X-KDE-Library=kcm_kwineffects
X-KDE-ParentApp=kcontrol
X-KDE-System-Settings-Parent-Category=window-behaviour
Name=Window Effects
Name[ar]=تأثيرات النافذة
Name[be]=Эфекты вокнаў
Name[bg]=Декорация
Name[csb]=Efektë òknów
Name[de]=Fenstereffekte
Name[el]=Εφέ παραθύρων
Name[es]=Efectos de las ventanas
Name[fa]=جلوههای پنجره
Name[ga]=Maisíochtaí Fuinneoige
Name[he]=אפקטי חלונות
Name[it]=Effetti per le finestre
Name[ja]=
Name[kk]=Терезе эффекттері
Name[km]=
Name[nb]=Vinduseffekter
Name[nds]=Finstereffekten
Name[ne]=
Name[nl]=Venstereffecten
Name[pa]=
Name[pt]=Efeitos das Janelas
Name[pt_BR]=Efeitos de Janela
Name[sl]=Učinki oken
Name[sv]=Fönstereffekt
Name[uk]=Ефекти вікон
Name[vi]=Hiu ng Ca s
Name[zh_TW]=
Comment=Configure window effects
Comment[ar]=إعداد تأثيرات النافذة
Comment[be]=Настаўленні эфектаў вокнаў
Comment[bg]=Настройване активирането на прозорците
Comment[csb]=Kònfigùracëjô efektów òknów
Comment[de]=Fenstereffekte einrichten
Comment[el]=Ρύθμιση εφέ των παραθύρων
Comment[es]=Configurar los efectos de las ventanas
Comment[fa]=پیکربندی جلوههای پنجره
Comment[ga]=Cumraigh maisíochtaí fuinneoige
Comment[he]=שינוי הגדרות אפקטי חלונות
Comment[it]=Configura gli effetti per le finestre
Comment[ja]=
Comment[kk]=Терезе эффектерін баптау
Comment[km]=
Comment[nb]=Tilpass vinduseffekter
Comment[nds]=Finstereffekten instellen
Comment[ne]= ि
Comment[nl]=Venstereffecten instellen
Comment[pa]=
Comment[pt]=Configuração dos efeitos das janelas
Comment[pt_BR]=Configurar efeitos de janelas
Comment[sl]=Nastavi učinke oken
Comment[sv]=Anpassa fönstereffekter
Comment[vi]=Cu hình các hiu ng ca s
Comment[zh_TW]=
Keywords=kwin,window,manager,effect
Keywords[bg]=kwin,window,manager,effect,прозорец,мениджър,ефект
Keywords[csb]=kwin,òkno,menadżer,efekt
Keywords[de]=kwin,fenster,manager,effekt,verwaltung
Keywords[el]=παράθυρο,διαχειριστής,εφέ,kwin,παράθυρο,διαχειριστής,εφέ
Keywords[es]=kwin,ventana,gestor,efecto
Keywords[fa]=kwin، پنجره، مدیر، جلوه
Keywords[ga]=kwin,fuinneog,bainisteoir,maisíocht
Keywords[he]=kwin,window,manager,effect,מנהל,חלונות,אפקט
Keywords[it]=kwin,window,manager,effect,finestra,effetto,effetti
Keywords[ja]=kwin,,,
Keywords[km]=kwin
Keywords[nb]=kwin,vindu,vindusstyring,effekt
Keywords[nds]=kwin,Finster,Pleger,Effekt
Keywords[ne]= ि, , ,
Keywords[nl]=kwin,window,venster,window manager,effect
Keywords[pa]=kwin,ਿ,,
Keywords[pt]=kwin,janela,gestor,efeito
Keywords[pt_BR]=kwin,janela,gerenciador,efeito
Keywords[sv]=kwin,fönster,hantera,effekt
Keywords[vi]=kwin,ca s,qun lý,hiu ng
Categories=Qt;KDE;X-KDE-settings-looknfeel;

View file

@ -1,123 +0,0 @@
/*****************************************************************
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2007 Rivo Laks <rivolaks@hot.ee>
You can Freely distribute this program under the GNU General Public
License. See the file "COPYING" for the exact licensing terms.
******************************************************************/
#include "main.h"
#include <kaboutdata.h>
#include <kconfig.h>
#include <kdebug.h>
#include <kpluginselector.h>
#include <kservicetypetrader.h>
#include <kplugininfo.h>
#include <kservice.h>
#include <ksettings/dispatcher.h>
#include <KPluginFactory>
#include <KPluginLoader>
#include <QtDBus/QtDBus>
#include <QBoxLayout>
K_PLUGIN_FACTORY(KWinEffectsConfigFactory,
registerPlugin<KWin::KWinEffectsConfig>();
)
K_EXPORT_PLUGIN(KWinEffectsConfigFactory("kcmkwineffects"))
namespace KWin
{
KWinEffectsConfig::KWinEffectsConfig(QWidget *parent, const QVariantList &)
: KCModule( KWinEffectsConfigFactory::componentData(), parent),
mKWinConfig(KSharedConfig::openConfig("kwinrc"))
{
mPluginSelector = new KPluginSelector(this);
QHBoxLayout* layout = new QHBoxLayout;
layout->setMargin(0);
layout->addWidget(mPluginSelector);
setLayout(layout);
connect(mPluginSelector, SIGNAL(changed(bool)), this, SLOT(changed()));
connect(mPluginSelector, SIGNAL(configCommitted(const QByteArray&)),
this, SLOT(reparseConfiguration(const QByteArray&)));
// Find all .desktop files of the effects
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
QList<KPluginInfo> effectinfos = KPluginInfo::fromServices(offers);
// Add them to the plugin selector
mPluginSelector->addPlugins(effectinfos, KPluginSelector::ReadConfigFile, i18n("Appearance"), "Appearance", mKWinConfig);
mPluginSelector->addPlugins(effectinfos, KPluginSelector::ReadConfigFile, i18n("Accessibility"), "Accessibility", mKWinConfig);
mPluginSelector->addPlugins(effectinfos, KPluginSelector::ReadConfigFile, i18n("Window Management"), "Window Management", mKWinConfig);
mPluginSelector->addPlugins(effectinfos, KPluginSelector::ReadConfigFile, i18n("Demos"), "Demos", mKWinConfig);
mPluginSelector->addPlugins(effectinfos, KPluginSelector::ReadConfigFile, i18n("Tests"), "Tests", mKWinConfig);
mPluginSelector->addPlugins(effectinfos, KPluginSelector::ReadConfigFile, i18n("Misc"), "Misc", mKWinConfig);
// Load config
load();
KAboutData *about = new KAboutData(I18N_NOOP("kcmkwineffects"), 0,
ki18n("Window Effects Configuration Module"),
0, KLocalizedString(), KAboutData::License_GPL, ki18n("(c) 2007 Rivo Laks"));
about->addAuthor(ki18n("Rivo Laks"), KLocalizedString(), "rivolaks@hot.ee");
setAboutData(about);
}
KWinEffectsConfig::~KWinEffectsConfig()
{
}
void KWinEffectsConfig::reparseConfiguration(const QByteArray&conf)
{
KSettings::Dispatcher::reparseConfiguration(conf);
}
void KWinEffectsConfig::load()
{
kDebug() ;
mKWinConfig->reparseConfiguration();
mPluginSelector->load();
emit changed( false );
}
void KWinEffectsConfig::save()
{
kDebug() ;
mPluginSelector->save();
emit changed( false );
// Send signal to kwin
mKWinConfig->sync();
// Send signal to all kwin instances
QDBusMessage message = QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
QDBusConnection::sessionBus().send(message);
}
void KWinEffectsConfig::defaults()
{
kDebug() ;
mPluginSelector->defaults();
}
QString KWinEffectsConfig::quickHelp() const
{
kDebug() ;
return i18n("<h1>Window Effects</h1> Here you can configure which effects will be used.");
}
} // namespace
#include "main.moc"

View file

@ -1,48 +0,0 @@
/*****************************************************************
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2007 Rivo Laks <rivolaks@hot.ee>
You can Freely distribute this program under the GNU General Public
License. See the file "COPYING" for the exact licensing terms.
******************************************************************/
#ifndef __MAIN_H__
#define __MAIN_H__
#include <kcmodule.h>
#include <ksharedconfig.h>
#include <QHash>
#include <QSet>
class KPluginSelector;
namespace KWin
{
class KWinEffectsConfig : public KCModule
{
Q_OBJECT
public:
KWinEffectsConfig(QWidget *parent, const QVariantList &args);
virtual ~KWinEffectsConfig();
virtual QString quickHelp() const;
public slots:
virtual void load();
virtual void save();
virtual void defaults();
void reparseConfiguration(const QByteArray&conf);
private:
KSharedConfigPtr mKWinConfig;
KPluginSelector* mPluginSelector;
};
} // namespace
#endif

View file

@ -1119,7 +1119,7 @@ QStringList Workspace::configModules(bool controlCenter)
if (controlCenter)
args << "kwinoptions";
else if (KAuthorized::authorizeControlModule("kde-kwinoptions.desktop"))
args << "kwinactions" << "kwinfocus" << "kwinmoving" << "kwinadvanced" << "kwinrules" << "kwincompositing" << "kwineffects";
args << "kwinactions" << "kwinfocus" << "kwinmoving" << "kwinadvanced" << "kwinrules" << "kwincompositing";
return args;
}