generic: rename plugins for consistency

work-in-progress, the thumbnailer plugins have to be renamed too for
example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-24 03:14:59 +02:00
parent 4f2a08c1c9
commit 70dd04eb55
26 changed files with 96 additions and 117 deletions

View file

@ -1,24 +1,24 @@
########### next target ############### ########### next target ###############
set(kmetainfoconfig_SRCS set(kcm_kmetainfo_SRCS
kmetainfoconfig.cpp kcm_kmetainfo.cpp
kmetainfoconfig.ui kcm_kmetainfo.ui
) )
kde4_add_plugin(kcm_kmetainfoconfig ${kmetainfoconfig_SRCS}) kde4_add_plugin(kcm_kmetainfo ${kcm_kmetainfo_SRCS})
target_link_libraries(kcm_kmetainfoconfig target_link_libraries(kcm_kmetainfo
KDE4::kdeui KDE4::kdeui
KDE4::kcmutils KDE4::kcmutils
KDE4::kio KDE4::kio
) )
install( install(
TARGETS kcm_kmetainfoconfig TARGETS kcm_kmetainfo
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
) )
install( install(
FILES kcm_kmetainfoconfig.desktop FILES kcm_kmetainfo.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR} DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
) )

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
$EXTRACTRC *.ui >> rc.cpp || exit 11 $EXTRACTRC *.ui >> rc.cpp || exit 11
$XGETTEXT *.cpp -o $podir/kcm_kmetainfoconfig.pot $XGETTEXT *.cpp -o $podir/kcm_kmetainfo.pot
rm -f rc.cpp rm -f rc.cpp

View file

@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include "kmetainfoconfig.h" #include "kcm_kmetainfo.h"
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
@ -30,7 +30,7 @@
#include <kpluginloader.h> #include <kpluginloader.h>
K_PLUGIN_FACTORY(KCMMetaInfoFactory, registerPlugin<KCMMetaInfo>();) K_PLUGIN_FACTORY(KCMMetaInfoFactory, registerPlugin<KCMMetaInfo>();)
K_EXPORT_PLUGIN(KCMMetaInfoFactory("kcmmetainfoconfig", "kcm_metainfoconfig")) K_EXPORT_PLUGIN(KCMMetaInfoFactory("kcmkmetainfo", "kcm_kmetainfo"))
KCMMetaInfo::KCMMetaInfo(QWidget* parent, const QVariantList& args) KCMMetaInfo::KCMMetaInfo(QWidget* parent, const QVariantList& args)
: KCModule(KCMMetaInfoFactory::componentData(), parent) : KCModule(KCMMetaInfoFactory::componentData(), parent)
@ -149,4 +149,4 @@ void KCMMetaInfo::loadMetaInfo()
} }
} }
#include "moc_kmetainfoconfig.cpp" #include "moc_kcm_kmetainfo.cpp"

View file

@ -1,14 +1,14 @@
[Desktop Entry] [Desktop Entry]
Exec=kcmshell4 kmetainfoconfig Exec=kcmshell4 kmetainfo
Icon=nepomuk Icon=nepomuk
Type=Service Type=Service
X-KDE-ServiceTypes=KCModule X-KDE-ServiceTypes=KCModule
X-KDE-Library=kcm_kmetainfoconfig X-KDE-Library=kcm_kmetainfo
X-KDE-ParentApp=kcontrol X-KDE-ParentApp=kcontrol
X-KDE-System-Settings-Parent-Category=workspace-appearance-and-behavior X-KDE-System-Settings-Parent-Category=workspace-appearance-and-behavior
X-KDE-System-Settings-Parent-Category-V2=workspace-appearance-and-behavior X-KDE-System-Settings-Parent-Category-V2=workspace-appearance-and-behavior
X-DocPath=kcontrol/kmetainfoconfig/index.html X-DocPath=kcontrol/kmetainfo/index.html
Categories=Qt;KDE;X-KDE-settings-workspace-appearance-and-behavior; Categories=Qt;KDE;X-KDE-settings-workspace-appearance-and-behavior;
Name=Meta Information Name=Meta Information

