summaryrefslogtreecommitdiffstats
path: root/parts/documentation
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
commitf78eb03afb8c9a380985d26286afc40b4c89b292 (patch)
tree3c087e2f119e645c902958c3bc3c802abf078ad0 /parts/documentation
parentda1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff)
downloadtdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz
tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'parts/documentation')
-rw-r--r--parts/documentation/bookmarkview.cpp8
-rw-r--r--parts/documentation/bookmarkview.h4
-rw-r--r--parts/documentation/contentsview.cpp2
-rw-r--r--parts/documentation/contentsview.h6
-rw-r--r--parts/documentation/docconfiglistview.cpp2
-rw-r--r--parts/documentation/docconfiglistview.h2
-rw-r--r--parts/documentation/docglobalconfigwidget.cpp2
-rw-r--r--parts/documentation/docglobalconfigwidget.h6
-rw-r--r--parts/documentation/docglobalconfigwidgetbase.ui4
-rw-r--r--parts/documentation/documentation_part.cpp14
-rw-r--r--parts/documentation/documentation_widget.cpp2
-rw-r--r--parts/documentation/documentation_widget.h4
-rw-r--r--parts/documentation/docutils.cpp2
-rw-r--r--parts/documentation/docutils.h2
-rw-r--r--parts/documentation/find_documentation.cpp10
-rw-r--r--parts/documentation/find_documentation.h14
-rw-r--r--parts/documentation/find_documentationbase.ui2
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.cpp36
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.h30
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.cpp8
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.h2
-rw-r--r--parts/documentation/plugins/custom/doccustomplugin.cpp2
-rw-r--r--parts/documentation/plugins/custom/doccustomplugin.h2
-rw-r--r--parts/documentation/plugins/devhelp/docdevhelpplugin.cpp4
-rw-r--r--parts/documentation/plugins/devhelp/docdevhelpplugin.h2
-rw-r--r--parts/documentation/plugins/djvu/docdjvuplugin.cpp2
-rw-r--r--parts/documentation/plugins/djvu/docdjvuplugin.h2
-rw-r--r--parts/documentation/plugins/doxygen/docdoxygenplugin.cpp4
-rw-r--r--parts/documentation/plugins/doxygen/docdoxygenplugin.h2
-rw-r--r--parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp4
-rw-r--r--parts/documentation/plugins/kdevtoc/dockdevtocplugin.h2
-rw-r--r--parts/documentation/plugins/pdb/docpdbplugin.cpp2
-rw-r--r--parts/documentation/plugins/pdb/docpdbplugin.h2
-rw-r--r--parts/documentation/plugins/pdf/docpdfplugin.cpp2
-rw-r--r--parts/documentation/plugins/pdf/docpdfplugin.h2
-rw-r--r--parts/documentation/plugins/qt/docqtplugin.cpp4
-rw-r--r--parts/documentation/plugins/qt/docqtplugin.h2
-rw-r--r--parts/documentation/searchview.cpp2
-rw-r--r--parts/documentation/searchview.h4
39 files changed, 104 insertions, 104 deletions
diff --git a/parts/documentation/bookmarkview.cpp b/parts/documentation/bookmarkview.cpp
index 4581361d..5cf527ab 100644
--- a/parts/documentation/bookmarkview.cpp
+++ b/parts/documentation/bookmarkview.cpp
@@ -84,11 +84,11 @@ TQString DocBookmarkOwner::currentTitle() const
class DocBookmarkItem: public DocumentationItem {
public:
- DocBookmarkItem(Type type, KListView *parent, const TQString &name)
+ DocBookmarkItem(Type type, TDEListView *parent, const TQString &name)
:DocumentationItem(type, parent, name)
{
}
- DocBookmarkItem(Type type, KListView *parent, DocumentationItem *after, const TQString &name)
+ DocBookmarkItem(Type type, TDEListView *parent, DocumentationItem *after, const TQString &name)
:DocumentationItem(type, parent, after, name)
{
}
@@ -114,7 +114,7 @@ BookmarkView::BookmarkView(DocumentationWidget *parent, const char *name)
m_bmOwner = new DocBookmarkOwner(m_widget->part());
TQVBoxLayout *l = new TQVBoxLayout(this, 0, KDialog::spacingHint());
- m_view = new KListView(this);
+ m_view = new TDEListView(this);
m_view->addColumn(i18n("Title"));
m_view->setSorting(-1);
m_view->header()->hide();
@@ -215,7 +215,7 @@ void BookmarkView::addBookmark()
TQString title = m_bmOwner->currentTitle();
TQString url = m_bmOwner->currentURL();
- KPopupMenu menu;
+ TDEPopupMenu menu;
bool useMenu = false;
if (!title.isEmpty() && !url.isEmpty())
{
diff --git a/parts/documentation/bookmarkview.h b/parts/documentation/bookmarkview.h
index c2877607..36283e0c 100644
--- a/parts/documentation/bookmarkview.h
+++ b/parts/documentation/bookmarkview.h
@@ -24,7 +24,7 @@
#include <kbookmarkmanager.h>
-class KListView;
+class TDEListView;
class KPushButton;
class DocumentationPart;
class DocumentationWidget;
@@ -71,7 +71,7 @@ protected slots:
private:
DocumentationWidget *m_widget;
- KListView *m_view;
+ TDEListView *m_view;
KPushButton *m_addButton;
KPushButton *m_editButton;
KPushButton *m_removeButton;
diff --git a/parts/documentation/contentsview.cpp b/parts/documentation/contentsview.cpp
index 2581f5a0..42b4be64 100644
--- a/parts/documentation/contentsview.cpp
+++ b/parts/documentation/contentsview.cpp
@@ -37,7 +37,7 @@ ContentsView::ContentsView(DocumentationWidget *parent, const char *name)
:TQWidget(parent, name), m_widget(parent)
{
TQVBoxLayout *cl = new TQVBoxLayout(this, 0, 0);
- m_view = new KListView(this);
+ m_view = new TDEListView(this);
cl->addWidget(m_view);
m_view->addColumn(i18n( "Contents" ));
diff --git a/parts/documentation/contentsview.h b/parts/documentation/contentsview.h
index 9ba4c743..e170b7dc 100644
--- a/parts/documentation/contentsview.h
+++ b/parts/documentation/contentsview.h
@@ -25,7 +25,7 @@
class FindDocumentation;
class DocumentationWidget;
class TQListViewItem;
-class KListView;
+class TDEListView;
class ContentsView : public TQWidget
{
@@ -35,7 +35,7 @@ public:
ContentsView(DocumentationWidget *parent, const char *name = 0);
~ContentsView();
- KListView *view() const { return m_view; }
+ TDEListView *view() const { return m_view; }
protected slots:
void itemExecuted(TQListViewItem *item, const TQPoint &p, int col);
@@ -46,7 +46,7 @@ protected:
private:
DocumentationWidget *m_widget;
- KListView *m_view;
+ TDEListView *m_view;
friend class FindDocumentation;
};
diff --git a/parts/documentation/docconfiglistview.cpp b/parts/documentation/docconfiglistview.cpp
index b8d6071c..055daeb5 100644
--- a/parts/documentation/docconfiglistview.cpp
+++ b/parts/documentation/docconfiglistview.cpp
@@ -24,7 +24,7 @@
#include "kdevdocumentationplugin.h"
DocConfigListView::DocConfigListView(TQWidget *parent, const char *name)
- :KListView(parent, name)
+ :TDEListView(parent, name)
{
// setSorting(-1);
addColumn(i18n("TOC"));
diff --git a/parts/documentation/docconfiglistview.h b/parts/documentation/docconfiglistview.h
index d2082a60..474655b0 100644
--- a/parts/documentation/docconfiglistview.h
+++ b/parts/documentation/docconfiglistview.h
@@ -22,7 +22,7 @@
#include <klistview.h>
-class DocConfigListView : public KListView
+class DocConfigListView : public TDEListView
{
Q_OBJECT
diff --git a/parts/documentation/docglobalconfigwidget.cpp b/parts/documentation/docglobalconfigwidget.cpp
index 5cea1004..df41666b 100644
--- a/parts/documentation/docglobalconfigwidget.cpp
+++ b/parts/documentation/docglobalconfigwidget.cpp
@@ -157,7 +157,7 @@ void DocGlobalConfigWidget::addCollectionButtonClicked()
}
}
-KListView *DocGlobalConfigWidget::activeView()
+TDEListView *DocGlobalConfigWidget::activeView()
{
return m_View;
}
diff --git a/parts/documentation/docglobalconfigwidget.h b/parts/documentation/docglobalconfigwidget.h
index 65be086e..c2d08a37 100644
--- a/parts/documentation/docglobalconfigwidget.h
+++ b/parts/documentation/docglobalconfigwidget.h
@@ -27,7 +27,7 @@
class DocumentationPart;
class DocumentationWidget;
class DocumentationPlugin;
-class KListView;
+class TDEListView;
class DocGlobalConfigWidget : public DocGlobalConfigWidgetBase
{
@@ -51,7 +51,7 @@ public slots:
protected:
/*$PROTECTED_FUNCTIONS$*/
- KListView *activeView();
+ TDEListView *activeView();
void updateConfigForHTMLParts();
protected slots:
@@ -61,7 +61,7 @@ private:
DocumentationPart *m_part;
DocumentationWidget *m_widget;
- KListView * m_View;
+ TDEListView * m_View;
};
#endif
diff --git a/parts/documentation/docglobalconfigwidgetbase.ui b/parts/documentation/docglobalconfigwidgetbase.ui
index 5efa3b92..12c4de1a 100644
--- a/parts/documentation/docglobalconfigwidgetbase.ui
+++ b/parts/documentation/docglobalconfigwidgetbase.ui
@@ -363,12 +363,12 @@
<cstring>standardFont_combo</cstring>
</property>
</widget>
- <widget class="KFontCombo" row="0" column="1">
+ <widget class="TDEFontCombo" row="0" column="1">
<property name="name">
<cstring>standardFont_combo</cstring>
</property>
</widget>
- <widget class="KFontCombo" row="1" column="1">
+ <widget class="TDEFontCombo" row="1" column="1">
<property name="name">
<cstring>fixedFont_combo</cstring>
</property>
diff --git a/parts/documentation/documentation_part.cpp b/parts/documentation/documentation_part.cpp
index 71054460..e618c2a3 100644
--- a/parts/documentation/documentation_part.cpp
+++ b/parts/documentation/documentation_part.cpp
@@ -204,12 +204,12 @@ bool DocumentationPart::configure(int page)
void DocumentationPart::setupActions()
{
-/* KActionMenu *menu = new KActionMenu(i18n("&Bookmarks"), actionCollection(), "doc_bookmarks");
+/* TDEActionMenu *menu = new TDEActionMenu(i18n("&Bookmarks"), actionCollection(), "doc_bookmarks");
KBookmarkMenu *bm = new KBookmarkMenu(new DocBookmarkManager(this),
new DocBookmarkOwner(this), menu->popupMenu(), actionCollection(), true);*/
- KAction *action;
+ TDEAction *action;
- action = new KAction(i18n("&Search in Documentation..."), CTRL+ALT+Key_S,
+ action = new TDEAction(i18n("&Search in Documentation..."), CTRL+ALT+Key_S,
this, TQT_SLOT(searchInDocumentation()),
actionCollection(), "help_search_in_doc" );
action->setToolTip(i18n("Full text search in the documentation"));
@@ -220,7 +220,7 @@ void DocumentationPart::setupActions()
"full text index must be created first, which can be done in the "
"configuration dialog of the documentation plugin."));
- action = new KAction(i18n("&Look in Documentation Index..."), CTRL+ALT+Key_I,
+ action = new TDEAction(i18n("&Look in Documentation Index..."), CTRL+ALT+Key_I,
this, TQT_SLOT(lookInDocumentationIndex()),
actionCollection(), "help_look_in_index" );
action->setToolTip(i18n("Look in the documentation index"));
@@ -229,19 +229,19 @@ void DocumentationPart::setupActions()
"a term to be entered which will be looked for in "
"the documentation index."));
- action = new KAction(i18n("Man Page..."), 0,
+ action = new TDEAction(i18n("Man Page..."), 0,
this, TQT_SLOT(manPage()),
actionCollection(), "help_manpage" );
action->setToolTip(i18n("Show a manpage"));
action->setWhatsThis(i18n("<b>Show a manpage</b><p>Opens a man page using embedded viewer."));
- action = new KAction(i18n("Info Page..."), 0,
+ action = new TDEAction(i18n("Info Page..."), 0,
this, TQT_SLOT(infoPage()),
actionCollection(), "help_infopage");
action->setToolTip(i18n("Show an infopage"));
action->setWhatsThis(i18n("<b>Show an infopage</b><p>Opens an info page using embedded viewer."));
- action = new KAction(i18n("Find Documentation..."), 0,
+ action = new TDEAction(i18n("Find Documentation..."), 0,
this, TQT_SLOT(findInDocumentation()),
actionCollection(), "help_find_documentation");
action->setToolTip(i18n("Find Documentation"));
diff --git a/parts/documentation/documentation_widget.cpp b/parts/documentation/documentation_widget.cpp
index e7bbc6c3..c591d84e 100644
--- a/parts/documentation/documentation_widget.cpp
+++ b/parts/documentation/documentation_widget.cpp
@@ -134,7 +134,7 @@ void DocumentationWidget::focusInEvent(TQFocusEvent */*e*/)
m_tab->currentItem()->setFocus();
}
-KListView * DocumentationWidget::contents( ) const
+TDEListView * DocumentationWidget::contents( ) const
{
return m_contents->view();
}
diff --git a/parts/documentation/documentation_widget.h b/parts/documentation/documentation_widget.h
index ecb1e473..a813b393 100644
--- a/parts/documentation/documentation_widget.h
+++ b/parts/documentation/documentation_widget.h
@@ -32,7 +32,7 @@ class TQToolBox;
class IndexBox;
class SearchView;
class BookmarkView;
-class KListView;
+class TDEListView;
class DocumentationWidget : public TQWidget
{
@@ -44,7 +44,7 @@ public:
DocumentationPart *part() const { return m_part; }
- KListView *contents() const;
+ TDEListView *contents() const;
IndexBox *index() const;
public slots:
diff --git a/parts/documentation/docutils.cpp b/parts/documentation/docutils.cpp
index 79fa9915..12fb1dd1 100644
--- a/parts/documentation/docutils.cpp
+++ b/parts/documentation/docutils.cpp
@@ -75,7 +75,7 @@ void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const T
void DocUtils::docItemPopup(DocumentationPart *part, const TQString &title, const KURL &url,
const TQPoint &pos, bool showBookmark, bool showSearch)
{
- KPopupMenu menu;
+ TDEPopupMenu menu;
menu.insertTitle(i18n("Documentation"));
menu.insertItem(i18n("Open in Current Tab"), 1);
menu.insertItem(i18n("Open in New Tab"), 2);
diff --git a/parts/documentation/docutils.h b/parts/documentation/docutils.h
index dd19c936..a10c4e36 100644
--- a/parts/documentation/docutils.h
+++ b/parts/documentation/docutils.h
@@ -23,7 +23,7 @@
#include <tqstring.h>
class KURLRequester;
-class KPopupMenu;
+class TDEPopupMenu;
class DocumentationItem;
class DocumentationPart;
class TQPoint;
diff --git a/parts/documentation/find_documentation.cpp b/parts/documentation/find_documentation.cpp
index e5068635..9e97ecce 100644
--- a/parts/documentation/find_documentation.cpp
+++ b/parts/documentation/find_documentation.cpp
@@ -157,7 +157,7 @@ void FindDocumentation::procManReadStdout( TDEProcess*, char* buf, int len)
void FindDocumentation::searchInInfo()
{
- info_item = new KListViewItem(result_list, last_item, "Info");
+ info_item = new TDEListViewItem(result_list, last_item, "Info");
info_item->setOpen(true);
last_item = info_item;
@@ -175,7 +175,7 @@ void FindDocumentation::searchInInfo()
void FindDocumentation::searchInMan()
{
- man_item = new KListViewItem( result_list, last_item, i18n("Manual") );
+ man_item = new TDEListViewItem( result_list, last_item, i18n("Manual") );
man_item->setOpen(true);
last_item = man_item;
@@ -194,7 +194,7 @@ void FindDocumentation::searchInMan()
void FindDocumentation::searchInGoogle()
{
- google_item = new KListViewItem(result_list, last_item, "Google");
+ google_item = new TDEListViewItem(result_list, last_item, "Google");
google_item->setOpen(true);
last_item = google_item;
@@ -213,7 +213,7 @@ void FindDocumentation::searchInGoogle()
void FindDocumentation::searchInContents()
{
- contents_item = new KListViewItem( result_list, last_item, i18n("Contents") );
+ contents_item = new TDEListViewItem( result_list, last_item, i18n("Contents") );
contents_item->setOpen(true);
last_item = contents_item;
@@ -246,7 +246,7 @@ void FindDocumentation::searchInContents()
void FindDocumentation::searchInIndex()
{
- index_item =new KListViewItem(result_list, last_item , "Index");
+ index_item =new TDEListViewItem(result_list, last_item , "Index");
index_item->setOpen(true);
last_item = index_item;
diff --git a/parts/documentation/find_documentation.h b/parts/documentation/find_documentation.h
index 28d867c3..b1fb6f05 100644
--- a/parts/documentation/find_documentation.h
+++ b/parts/documentation/find_documentation.h
@@ -26,7 +26,7 @@
#include "find_documentationbase.h"
class DocumentationWidget;
-class KListViewItem;
+class TDEListViewItem;
class FindDocumentationOptions;
class TDEProcess;
@@ -68,12 +68,12 @@ private:
TDEProcess* proc_info;
TQString proc_man_out;
TQString proc_info_out;
- KListViewItem* man_item;
- KListViewItem* info_item;
- KListViewItem* index_item;
- KListViewItem* google_item;
- KListViewItem* contents_item;
- KListViewItem* last_item;
+ TDEListViewItem* man_item;
+ TDEListViewItem* info_item;
+ TDEListViewItem* index_item;
+ TDEListViewItem* google_item;
+ TDEListViewItem* contents_item;
+ TDEListViewItem* last_item;
DocumentationWidget* m_widget;
FindDocumentationOptions* m_options;
bool first_match_found;
diff --git a/parts/documentation/find_documentationbase.ui b/parts/documentation/find_documentationbase.ui
index 455bb860..cae5096a 100644
--- a/parts/documentation/find_documentationbase.ui
+++ b/parts/documentation/find_documentationbase.ui
@@ -77,7 +77,7 @@
</size>
</property>
</spacer>
- <widget class="KListView" row="2" column="0" rowspan="1" colspan="3">
+ <widget class="TDEListView" row="2" column="0" rowspan="1" colspan="3">
<column>
<property name="text">
<string></string>
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;
};
diff --git a/parts/documentation/plugins/chm/docchmplugin.cpp b/parts/documentation/plugins/chm/docchmplugin.cpp
index e17ec86b..be624209 100644
--- a/parts/documentation/plugins/chm/docchmplugin.cpp
+++ b/parts/documentation/plugins/chm/docchmplugin.cpp
@@ -51,7 +51,7 @@ DocCHMPlugin::~DocCHMPlugin()
}
-DocumentationCatalogItem* DocCHMPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
+DocumentationCatalogItem* DocCHMPlugin::createCatalog(TDEListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
@@ -127,12 +127,12 @@ void DocCHMPlugin::createIndex(IndexBox* // index
}
-static KListViewItem* chainEnd(KListViewItem *parent) {
+static TDEListViewItem* chainEnd(TDEListViewItem *parent) {
if(parent == 0) return 0;
- KListViewItem* ret = dynamic_cast<KListViewItem*>(parent->firstChild());
+ TDEListViewItem* ret = dynamic_cast<TDEListViewItem*>(parent->firstChild());
if(ret == 0) return 0;
while(ret->nextSibling() != 0) {
- ret = dynamic_cast<KListViewItem*>(ret->nextSibling());
+ ret = dynamic_cast<TDEListViewItem*>(ret->nextSibling());
}
return ret;
}
diff --git a/parts/documentation/plugins/chm/docchmplugin.h b/parts/documentation/plugins/chm/docchmplugin.h
index 7caf3b58..452e1c09 100644
--- a/parts/documentation/plugins/chm/docchmplugin.h
+++ b/parts/documentation/plugins/chm/docchmplugin.h
@@ -35,7 +35,7 @@ public:
virtual void setCatalogURL(DocumentationCatalogItem* item);
virtual TQString catalogTitle(const TQString& url);
virtual TQPair<KFile::Mode, TQString> catalogLocatorProps();
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(TDEListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/custom/doccustomplugin.cpp b/parts/documentation/plugins/custom/doccustomplugin.cpp
index cbf966a6..bc6488bf 100644
--- a/parts/documentation/plugins/custom/doccustomplugin.cpp
+++ b/parts/documentation/plugins/custom/doccustomplugin.cpp
@@ -55,7 +55,7 @@ TQString DocCustomPlugin::pluginName() const
return i18n("Custom Documentation Collection");
}
-DocumentationCatalogItem* DocCustomPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
+DocumentationCatalogItem* DocCustomPlugin::createCatalog(TDEListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
diff --git a/parts/documentation/plugins/custom/doccustomplugin.h b/parts/documentation/plugins/custom/doccustomplugin.h
index cabd2554..f83daf1a 100644
--- a/parts/documentation/plugins/custom/doccustomplugin.h
+++ b/parts/documentation/plugins/custom/doccustomplugin.h
@@ -29,7 +29,7 @@ public:
virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(TDEListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp
index d794f2a3..c3865940 100644
--- a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp
+++ b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp
@@ -41,7 +41,7 @@ class DevHelpDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
DevHelpDocumentationCatalogItem(const TQString &devHelpFile, DocumentationPlugin* plugin,
- KListView *parent, const TQString &name)
+ TDEListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_devHelpFile(devHelpFile)
{
}
@@ -85,7 +85,7 @@ DocDevHelpPlugin::~DocDevHelpPlugin()
{
}
-DocumentationCatalogItem* DocDevHelpPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
+DocumentationCatalogItem* DocDevHelpPlugin::createCatalog(TDEListView* contents, const TQString& title, const TQString& url)
{
return new DevHelpDocumentationCatalogItem(url, this, contents, title);
}
diff --git a/parts/documentation/plugins/devhelp/docdevhelpplugin.h b/parts/documentation/plugins/devhelp/docdevhelpplugin.h
index e49fd198..6436a1d8 100644
--- a/parts/documentation/plugins/devhelp/docdevhelpplugin.h
+++ b/parts/documentation/plugins/devhelp/docdevhelpplugin.h
@@ -40,7 +40,7 @@ public:
virtual void createTOC(DocumentationCatalogItem* item);
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(TDEListView* contents, const TQString& title, const TQString& url);
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/djvu/docdjvuplugin.cpp b/parts/documentation/plugins/djvu/docdjvuplugin.cpp
index c156a085..7cb92879 100644
--- a/parts/documentation/plugins/djvu/docdjvuplugin.cpp
+++ b/parts/documentation/plugins/djvu/docdjvuplugin.cpp
@@ -52,7 +52,7 @@ TQString DocDjvuPlugin::pluginName() const
return i18n("Djvu Documentation Collection");
}
-DocumentationCatalogItem* DocDjvuPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
+DocumentationCatalogItem* DocDjvuPlugin::createCatalog(TDEListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
diff --git a/parts/documentation/plugins/djvu/docdjvuplugin.h b/parts/documentation/plugins/djvu/docdjvuplugin.h
index 4dda28fc..6bff409c 100644
--- a/parts/documentation/plugins/djvu/docdjvuplugin.h
+++ b/parts/documentation/plugins/djvu/docdjvuplugin.h
@@ -29,7 +29,7 @@ public:
virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(TDEListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp b/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp
index 13cee5d0..3309622e 100644
--- a/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp
+++ b/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp
@@ -44,7 +44,7 @@ class DoxyDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
DoxyDocumentationCatalogItem(const TQString &origUrl, DocumentationPlugin* plugin,
- KListView *parent, const TQString &name)
+ TDEListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_origUrl(origUrl)
{
}
@@ -328,7 +328,7 @@ void DocDoxygenPlugin::createTOC(DocumentationCatalogItem* item)
} while (!dirStack.isEmpty());
}
-DocumentationCatalogItem *DocDoxygenPlugin::createCatalog(KListView *contents, const TQString &title, const TQString &url)
+DocumentationCatalogItem *DocDoxygenPlugin::createCatalog(TDEListView *contents, const TQString &title, const TQString &url)
{
kdDebug() << "DocDoxygenPlugin::createCatalog: url=" << url << endl;
DocumentationCatalogItem *item = new DoxyDocumentationCatalogItem(url, this, contents, title);
diff --git a/parts/documentation/plugins/doxygen/docdoxygenplugin.h b/parts/documentation/plugins/doxygen/docdoxygenplugin.h
index b38bf406..ebd4a540 100644
--- a/parts/documentation/plugins/doxygen/docdoxygenplugin.h
+++ b/parts/documentation/plugins/doxygen/docdoxygenplugin.h
@@ -35,7 +35,7 @@ public:
virtual TQString pluginName() const;
- virtual DocumentationCatalogItem *createCatalog(KListView *contents, const TQString &title, const TQString &url);
+ virtual DocumentationCatalogItem *createCatalog(TDEListView *contents, const TQString &title, const TQString &url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp
index 681fdbba..cf0676a2 100644
--- a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp
+++ b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp
@@ -43,7 +43,7 @@ class TOCDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
TOCDocumentationCatalogItem(const TQString &tocFile, DocumentationPlugin* plugin,
- KListView *parent, const TQString &name)
+ TDEListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_tocFile(tocFile)
{
}
@@ -80,7 +80,7 @@ TQString DocKDevTOCPlugin::pluginName() const
return i18n("TDevelopTOC Documentation Collection");
}
-DocumentationCatalogItem* DocKDevTOCPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
+DocumentationCatalogItem* DocKDevTOCPlugin::createCatalog(TDEListView* contents, const TQString& title, const TQString& url)
{
return new TOCDocumentationCatalogItem(url, this, contents, title);
}
diff --git a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h
index 43e475ee..7205cc4c 100644
--- a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h
+++ b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h
@@ -35,7 +35,7 @@ public:
virtual TQString pluginName() const;
virtual TQString catalogTitle(const TQString& url);
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(TDEListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/pdb/docpdbplugin.cpp b/parts/documentation/plugins/pdb/docpdbplugin.cpp
index 06692f6c..8ad1dc43 100644
--- a/parts/documentation/plugins/pdb/docpdbplugin.cpp
+++ b/parts/documentation/plugins/pdb/docpdbplugin.cpp
@@ -52,7 +52,7 @@ TQString DocPDBPlugin::pluginName() const
return i18n("PalmDoc Documentation Collection");
}
-DocumentationCatalogItem* DocPDBPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
+DocumentationCatalogItem* DocPDBPlugin::createCatalog(TDEListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
diff --git a/parts/documentation/plugins/pdb/docpdbplugin.h b/parts/documentation/plugins/pdb/docpdbplugin.h
index 5fb85cdd..40dd3a15 100644
--- a/parts/documentation/plugins/pdb/docpdbplugin.h
+++ b/parts/documentation/plugins/pdb/docpdbplugin.h
@@ -29,7 +29,7 @@ public:
virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(TDEListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/pdf/docpdfplugin.cpp b/parts/documentation/plugins/pdf/docpdfplugin.cpp
index 9bc4285a..0e1373a0 100644
--- a/parts/documentation/plugins/pdf/docpdfplugin.cpp
+++ b/parts/documentation/plugins/pdf/docpdfplugin.cpp
@@ -52,7 +52,7 @@ TQString DocPDFPlugin::pluginName() const
return i18n("PDF Documentation Collection");
}
-DocumentationCatalogItem* DocPDFPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
+DocumentationCatalogItem* DocPDFPlugin::createCatalog(TDEListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
diff --git a/parts/documentation/plugins/pdf/docpdfplugin.h b/parts/documentation/plugins/pdf/docpdfplugin.h
index 0d97101b..d5ecc7eb 100644
--- a/parts/documentation/plugins/pdf/docpdfplugin.h
+++ b/parts/documentation/plugins/pdf/docpdfplugin.h
@@ -29,7 +29,7 @@ public:
virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(TDEListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
diff --git a/parts/documentation/plugins/qt/docqtplugin.cpp b/parts/documentation/plugins/qt/docqtplugin.cpp
index 19017d96..69a52a64 100644
--- a/parts/documentation/plugins/qt/docqtplugin.cpp
+++ b/parts/documentation/plugins/qt/docqtplugin.cpp
@@ -41,7 +41,7 @@ class TQtDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
TQtDocumentationCatalogItem(const TQString &dcfFile, DocumentationPlugin* plugin,
- KListView *parent, const TQString &name)
+ TDEListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_dcfFile(dcfFile)
{
}
@@ -331,7 +331,7 @@ TQString DocQtPlugin::catalogTitle(const TQString &url)
return docEl.attribute("title", TQString());
}
-DocumentationCatalogItem *DocQtPlugin::createCatalog(KListView *contents, const TQString &title, const TQString &url)
+DocumentationCatalogItem *DocQtPlugin::createCatalog(TDEListView *contents, const TQString &title, const TQString &url)
{
return new TQtDocumentationCatalogItem(url, this, contents, title);
}
diff --git a/parts/documentation/plugins/qt/docqtplugin.h b/parts/documentation/plugins/qt/docqtplugin.h
index 53dd6740..8eac8456 100644
--- a/parts/documentation/plugins/qt/docqtplugin.h
+++ b/parts/documentation/plugins/qt/docqtplugin.h
@@ -35,7 +35,7 @@ public:
virtual TQString pluginName() const;
- virtual DocumentationCatalogItem *createCatalog(KListView *contents, const TQString &title, const TQString &url);
+ virtual DocumentationCatalogItem *createCatalog(TDEListView *contents, const TQString &title, const TQString &url);
virtual void createTOC(DocumentationCatalogItem *item);
virtual void setCatalogURL(DocumentationCatalogItem *item);
diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp
index 28e3a2eb..47131b03 100644
--- a/parts/documentation/searchview.cpp
+++ b/parts/documentation/searchview.cpp
@@ -80,7 +80,7 @@ SearchView::SearchView(DocumentationPart *part, TQWidget *parent, const char *na
l3->addWidget(m_sortMethodBox, 1, 1);
TQVBoxLayout *l4 = new TQVBoxLayout(l, 0);
- m_view = new KListView(this);
+ m_view = new TDEListView(this);
TQLabel *vLabel = new TQLabel(m_view, i18n("Search &results:"), this);
l4->addWidget(vLabel);
l4->addWidget(m_view);
diff --git a/parts/documentation/searchview.h b/parts/documentation/searchview.h
index cf7062c7..7c3602c1 100644
--- a/parts/documentation/searchview.h
+++ b/parts/documentation/searchview.h
@@ -25,7 +25,7 @@
class DocumentationPart;
class KLineEdit;
class KComboBox;
-class KListView;
+class TDEListView;
class KPushButton;
class TDEProcess;
class TQListViewItem;
@@ -65,7 +65,7 @@ private:
KLineEdit *m_edit;
KComboBox *m_searchMethodBox;
KComboBox *m_sortMethodBox;
- KListView *m_view;
+ TDEListView *m_view;
KPushButton *m_configButton;
KPushButton *m_indexButton;
KPushButton *m_goSearchButton;