[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    KDE/kdevplatform/plugins
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2008-10-03 18:16:26
Message-ID: 1223057786.659736.6687.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 867527 by apaku:

Provide aboutData information for the plugins. Its not much work to set this up and \
it will (hopefully soon) allow a nice tree in the shortcuts editor just like in KDE3.

Everybody who's code I touched should check wether the descriptions are right
and the license is correct too (its all GPL I think, but better double-check).

What I'm not sure about is wether we also want to add the authors, it would
need a createAboutData function as you can't provide authors within the
constructor. Opinions?

If somebody feels he's up for some non-thinking work, feel free to actually
copy the description from the .desktop files. It would be nice to have .desktop
and aboutData information in sync, but I'm not going to require that as its a
pretty tedious job that doesn't buy us anything.

Going to do kdevelop now.

CCMAIL:kdevelop-devel@kdevelop.org 


 M  +3 -1      bazaar/bzrplugin.cpp  
 M  +2 -1      classbrowser/classbrowserplugin.cpp  
 M  +1 -1      classbrowser/kdevclassbrowser.desktop  
 M  +2 -1      contextbrowser/contextbrowser.cpp  
 M  +1 -1      contextbrowser/kdevcontextbrowser.desktop  
 M  +2 -1      duchainviewer/duchainviewplugin.cpp  
 M  +1 -1      duchainviewer/kdevduchainview.desktop  
 M  +2 -1      execute/executeplugin.cpp  
 M  +1 -1      execute/kdevexecute.desktop  
 M  +2 -1      filemanager/kdevfilemanagerplugin.cpp  
 M  +2 -1      genericprojectmanager/genericmanager.cpp  
 M  +2 -1      git/gitplugin.cpp  
 M  +2 -1      konsole/kdevkonsoleviewplugin.cpp  
 M  +2 -1      mercurial/hgplugin.cpp  
 M  +2 -1      problemreporter/problemreporterplugin.cpp  
 M  +2 -1      projectmanagerview/projectmanagerviewplugin.cpp  
 M  +2 -1      quickopen/quickopenplugin.cpp  
 M  +2 -1      snippet/snippetplugin.cpp  
 M  +2 -1      sourceformatter/sourceformatterplugin.cpp  
 M  +2 -1      standardoutputview/standardoutputview.cpp  
 M  +2 -1      subversion/kdevsvnplugin.cpp  
 M  +2 -1      teamwork/kdevteamworkplugin.cpp  
 M  +3 -1      vcscommon/kdevvcscommonplugin.cpp  


--- trunk/KDE/kdevplatform/plugins/bazaar/bzrplugin.cpp #867526:867527
@@ -22,6 +22,7 @@
 
 #include <KPluginFactory>
 #include <KPluginLoader>
+#include <KAboutData>
 #include <klocalizedstring.h>
 
 #include <interfaces/icore.h>
@@ -30,8 +31,9 @@
 
 #include "bzrexecutor.h"
 
+
 K_PLUGIN_FACTORY(KDevBzrFactory, registerPlugin<BzrPlugin>(); )
-K_EXPORT_PLUGIN(KDevBzrFactory("kdevbzr"))
+K_EXPORT_PLUGIN(KDevBzrFactory(KAboutData("kdevbzr","kdevbzr", ki18n("Bazaar \
Plugin"), "0.1", ki18n("Bazaar version control system support"), \
KAboutData::License_GPL, ki18n("Copyright 2008 Evgeniy Ivanov <powerfox@kde.ru>") ) ) \
)  
 BzrPlugin::BzrPlugin( QObject *parent, const QVariantList & )
     : DistributedVersionControlPlugin(parent, KDevBzrFactory::componentData())
--- trunk/KDE/kdevplatform/plugins/classbrowser/classbrowserplugin.cpp #867526:867527
@@ -27,6 +27,7 @@
 #include <klocale.h>
 #include <kpluginfactory.h>
 #include <kpluginloader.h>
+#include <kaboutdata.h>
 
 #include "interfaces/icore.h"
 #include "interfaces/iuicontroller.h"
@@ -44,7 +45,7 @@
 #include "classtree.h"
 
 K_PLUGIN_FACTORY(KDevClassBrowserFactory, registerPlugin<ClassBrowserPlugin>(); )
-K_EXPORT_PLUGIN(KDevClassBrowserFactory("kdevclassbrowser"))
+K_EXPORT_PLUGIN(KDevClassBrowserFactory(KAboutData("kdevclassbrowser","kdevclassbrowser",ki18n("Class \
Browser"), "0.1", ki18n("Browser for all known classes"), KAboutData::License_GPL)))  \
  using namespace KDevelop;
 
--- trunk/KDE/kdevplatform/plugins/classbrowser/kdevclassbrowser.desktop \
#867526:867527 @@ -11,4 +11,4 @@
 X-KDevelop-Properties=ClassBrowser,CodeNavigation
 X-KDE-PluginInfo-Name=kdevclassbrowser
 X-KDE-PluginInfo-Author=Hamish Rodda
-X-KDE-PluginInfo-License=LGPL
+X-KDE-PluginInfo-License=GPL
--- trunk/KDE/kdevplatform/plugins/contextbrowser/contextbrowser.cpp #867526:867527
@@ -33,6 +33,7 @@
 #include <ktexteditor/smartinterface.h>
 #include <KTextEditor/TextHintInterface>
 #include <kactioncollection.h>
+#include <kaboutdata.h>
 #include <kdebug.h>
 #include <interfaces/icore.h>
 #include <interfaces/idocumentcontroller.h>
@@ -84,7 +85,7 @@
 };
 
 K_PLUGIN_FACTORY(ContextBrowserFactory, registerPlugin<ContextBrowserPlugin>(); )