View file

@ -16,19 +16,19 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KDEMETAINFO_H #ifndef KCM_KMETAINFO_H
#define KDEMETAINFO_H #define KCM_KMETAINFO_H
#include <kcmodule.h> #include <kcmodule.h>
#include "ui_kmetainfoconfig.h" #include "ui_kcm_kmetainfo.h"
/** /**
* Control KFileMetaInfo output of KDE applications * Control KFileMetaInfo output of KDE applications
* *
* @author Ivailo Monev (xakepa10@gmail.com) * @author Ivailo Monev (xakepa10@gmail.com)
*/ */
class KCMMetaInfo : public KCModule, public Ui_KMetaInfoDialog class KCMMetaInfo : public KCModule, public Ui_KMetaInfoWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
@ -48,4 +48,4 @@ private:
void loadMetaInfo(); void loadMetaInfo();
}; };
#endif // KDEMETAINFO_H #endif // KCM_KMETAINFO_H

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="System"?> <?xml version="1.0" encoding="System"?>
<ui version="4.0"> <ui version="4.0">
<class>KMetaInfoDialog</class> <class>KMetaInfoWidget</class>
<widget class="QWidget" name="KMetaInfoDialog"> <widget class="QWidget" name="KMetaInfoWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>

View file

@ -1,23 +1,23 @@
########### next target ############### ########### next target ###############
set(kpasswdstoreconfig_SRCS set(kcm_kpasswdstore_SRCS
kpasswdstoreconfig.cpp kcm_kpasswdstore.cpp
) )
kde4_add_plugin(kcm_kpasswdstoreconfig ${kpasswdstoreconfig_SRCS}) kde4_add_plugin(kcm_kpasswdstore ${kcm_kpasswdstore_SRCS})
target_link_libraries(kcm_kpasswdstoreconfig target_link_libraries(kcm_kpasswdstore
KDE4::kdeui KDE4::kdeui
KDE4::kcmutils KDE4::kcmutils
KDE4::kpasswdstore KDE4::kpasswdstore
) )
install( install(
TARGETS kcm_kpasswdstoreconfig TARGETS kcm_kpasswdstore
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
) )
install( install(
FILES kcm_kpasswdstoreconfig.desktop FILES kcm_kpasswdstore.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR} DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
) )

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
$EXTRACTRC *.ui >> rc.cpp || exit 11 $EXTRACTRC *.ui >> rc.cpp || exit 11
$XGETTEXT *.cpp -o $podir/kcm_kpasswdstoreconfig.pot $XGETTEXT *.cpp -o $podir/kcm_kpasswdstore.pot
rm -f rc.cpp rm -f rc.cpp

View file

@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include "kpasswdstoreconfig.h" #include "kcm_kpasswdstore.h"
#include <QGroupBox> #include <QGroupBox>
#include <QLabel> #include <QLabel>
@ -39,7 +39,7 @@ static const int kpasswdstore_passretries = 3;
static const qint64 kpasswdstore_passtimeout = 2; // minutes static const qint64 kpasswdstore_passtimeout = 2; // minutes
K_PLUGIN_FACTORY(KCMPasswdStoreFactory, registerPlugin<KCMPasswdStore>();) K_PLUGIN_FACTORY(KCMPasswdStoreFactory, registerPlugin<KCMPasswdStore>();)
K_EXPORT_PLUGIN(KCMPasswdStoreFactory("kcmpasswdstoreconfig", "kcm_passwdstoreconfig")) K_EXPORT_PLUGIN(KCMPasswdStoreFactory("kcmkpasswdstore", "kcm_kpasswdstore"))
KCMPasswdStore::KCMPasswdStore(QWidget* parent, const QVariantList& args) KCMPasswdStore::KCMPasswdStore(QWidget* parent, const QVariantList& args)
: KCModule(KCMPasswdStoreFactory::componentData(), parent), : KCModule(KCMPasswdStoreFactory::componentData(), parent),
@ -265,4 +265,4 @@ void KCMPasswdStore::slotStorePressed()
); );
} }
#include "moc_kpasswdstoreconfig.cpp" #include "moc_kcm_kpasswdstore.cpp"

