summaryrefslogtreecommitdiffstats
path: root/parts/classview/classviewpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/classview/classviewpart.cpp')
-rw-r--r--parts/classview/classviewpart.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/parts/classview/classviewpart.cpp b/parts/classview/classviewpart.cpp
index 42410fbe..24163bf4 100644
--- a/parts/classview/classviewpart.cpp
+++ b/parts/classview/classviewpart.cpp
@@ -19,10 +19,10 @@
*
*/
-#include <qwhatsthis.h>
-#include <qlistview.h>
-#include <qfileinfo.h>
-#include <qlineedit.h>
+#include <tqwhatsthis.h>
+#include <tqlistview.h>
+#include <tqfileinfo.h>
+#include <tqlineedit.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -63,13 +63,13 @@ class FunctionCompletion : public CustomCompleter {
FunctionCompletion() {
setOrder( Insertion );
};
- typedef QMap<QString, QString> FuncMap;
+ typedef TQMap<TQString, TQString> FuncMap;
FuncMap nameMap; /// real -> short
FuncMap revNameMap; /// short -> real
- static const QString processName( QString function ) {
- QString args;
- QString fScope;
+ static const TQString processName( TQString function ) {
+ TQString args;
+ TQString fScope;
int cutpos;
if((cutpos = function.find('(')) != -1) {
@@ -86,10 +86,10 @@ class FunctionCompletion : public CustomCompleter {
return function;
}
- virtual void addItem ( const QString &item ) {
- QString newItemName = item;
+ virtual void addItem ( const TQString &item ) {
+ TQString newItemName = item;
KCompletion::addItem(newItemName);
- QString tx = processName( item );
+ TQString tx = processName( item );
tx += " \"" + item + "\"";
nameMap[item] = tx;
revNameMap[tx] = item;
@@ -102,7 +102,7 @@ class FunctionCompletion : public CustomCompleter {
KCompletion::addItem( item );
}
- virtual void removeItem ( const QString &item ) {
+ virtual void removeItem ( const TQString &item ) {
FuncMap::iterator it = nameMap.find( item );
if( it != nameMap.end() ) {
KCompletion::removeItem( *it );
@@ -117,15 +117,15 @@ class FunctionCompletion : public CustomCompleter {
KCompletion::clear();
}
- virtual void postProcessMatch ( QString *match ) const {
+ virtual void postProcessMatch ( TQString *match ) const {
FuncMap::const_iterator it = revNameMap.find( *match );
if( it != revNameMap.end() ) {
*match = *it;
}
};
- virtual void postProcessMatches ( QStringList *matches ) const {
- QStringList::iterator it = matches->begin();
+ virtual void postProcessMatches ( TQStringList *matches ) const {
+ TQStringList::iterator it = matches->begin();
while( it != matches->end() ) {
postProcessMatch( &(*it) );
@@ -142,7 +142,7 @@ typedef KDevGenericFactory<ClassViewPart> ClassViewFactory;
static const KDevPluginInfo data("kdevclassview");
K_EXPORT_COMPONENT_FACTORY( libkdevclassview, ClassViewFactory( data ) )
-ClassViewPart::ClassViewPart(QObject *parent, const char *name, const QStringList& )
+ClassViewPart::ClassViewPart(TQObject *parent, const char *name, const TQStringList& )
:/// KDevPlugin( &data, parent, name ? name : "ClassViewPart" ),
KDevCodeBrowserFrontend( &data, parent, name ? name : "ClassViewPart" ),
m_activeDocument(0), m_activeView(0), m_activeSelection(0), m_activeEditor(0), m_activeViewCursor(0), m_hierarchyDlg(0)
@@ -158,14 +158,14 @@ ClassViewPart::ClassViewPart(QObject *parent, const char *name, const QStringLis
m_widget->setIcon( SmallIcon("view_tree") );
m_widget->setCaption(i18n("Class Browser"));
mainWindow()->embedSelectView( m_widget, i18n("Classes"), i18n("Class browser") );
- QWhatsThis::add(m_widget, i18n("<b>Class browser</b><p>"
+ TQWhatsThis::add(m_widget, i18n("<b>Class browser</b><p>"
"The class browser shows all namespaces, classes and namespace and class members in a project."));
- connect( core(), SIGNAL(projectOpened()), this, SLOT(slotProjectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(slotProjectClosed()) );
- connect( core(), SIGNAL(languageChanged()), this, SLOT(slotProjectOpened()) );
- connect( partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(activePartChanged(KParts::Part*)));
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(slotProjectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(slotProjectClosed()) );
+ connect( core(), TQT_SIGNAL(languageChanged()), this, TQT_SLOT(slotProjectOpened()) );
+ connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(activePartChanged(KParts::Part*)));
}
bool ClassViewPart::jumpedToItem( ItemDom item ) {
@@ -182,34 +182,34 @@ ClassViewPart::~ClassViewPart()
void ClassViewPart::slotProjectOpened( )
{
- connect( languageSupport(), SIGNAL(updatedSourceInfo()), navigator, SLOT(refresh()) );
- connect( languageSupport(), SIGNAL(addedSourceInfo(const QString& )), navigator, SLOT(addFile(const QString& )));
+ connect( languageSupport(), TQT_SIGNAL(updatedSourceInfo()), navigator, TQT_SLOT(refresh()) );
+ connect( languageSupport(), TQT_SIGNAL(addedSourceInfo(const TQString& )), navigator, TQT_SLOT(addFile(const TQString& )));
navigator->refresh();
}
void ClassViewPart::slotProjectClosed( )
{
// navigator->refresh();
-// disconnect( languageSupport(), SIGNAL(updatedSourceInfo()), navigator, SLOT(refresh()) );
+// disconnect( languageSupport(), TQT_SIGNAL(updatedSourceInfo()), navigator, TQT_SLOT(refresh()) );
}
void ClassViewPart::setupActions( )
{
m_functionsnav = new KListViewAction( new KComboView(true, 150, 0, "m_functionsnav_combo", new FunctionCompletion() ), i18n("Functions Navigation"), 0, 0, 0, actionCollection(), "functionsnav_combo", true );
- connect(m_functionsnav->view(), SIGNAL(activated(QListViewItem*)), navigator, SLOT(selectFunctionNav(QListViewItem*)));
+ connect(m_functionsnav->view(), TQT_SIGNAL(activated(TQListViewItem*)), navigator, TQT_SLOT(selectFunctionNav(TQListViewItem*)));
// m_functionsnav->view()->setEditable(false);
- connect(m_functionsnav->view(), SIGNAL(focusGranted()), navigator, SLOT(functionNavFocused()));
- connect(m_functionsnav->view(), SIGNAL(focusLost()), navigator, SLOT(functionNavUnFocused()));
+ connect(m_functionsnav->view(), TQT_SIGNAL(focusGranted()), navigator, TQT_SLOT(functionNavFocused()));
+ connect(m_functionsnav->view(), TQT_SIGNAL(focusLost()), navigator, TQT_SLOT(functionNavUnFocused()));
m_functionsnav->setToolTip(i18n("Functions in file"));
m_functionsnav->setWhatsThis(i18n("<b>Function navigator</b><p>Navigates over functions contained in the file."));
// m_functionsnav->view()->setCurrentText(NAV_NODEFINITION);
m_functionsnav->view()->setDefaultText(NAV_NODEFINITION);
- new KAction( i18n("Focus Navigator"), 0, this, SLOT(slotFocusNavbar()), actionCollection(), "focus_navigator" );
+ new KAction( i18n("Focus Navigator"), 0, this, TQT_SLOT(slotFocusNavbar()), actionCollection(), "focus_navigator" );
if (langHasFeature(KDevLanguageSupport::Classes))
{
- KAction *ac = new KAction(i18n("Class Inheritance Diagram"), "view_tree", 0, this, SLOT(graphicalClassView()), actionCollection(), "inheritance_dia");
+ KAction *ac = new KAction(i18n("Class Inheritance Diagram"), "view_tree", 0, this, TQT_SLOT(graphicalClassView()), actionCollection(), "inheritance_dia");
ac->setToolTip(i18n("Class inheritance diagram"));
ac->setWhatsThis(i18n("<b>Class inheritance diagram</b><p>Displays inheritance relationship between classes in project. "
"Note, it does not display classes outside inheritance hierarchy."));
@@ -242,8 +242,8 @@ void ClassViewPart::activePartChanged( KParts::Part * part)
navigator->stopTimer();
if (m_activeView)
{
- disconnect(m_activeView, SIGNAL(cursorPositionChanged()),
- navigator, SLOT(slotCursorPositionChanged()));
+ disconnect(m_activeView, TQT_SIGNAL(cursorPositionChanged()),
+ navigator, TQT_SLOT(slotCursorPositionChanged()));
}
kdDebug() << "ClassViewPart::activePartChanged()" << endl;
@@ -254,7 +254,7 @@ void ClassViewPart::activePartChanged( KParts::Part * part)
m_activeSelection = dynamic_cast<KTextEditor::SelectionInterface*>( part );
m_activeViewCursor = part ? dynamic_cast<KTextEditor::ViewCursorInterface*>( m_activeView ) : 0;
- m_activeFileName = QString::null;
+ m_activeFileName = TQString::null;
if (m_activeDocument)
{
@@ -263,12 +263,12 @@ void ClassViewPart::activePartChanged( KParts::Part * part)
navigator->syncFunctionNavDelayed(200);
/* if ( languageSupport()->mimeTypes().find(
KMimeType::findByPath(m_activeFileName)) != languageSupport()->mimeTypes().end() )
- m_activeFileName = QString::null;*/
+ m_activeFileName = TQString::null;*/
}
if( m_activeViewCursor )
{
- connect(m_activeView, SIGNAL(cursorPositionChanged()),
- navigator, SLOT(slotCursorPositionChanged()) );
+ connect(m_activeView, TQT_SIGNAL(cursorPositionChanged()),
+ navigator, TQT_SLOT(slotCursorPositionChanged()) );
}
}
void ClassViewPart::slotFocusNavbar()