summaryrefslogtreecommitdiffstats
path: root/parts/documentation/interfaces/kdevdocumentationplugin.h
diff options
context:
space:
mode:
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;