View file

@ -1,14 +1,14 @@
[Desktop Entry] [Desktop Entry]
Exec=kcmshell4 kpasswdstoreconfig Exec=kcmshell4 kcm_kpasswdstore
Icon=preferences-desktop-user-password Icon=preferences-desktop-user-password
Type=Service Type=Service
X-KDE-ServiceTypes=KCModule X-KDE-ServiceTypes=KCModule
X-KDE-Library=kcm_kpasswdstoreconfig X-KDE-Library=kcm_kpasswdstore
X-KDE-ParentApp=kcontrol X-KDE-ParentApp=kcontrol
X-KDE-System-Settings-Parent-Category=account-details X-KDE-System-Settings-Parent-Category=account-details
X-KDE-System-Settings-Parent-Category-V2=account-details X-KDE-System-Settings-Parent-Category-V2=account-details
X-DocPath=kcontrol/kpasswdstoreconfig/index.html X-DocPath=kcontrol/kpasswdstore/index.html
Categories=Qt;KDE; Categories=Qt;KDE;
Name=Password Store Name=Password Store

View file

@ -16,8 +16,8 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KDEPASSWDSTORE_H #ifndef KCM_KPASSWDSTORE_H
#define KDEPASSWDSTORE_H #define KCM_KPASSWDSTORE_H
#include <QComboBox> #include <QComboBox>
#include <kcmodule.h> #include <kcmodule.h>
@ -60,4 +60,4 @@ private:
KPushButton* m_storebutton; KPushButton* m_storebutton;
}; };
#endif // KDEPASSWDSTORE_H #endif // KCM_KPASSWDSTORE_H

View file

@ -1,7 +1,7 @@
########### next target ############### ########### next target ###############
kde4_add_plugin(kcm_kmediaplayer kcmplayer.cpp) kde4_add_plugin(kcm_kmediaplayer kcm_kmediaplayer.cpp)
target_link_libraries(kcm_kmediaplayer target_link_libraries(kcm_kmediaplayer
KDE4::kio KDE4::kio
@ -13,6 +13,6 @@ install(
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
) )
install( install(
FILES kcmplayer.desktop FILES kcm_kmediaplayer.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR} DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
) )

View file