-K_EXPORT_PLUGIN(ContextBrowserFactory("kdevcontextbrowser"))
+K_EXPORT_PLUGIN(ContextBrowserFactory(KAboutData("kdevcontextbrowser","kdevcontextbrowser",ki18n("Context \
Browser"), "0.1", ki18n("Shows information for the current context"), \
KAboutData::License_GPL)))  
 ContextBrowserPlugin::ContextBrowserPlugin(QObject *parent, const QVariantList&)
     : KDevelop::IPlugin(ContextBrowserFactory::componentData(), parent)
--- trunk/KDE/kdevplatform/plugins/contextbrowser/kdevcontextbrowser.desktop \
#867526:867527 @@ -11,4 +11,4 @@
 X-KDevelop-Properties=DUChainNavigation
 X-KDE-PluginInfo-Name=kdevcontextbrowser
 X-KDE-PluginInfo-Author=David Nolden
-X-KDE-PluginInfo-License=LGPL
+X-KDE-PluginInfo-License=GPL
--- trunk/KDE/kdevplatform/plugins/duchainviewer/duchainviewplugin.cpp #867526:867527
@@ -27,13 +27,14 @@
 #include <klocale.h>
 #include <kpluginfactory.h>
 #include <kpluginloader.h>
+#include <kaboutdata.h>
 
 #include <interfaces/icore.h>
 #include <interfaces/iuicontroller.h>
 #include <interfaces/idocumentcontroller.h>
 
 K_PLUGIN_FACTORY(KDevDUChainViewFactory, registerPlugin<DUChainViewPlugin>(); )
