Finish renaming kresources->tderesources.

pull/16/head
Darrell Anderson 11 years ago
parent f2321faae0
commit 0b621eebc8

@ -87,6 +87,6 @@ Name[zh_TW]=目錄
Name[zu]=Uhlu lwamafayela
X-TDE-Library=tdeabc_dir
Type=Service
ServiceTypes=KResources/Plugin
ServiceTypes=TDEResources/Plugin
X-TDE-ResourceFamily=contact
X-TDE-ResourceType=dir

@ -21,6 +21,6 @@ Name[xh]=Utshintsho lwendawo ngokwenqanawa
Name[zu]=Evolushini
X-TDE-Library=tdeabc_evo
Type=Service
ServiceTypes=KResources/Plugin
ServiceTypes=TDEResources/Plugin
X-TDE-ResourceFamily=contact
X-TDE-ResourceType=evolution

@ -77,6 +77,6 @@ Name[zh_HK]=檔案
Name[zh_TW]=檔案
X-TDE-Library=tdeabc_file
Type=Service
ServiceTypes=KResources/Plugin
ServiceTypes=TDEResources/Plugin
X-TDE-ResourceFamily=contact
X-TDE-ResourceType=file

@ -5,6 +5,6 @@ Name[hi]=एलडीएपी (LDAP)
Name[te]=ఎల్డిఏపి
X-TDE-Library=tdeabc_ldaptdeio
Type=Service
ServiceTypes=KResources/Plugin
ServiceTypes=TDEResources/Plugin
X-TDE-ResourceFamily=contact
X-TDE-ResourceType=ldaptdeio

@ -85,6 +85,6 @@ Name[zh_TW]=網路
Name[zu]=Umsebenzi wokuxhumana okusakazekile
X-TDE-Library=tdeabc_net
Type=Service
ServiceTypes=KResources/Plugin
ServiceTypes=TDEResources/Plugin
X-TDE-ResourceFamily=contact
X-TDE-ResourceType=net

@ -71,6 +71,6 @@ Name[zh_CN]=联系人
Name[zh_HK]=聯絡人
Name[zh_TW]=聯絡人
Type=Service
ServiceTypes=KResources/Manager
ServiceTypes=TDEResources/Manager
X-TDE-ResourceFamily=contact

@ -174,7 +174,7 @@ void ConfigPage::load()
// KDE-3.3 compatibility code: get families from the plugins
TQStringList compatFamilyNames;
const TDETrader::OfferList plugins = TDETrader::self()->query( "KResources/Plugin" );
const TDETrader::OfferList plugins = TDETrader::self()->query( "TDEResources/Plugin" );
TDETrader::OfferList::ConstIterator it = plugins.begin();
TDETrader::OfferList::ConstIterator end = plugins.end();
for ( ; it != end; ++it ) {
@ -183,7 +183,7 @@ void ConfigPage::load()
compatFamilyNames.append( family );
}
const TDETrader::OfferList managers = TDETrader::self()->query( "KResources/Manager" );
const TDETrader::OfferList managers = TDETrader::self()->query( "TDEResources/Manager" );
TDETrader::OfferList::ConstIterator m_it;
for( m_it = managers.begin(); m_it != managers.end(); ++m_it ) {
TQString displayName = (*m_it)->property( "Name" ).toString();

@ -58,7 +58,7 @@ Factory *Factory::self( const TQString& resourceFamily )
Factory::Factory( const TQString& resourceFamily ) :
mResourceFamily( resourceFamily )
{
TDETrader::OfferList plugins = TDETrader::self()->query( "KResources/Plugin", TQString( "[X-TDE-ResourceFamily] == '%1'" )
TDETrader::OfferList plugins = TDETrader::self()->query( "TDEResources/Plugin", TQString( "[X-TDE-ResourceFamily] == '%1'" )
.arg( resourceFamily ) );
TDETrader::OfferList::ConstIterator it;
for ( it = plugins.begin(); it != plugins.end(); ++it ) {

@ -29,10 +29,10 @@
#include "kcmtderesources.h"
typedef KGenericFactory<KCMKResources, TQWidget> ResourcesFactory;
typedef KGenericFactory<KCMTDEResources, TQWidget> ResourcesFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_tderesources, ResourcesFactory( "kcmtderesources" ) )
KCMKResources::KCMKResources( TQWidget *parent, const char *name, const TQStringList& )
KCMTDEResources::KCMTDEResources( TQWidget *parent, const char *name, const TQStringList& )
: TDECModule( ResourcesFactory::instance(), parent, name )
{
TQVBoxLayout *layout = new TQVBoxLayout( this );
@ -50,17 +50,17 @@ KCMKResources::KCMKResources( TQWidget *parent, const char *name, const TQString
setAboutData(about);
}
void KCMKResources::load()
void KCMTDEResources::load()
{
mConfigPage->load();
}
void KCMKResources::save()
void KCMTDEResources::save()
{
mConfigPage->save();
}
void KCMKResources::defaults()
void KCMTDEResources::defaults()
{
mConfigPage->defaults();
}

@ -24,12 +24,12 @@
#include <tdecmodule.h>
class TDERESOURCES_EXPORT KCMKResources : public TDECModule
class TDERESOURCES_EXPORT KCMTDEResources : public TDECModule
{
Q_OBJECT
public:
KCMKResources( TQWidget *parent, const char *name, const TQStringList& );
KCMTDEResources( TQWidget *parent, const char *name, const TQStringList& );
void load();
void save();

@ -73,7 +73,7 @@ class ManagerNotifier
Since KDE 3.4 it's required to supply your application with a *.desktop
file for each resource family you introduce. The ServiceType should be of
KResources/Manager.
TDEResources/Manager.
*/
template<class T>
class Manager : private ManagerNotifier

@ -49,7 +49,7 @@ ManagerImpl::ManagerImpl( ManagerNotifier *notifier, const TQString &family )
// Register with DCOP
if ( !kapp->dcopClient()->isRegistered() ) {
kapp->dcopClient()->registerAs( "KResourcesManager" );
kapp->dcopClient()->registerAs( "TDEResourcesManager" );
kapp->dcopClient()->setDefaultObject( objId() );
}

@ -1,6 +1,6 @@
[Desktop Entry]
Type=ServiceType
X-TDE-ServiceType=KResources/Manager
X-TDE-ServiceType=TDEResources/Manager
Comment=KResource Manager
Comment[af]=KHulpbron bestuurder
Comment[be]=Кіраўнік рэсурсаў KResource

@ -1,6 +1,6 @@
[Desktop Entry]
Type=ServiceType
X-TDE-ServiceType=KResources/Plugin
X-TDE-ServiceType=TDEResources/Plugin
Comment=KResource Framework Plugin
Comment[af]=KHulpbron Raamwerk Inprop module
Comment[az]=KResource Əlavəsi

Loading…
Cancel
Save