@ -32,7 +32,7 @@
#include <kservice.h> #include <kservice.h>
#include <kicon.h> #include <kicon.h>
#include "kcmplayer.h" #include "kcm_kmediaplayer.h"
// NOTE: keep in sync with: // NOTE: keep in sync with:
// kdelibs/kutils/kmediaplayer/kmediaplayer.cpp // kdelibs/kutils/kmediaplayer/kmediaplayer.cpp
@ -166,10 +166,10 @@ void KMediaBox::slotVolume()
} }
K_PLUGIN_FACTORY(PlayerFactory, registerPlugin<KCMPlayer>();) K_PLUGIN_FACTORY(PlayerFactory, registerPlugin<KCMMediaPlayer>();)
K_EXPORT_PLUGIN(PlayerFactory("kcmplayer")) K_EXPORT_PLUGIN(PlayerFactory("kcmkmediaplayer", "kcm_kmediaplayer"))
KCMPlayer::KCMPlayer(QWidget *parent, const QVariantList &arguments) KCMMediaPlayer::KCMMediaPlayer(QWidget *parent, const QVariantList &arguments)
: KCModule(PlayerFactory::componentData(), parent), : KCModule(PlayerFactory::componentData(), parent),
m_layout(nullptr), m_layout(nullptr),
m_spacer(nullptr) m_spacer(nullptr)
@ -180,7 +180,7 @@ KCMPlayer::KCMPlayer(QWidget *parent, const QVariantList &arguments)
setQuickHelp(i18n("<h1>Media Player</h1> This module allows you to change KDE media player options.")); setQuickHelp(i18n("<h1>Media Player</h1> This module allows you to change KDE media player options."));
KAboutData *about = new KAboutData( KAboutData *about = new KAboutData(
I18N_NOOP("kcmplayer"), 0, I18N_NOOP("kcmkmediaplayer"), 0,
ki18n("KDE Media Player Module"), ki18n("KDE Media Player Module"),
"2.0", KLocalizedString(), KAboutData::License_GPL, "2.0", KLocalizedString(), KAboutData::License_GPL,
ki18n("Copyright 2016, Ivailo Monev <email>xakepa10@gmail.com</email>") ki18n("Copyright 2016, Ivailo Monev <email>xakepa10@gmail.com</email>")
@ -192,11 +192,11 @@ KCMPlayer::KCMPlayer(QWidget *parent, const QVariantList &arguments)
setLayout(m_layout); setLayout(m_layout);
} }
KCMPlayer::~KCMPlayer() KCMMediaPlayer::~KCMMediaPlayer()
{ {
} }
void KCMPlayer::defaults() void KCMMediaPlayer::defaults()
{ {
foreach (KMediaBox* mediabox, m_mediaboxes) { foreach (KMediaBox* mediabox, m_mediaboxes) {
mediabox->setDefault(); mediabox->setDefault();
@ -204,7 +204,7 @@ void KCMPlayer::defaults()
emit changed(true); emit changed(true);
} }
void KCMPlayer::load() void KCMMediaPlayer::load()
{ {
qDeleteAll(m_mediaboxes); qDeleteAll(m_mediaboxes);
m_mediaboxes.clear(); m_mediaboxes.clear();
@ -260,7 +260,7 @@ void KCMPlayer::load()
emit changed(false); emit changed(false);
} }
void KCMPlayer::save() void KCMMediaPlayer::save()
{ {
KSettings ksettings("kmediaplayer", KSettings::FullConfig); KSettings ksettings("kmediaplayer", KSettings::FullConfig);
foreach (const KMediaBox* mediabox, m_mediaboxes) { foreach (const KMediaBox* mediabox, m_mediaboxes) {
@ -272,10 +272,10 @@ void KCMPlayer::save()
emit changed(false); emit changed(false);
} }
void KCMPlayer::slotMediaChanged() void KCMMediaPlayer::slotMediaChanged()
{ {
emit changed(true); emit changed(true);
} }
#include "moc_kcmplayer.cpp" #include "moc_kcm_kmediaplayer.cpp"
#include "kcmplayer.moc" #include "kcm_kmediaplayer.moc"

View file

@ -16,8 +16,8 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KCMPLAYER_H #ifndef KCM_KMEDIAPLAYER_H
#define KCMPLAYER_H #define KCM_KMEDIAPLAYER_H
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QSpacerItem> #include <QSpacerItem>
@ -28,13 +28,13 @@
class KMediaBox; class KMediaBox;
class KCMPlayer : public KCModule class KCMMediaPlayer : public KCModule
{ {
Q_OBJECT Q_OBJECT
public: public:
KCMPlayer(QWidget *parent, const QVariantList &arguments); KCMMediaPlayer(QWidget *parent, const QVariantList &arguments);
~KCMPlayer(); ~KCMMediaPlayer();
public slots: public slots:
void defaults(); void defaults();
@ -49,4 +49,4 @@ private:
QList<KMediaBox*> m_mediaboxes; QList<KMediaBox*> m_mediaboxes;
}; };
#endif // KCMPLAYER_H #endif // KCM_KMEDIAPLAYER_H

View file

@ -1,23 +1,23 @@
########### next target ############### ########### next target ###############
set(kfreespaceconfig_SRCS set(kcm_kfreespace_SRCS
kfreespaceconfig.cpp kcm_kfreespace.cpp
) )
kde4_add_plugin(kcm_kfreespaceconfig ${kfreespaceconfig_SRCS}) kde4_add_plugin(kcm_kfreespace ${kcm_kfreespace_SRCS})
target_link_libraries(kcm_kfreespaceconfig target_link_libraries(kcm_kfreespace
KDE4::kdeui KDE4::kdeui
KDE4::kcmutils KDE4::kcmutils
KDE4::solid KDE4::solid
) )
install( install(
TARGETS kcm_kfreespaceconfig TARGETS kcm_kfreespace
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
) )
install( install(
FILES kcm_kfreespaceconfig.desktop FILES kcm_kfreespace.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR} DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
) )

View file

@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include "kfreespaceconfig.h" #include "kcm_kfreespace.h"
#include "kfreespace.h" #include "kfreespace.h"
#include <QGroupBox> #include <QGroupBox>
@ -159,7 +159,7 @@ void KFreeSpaceBox::slotFreeSpace()
K_PLUGIN_FACTORY(KCMFreeSpaceFactory, registerPlugin<KCMFreeSpace>();) K_PLUGIN_FACTORY(KCMFreeSpaceFactory, registerPlugin<KCMFreeSpace>();)
K_EXPORT_PLUGIN(KCMFreeSpaceFactory("kcmfreespaceconfig", "kcm_freespaceconfig")) K_EXPORT_PLUGIN(KCMFreeSpaceFactory("kcmkfreespace", "kcm_kfreespace"))
KCMFreeSpace::KCMFreeSpace(QWidget *parent, const QVariantList &args) KCMFreeSpace::KCMFreeSpace(QWidget *parent, const QVariantList &args)
: KCModule(KCMFreeSpaceFactory::componentData(), parent), : KCModule(KCMFreeSpaceFactory::componentData(), parent),
@ -173,7 +173,7 @@ KCMFreeSpace::KCMFreeSpace(QWidget *parent, const QVariantList &args)
setQuickHelp(i18n("<h1>Free Space Notifier</h1> This module allows you to change KDE free space notifier options.")); setQuickHelp(i18n("<h1>Free Space Notifier</h1> This module allows you to change KDE free space notifier options."));
KAboutData *about = new KAboutData( KAboutData *about = new KAboutData(
I18N_NOOP("kcmfreespaceconfig"), 0, I18N_NOOP("kcmkfreespace"), 0,
ki18n("KDE Free Space Notifier Module"), ki18n("KDE Free Space Notifier Module"),
0, KLocalizedString(), KAboutData::License_GPL, 0, KLocalizedString(), KAboutData::License_GPL,
ki18n("Copyright 2023, Ivailo Monev <email>xakepa10@gmail.com</email>") ki18n("Copyright 2023, Ivailo Monev <email>xakepa10@gmail.com</email>")
@ -277,5 +277,5 @@ void KCMFreeSpace::slotDeviceChanged()
emit changed(true); emit changed(true);
} }
#include "moc_kfreespaceconfig.cpp" #include "moc_kcm_kfreespace.cpp"
#include "kfreespaceconfig.moc" #include "kcm_kfreespace.moc"

View file

@ -1,14 +1,14 @@
[Desktop Entry] [Desktop Entry]
Exec=kcmshell4 kfreespaceconfig Exec=kcmshell4 kfreespace
Icon=drive-harddisk Icon=drive-harddisk
Type=Service Type=Service
X-KDE-ServiceTypes=KCModule X-KDE-ServiceTypes=KCModule
X-KDE-Library=kcm_kfreespaceconfig X-KDE-Library=kcm_kfreespace
X-KDE-ParentApp=kcontrol X-KDE-ParentApp=kcontrol
X-KDE-System-Settings-Parent-Category=hardware X-KDE-System-Settings-Parent-Category=hardware
X-KDE-System-Settings-Parent-Category-V2=hardware X-KDE-System-Settings-Parent-Category-V2=hardware
X-DocPath=kcontrol/kfreespaceconfig/index.html X-DocPath=kcontrol/kfreespace/index.html
Categories=Qt;KDE;X-KDE-settings-hardware; Categories=Qt;KDE;X-KDE-settings-hardware;
Name=Free Space Notifier Name=Free Space Notifier

View file

@ -16,8 +16,8 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KFREESPACECONFIG_H #ifndef KCM_KFREESPACE_H
#define KFREESPACECONFIG_H #define KCM_KFREESPACE_H
#include <QWidget> #include <QWidget>
#include <QVBoxLayout> #include <QVBoxLayout>
@ -55,4 +55,4 @@ private:
QList<KFreeSpaceBox*> m_deviceboxes; QList<KFreeSpaceBox*> m_deviceboxes;
}; };
#endif // KFREESPACECONFIG_H #endif // KCM_KFREESPACE_H

View file

@ -1,25 +1,25 @@
########### next target ############### ########### next target ###############
set(kgreeterconfig_SRCS set(kcm_kgreeter_SRCS
kgreeterconfig.cpp kcm_kgreeter.cpp
kgreeterconfig.ui kcm_kgreeter.ui
) )
kde4_add_plugin(kcm_kgreeterconfig ${kgreeterconfig_SRCS}) kde4_add_plugin(kcm_kgreeter ${kcm_kgreeter_SRCS})
target_link_libraries(kcm_kgreeterconfig target_link_libraries(kcm_kgreeter
KDE4::kdeui KDE4::kdeui
KDE4::kcmutils KDE4::kcmutils
KDE4::plasma KDE4::plasma
) )
install( install(
TARGETS kcm_kgreeterconfig TARGETS kcm_kgreeter
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
) )
install( install(
FILES kcm_kgreeterconfig.desktop FILES kcm_kgreeter.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR} DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
) )

