kdevlanguagesupport.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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& )
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 )
00071 {
00072 }
00073
00074 void KDevLanguageSupport::implementVirtualMethods( ClassDom )
00075 {
00076 }
00077
00078 void KDevLanguageSupport::addAttribute( ClassDom )
00079 {
00080 }
00081
00082 QStringList KDevLanguageSupport::subclassWidget(const QString& )
00083 {
00084 return QStringList();
00085 }
00086
00087 QStringList KDevLanguageSupport::updateWidget(const QString& , const QString& )
00088 {
00089 return QStringList();
00090 }
00091
00092 QString KDevLanguageSupport::formatModelItem( const CodeModelItem *item, bool )
00093 {
00094 return item->name();
00095 }
00096
00097 void KDevLanguageSupport::addFunction( DesignerType type, const QString & formName, Function function )
00098 {
00099
00100 KDevDesignerIntegration *designerIntegration = designer(type);
00101
00102 if (!designerIntegration)
00103 {
00104
00105 return;
00106 }
00107
00108 designerIntegration->addFunction(formName, function);
00109
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"
This file is part of the documentation for KDevelop Version 3.1.2.