parts/documentation/plugins - CustomDocumentationTitles

Alan Ezust alan.ezust at gmail.com
Tue Dec 13 08:53:02 UTC 2005


My first successful bugfixes are attached as a patch:

I was having great difficulty importing qt and doxygen generated docs
into the documentation plugin, because the titles were not editable.
Enabling
CustomDocumentationTitles made it possible for me to differentiate between qt3
and qt4 docsets, as well as put in some titles for doxygen generated docs
(whose titles are rarely found correcty by that bizarre catalogTitle() method)

PS: I'd like to request commit access to kdevelop, for the purpose of
fixing other bugs of this sort.

PPS:  From the ContentsView, there is a context menu.
    Where is the code for creating that menu? I'd like to add some
choices, so that
    one can edit the from there without going into
    configure kdevelop -> documentation


Index: qt/docqtplugin.cpp
===================================================================
--- qt/docqtplugin.cpp  (revision 488085)
+++ qt/docqtplugin.cpp  (working copy)
@@ -63,7 +63,7 @@
 DocQtPlugin::DocQtPlugin(QObject* parent, const char* name, const QStringList)
     :DocumentationPlugin(DocQtPluginFactory::instance()->config(),
parent, name)
 {
-    setCapabilities(Index | FullTextSearch);
+   setCapabilities(Index | FullTextSearch | CustomDocumentationTitles );
     autoSetup();
 }

Index: doxygen/docdoxygenplugin.cpp
===================================================================
--- doxygen/docdoxygenplugin.cpp        (revision 488085)
+++ doxygen/docdoxygenplugin.cpp        (working copy)
@@ -66,7 +66,7 @@
 DocDoxygenPlugin::DocDoxygenPlugin(QObject* parent, const char* name,
const QStringList)
     :DocumentationPlugin(DocDoxygenPluginFactory::instance()->config(),
parent, name)
 {
-    setCapabilities(Index | FullTextSearch | ProjectDocumentation);
+    setCapabilities(Index | FullTextSearch | ProjectDocumentation |
CustomDocumentationTitles );
     autoSetup();
 }

====================================================================




More information about the KDevelop-devel mailing list