summaryrefslogtreecommitdiffstats
path: root/parts/documentation/interfaces/kdevdocumentationplugin.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-10-21 19:13:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-10-21 19:13:42 +0900
commit8f70b1fe6562378faefb612f4006545cdcf703ab (patch)
tree19256e4ff96aa6dfb9d73313ba91c87cb332cca1 /parts/documentation/interfaces/kdevdocumentationplugin.h
parent847b6192a9eee538a6d62a0cbbbfffd5270744ac (diff)
downloadtdevelop-8f70b1fe6562378faefb612f4006545cdcf703ab.tar.gz
tdevelop-8f70b1fe6562378faefb612f4006545cdcf703ab.zip
Sort documentation list in increasing alphabetical order.
Fixed KDE 2 handbook xml tags. This relates to bug 1859. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'parts/documentation/interfaces/kdevdocumentationplugin.h')
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h
index a5dbe458..dcdc3f9a 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.h
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.h
@@ -72,7 +72,7 @@ class DocumentationPlugin;
class DocumentationCatalogItem: public DocumentationItem
{
public:
- DocumentationCatalogItem(DocumentationPlugin* plugin, TDEListView *parent, const TQString &name);
+ DocumentationCatalogItem(DocumentationPlugin* plugin, TDEListView *parent, TDEListViewItem *after, const TQString &name);
DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *parent, const TQString &name);
virtual ~DocumentationCatalogItem();
@@ -240,8 +240,9 @@ public:
/**Returns the i18n name of the plugin.*/
virtual TQString pluginName() const = 0;
- /**Creates documentation catalog with given title and url.*/
- virtual DocumentationCatalogItem *createCatalog(TDEListView *contents, const TQString &title, const TQString &url) = 0;
+ /**Creates documentation catalog with given title and url. Catalog lists are sorted
+ alphabetically in increasing order.*/
+ virtual DocumentationCatalogItem *createCatalog(TDEListView *contents, TDEListViewItem *after, const TQString &title, const TQString &url) = 0;
/**Initialize a list of catalogs.
@param contents the listview to fill with catalogs
@@ -361,6 +362,9 @@ protected:
/**Loads index from cache or creates and caches it if does not exist.*/
void loadIndex(IndexBox *index, DocumentationCatalogItem *item);
+ /**Find catalog insert position to maintain a sorted order.*/
+ TDEListViewItem* findCatalogPosition(const TQString &key, const TDEListView *contents) const;
+
/**Stores items deleted from configuration. @ref saveCatalogConfiguration
uses this to remove entries from configuration file.*/
TQStringList deletedConfigurationItems;
@@ -408,6 +412,9 @@ public slots:
virtual void reinit();
protected:
+ /**Find catalog insert position to maintain a sorted order.*/
+ TDEListViewItem* findCatalogPosition(const TQString &key, const TDEListView *contents) const;
+
DocumentationPlugin *m_docPlugin;
DocumentationCatalogItem *m_catalog;