-K_EXPORT_PLUGIN(KDevDUChainViewFactory("kdevduchainview"))
+K_EXPORT_PLUGIN(KDevDUChainViewFactory(KAboutData("kdevduchainview","kdevduchainview",ki18n("DUChain \
View"), "0.1", ki18n("A simple tool to view the raw DUChain"), \
KAboutData::License_GPL)))  
 class DUChainViewFactory: public KDevelop::IToolViewFactory
 {
--- trunk/KDE/kdevplatform/plugins/duchainviewer/kdevduchainview.desktop \
#867526:867527 @@ -15,4 +15,4 @@
 X-KDevelop-Properties=DUChainNavigation
 X-KDE-PluginInfo-Name=kdevduchainview
 X-KDE-PluginInfo-Author=Hamish Rodda
-X-KDE-PluginInfo-License=LGPL
+X-KDE-PluginInfo-License=GPL
--- trunk/KDE/kdevplatform/plugins/execute/executeplugin.cpp #867526:867527
@@ -29,13 +29,14 @@
 #include <kdebug.h>
 #include <kjob.h>
 #include <kmessagebox.h>
+#include <kaboutdata.h>
 
 #include <util/environmentgrouplist.h>
 
 using namespace KDevelop;
 
 K_PLUGIN_FACTORY(KDevExecuteFactory, registerPlugin<ExecutePlugin>(); )
-K_EXPORT_PLUGIN(KDevExecuteFactory("kdevexecute"))
+K_EXPORT_PLUGIN(KDevExecuteFactory(KAboutData("kdevexecute", "kdevexecute", \
ki18n("Execute support"), "0.1", ki18n("Allows running of native apps"), \
KAboutData::License_GPL)))  
 ExecutePlugin::ExecutePlugin(QObject *parent, const QVariantList&)
     : KDevelop::IPlugin(KDevExecuteFactory::componentData(), parent)
--- trunk/KDE/kdevplatform/plugins/execute/kdevexecute.desktop #867526:867527
@@ -9,5 +9,5 @@
 X-KDevelop-Version=6
 X-KDE-PluginInfo-Name=kdevexecute
 X-KDE-PluginInfo-Author=Hamish Rodda
-X-KDE-PluginInfo-License=LGPL
+X-KDE-PluginInfo-License=GPL
 X-KDevelop-Interfaces=org.kdevelop.IRunProvider
--- trunk/KDE/kdevplatform/plugins/filemanager/kdevfilemanagerplugin.cpp \
#867526:867527 @@ -26,6 +26,7 @@
 #include <kpluginloader.h>
 #include <kdebug.h>
 #include <kactioncollection.h>
+#include <kaboutdata.h>
 
 #include <interfaces/icore.h>
 #include <interfaces/iuicontroller.h>
@@ -33,7 +34,7 @@
 #include "filemanager.h"
 
 K_PLUGIN_FACTORY(KDevFileManagerFactory, registerPlugin<KDevFileManagerPlugin>(); )
-K_EXPORT_PLUGIN(KDevFileManagerFactory("kdevfilemanager"))
+K_EXPORT_PLUGIN(KDevFileManagerFactory(KAboutData("kdevfilemanager","kdevfilemanager",ki18n("File \
Manager"), "0.1", ki18n("Browse the filesystem"), KAboutData::License_GPL)))  
 
 class KDevFileManagerViewFactory: public KDevelop::IToolViewFactory{
--- trunk/KDE/kdevplatform/plugins/genericprojectmanager/genericmanager.cpp \
#867526:867527 @@ -30,6 +30,7 @@
 #include <klocale.h>
 #include <kconfiggroup.h>
 #include <ksharedconfig.h>
+#include <kaboutdata.h>
 
 #include <QDir>
 #include <QExtensionFactory>
@@ -38,7 +39,7 @@
 #include <QRegExp>
 
 K_PLUGIN_FACTORY(GenericSupportFactory, registerPlugin<GenericProjectManager>(); )
-K_EXPORT_PLUGIN(GenericSupportFactory("kdevgenericmanager"))
+K_EXPORT_PLUGIN(GenericSupportFactory(KAboutData("kdevgenericmanager","kdevgenericmanager",ki18n("Generic \
Project Manager"), "0.1", ki18n("A plugin to support basic project management on a \
filesystem level"), KAboutData::License_GPL)))  
 class GenericProjectManagerPrivate
 {
--- trunk/KDE/kdevplatform/plugins/git/gitplugin.cpp #867526:867527
@@ -23,6 +23,7 @@
 #include <KPluginFactory>
 #include <KPluginLoader>
 #include <klocalizedstring.h>
+#include <kaboutdata.h>
 #include <QDebug>
 
 #include <interfaces/icore.h>
@@ -36,7 +37,7 @@
 #include "gitexecutor.h"
 
 K_PLUGIN_FACTORY(KDevGitFactory, registerPlugin<GitPlugin>(); )
-K_EXPORT_PLUGIN(KDevGitFactory("kdevgit"))
+K_EXPORT_PLUGIN(KDevGitFactory(KAboutData("kdevgit","kdevgit",ki18n("Git"),"0.1",ki18n("A \
plugin to support git version control systems"), KAboutData::License_GPL)))  
 GitPlugin::GitPlugin( QObject *parent, const QVariantList & )
     : DistributedVersionControlPlugin(parent, KDevGitFactory::componentData())
--- trunk/KDE/kdevplatform/plugins/konsole/kdevkonsoleviewplugin.cpp #867526:867527
@@ -12,6 +12,7 @@
 #include "kdevkonsoleviewplugin.h"
 
 #include <kgenericfactory.h>
+#include <kaboutdata.h>
 
 #include <interfaces/iuicontroller.h>
 #include <interfaces/icore.h>
@@ -31,7 +32,7 @@
 }
 
 K_PLUGIN_FACTORY(KonsoleViewFactory, registerPlugin<KDevKonsoleViewPlugin>( \
                QString(), &createKonsoleView ); )
-K_EXPORT_PLUGIN(KonsoleViewFactory("kdevkonsoleview"))
+K_EXPORT_PLUGIN(KonsoleViewFactory(KAboutData("kdevkonsoleview","kdevkonsoleview", \
ki18n("Konsole"), "0.1", ki18n("Embedded Terminal support"), \
KAboutData::License_GPL)))  
 class KDevKonsoleViewFactory: public KDevelop::IToolViewFactory{
 public:
--- trunk/KDE/kdevplatform/plugins/mercurial/hgplugin.cpp #867526:867527
@@ -22,6 +22,7 @@
 
 #include <KPluginFactory>
 #include <KPluginLoader>
+#include <kaboutdata.h>
 #include <klocalizedstring.h>
 
 #include <interfaces/icore.h>
@@ -31,7 +32,7 @@
 #include "hgexecutor.h"
 
 K_PLUGIN_FACTORY(KDevHgFactory, registerPlugin<HgPlugin>(); )
-K_EXPORT_PLUGIN(KDevHgFactory("kdevhg"))
+K_EXPORT_PLUGIN(KDevHgFactory(KAboutData("kdevhg","kdevhg", ki18n("Mercurial"), \
"0.1", ki18n("Support for Mercurial version control systems"), \
KAboutData::License_GPL)))  
 HgPlugin::HgPlugin( QObject *parent, const QVariantList & )
     : DistributedVersionControlPlugin(parent, KDevHgFactory::componentData())
--- trunk/KDE/kdevplatform/plugins/problemreporter/problemreporterplugin.cpp \
#867526:867527 @@ -26,6 +26,7 @@
 
 #include <klocale.h>
 #include <kpluginfactory.h>
+#include <kaboutdata.h>
 #include <kpluginloader.h>
 
 #include <KTextEditor/Document>
@@ -45,7 +46,7 @@
 #include "problemwidget.h"
 
 K_PLUGIN_FACTORY(KDevProblemReporterFactory, \
                registerPlugin<ProblemReporterPlugin>(); )
-K_EXPORT_PLUGIN(KDevProblemReporterFactory("kdevproblemreporter"))
+K_EXPORT_PLUGIN(KDevProblemReporterFactory(KAboutData("kdevproblemreporter","kdevproblemreporter", \
ki18n("Problem Reporter"), "0.1", ki18n("Shows errors in source code"), \
KAboutData::License_GPL)))  
 using namespace KDevelop;
 
--- trunk/KDE/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp \
#867526:867527 @@ -23,6 +23,7 @@
 
 #include <kaction.h>
 #include <kactioncollection.h>
+#include <kaboutdata.h>
 #include <klocale.h>
 
 #include <kparts/componentfactory.h>
@@ -46,7 +47,7 @@
 using namespace KDevelop;
 
 K_PLUGIN_FACTORY(ProjectManagerFactory, registerPlugin<ProjectManagerViewPlugin>(); \
                )
-K_EXPORT_PLUGIN(ProjectManagerFactory("kdevprojectmanagerview"))
+K_EXPORT_PLUGIN(ProjectManagerFactory(KAboutData("kdevprojectmanagerview","kdevprojectmanagerview", \
ki18n("Project Management View"), "0.1", ki18n("Toolview to do all the project \
management stuff"), KAboutData::License_GPL)))  
 class KDevProjectManagerViewFactory: public KDevelop::IToolViewFactory
 {
--- trunk/KDE/kdevplatform/plugins/quickopen/quickopenplugin.cpp #867526:867527
@@ -36,6 +36,7 @@
 #include <klocale.h>
 #include <kpluginfactory.h>
 #include <kpluginloader.h>
+#include <kaboutdata.h>
 #include <ktexteditor/document.h>
 #include <ktexteditor/view.h>
 #include <kparts/mainwindow.h>
@@ -86,7 +87,7 @@
 };
 
 K_PLUGIN_FACTORY(KDevQuickOpenFactory, registerPlugin<QuickOpenPlugin>(); )
-K_EXPORT_PLUGIN(KDevQuickOpenFactory("kdevquickopen"))
+K_EXPORT_PLUGIN(KDevQuickOpenFactory(KAboutData("kdevquickopen","kdevquickopen", \
ki18n("Quick Open"), "0.1", ki18n("Quickly open resources like files, classes, \
methods"), KAboutData::License_GPL)))  
 Declaration* cursorDeclaration() {
   IDocument* doc = ICore::self()->documentController()->activeDocument();
--- trunk/KDE/kdevplatform/plugins/snippet/snippetplugin.cpp #867526:867527
@@ -12,6 +12,7 @@
 
 #include <klocale.h>
 #include <kpluginfactory.h>
+#include <kaboutdata.h>
 #include <kpluginloader.h>
 #include <ktexteditor/view.h>
 #include <ktexteditor/document.h>
@@ -25,7 +26,7 @@
 #include "snippetcompletionmodel.h"
 
 K_PLUGIN_FACTORY(SnippetFactory, registerPlugin<SnippetPlugin>(); )
-K_EXPORT_PLUGIN(SnippetFactory("kdevsnippet"))
+K_EXPORT_PLUGIN(SnippetFactory(KAboutData("kdevsnippet","kdevsnippet", \
ki18n("Snippets"), "0.1", ki18n("Support for managing and using code snippets"), \
KAboutData::License_GPL)))  
 class SnippetViewFactory: public KDevelop::IToolViewFactory{
 public:
--- trunk/KDE/kdevplatform/plugins/sourceformatter/sourceformatterplugin.cpp \
#867526:867527 @@ -35,6 +35,7 @@
 #include <kparts/partmanager.h>
 #include <ktexteditor/document.h>
 #include <ktexteditor/view.h>
+#include <kaboutdata.h>
 #include <ktexteditor/variableinterface.h>
 #include <KApplication>
 #include <KConfig>
@@ -57,7 +58,7 @@
 #include <util/sourceformattermanager.h>
 
 K_PLUGIN_FACTORY(SourceFormatterFactory, registerPlugin<SourceFormatterPlugin>();)
-K_EXPORT_PLUGIN(SourceFormatterFactory("kdevsourceformatter"))
+K_EXPORT_PLUGIN(SourceFormatterFactory(KAboutData("kdevsourceformatter","kdevsourceformatter", \
ki18n("Source Formatting"), "0.1", ki18n("Gui to re-format source code"), \
KAboutData::License_GPL)))  
 SourceFormatterPlugin::SourceFormatterPlugin(QObject *parent, const QVariantList &)
 		: KDevelop::IPlugin(SourceFormatterFactory::componentData(), parent)
--- trunk/KDE/kdevplatform/plugins/standardoutputview/standardoutputview.cpp \
#867526:867527 @@ -30,6 +30,7 @@
 
 #include <kpluginfactory.h>
 #include <kpluginloader.h>
+#include <kaboutdata.h>
 #include <klocale.h>
 #include <kdebug.h>
 #include <kactioncollection.h>
@@ -46,7 +47,7 @@
 #include "toolviewdata.h"
 
 K_PLUGIN_FACTORY(StandardOutputViewFactory, registerPlugin<StandardOutputView>(); )
-K_EXPORT_PLUGIN(StandardOutputViewFactory("kdevstandardoutputview"))
+K_EXPORT_PLUGIN(StandardOutputViewFactory(KAboutData("kdevstandardoutputview","kdevstandardoutputview",ki18n("Output \
View"), "0.1", ki18n("Provides toolviews for presenting the output of running apps"), \
KAboutData::License_GPL)))  
 
 class OutputViewFactory : public KDevelop::IToolViewFactory{
--- trunk/KDE/kdevplatform/plugins/subversion/kdevsvnplugin.cpp #867526:867527
@@ -20,6 +20,7 @@
 #include <kparts/part.h>
 #include <kparts/partmanager.h>
 #include <kparts/mainwindow.h>
+#include <kaboutdata.h>
 #include <ktexteditor/document.h>
 #include <ktexteditor/markinterface.h>
 #include <kpluginfactory.h>
@@ -76,7 +77,7 @@
 #include "svncheckoutmetadatawidget.h"
 
 K_PLUGIN_FACTORY(KDevSvnFactory, registerPlugin<KDevSvnPlugin>(); )
-K_EXPORT_PLUGIN(KDevSvnFactory("kdevsubversion"))
+K_EXPORT_PLUGIN(KDevSvnFactory(KAboutData("kdevsubversion","kdevsubversion", \
ki18n("Subversion"), "0.1", ki18n("Support for Subversion version control systems"), \
KAboutData::License_GPL)))  
 KDevSvnPlugin::KDevSvnPlugin( QObject *parent, const QVariantList & )
     : KDevelop::IPlugin(KDevSvnFactory::componentData(), parent)
--- trunk/KDE/kdevplatform/plugins/teamwork/kdevteamworkplugin.cpp #867526:867527
@@ -34,6 +34,7 @@
 #include <kaboutdata.h>
 #include <kiconloader.h>
 #include <kpluginfactory.h>
+#include <kaboutdata.h>
 #include <kpluginloader.h>
 #include <interfaces/icore.h>
 #include <interfaces/iprojectcontroller.h>
@@ -45,7 +46,7 @@
 KDevTeamworkPlugin* KDevTeamworkPlugin::m_self = 0;
 
 K_PLUGIN_FACTORY(KDevTeamworkFactory, registerPlugin<KDevTeamworkPlugin>(); )
-K_EXPORT_PLUGIN(KDevTeamworkFactory("kdevteamwork"))
+K_EXPORT_PLUGIN(KDevTeamworkFactory(KAboutData("kdevteamwork","kdevteamwork", \
ki18n("Teamwork"), "0.1", ki18n("Collaboration support"), KAboutData::License_GPL)))  \
  
 class KDevTeamworkViewFactory : public KDevelop::IToolViewFactory
--- trunk/KDE/kdevplatform/plugins/vcscommon/kdevvcscommonplugin.cpp #867526:867527
@@ -16,6 +16,7 @@
 #include <QMenu>
 
 #include <kpluginfactory.h>
+#include <kaboutdata.h>
 #include <kpluginloader.h>
 #include <klocale.h>
 #include <kglobal.h>
@@ -54,8 +55,9 @@
 #include <language/duchain/duchain.h>
 
 K_PLUGIN_FACTORY(KDevVcsCommonFactory, registerPlugin<KDevVcsCommonPlugin>(); )
-K_EXPORT_PLUGIN(KDevVcsCommonFactory("kdevvcscommon"))
+K_EXPORT_PLUGIN(KDevVcsCommonFactory(KAboutData("kdevvcscommon","kdevvcscommon", \
ki18n("Common VCS"), "0.1", ki18n("Common VCS operations"), \
KAboutData::License_GPL)))  
+
 KDevVcsCommonPlugin::KDevVcsCommonPlugin( QObject *parent, const QVariantList & )
     : KDevelop::IPlugin(KDevVcsCommonFactory::componentData(), parent)
 {

_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic