summaryrefslogtreecommitdiffstats
path: root/src/profileengine/lib
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-07-04 16:46:19 -0500
committerDarrell Anderson <[email protected]>2012-07-04 16:46:19 -0500
commit998ebd2e683e45140493910f76e692e96887b5d2 (patch)
tree4d75be7d82ab9ba5ebd7c95c5b64a265971183d2 /src/profileengine/lib
parent9ba3adb356665bc27c3416c0b916efa89b366bde (diff)
downloadtdevelop-998ebd2e683e45140493910f76e692e96887b5d2.tar.gz
tdevelop-998ebd2e683e45140493910f76e692e96887b5d2.zip
Fix help files, kdevelop->tdevelop branding, fix startup.
Diffstat (limited to 'src/profileengine/lib')
-rw-r--r--src/profileengine/lib/Mainpage.dox2
-rw-r--r--src/profileengine/lib/profile.h2
-rw-r--r--src/profileengine/lib/profileengine.cpp26
3 files changed, 15 insertions, 15 deletions
diff --git a/src/profileengine/lib/Mainpage.dox b/src/profileengine/lib/Mainpage.dox
index 88a443dc..eb242dd9 100644
--- a/src/profileengine/lib/Mainpage.dox
+++ b/src/profileengine/lib/Mainpage.dox
@@ -1,7 +1,7 @@
/**
@mainpage The KDevelop Shell Profiles Library
-This library contains plugin profiles engine for KDevelop shell.
+This library contains plugin profiles engine for TDevelop shell.
<b>Link with</b>: -lprofileengine
diff --git a/src/profileengine/lib/profile.h b/src/profileengine/lib/profile.h
index 857ddf39..dcdc369b 100644
--- a/src/profileengine/lib/profile.h
+++ b/src/profileengine/lib/profile.h
@@ -40,7 +40,7 @@ public:
/**Lists which are held by a profile.*/
enum List {
- Properties /**<X-KDevelop-Properties defined for this profile.*/,
+ Properties /**<X-TDevelop-Properties defined for this profile.*/,
ExplicitEnable /**<A list of explicitly enabled plugins (names).*/,
ExplicitDisable /**<A list of explicitly disabled plugins (names).*/
};
diff --git a/src/profileengine/lib/profileengine.cpp b/src/profileengine/lib/profileengine.cpp
index 48a4e4e2..6664aba9 100644
--- a/src/profileengine/lib/profileengine.cpp
+++ b/src/profileengine/lib/profileengine.cpp
@@ -78,23 +78,23 @@ KTrader::OfferList ProfileEngine::offers(const TQString &profileName, OfferType
if (!profile)
return KTrader::OfferList();
- TQString constraint = TQString::fromLatin1("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION);
+ TQString constraint = TQString::fromLatin1("[X-TDevelop-Version] == %1").arg(TDEVELOP_PLUGIN_VERSION);
switch (offerType) {
case Global:
- constraint += TQString::fromLatin1(" and [X-KDevelop-Scope] == 'Global'");
+ constraint += TQString::fromLatin1(" and [X-TDevelop-Scope] == 'Global'");
break;
case Project:
- constraint += TQString::fromLatin1(" and [X-KDevelop-Scope] == 'Project'");
+ constraint += TQString::fromLatin1(" and [X-TDevelop-Scope] == 'Project'");
break;
case Core:
- constraint += TQString::fromLatin1(" and [X-KDevelop-Scope] == 'Core'");
+ constraint += TQString::fromLatin1(" and [X-TDevelop-Scope] == 'Core'");
break;
}
TQString constraint_add = "";
Profile::EntryList properties = profile->list(Profile::Properties);
int i = 0;
for (Profile::EntryList::const_iterator it = properties.begin(); it != properties.end(); ++it)
- constraint_add += TQString::fromLatin1(" %1 '%2' in [X-KDevelop-Properties]").
+ constraint_add += TQString::fromLatin1(" %1 '%2' in [X-TDevelop-Properties]").
arg((i++)==0?"":"or").arg((*it).name);
if (!constraint_add.isEmpty())
constraint += " and ( " + constraint_add + " ) ";
@@ -106,7 +106,7 @@ KTrader::OfferList ProfileEngine::offers(const TQString &profileName, OfferType
<< " " << constraint << endl << endl << endl;*/
//END debug
- KTrader::OfferList list = KTrader::self()->query(TQString::fromLatin1("KDevelop/Plugin"), constraint);
+ KTrader::OfferList list = KTrader::self()->query(TQString::fromLatin1("TDevelop/Plugin"), constraint);
TQStringList names;
/* Wrong, this is not what we want to do.
@@ -129,9 +129,9 @@ KTrader::OfferList ProfileEngine::offers(const TQString &profileName, OfferType
{
if (names.contains((*it).name))
continue;
- TQString constraint = TQString::fromLatin1("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION);
+ TQString constraint = TQString::fromLatin1("[X-TDevelop-Version] == %1").arg(TDEVELOP_PLUGIN_VERSION);
constraint += TQString::fromLatin1("and [Name] == '%1'").arg((*it).name);
- KTrader::OfferList enable = KTrader::self()->query(TQString::fromLatin1("KDevelop/Plugin"), constraint);
+ KTrader::OfferList enable = KTrader::self()->query(TQString::fromLatin1("TDevelop/Plugin"), constraint);
list += enable;
}
@@ -149,19 +149,19 @@ KTrader::OfferList ProfileEngine::offers(const TQString &profileName, OfferType
KTrader::OfferList ProfileEngine::allOffers(OfferType offerType)
{
- TQString constraint = TQString::fromLatin1("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION);
+ TQString constraint = TQString::fromLatin1("[X-TDevelop-Version] == %1").arg(TDEVELOP_PLUGIN_VERSION);
switch (offerType) {
case Global:
- constraint += TQString::fromLatin1(" and [X-KDevelop-Scope] == 'Global'");
+ constraint += TQString::fromLatin1(" and [X-TDevelop-Scope] == 'Global'");
break;
case Project:
- constraint += TQString::fromLatin1(" and [X-KDevelop-Scope] == 'Project'");
+ constraint += TQString::fromLatin1(" and [X-TDevelop-Scope] == 'Project'");
break;
case Core:
- constraint += TQString::fromLatin1(" and [X-KDevelop-Scope] == 'Core'");
+ constraint += TQString::fromLatin1(" and [X-TDevelop-Scope] == 'Core'");
break;
}
- return KTrader::self()->query(TQString::fromLatin1("KDevelop/Plugin"), constraint);
+ return KTrader::self()->query(TQString::fromLatin1("TDevelop/Plugin"), constraint);
}
void ProfileEngine::getProfileWithListing(ProfileListing &listing, Profile **profile,