diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-10-30 14:50:07 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-10-30 14:50:07 +0900 |
commit | d676f93b5f3a7481fc0588f087bef418879e6f78 (patch) | |
tree | 8bcbe99d2f62e6216afa3bd9b56c99a2eb163d07 /parts/documentation/plugins/chm/docchmplugin.cpp | |
parent | 565f0ae626aeff1ec26ce379abe2c3838b54cdf6 (diff) | |
download | tdevelop-d676f93b5f3a7481fc0588f087bef418879e6f78.tar.gz tdevelop-d676f93b5f3a7481fc0588f087bef418879e6f78.zip |
Added backend logic for allowing the user to manually update the Documentation Plugin lists. GUI part still to be done.
In the process, fixed some bugs related to deallocation and reinitialization of documentation catalogs and project catalogs.
This relates to bug 1859.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'parts/documentation/plugins/chm/docchmplugin.cpp')
-rw-r--r-- | parts/documentation/plugins/chm/docchmplugin.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/parts/documentation/plugins/chm/docchmplugin.cpp b/parts/documentation/plugins/chm/docchmplugin.cpp index cbd89a60..cfb0f8c0 100644 --- a/parts/documentation/plugins/chm/docchmplugin.cpp +++ b/parts/documentation/plugins/chm/docchmplugin.cpp @@ -115,6 +115,13 @@ bool DocCHMPlugin::needRefreshIndex(DocumentationCatalogItem* // item void DocCHMPlugin::autoSetupPlugin() { + // Clear groups, to allow for re-autosetup calls + config->deleteGroup("Index"); + config->deleteGroup("Index Settings"); + config->deleteGroup("Locations"); + config->deleteGroup("Search Settings"); + config->deleteGroup("TOC Settings"); + config->sync(); return; } @@ -194,4 +201,12 @@ void DocCHMPlugin::setCatalogURL(DocumentationCatalogItem* item) item->setURL(chmURL); } +ProjectDocumentationPlugin *DocCHMPlugin::projectDocumentationPlugin(ProjectDocType type) +{ + if (type == APIDocs) + return new ProjectDocumentationPlugin(this, type); + return DocumentationPlugin::projectDocumentationPlugin(type); +} + + #include "docchmplugin.moc" |