View file

@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include "kgreeterconfig.h" #include "kcm_kgreeter.h"
#include "kgreeter.h" #include "kgreeter.h"
#include <QSettings> #include <QSettings>
@ -37,7 +37,7 @@
#include "config-workspace.h" #include "config-workspace.h"
K_PLUGIN_FACTORY(KCMGreeterFactory, registerPlugin<KCMGreeter>();) K_PLUGIN_FACTORY(KCMGreeterFactory, registerPlugin<KCMGreeter>();)
K_EXPORT_PLUGIN(KCMGreeterFactory("kcmgreeterconfig", "kcm_greeterconfig")) K_EXPORT_PLUGIN(KCMGreeterFactory("kcmkgreeter", "kcm_kgreeter"))
KCMGreeter::KCMGreeter(QWidget* parent, const QVariantList& args) KCMGreeter::KCMGreeter(QWidget* parent, const QVariantList& args)
: KCModule(KCMGreeterFactory::componentData(), parent), : KCModule(KCMGreeterFactory::componentData(), parent),
@ -339,4 +339,4 @@ void KCMGreeter::setProcessRunning(const bool running)
} }
} }
#include "moc_kgreeterconfig.cpp" #include "moc_kcm_kgreeter.cpp"

View file

@ -1,14 +1,14 @@
[Desktop Entry] [Desktop Entry]
Exec=kcmshell4 kgreeterconfig Exec=kcmshell4 kcm_kgreeter
Icon=preferences-system-login Icon=preferences-system-login
Type=Service Type=Service
X-KDE-ServiceTypes=KCModule X-KDE-ServiceTypes=KCModule
X-KDE-Library=kcm_kgreeterconfig X-KDE-Library=kcm_kgreeter
X-KDE-ParentApp=kcontrol X-KDE-ParentApp=kcontrol
X-KDE-System-Settings-Parent-Category=workspace-appearance-and-behavior X-KDE-System-Settings-Parent-Category=workspace-appearance-and-behavior
X-KDE-System-Settings-Parent-Category-V2=workspace-appearance-and-behavior X-KDE-System-Settings-Parent-Category-V2=workspace-appearance-and-behavior
X-DocPath=kcontrol/kgreeterconfig/index.html X-DocPath=kcontrol/kgreeter/index.html
Categories=Qt;KDE;X-KDE-settings-workspace-appearance-and-behavior; Categories=Qt;KDE;X-KDE-settings-workspace-appearance-and-behavior;
Name=Greeter Name=Greeter

