summaryrefslogtreecommitdiffstats
path: root/parts/classview/classtreebase.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-05-25 15:37:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-05-25 15:37:31 +0900
commit6392f5a9dfce2bf83617d49bb7f332181ec6004e (patch)
treeab69e390f7962b7e7dda1a3a64f035c61c751cf4 /parts/classview/classtreebase.cpp
parentaba2788b428dc53243407902e9ccbb20b97a69fd (diff)
downloadtdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.tar.gz
tdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.zip
Revert "Finish renaming tdevelop components"
This reverts commit 722ce1efbac31c61b1d4b13f7e075c9f311e3e73.
Diffstat (limited to 'parts/classview/classtreebase.cpp')
-rw-r--r--parts/classview/classtreebase.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/parts/classview/classtreebase.cpp b/parts/classview/classtreebase.cpp
index 66e23173..9e052418 100644
--- a/parts/classview/classtreebase.cpp
+++ b/parts/classview/classtreebase.cpp
@@ -22,10 +22,10 @@
#include <tdelocale.h>
#include <kiconloader.h>
-#include "tdevcore.h"
-#include "tdevlanguagesupport.h"
-#include "tdevmainwindow.h"
-#include "tdevpartcontroller.h"
+#include "kdevcore.h"
+#include "kdevlanguagesupport.h"
+#include "kdevmainwindow.h"
+#include "kdevpartcontroller.h"
#include "classstore.h"
#include "classviewpart.h"
@@ -36,10 +36,10 @@ TDEPopupMenu *ClassTreeItem::createPopup()
if (!m_item || m_item->itemType() == PIT_SCOPE)
return 0;
- TDevLanguageSupport::Features features = classTree()->m_part->languageSupport()->features();
+ KDevLanguageSupport::Features features = classTree()->m_part->languageSupport()->features();
TDEPopupMenu *popup = new TDEPopupMenu();
- if (features & TDevLanguageSupport::Declarations)
+ if (features & KDevLanguageSupport::Declarations)
popup->insertItem( i18n("Go to Declaration"), classTree(), TQT_SLOT(slotGotoDeclaration()) );
if (m_item->itemType() == PIT_METHOD)
popup->insertItem( i18n("Go to Definition"), classTree(), TQT_SLOT(slotGotoImplementation()) );
@@ -49,8 +49,8 @@ TDEPopupMenu *ClassTreeItem::createPopup()
case PIT_CLASS:
{
title = i18n("Class");
- bool hasAddMethod = features & TDevLanguageSupport::AddMethod;
- bool hasAddAttribute = features & TDevLanguageSupport::AddAttribute;
+ bool hasAddMethod = features & KDevLanguageSupport::AddMethod;
+ bool hasAddAttribute = features & KDevLanguageSupport::AddAttribute;
if (hasAddMethod)
popup->insertItem( i18n("Add Method..."), classTree(), TQT_SLOT(slotAddMethod()));
if (hasAddAttribute)
@@ -168,7 +168,7 @@ void ClassTreeScopeItem::setOpen(bool o)
ClassTreeItem *lastItem = 0;
// Ok, this is a hack...
- TDevLanguageSupport::Features features = classTree()->m_part->languageSupport()->features();
+ KDevLanguageSupport::Features features = classTree()->m_part->languageSupport()->features();
// Add namespaces
TQValueList<ParsedScopeContainer*> scopeList = pScope->getSortedScopeList();
@@ -176,7 +176,7 @@ void ClassTreeScopeItem::setOpen(bool o)
for (it = scopeList.begin(); it != scopeList.end(); ++it)
lastItem = new ClassTreeScopeItem(this, lastItem, *it);
- if (features & TDevLanguageSupport::Classes) {
+ if (features & KDevLanguageSupport::Classes) {
// Add classes
TQValueList<ParsedClass*> classList = pScope->getSortedClassList();
TQValueList<ParsedClass*>::ConstIterator it;
@@ -184,7 +184,7 @@ void ClassTreeScopeItem::setOpen(bool o)
lastItem = new ClassTreeClassItem(this, lastItem, *it);
}
- if (features & TDevLanguageSupport::Structs) {
+ if (features & KDevLanguageSupport::Structs) {
// Add structs
TQValueList<ParsedClass*> structList = pScope->getSortedStructList();
TQValueList<ParsedClass*>::ConstIterator it;
@@ -192,7 +192,7 @@ void ClassTreeScopeItem::setOpen(bool o)
lastItem = new ClassTreeClassItem(this, lastItem, *it, true);
}
- if (features & TDevLanguageSupport::Functions) {
+ if (features & KDevLanguageSupport::Functions) {
// Add functions
TQValueList<ParsedMethod*> methodList = pScope->getSortedMethodList();
TQValueList<ParsedMethod*>::ConstIterator it;
@@ -200,7 +200,7 @@ void ClassTreeScopeItem::setOpen(bool o)
lastItem = new ClassTreeMethodItem(this, lastItem, *it);
}
- if (features & TDevLanguageSupport::Variables) {
+ if (features & KDevLanguageSupport::Variables) {
// Add attributes
TQValueList<ParsedAttribute*> attrList = pScope->getSortedAttributeList();
TQValueList<ParsedAttribute*>::ConstIterator it;