KDevelop API Documentation

kdevlanguagesupport.cpp

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
00003    Copyright (C) 2001-2002 Bernd Gehrmann <bernd@kdevelop.org>
00004    Copyright (C) 2002-2003 Roberto Raggi <roberto@kdevelop.org>
00005    Copyright (C) 2002 Simon Hausmann <hausmann@kde.org>
00006    Copyright (C) 2002 F@lk Brettschneider <falkbr@kdevelop.org>
00007    Copyright (C) 2003 Alexander Dymo <cloudtemple@mksat.net>
00008    Copyright (C) 2003 Amilcar do Carmo Lucas <amilcar@ida.ing.tu-bs.de>
00009 
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Library General Public
00012    License as published by the Free Software Foundation; either
00013    version 2 of the License, or (at your option) any later version.
00014 
00015    This library is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018    Library General Public License for more details.
00019 
00020    You should have received a copy of the GNU Library General Public License
00021    along with this library; see the file COPYING.LIB.  If not, write to
00022    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023    Boston, MA 02111-1307, USA.
00024 */
00025 #include "codemodel.h"
00026 
00027 #include <kdebug.h>
00028 
00029 #include "kdevdesignerintegration.h"
00030 #include "kdevlanguagesupport.h"
00031 
00032 KDevLanguageSupport::KDevLanguageSupport( const QString& pluginName, const QString& icon, QObject *parent, const char *name)
00033     : KDevPlugin( pluginName, icon, parent, name ? name : "KDevLanguageSupport" )
00034 {
00035 }
00036 
00037 KDevLanguageSupport::~KDevLanguageSupport()
00038 {
00039 }
00040 
00041 KDevLanguageSupport::Features KDevLanguageSupport::features()
00042 {
00043     return Features(0);
00044 }
00045 
00046 KMimeType::List KDevLanguageSupport::mimeTypes()
00047 {
00048     return KMimeType::List();
00049 }
00050 
00051 QString KDevLanguageSupport::formatTag( const Tag& /*tag*/ )
00052 {
00053     return QString::null;
00054 }
00055 
00056 QString KDevLanguageSupport::formatClassName(const QString &name)
00057 {
00058     return name;
00059 }
00060 
00061 QString KDevLanguageSupport::unformatClassName(const QString &name)
00062 {
00063     return name;
00064 }
00065 
00066 void KDevLanguageSupport::addClass()
00067 {
00068 }
00069 
00070 void KDevLanguageSupport::addMethod( ClassDom /*klass*/ )
00071 {
00072 }
00073 
00074 void KDevLanguageSupport::implementVirtualMethods( ClassDom /*klass*/ )
00075 {
00076 }
00077 
00078 void KDevLanguageSupport::addAttribute( ClassDom /*klass*/ )
00079 {
00080 }
00081 
00082 QStringList KDevLanguageSupport::subclassWidget(const QString& /*formName*/)
00083 {
00084     return QStringList();
00085 }
00086 
00087 QStringList KDevLanguageSupport::updateWidget(const QString& /*formName*/, const QString& /*fileName*/)
00088 {
00089     return QStringList();
00090 }
00091 
00092 QString KDevLanguageSupport::formatModelItem( const CodeModelItem *item, bool /*shortDescription*/ )
00093 {
00094     return item->name();
00095 }
00096 
00097 void KDevLanguageSupport::addFunction( DesignerType type, const QString & formName, Function function )
00098 {
00099 //    kdDebug() << "KDevLanguageSupport::addFunction: 1" << endl;
00100     KDevDesignerIntegration *designerIntegration = designer(type);
00101 //    kdDebug() << "KDevLanguageSupport::addFunction: 2" << endl;
00102     if (!designerIntegration)
00103     {
00104 //        kdDebug() << "KDevLanguageSupport::addFunction: x" << endl;
00105         return;
00106     }
00107 //    kdDebug() << "KDevLanguageSupport::addFunction: 3" << endl;
00108     designerIntegration->addFunction(formName, function);
00109 //    kdDebug() << "KDevLanguageSupport::addFunction: 4" << endl;
00110 }
00111 
00112 void KDevLanguageSupport::editFunction( DesignerType type, const QString & formName, Function oldFunction, Function function )
00113 {
00114     KDevDesignerIntegration *designerIntegration = designer(type);
00115     if (!designerIntegration)
00116         return;
00117     designerIntegration->editFunction(formName, oldFunction, function);
00118 }
00119 
00120 void KDevLanguageSupport::removeFunction( DesignerType type, const QString & formName, Function function )
00121 {
00122     KDevDesignerIntegration *designerIntegration = designer(type);
00123     if (!designerIntegration)
00124         return;
00125     designerIntegration->removeFunction(formName, function);
00126 }
00127 
00128 KDevDesignerIntegration * KDevLanguageSupport::designer( DesignerType type )
00129 {
00130     return 0;
00131 }
00132 
00133 void KDevLanguageSupport::openFunction( DesignerType type, const QString & formName, const QString & functionName )
00134 {
00135     KDevDesignerIntegration *designerIntegration = designer(type);
00136     if (!designerIntegration)
00137         return;
00138     designerIntegration->openFunction(formName, functionName);
00139 }
00140 
00141 #include "kdevlanguagesupport.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:36 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003