View file

@ -16,21 +16,21 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KGREETERCONFIG_H #ifndef KCM_KGREETER_H
#define KGREETERCONFIG_H #define KCM_KGREETER_H
#include <QFont> #include <QFont>
#include <QProcess> #include <QProcess>
#include <kcmodule.h> #include <kcmodule.h>
#include "ui_kgreeterconfig.h" #include "ui_kcm_kgreeter.h"
/** /**
* Control look of KDE greeter * Control look of KDE greeter
* *
* @author Ivailo Monev (xakepa10@gmail.com) * @author Ivailo Monev (xakepa10@gmail.com)
*/ */
class KCMGreeter : public KCModule, public Ui_KGreeterDialog class KCMGreeter : public KCModule, public Ui_KGreeterWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
@ -69,4 +69,4 @@ private:
bool m_changed; bool m_changed;
}; };
#endif // KGREETERCONFIG_H #endif // KCM_KGREETER_H

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="System"?> <?xml version="1.0" encoding="System"?>
<ui version="4.0"> <ui version="4.0">
<class>KGreeterDialog</class> <class>KGreeterWidget</class>
<widget class="QWidget" name="KGreeterDialog"> <widget class="QWidget" name="KGreeterWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>

View file

@ -1,36 +1,23 @@
########### next target ############### ########### next target ###############
set(kio_thumbnail_PART_SRCS thumbnail.cpp) set(kio_thumbnail_PART_SRCS thumbnail.cpp)
add_executable(kio_thumbnail ${kio_thumbnail_PART_SRCS}) add_executable(kio_thumbnail ${kio_thumbnail_PART_SRCS})
target_link_libraries(kio_thumbnail KDE4::kio KDE4::kdeui) target_link_libraries(kio_thumbnail KDE4::kio KDE4::kdeui)
install(TARGETS kio_thumbnail DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR}) install(TARGETS kio_thumbnail DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR})
########### next target ############### ########### next target ###############
set(imagethumbnail_PART_SRCS imagecreator.cpp) set(imagethumbnail_PART_SRCS imagecreator.cpp)
kde4_add_kcfg_files(imagethumbnail_PART_SRCS imagecreatorsettings.kcfgc) kde4_add_kcfg_files(imagethumbnail_PART_SRCS imagecreatorsettings.kcfgc)
kde4_add_plugin(imagethumbnail ${imagethumbnail_PART_SRCS}) kde4_add_plugin(imagethumbnail ${imagethumbnail_PART_SRCS})
target_link_libraries(imagethumbnail KDE4::kio KDE4::kexiv2) target_link_libraries(imagethumbnail KDE4::kio KDE4::kexiv2)
install(TARGETS imagethumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS imagethumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
########### next target ############### ########### next target ###############
install( FILES directorythumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
########### next target ###############
set(textthumbnail_PART_SRCS textcreator.cpp) set(textthumbnail_PART_SRCS textcreator.cpp)
kde4_add_plugin(textthumbnail ${textthumbnail_PART_SRCS}) kde4_add_plugin(textthumbnail ${textthumbnail_PART_SRCS})
target_link_libraries(textthumbnail KDE4::kio) target_link_libraries(textthumbnail KDE4::kio)
install(TARGETS textthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS textthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
########### next target ############### ########### next target ###############
@ -39,11 +26,8 @@ if(DJVULIBRE_FOUND)
include_directories(${DJVULIBRE_INCLUDE_DIR}) include_directories(${DJVULIBRE_INCLUDE_DIR})
set(djvuthumbnail_PART_SRCS djvucreator.cpp) set(djvuthumbnail_PART_SRCS djvucreator.cpp)
kde4_add_plugin(djvuthumbnail ${djvuthumbnail_PART_SRCS}) kde4_add_plugin(djvuthumbnail ${djvuthumbnail_PART_SRCS})
target_link_libraries(djvuthumbnail KDE4::kio ${DJVULIBRE_LIBRARY}) target_link_libraries(djvuthumbnail KDE4::kio ${DJVULIBRE_LIBRARY})
install(TARGETS djvuthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS djvuthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES djvuthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES djvuthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
endif() endif()
@ -52,11 +36,8 @@ endif()
if(X11_Xcursor_FOUND) if(X11_Xcursor_FOUND)
set(cursorthumbnail_PART_SRCS cursorcreator.cpp) set(cursorthumbnail_PART_SRCS cursorcreator.cpp)
kde4_add_plugin(cursorthumbnail ${cursorthumbnail_PART_SRCS}) kde4_add_plugin(cursorthumbnail ${cursorthumbnail_PART_SRCS})
target_link_libraries(cursorthumbnail ${X11_Xcursor_LIB} KDE4::kio) target_link_libraries(cursorthumbnail ${X11_Xcursor_LIB} KDE4::kio)
install(TARGETS cursorthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS cursorthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES cursorthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES cursorthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
endif() endif()
@ -64,7 +45,6 @@ endif()
########### next target ############### ########### next target ###############
set(windowsexethumbnail_SRCS windowsexecreator.cpp) set(windowsexethumbnail_SRCS windowsexecreator.cpp)
kde4_add_plugin(windowsexethumbnail ${windowsexethumbnail_SRCS}) kde4_add_plugin(windowsexethumbnail ${windowsexethumbnail_SRCS})
target_link_libraries( windowsexethumbnail KDE4::kio ) target_link_libraries( windowsexethumbnail KDE4::kio )
install(TARGETS windowsexethumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} ) install(TARGETS windowsexethumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} )
@ -82,10 +62,8 @@ if(EPUB_FOUND)
include_directories(${EPUB_INCLUDE_DIR}) include_directories(${EPUB_INCLUDE_DIR})
set(epubthumbnail_SRCS epubthumbnail.cpp) set(epubthumbnail_SRCS epubthumbnail.cpp)
kde4_add_plugin(epubthumbnail ${epubthumbnail_SRCS}) kde4_add_plugin(epubthumbnail ${epubthumbnail_SRCS})
target_link_libraries(epubthumbnail KDE4::kio ${EPUB_LIBRARIES}) target_link_libraries(epubthumbnail KDE4::kio ${EPUB_LIBRARIES})
install(TARGETS epubthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS epubthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES epubthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES epubthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
endif() endif()
@ -100,6 +78,7 @@ install(
install( install(
FILES FILES
thumbnail.protocol thumbnail.protocol
directorythumbnail.desktop
imagethumbnail.desktop imagethumbnail.desktop
textthumbnail.desktop textthumbnail.desktop
desktopthumbnail.desktop desktopthumbnail.desktop

View file

@ -226,7 +226,7 @@ void KMediaWindow::slotClosePath()
void KMediaWindow::slotConfigure() void KMediaWindow::slotConfigure()
{ {
KCMultiDialog kcmdialg(this); KCMultiDialog kcmdialg(this);
kcmdialg.addModule("kcmplayer"); kcmdialg.addModule("kcmkmediaplayer");
kcmdialg.exec(); kcmdialg.exec();
} }