diff options
Diffstat (limited to 'parts/documentation/interfaces')
-rw-r--r-- | parts/documentation/interfaces/kdevdocumentationplugin.cpp | 36 | ||||
-rw-r--r-- | parts/documentation/interfaces/kdevdocumentationplugin.h | 30 |
2 files changed, 33 insertions, 33 deletions
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.cpp b/parts/documentation/interfaces/kdevdocumentationplugin.cpp index 6c6805e1..5aee560e 100644 --- a/parts/documentation/interfaces/kdevdocumentationplugin.cpp +++ b/parts/documentation/interfaces/kdevdocumentationplugin.cpp @@ -33,30 +33,30 @@ //class DocumentationItem -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent, +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListView *parent, const TQString &name) - :KListViewItem(parent, name), m_type(type) + :TDEListViewItem(parent, name), m_type(type) { init(); } -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem *parent, +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListViewItem *parent, const TQString &name) - :KListViewItem(parent, name), m_type(type) + :TDEListViewItem(parent, name), m_type(type) { init(); } -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent, - KListViewItem *after, const TQString &name) - :KListViewItem(parent, after, name), m_type(type) +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListView *parent, + TDEListViewItem *after, const TQString &name) + :TDEListViewItem(parent, after, name), m_type(type) { init(); } -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem * parent, - KListViewItem * after, const TQString & name ) - :KListViewItem(parent, after, name), m_type(type) +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListViewItem * parent, + TDEListViewItem * after, const TQString & name ) + :TDEListViewItem(parent, after, name), m_type(type) { init(); } @@ -90,7 +90,7 @@ void DocumentationItem::init( ) DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin, - KListView *parent, const TQString &name) + TDEListView *parent, const TQString &name) :DocumentationItem(DocumentationItem::Catalog, parent, name), m_plugin(plugin), isLoaded(false), isActivated(false), m_isProjectDocumentationItem(false) { @@ -400,7 +400,7 @@ void DocumentationPlugin::addCatalog(DocumentationCatalogItem *item) // indexes[item] = TQValueList<IndexItem*>(); } -void DocumentationPlugin::addCatalogConfiguration(KListView *configurationView, +void DocumentationPlugin::addCatalogConfiguration(TDEListView *configurationView, const TQString &title, const TQString &url) { new ConfigurationItem(configurationView, this, title, url, @@ -440,7 +440,7 @@ void DocumentationPlugin::loadIndex(IndexBox *index, DocumentationCatalogItem *i cacheIndex(item); } -void DocumentationPlugin::init(KListView *contents) +void DocumentationPlugin::init(TDEListView *contents) { config->setGroup("Locations"); TQMap<TQString, TQString> entryMap = config->entryMap("Locations"); @@ -453,7 +453,7 @@ void DocumentationPlugin::init(KListView *contents) } } -void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, TQStringList restrictions) +void DocumentationPlugin::reinit(TDEListView *contents, IndexBox *index, TQStringList restrictions) { config->setGroup("Locations"); TQMap<TQString, TQString> entryMap = config->entryMap("Locations"); @@ -504,7 +504,7 @@ void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, TQStringL } } -void DocumentationPlugin::loadCatalogConfiguration(KListView *configurationView) +void DocumentationPlugin::loadCatalogConfiguration(TDEListView *configurationView) { config->setGroup("Locations"); TQMap<TQString, TQString> entryMap = config->entryMap("Locations"); @@ -529,7 +529,7 @@ void DocumentationPlugin::loadCatalogConfiguration(KListView *configurationView) } } -void DocumentationPlugin::saveCatalogConfiguration(KListView *configurationView) +void DocumentationPlugin::saveCatalogConfiguration(TDEListView *configurationView) { config->setGroup("Locations"); @@ -614,7 +614,7 @@ void DocumentationPlugin::setCatalogEnabled(const TQString &name, bool e) //class IndexBox IndexBox::IndexBox(TQWidget *parent, const char *name) - :KListBox(parent, name), m_dirty(false) + :TDEListBox(parent, name), m_dirty(false) { } @@ -676,7 +676,7 @@ ProjectDocumentationPlugin::~ProjectDocumentationPlugin() deinit(); } -void ProjectDocumentationPlugin::init(KListView *contents, IndexBox *index, const TQString &url) +void ProjectDocumentationPlugin::init(TDEListView *contents, IndexBox *index, const TQString &url) { m_contents = contents; m_index = index; diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h index 9c61e208..e5e71ca2 100644 --- a/parts/documentation/interfaces/kdevdocumentationplugin.h +++ b/parts/documentation/interfaces/kdevdocumentationplugin.h @@ -32,7 +32,7 @@ /**Documentation list item. Stores the type of a documentation it represents and an URL.*/ -class DocumentationItem: public KListViewItem +class DocumentationItem: public TDEListViewItem { public: /**Type of documentation which is represented by this item.*/ @@ -43,10 +43,10 @@ public: Document /**<Document.*/ }; - DocumentationItem(Type type, KListView *parent, const TQString &name); - DocumentationItem(Type type, KListView *parent, KListViewItem *after, const TQString &name); - DocumentationItem(Type type, KListViewItem *parent, const TQString &name); - DocumentationItem(Type type, KListViewItem *parent, KListViewItem *after, const TQString &name); + DocumentationItem(Type type, TDEListView *parent, const TQString &name); + DocumentationItem(Type type, TDEListView *parent, TDEListViewItem *after, const TQString &name); + DocumentationItem(Type type, TDEListViewItem *parent, const TQString &name); + DocumentationItem(Type type, TDEListViewItem *parent, TDEListViewItem *after, const TQString &name); virtual void setURL(const KURL &url) { m_url = url; } virtual KURL url() const { return m_url; } @@ -72,7 +72,7 @@ class DocumentationPlugin; class DocumentationCatalogItem: public DocumentationItem { public: - DocumentationCatalogItem(DocumentationPlugin* plugin, KListView *parent, const TQString &name); + DocumentationCatalogItem(DocumentationPlugin* plugin, TDEListView *parent, const TQString &name); DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *parent, const TQString &name); virtual ~DocumentationCatalogItem(); @@ -134,7 +134,7 @@ private: }; /**Documentation index view.*/ -class IndexBox: public KListBox{ +class IndexBox: public TDEListBox{ public: IndexBox(TQWidget *parent = 0, const char *name = 0); @@ -241,19 +241,19 @@ public: virtual TQString pluginName() const = 0; /**Creates documentation catalog with given title and url.*/ - virtual DocumentationCatalogItem *createCatalog(KListView *contents, const TQString &title, const TQString &url) = 0; + virtual DocumentationCatalogItem *createCatalog(TDEListView *contents, const TQString &title, const TQString &url) = 0; /**Initialize a list of catalogs. @param contents the listview to fill with catalogs */ - virtual void init(KListView *contents); + virtual void init(TDEListView *contents); /**Reloads a list of catalogs. This method should add missing catalogs to the view, update index for added catalogs and also delete restricted catalogs. @param contents the listview to fill with catalogs @param index the listbox with index to update @param restrictions the list of catalogs names to remove */ - virtual void reinit(KListView *contents, IndexBox *index, TQStringList restrictions); + virtual void reinit(TDEListView *contents, IndexBox *index, TQStringList restrictions); /**Initializes plugin configuration. Documentation plugins should be able to initialize the default configuration on startup without any user interaction. Call this in the constructor of your plugin.*/ @@ -296,13 +296,13 @@ public: virtual TQStringList fullTextSearchLocations() = 0; /**Loads catalog configuration and fills configurationView with ConfigurationItem objects.*/ - virtual void loadCatalogConfiguration(KListView *configurationView); + virtual void loadCatalogConfiguration(TDEListView *configurationView); /**Saves catalog configuration basing on configurationView and deletedConfigurationItems contents. If you use TDEConfig to store configuration, it is important that you call TDEConfig::sync() method after saving.*/ - virtual void saveCatalogConfiguration(KListView *configurationView); + virtual void saveCatalogConfiguration(TDEListView *configurationView); /**Adds new catalog to a configuration.*/ - virtual void addCatalogConfiguration(KListView *configurationView, + virtual void addCatalogConfiguration(TDEListView *configurationView, const TQString &title, const TQString &url); /**Edits catalog configuration.*/ virtual void editCatalogConfiguration(ConfigurationItem *configurationItem, @@ -396,7 +396,7 @@ public: virtual ~ProjectDocumentationPlugin(); /**Initializes project documentation plugin - creates documentation catalog.*/ - virtual void init(KListView *contents, IndexBox *index, const TQString &url); + virtual void init(TDEListView *contents, IndexBox *index, const TQString &url); /**Deinitializes project documentation plugin - removes documentation catalog.*/ virtual void deinit(); @@ -415,7 +415,7 @@ private: DocumentationPlugin::ProjectDocType m_type; class KDirWatch *m_watch; - class KListView *m_contents; + class TDEListView *m_contents; class IndexBox *m_index; TQString m_url; }; |