summaryrefslogtreecommitdiffstats
path: root/src/plugincontroller.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 10:53:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 10:53:25 -0600
commitda1941ccadffe5ae70ee111c53f0ec2b3d990869 (patch)
treeee683f46b49e6abdbdef78ed45ca65b47538bc23 /src/plugincontroller.cpp
parent054f5901ab09f6ea6235bd12fbd167922fdf0f67 (diff)
downloadtdevelop-da1941ccadffe5ae70ee111c53f0ec2b3d990869.tar.gz
tdevelop-da1941ccadffe5ae70ee111c53f0ec2b3d990869.zip
Rename KLock and KTrader to avoid conflicts with KDE4
Diffstat (limited to 'src/plugincontroller.cpp')
-rw-r--r--src/plugincontroller.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/plugincontroller.cpp b/src/plugincontroller.cpp
index 22014efe..d490e097 100644
--- a/src/plugincontroller.cpp
+++ b/src/plugincontroller.cpp
@@ -49,8 +49,8 @@ namespace
template <class ComponentType>
ComponentType *loadDefaultPart( const TQString &serviceType )
{
- KTrader::OfferList offers = KTrader::self()->query(serviceType, TQString("[X-TDevelop-Version] == %1").arg(TDEVELOP_PLUGIN_VERSION));
- KTrader::OfferList::ConstIterator serviceIt = offers.begin();
+ TDETrader::OfferList offers = TDETrader::self()->query(serviceType, TQString("[X-TDevelop-Version] == %1").arg(TDEVELOP_PLUGIN_VERSION));
+ TDETrader::OfferList::ConstIterator serviceIt = offers.begin();
for ( ; serviceIt != offers.end(); ++serviceIt ) {
KService::Ptr service = *serviceIt;
@@ -119,27 +119,27 @@ PluginController::~PluginController()
void PluginController::loadCorePlugins()
{
- KTrader::OfferList coreOffers = m_engine.offers(m_profile, ProfileEngine::Core);
+ TDETrader::OfferList coreOffers = m_engine.offers(m_profile, ProfileEngine::Core);
loadPlugins( coreOffers );
}
void PluginController::loadGlobalPlugins( const TQStringList & ignorePlugins )
{
- KTrader::OfferList globalOffers = m_engine.offers(m_profile, ProfileEngine::Global);
+ TDETrader::OfferList globalOffers = m_engine.offers(m_profile, ProfileEngine::Global);
loadPlugins( globalOffers, ignorePlugins );
}
void PluginController::loadProjectPlugins( const TQStringList & ignorePlugins )
{
- KTrader::OfferList projectOffers = m_engine.offers(m_profile, ProfileEngine::Project);
+ TDETrader::OfferList projectOffers = m_engine.offers(m_profile, ProfileEngine::Project);
loadPlugins( projectOffers, ignorePlugins );
}
-void PluginController::loadPlugins( KTrader::OfferList offers, const TQStringList & ignorePlugins )
+void PluginController::loadPlugins( TDETrader::OfferList offers, const TQStringList & ignorePlugins )
{
TopLevel::getInstance()->main()->setFocus();
- for (KTrader::OfferList::ConstIterator it = offers.begin(); it != offers.end(); ++it)
+ for (TDETrader::OfferList::ConstIterator it = offers.begin(); it != offers.end(); ++it)
{
TQString name = (*it)->desktopEntryName();
@@ -173,10 +173,10 @@ void PluginController::unloadProjectPlugins( )
{
// this is nasty, but we need to unload the version control plugin too, and the
// right moment to do this is here
- KTrader::OfferList offers = KTrader::self()->query("TDevelop/VersionControl", "");
+ TDETrader::OfferList offers = TDETrader::self()->query("TDevelop/VersionControl", "");
offers += m_engine.offers(m_profile, ProfileEngine::Project);
- for (KTrader::OfferList::ConstIterator it = offers.begin(); it != offers.end(); ++it)
+ for (TDETrader::OfferList::ConstIterator it = offers.begin(); it != offers.end(); ++it)
{
TQString name = (*it)->desktopEntryName();
@@ -281,8 +281,8 @@ const TQValueList<KDevPlugin*> PluginController::loadedPlugins()
KDevPlugin * PluginController::extension( const TQString & serviceType, const TQString & constraint )
{
- KTrader::OfferList offers = KDevPluginController::query(serviceType, constraint);
- for (KTrader::OfferList::const_iterator it = offers.constBegin(); it != offers.end(); ++it)
+ TDETrader::OfferList offers = KDevPluginController::query(serviceType, constraint);
+ for (TDETrader::OfferList::const_iterator it = offers.constBegin(); it != offers.end(); ++it)
{
KDevPlugin *ext = m_parts[(*it)->desktopEntryName()];
if (ext) return ext;
@@ -292,10 +292,10 @@ KDevPlugin * PluginController::extension( const TQString & serviceType, const TQ
KDevPlugin * PluginController::loadPlugin( const TQString & serviceType, const TQString & constraint )
{
- KTrader::OfferList offers = KDevPluginController::query( serviceType, constraint );
+ TDETrader::OfferList offers = KDevPluginController::query( serviceType, constraint );
if ( !offers.size() == 1 ) return 0;
- KTrader::OfferList::const_iterator it = offers.constBegin();
+ TDETrader::OfferList::const_iterator it = offers.constBegin();
TQString name = (*it)->desktopEntryName();
KDevPlugin * plugin = 0;
@@ -334,8 +334,8 @@ TQString PluginController::changeProfile(const TQString &newProfile)
{
kdDebug() << "CHANGING PROFILE: from " << currentProfile() << " to " << newProfile << endl;
TQStringList unload;
- KTrader::OfferList coreLoad;
- KTrader::OfferList globalLoad;
+ TDETrader::OfferList coreLoad;
+ TDETrader::OfferList globalLoad;
m_engine.diffProfiles(ProfileEngine::Core, currentProfile(), newProfile, unload, coreLoad);
m_engine.diffProfiles(ProfileEngine::Global, currentProfile(), newProfile, unload, globalLoad);