From f78eb03afb8c9a380985d26286afc40b4c89b292 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:15:35 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- parts/abbrev/abbrevpart.cpp | 6 +- parts/appwizard/appwizarddlg.cpp | 10 +-- parts/appwizard/appwizarddlg.h | 6 +- parts/appwizard/appwizarddlgbase.ui | 2 +- parts/appwizard/appwizardpart.cpp | 6 +- parts/astyle/astyle_part.cpp | 4 +- parts/astyle/astyle_part.h | 4 +- parts/bookmarks/bookmarks_widget.cpp | 4 +- parts/bookmarks/bookmarks_widget.h | 2 +- parts/classview/classtoolwidget.cpp | 6 +- parts/classview/classtoolwidget.h | 2 +- parts/classview/classtreebase.cpp | 8 +- parts/classview/classtreebase.h | 8 +- parts/classview/classviewpart.cpp | 6 +- parts/classview/classviewpart.h | 6 +- parts/classview/classviewwidget.cpp | 22 +++--- parts/classview/classviewwidget.h | 22 +++--- parts/classview/navigator.cpp | 6 +- parts/classview/navigator.h | 4 +- parts/ctags2/ctags2_part.cpp | 10 +-- parts/ctags2/ctags2_settingswidgetbase.ui | 2 +- parts/ctags2/ctags2_widgetbase.ui | 2 +- parts/diff/diffpart.cpp | 2 +- parts/distpart/distpart_part.cpp | 2 +- parts/distpart/distpart_part.h | 2 +- parts/distpart/distpart_ui.ui | 4 +- parts/documentation/bookmarkview.cpp | 8 +- parts/documentation/bookmarkview.h | 4 +- parts/documentation/contentsview.cpp | 2 +- parts/documentation/contentsview.h | 6 +- parts/documentation/docconfiglistview.cpp | 2 +- parts/documentation/docconfiglistview.h | 2 +- parts/documentation/docglobalconfigwidget.cpp | 2 +- parts/documentation/docglobalconfigwidget.h | 6 +- parts/documentation/docglobalconfigwidgetbase.ui | 4 +- parts/documentation/documentation_part.cpp | 14 ++-- parts/documentation/documentation_widget.cpp | 2 +- parts/documentation/documentation_widget.h | 4 +- parts/documentation/docutils.cpp | 2 +- parts/documentation/docutils.h | 2 +- parts/documentation/find_documentation.cpp | 10 +-- parts/documentation/find_documentation.h | 14 ++-- parts/documentation/find_documentationbase.ui | 2 +- .../interfaces/kdevdocumentationplugin.cpp | 36 ++++----- .../interfaces/kdevdocumentationplugin.h | 30 ++++---- parts/documentation/plugins/chm/docchmplugin.cpp | 8 +- parts/documentation/plugins/chm/docchmplugin.h | 2 +- .../plugins/custom/doccustomplugin.cpp | 2 +- .../documentation/plugins/custom/doccustomplugin.h | 2 +- .../plugins/devhelp/docdevhelpplugin.cpp | 4 +- .../plugins/devhelp/docdevhelpplugin.h | 2 +- parts/documentation/plugins/djvu/docdjvuplugin.cpp | 2 +- parts/documentation/plugins/djvu/docdjvuplugin.h | 2 +- .../plugins/doxygen/docdoxygenplugin.cpp | 4 +- .../plugins/doxygen/docdoxygenplugin.h | 2 +- .../plugins/kdevtoc/dockdevtocplugin.cpp | 4 +- .../plugins/kdevtoc/dockdevtocplugin.h | 2 +- parts/documentation/plugins/pdb/docpdbplugin.cpp | 2 +- parts/documentation/plugins/pdb/docpdbplugin.h | 2 +- parts/documentation/plugins/pdf/docpdfplugin.cpp | 2 +- parts/documentation/plugins/pdf/docpdfplugin.h | 2 +- parts/documentation/plugins/qt/docqtplugin.cpp | 4 +- parts/documentation/plugins/qt/docqtplugin.h | 2 +- parts/documentation/searchview.cpp | 2 +- parts/documentation/searchview.h | 4 +- parts/doxygen/doxygenpart.cpp | 10 +-- parts/doxygen/doxygenpart.h | 8 +- parts/filecreate/filecreate_listitem.cpp | 10 +-- parts/filecreate/filecreate_listitem.h | 2 +- parts/filecreate/filecreate_part.cpp | 8 +- parts/filecreate/filecreate_part.h | 8 +- parts/filecreate/filecreate_widget3.cpp | 4 +- parts/filecreate/filecreate_widget3.h | 2 +- parts/filelist/filelist_widget.cpp | 6 +- parts/filelist/filelist_widget.h | 2 +- parts/filelist/projectviewpart.cpp | 10 +-- parts/filelist/projectviewpart.h | 16 ++-- parts/filelist/toolbarguibuilder.cpp | 2 +- parts/filelist/toolbarguibuilder.h | 2 +- parts/fileselector/fileselector_part.cpp | 2 +- parts/fileselector/fileselector_part.h | 4 +- parts/fileselector/fileselector_widget.cpp | 36 ++++----- parts/fileselector/fileselector_widget.h | 14 ++-- parts/fileselector/kactionselector.cpp | 88 +++++++++++----------- parts/fileselector/kactionselector.h | 10 +-- parts/fileselector/kbookmarkhandler.cpp | 4 +- parts/fileselector/kbookmarkhandler.h | 10 +-- parts/fileview/filegroupswidget.cpp | 14 ++-- parts/fileview/filegroupswidget.h | 8 +- parts/fileview/filetreeviewwidgetimpl.cpp | 2 +- parts/fileview/filetreeviewwidgetimpl.h | 4 +- parts/fileview/filetreewidget.cpp | 8 +- parts/fileview/filetreewidget.h | 2 +- parts/fileview/vcsfiletreewidgetimpl.cpp | 4 +- parts/fileview/vcsfiletreewidgetimpl.h | 8 +- parts/filter/filterpart.cpp | 6 +- parts/fullscreen/fullscreen_part.h | 4 +- parts/grepview/grepviewpart.cpp | 4 +- parts/grepview/grepviewwidget.cpp | 4 +- parts/openwith/openwithpart.cpp | 6 +- parts/outputviews/appoutputwidget.cpp | 2 +- parts/outputviews/makeviewpart.cpp | 6 +- parts/partexplorer/partexplorer_plugin.cpp | 2 +- parts/partexplorer/partexplorerform.cpp | 16 ++-- parts/quickopen/quickopen_part.cpp | 8 +- parts/quickopen/quickopen_part.h | 10 +-- parts/quickopen/quickopenbase.ui | 2 +- parts/quickopen/quickopenfunctionchooseformbase.ui | 4 +- parts/regexptest/regexptestpart.cpp | 4 +- parts/replace/replace_part.cpp | 2 +- parts/replace/replace_part.h | 4 +- parts/replace/replaceview.cpp | 2 +- parts/replace/replaceview.h | 2 +- parts/scripting/scriptingpart.h | 2 +- parts/snippet/snippet_part.cpp | 2 +- parts/snippet/snippet_widget.cpp | 12 +-- parts/snippet/snippet_widget.h | 6 +- parts/texttools/texttoolswidget.cpp | 10 +-- parts/texttools/texttoolswidget.h | 4 +- parts/tipofday/tipofday_part.cpp | 4 +- parts/tools/kapplicationtree.cpp | 6 +- parts/tools/kapplicationtree.h | 4 +- parts/tools/tools_part.cpp | 8 +- parts/valgrind/valgrind_part.cpp | 4 +- parts/valgrind/valgrind_widget.cpp | 8 +- parts/valgrind/valgrind_widget.h | 6 +- parts/vcsmanager/vcsmanagerpart.h | 2 +- 127 files changed, 420 insertions(+), 420 deletions(-) (limited to 'parts') diff --git a/parts/abbrev/abbrevpart.cpp b/parts/abbrev/abbrevpart.cpp index ccfe6be6..beadb5fa 100644 --- a/parts/abbrev/abbrevpart.cpp +++ b/parts/abbrev/abbrevpart.cpp @@ -76,14 +76,14 @@ AbbrevPart::AbbrevPart(TQObject *parent, const char *name, const TQStringList &) connect(core(), TQT_SIGNAL(configWidget(KDialogBase*)), this, TQT_SLOT(configWidget(KDialogBase*))); - KAction *action; - action = new KAction( i18n("Expand Text"), CTRL + Key_J, + TDEAction *action; + action = new TDEAction( i18n("Expand Text"), CTRL + Key_J, this, TQT_SLOT(slotExpandText()), actionCollection(), "edit_expandtext" ); action->setToolTip( i18n("Expand current word") ); action->setWhatsThis( i18n("Expand current word

Current word can be completed using the list of similar words in source files.") ); - action = new KAction( i18n("Expand Abbreviation"), CTRL + Key_L, + action = new TDEAction( i18n("Expand Abbreviation"), CTRL + Key_L, this, TQT_SLOT(slotExpandAbbrev()), actionCollection(), "edit_expandabbrev" ); action->setToolTip( i18n("Expand abbreviation") ); diff --git a/parts/appwizard/appwizarddlg.cpp b/parts/appwizard/appwizarddlg.cpp index 1d641040..41e52a03 100644 --- a/parts/appwizard/appwizarddlg.cpp +++ b/parts/appwizard/appwizarddlg.cpp @@ -104,10 +104,10 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const ch templates_listview->header()->hide(); templates_listview->setColumnWidthMode(0, TQListView::Maximum); //to provide horiz scrollbar. - m_templatesMenu = new KPopupMenu(templates_listview); + m_templatesMenu = new TDEPopupMenu(templates_listview); m_templatesMenu->insertItem(i18n("&Add to Favorites"), this, TQT_SLOT(addTemplateToFavourites())); - m_favouritesMenu = new KPopupMenu(favourites_iconview); + m_favouritesMenu = new TDEPopupMenu(favourites_iconview); m_favouritesMenu->insertItem(i18n("&Remove Favorite"), this, TQT_SLOT(removeFavourite())); m_pathIsValid=false; @@ -269,7 +269,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const ch TQListViewItem *item = m_categoryMap.find(ait.current()->category); if (item) { - item = new KListViewItem(item, ait.current()->name); + item = new TDEListViewItem(item, ait.current()->name); item->setPixmap(0, SmallIcon("tdevelop")); } else @@ -971,9 +971,9 @@ void AppWizardDialog::insertCategoryIntoTreeView(const TQString &completeCategor TQListViewItem *item = m_categoryMap.find(category); if (!item) { // not found, create it if (!pParentItem) - pParentItem = new KListViewItem(templates_listview,*it); + pParentItem = new TDEListViewItem(templates_listview,*it); else - pParentItem = new KListViewItem(pParentItem,*it); + pParentItem = new TDEListViewItem(pParentItem,*it); pParentItem->setPixmap(0, SmallIcon("folder")); //pParentItem->setOpen(true); diff --git a/parts/appwizard/appwizarddlg.h b/parts/appwizard/appwizarddlg.h index 7f177e9b..859b1524 100644 --- a/parts/appwizard/appwizarddlg.h +++ b/parts/appwizard/appwizarddlg.h @@ -20,7 +20,7 @@ class TQRadioButton; class KTempFile; class TQWidgetStack; class TQVBox; -class KPopupMenu; +class TDEPopupMenu; class TQHBoxLayout; class KArchiveDirectory; class KArchiveFile; @@ -192,8 +192,8 @@ private: //data bool m_projectLocationWasChanged; VcsForm *m_vcsForm; bool m_pathIsValid; - KPopupMenu* m_favouritesMenu; - KPopupMenu* m_templatesMenu; + TDEPopupMenu* m_favouritesMenu; + TDEPopupMenu* m_templatesMenu; TQDict m_licenses; TQDict m_integrators; diff --git a/parts/appwizard/appwizarddlgbase.ui b/parts/appwizard/appwizarddlgbase.ui index 525aeef0..a2303139 100644 --- a/parts/appwizard/appwizarddlgbase.ui +++ b/parts/appwizard/appwizarddlgbase.ui @@ -41,7 +41,7 @@ unnamed - + diff --git a/parts/appwizard/appwizardpart.cpp b/parts/appwizard/appwizardpart.cpp index f08e0c87..bcc21127 100644 --- a/parts/appwizard/appwizardpart.cpp +++ b/parts/appwizard/appwizardpart.cpp @@ -40,9 +40,9 @@ AppWizardPart::AppWizardPart(TQObject *parent, const char *name, const TQStringL setInstance(AppWizardFactory::instance()); setXMLFile("kdevappwizard.rc"); - KAction *action; + TDEAction *action; - action = new KAction( i18n("&New Project..."), "window_new", 0, + action = new TDEAction( i18n("&New Project..."), "window_new", 0, this, TQT_SLOT(slotNewProject()), actionCollection(), "project_new" ); action->setToolTip( i18n("Generate a new project from a template") ); @@ -51,7 +51,7 @@ AppWizardPart::AppWizardPart(TQObject *parent, const char *name, const TQStringL "It helps you to generate a skeleton for your " "application from a set of templates.") ); - action = new KAction( i18n("&Import Existing Project..."),"wizard", 0, + action = new TDEAction( i18n("&Import Existing Project..."),"wizard", 0, this, TQT_SLOT(slotImportProject()), actionCollection(), "project_import" ); action->setToolTip( i18n("Import existing project") ); diff --git a/parts/astyle/astyle_part.cpp b/parts/astyle/astyle_part.cpp index ed0720a4..f9d95ed6 100644 --- a/parts/astyle/astyle_part.cpp +++ b/parts/astyle/astyle_part.cpp @@ -50,13 +50,13 @@ AStylePart::AStylePart(TQObject *parent, const char *name, const TQStringList &) setXMLFile("kdevpart_astyle.rc"); - formatTextAction = new KAction(i18n("&Reformat Source"), 0, this, TQT_SLOT(beautifySource()), actionCollection(), "edit_astyle"); + formatTextAction = new TDEAction(i18n("&Reformat Source"), 0, this, TQT_SLOT(beautifySource()), actionCollection(), "edit_astyle"); formatTextAction->setEnabled(false); formatTextAction->setToolTip(i18n("Reformat source")); formatTextAction->setWhatsThis(i18n("Reformat source

Source reformatting functionality using astyle library. " "Also available in New Class and Subclassing wizards.")); - formatFileAction = new KAction(i18n("Format files"), 0, this, TQT_SLOT(formatFilesSelect()), actionCollection(), "tools_astyle"); + formatFileAction = new TDEAction(i18n("Format files"), 0, this, TQT_SLOT(formatFilesSelect()), actionCollection(), "tools_astyle"); formatFileAction->setEnabled(false); formatFileAction->setToolTip(i18n("Format files")); formatFileAction->setWhatsThis(i18n("Fomat files

Formatting functionality using astyle library. " diff --git a/parts/astyle/astyle_part.h b/parts/astyle/astyle_part.h index eed15022..cd7c757e 100644 --- a/parts/astyle/astyle_part.h +++ b/parts/astyle/astyle_part.h @@ -61,8 +61,8 @@ private: void loadGlobal(); ConfigWidgetProxy *m_configProxy; - KAction *formatTextAction; - KAction *formatFileAction; + TDEAction *formatTextAction; + TDEAction *formatFileAction; // the configurable options. TQMap m_project; diff --git a/parts/bookmarks/bookmarks_widget.cpp b/parts/bookmarks/bookmarks_widget.cpp index a5eec6a3..f15f6289 100644 --- a/parts/bookmarks/bookmarks_widget.cpp +++ b/parts/bookmarks/bookmarks_widget.cpp @@ -139,7 +139,7 @@ private: }; BookmarksWidget::BookmarksWidget(BookmarksPart *part) - : KListView(0, "bookmarks widget"), TQToolTip( viewport() ), + : TDEListView(0, "bookmarks widget"), TQToolTip( viewport() ), _part( part ) { @@ -263,7 +263,7 @@ void BookmarksWidget::popupMenu( TQListViewItem * item, const TQPoint & p, int ) { _selectedItem = static_cast(item); - KPopupMenu popup; + TDEPopupMenu popup; if ( _selectedItem->isBookmark() ) { diff --git a/parts/bookmarks/bookmarks_widget.h b/parts/bookmarks/bookmarks_widget.h index bc8c90ca..ed645e0e 100644 --- a/parts/bookmarks/bookmarks_widget.h +++ b/parts/bookmarks/bookmarks_widget.h @@ -26,7 +26,7 @@ class BookmarksPart; class BookmarkItem; class BookmarksConfig; -class BookmarksWidget : public KListView, public TQToolTip +class BookmarksWidget : public TDEListView, public TQToolTip { Q_OBJECT diff --git a/parts/classview/classtoolwidget.cpp b/parts/classview/classtoolwidget.cpp index 41020bd0..878cd44b 100644 --- a/parts/classview/classtoolwidget.cpp +++ b/parts/classview/classtoolwidget.cpp @@ -29,11 +29,11 @@ ClassToolWidget::~ClassToolWidget() {} -KPopupMenu *ClassToolWidget::createPopup() +TDEPopupMenu *ClassToolWidget::createPopup() { - KPopupMenu *popup = contextItem? contextItem->createPopup() : 0; + TDEPopupMenu *popup = contextItem? contextItem->createPopup() : 0; if (!popup) { - popup = new KPopupMenu(this); + popup = new TDEPopupMenu(this); popup->insertTitle(i18n("Class Tool")); } diff --git a/parts/classview/classtoolwidget.h b/parts/classview/classtoolwidget.h index 07182f4e..526d5696 100644 --- a/parts/classview/classtoolwidget.h +++ b/parts/classview/classtoolwidget.h @@ -32,7 +32,7 @@ public: void insertAllClassAttributes(ParsedClass *parsedClass, PIAccess filter); protected: - virtual KPopupMenu *createPopup(); + virtual TDEPopupMenu *createPopup(); private: void addClassAndAttributes(ParsedClass *parsedClass, PIAccess filter, ClassTreeItem **lastItem); diff --git a/parts/classview/classtreebase.cpp b/parts/classview/classtreebase.cpp index 6aefc1fa..43604b42 100644 --- a/parts/classview/classtreebase.cpp +++ b/parts/classview/classtreebase.cpp @@ -31,14 +31,14 @@ #include "classviewpart.h" #include "classtooldlg.h" -KPopupMenu *ClassTreeItem::createPopup() +TDEPopupMenu *ClassTreeItem::createPopup() { if (!m_item || m_item->itemType() == PIT_SCOPE) return 0; KDevLanguageSupport::Features features = classTree()->m_part->languageSupport()->features(); - KPopupMenu *popup = new KPopupMenu(); + TDEPopupMenu *popup = new TDEPopupMenu(); if (features & KDevLanguageSupport::Declarations) popup->insertItem( i18n("Go to Declaration"), classTree(), TQT_SLOT(slotGotoDeclaration()) ); if (m_item->itemType() == PIT_METHOD) @@ -448,7 +448,7 @@ void ClassToolTip::maybeTip(const TQPoint &p) ClassTreeBase::ClassTreeBase(ClassViewPart *part, TQWidget *parent, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { setFocusPolicy(ClickFocus); setRootIsDecorated(true); @@ -572,7 +572,7 @@ void ClassTreeBase::slotContextMenuRequested(TQListViewItem *item, const TQPoint { contextItem = static_cast(item); - KPopupMenu *popup = createPopup(); + TDEPopupMenu *popup = createPopup(); popup->exec(p); delete popup; } diff --git a/parts/classview/classtreebase.h b/parts/classview/classtreebase.h index 25ef4f91..fb218387 100644 --- a/parts/classview/classtreebase.h +++ b/parts/classview/classtreebase.h @@ -24,10 +24,10 @@ #include "parsedscript.h" class ClassTreeItem; -class KPopupMenu; +class TDEPopupMenu; -class ClassTreeBase : public KListView +class ClassTreeBase : public TDEListView { Q_OBJECT @@ -43,7 +43,7 @@ protected: void setTreeState(TreeState state); ClassTreeItem *contextItem; - virtual KPopupMenu *createPopup() = 0; + virtual TDEPopupMenu *createPopup() = 0; private slots: void slotItemExecuted(TQListViewItem*); @@ -98,7 +98,7 @@ public: // m_item has been deleted. void notify() { m_item = 0; } - KPopupMenu *createPopup(); + TDEPopupMenu *createPopup(); bool isOrganizer() { return !m_item; } void init() { diff --git a/parts/classview/classviewpart.cpp b/parts/classview/classviewpart.cpp index a30f6158..7bf70310 100644 --- a/parts/classview/classviewpart.cpp +++ b/parts/classview/classviewpart.cpp @@ -195,7 +195,7 @@ void ClassViewPart::slotProjectClosed( ) void ClassViewPart::setupActions( ) { - m_functionsnav = new KListViewAction( new KComboView(true, 150, 0, "m_functionsnav_combo", new FunctionCompletion() ), i18n("Functions Navigation"), 0, 0, 0, actionCollection(), "functionsnav_combo", true ); + m_functionsnav = new TDEListViewAction( new KComboView(true, 150, 0, "m_functionsnav_combo", new FunctionCompletion() ), i18n("Functions Navigation"), 0, 0, 0, actionCollection(), "functionsnav_combo", true ); connect(m_functionsnav->view(), TQT_SIGNAL(activated(TQListViewItem*)), navigator, TQT_SLOT(selectFunctionNav(TQListViewItem*))); // m_functionsnav->view()->setEditable(false); connect(m_functionsnav->view(), TQT_SIGNAL(focusGranted()), navigator, TQT_SLOT(functionNavFocused())); @@ -205,11 +205,11 @@ void ClassViewPart::setupActions( ) // m_functionsnav->view()->setCurrentText(NAV_NODEFINITION); m_functionsnav->view()->setDefaultText(NAV_NODEFINITION); - new KAction( i18n("Focus Navigator"), 0, this, TQT_SLOT(slotFocusNavbar()), actionCollection(), "focus_navigator" ); + new TDEAction( i18n("Focus Navigator"), 0, this, TQT_SLOT(slotFocusNavbar()), actionCollection(), "focus_navigator" ); if (langHasFeature(KDevLanguageSupport::Classes)) { - KAction *ac = new KAction(i18n("Class Inheritance Diagram"), "view_tree", 0, this, TQT_SLOT(graphicalClassView()), actionCollection(), "inheritance_dia"); + TDEAction *ac = new TDEAction(i18n("Class Inheritance Diagram"), "view_tree", 0, this, TQT_SLOT(graphicalClassView()), actionCollection(), "inheritance_dia"); ac->setToolTip(i18n("Class inheritance diagram")); ac->setWhatsThis(i18n("Class inheritance diagram

Displays inheritance relationship between classes in project. " "Note, it does not display classes outside inheritance hierarchy.")); diff --git a/parts/classview/classviewpart.h b/parts/classview/classviewpart.h index 18ecdad4..271830ba 100644 --- a/parts/classview/classviewpart.h +++ b/parts/classview/classviewpart.h @@ -46,9 +46,9 @@ namespace KTextEditor class ClassViewWidget; -class KListViewAction; +class TDEListViewAction; class TQListViewItem; -class KToolBarPopupAction; +class TDEToolBarPopupAction; class NamespaceItem; class Navigator; class HierarchyDialog; @@ -62,7 +62,7 @@ public: bool langHasFeature(KDevLanguageSupport::Features feature); - KListViewAction *m_functionsnav; + TDEListViewAction *m_functionsnav; Navigator *navigator; inline ClassViewWidget* widget() { diff --git a/parts/classview/classviewwidget.cpp b/parts/classview/classviewwidget.cpp index 6fdf32ae..9142d110 100644 --- a/parts/classview/classviewwidget.cpp +++ b/parts/classview/classviewwidget.cpp @@ -49,7 +49,7 @@ // namespace ?!? ClassViewWidget::ClassViewWidget( ClassViewPart * part ) - : KListView( 0, "ClassViewWidget" ), TQToolTip( viewport() ), m_part( part ), m_projectDirectoryLength( 0 ) + : TDEListView( 0, "ClassViewWidget" ), TQToolTip( viewport() ), m_part( part ), m_projectDirectoryLength( 0 ) { addColumn( "" ); header()->hide(); @@ -67,32 +67,32 @@ ClassViewWidget::ClassViewWidget( ClassViewPart * part ) TQStringList lst; lst << i18n( "Group by Directories" ) << i18n( "Plain List" ) << i18n( "Java Like Mode" ); - m_actionViewMode = new KSelectAction( i18n("View Mode"), KShortcut(), m_part->actionCollection(), "classview_mode" ); + m_actionViewMode = new TDESelectAction( i18n("View Mode"), TDEShortcut(), m_part->actionCollection(), "classview_mode" ); m_actionViewMode->setItems( lst ); m_actionViewMode->setWhatsThis(i18n("View mode

Class browser items can be grouped by directories, listed in a plain or java like view.")); - m_actionNewClass = new KAction( i18n("New Class..."), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotNewClass()), + m_actionNewClass = new TDEAction( i18n("New Class..."), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotNewClass()), m_part->actionCollection(), "classview_new_class" ); m_actionNewClass->setWhatsThis(i18n("New class

Calls the New Class wizard.")); - m_actionCreateAccessMethods = new KAction( i18n("Create get/set Methods"), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotCreateAccessMethods()), m_part->actionCollection(), "classview_create_access_methods" ); + m_actionCreateAccessMethods = new TDEAction( i18n("Create get/set Methods"), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotCreateAccessMethods()), m_part->actionCollection(), "classview_create_access_methods" ); - m_actionAddMethod = new KAction( i18n("Add Method..."), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotAddMethod()), + m_actionAddMethod = new TDEAction( i18n("Add Method..."), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotAddMethod()), m_part->actionCollection(), "classview_add_method" ); m_actionAddMethod->setWhatsThis(i18n("Add method

Calls the New Method wizard.")); - m_actionAddAttribute = new KAction( i18n("Add Attribute..."), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotAddAttribute()), + m_actionAddAttribute = new TDEAction( i18n("Add Attribute..."), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotAddAttribute()), m_part->actionCollection(), "classview_add_attribute" ); m_actionAddAttribute->setWhatsThis(i18n("Add attribute

Calls the New Attribute wizard.")); - m_actionOpenDeclaration = new KAction( i18n("Open Declaration"), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotOpenDeclaration()), + m_actionOpenDeclaration = new TDEAction( i18n("Open Declaration"), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotOpenDeclaration()), m_part->actionCollection(), "classview_open_declaration" ); m_actionOpenDeclaration->setWhatsThis(i18n("Open declaration

Opens a file where the selected item is declared and jumps to the declaration line.")); - m_actionOpenImplementation = new KAction( i18n("Open Implementation"), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotOpenImplementation()), + m_actionOpenImplementation = new TDEAction( i18n("Open Implementation"), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotOpenImplementation()), m_part->actionCollection(), "classview_open_implementation" ); m_actionOpenImplementation->setWhatsThis(i18n("Open implementation

Opens a file where the selected item is defined (implemented) and jumps to the definition line.")); - m_actionFollowEditor = new KToggleAction( i18n("Follow Editor"), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" ); + m_actionFollowEditor = new TDEToggleAction( i18n("Follow Editor"), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" ); TDEConfig* config = m_part->instance()->config(); config->setGroup( "General" ); @@ -138,7 +138,7 @@ void ClassViewWidget::slotExecuted( TQListViewItem* item ) void ClassViewWidget::clear( ) { - KListView::clear(); + TDEListView::clear(); removedText.clear(); m_projectItem = 0; } @@ -315,7 +315,7 @@ void ClassViewWidget::removeFile( const TQString& fileName ) void ClassViewWidget::contentsContextMenuEvent( TQContextMenuEvent * ev ) { - KPopupMenu menu( this ); + TDEPopupMenu menu( this ); ClassViewItem* item = dynamic_cast( selectedItem() ); diff --git a/parts/classview/classviewwidget.h b/parts/classview/classviewwidget.h index e3113035..586ac41e 100644 --- a/parts/classview/classviewwidget.h +++ b/parts/classview/classviewwidget.h @@ -40,10 +40,10 @@ class ClassDomBrowserItem; class TypeAliasDomBrowserItem; class FunctionDomBrowserItem; class VariableDomBrowserItem; -class KSelectAction; -class KToggleAction; +class TDESelectAction; +class TDEToggleAction; -class ClassViewWidget : public KListView, public TQToolTip +class ClassViewWidget : public TDEListView, public TQToolTip { Q_OBJECT @@ -98,14 +98,14 @@ private: TQString m_projectDirectory; int m_projectDirectoryLength; FolderBrowserItem* m_projectItem; - KSelectAction* m_actionViewMode; - KAction* m_actionNewClass; - KAction* m_actionAddMethod; - KAction* m_actionAddAttribute; - KAction* m_actionOpenDeclaration; - KAction* m_actionOpenImplementation; - KAction* m_actionCreateAccessMethods; - KToggleAction * m_actionFollowEditor; + TDESelectAction* m_actionViewMode; + TDEAction* m_actionNewClass; + TDEAction* m_actionAddMethod; + TDEAction* m_actionAddAttribute; + TDEAction* m_actionOpenDeclaration; + TDEAction* m_actionOpenImplementation; + TDEAction* m_actionCreateAccessMethods; + TDEToggleAction * m_actionFollowEditor; bool m_doFollowEditor; friend class ClassViewItem; friend class FolderBrowserItem; diff --git a/parts/classview/navigator.cpp b/parts/classview/navigator.cpp index f5959d73..b79847d1 100644 --- a/parts/classview/navigator.cpp +++ b/parts/classview/navigator.cpp @@ -110,14 +110,14 @@ Navigator::Navigator(ClassViewPart *parent, const char *name) m_state = GoToDefinitions; m_navNoDefinition = true; - m_actionSyncWithEditor = new KAction( i18n("Sync ClassView"), "view_tree", KShortcut(), this, + m_actionSyncWithEditor = new TDEAction( i18n("Sync ClassView"), "view_tree", TDEShortcut(), this, TQT_SLOT(slotSyncWithEditor()), m_part->actionCollection(), "classview_sync_with_editor" ); - KAction * action = new KAction( i18n("Jump to next function"), CTRL+ALT+Key_PageDown, this, + TDEAction * action = new TDEAction( i18n("Jump to next function"), CTRL+ALT+Key_PageDown, this, TQT_SLOT(slotJumpToNextFunction()), m_part->actionCollection(), "navigator_jump_to_next_function" ); action->plug( &m_dummyActionWidget ); - action = new KAction( i18n("Jump to previous function"), CTRL+ALT+Key_PageUp, this, + action = new TDEAction( i18n("Jump to previous function"), CTRL+ALT+Key_PageUp, this, TQT_SLOT(slotJumpToPreviousFunction()), m_part->actionCollection(), "navigator_jump_to_previous_function" ); action->plug( &m_dummyActionWidget ); diff --git a/parts/classview/navigator.h b/parts/classview/navigator.h index 6444f8a6..ed0c3ffb 100644 --- a/parts/classview/navigator.h +++ b/parts/classview/navigator.h @@ -29,7 +29,7 @@ class TextPaintStyleStore; class TQTimer; class ClassViewPart; class TQListViewItem; -class KAction; +class TDEAction; #define NAV_NODEFINITION "(no function)" @@ -79,7 +79,7 @@ private: NavigationState m_state; TQWidget m_dummyActionWidget; - KAction* m_actionSyncWithEditor; + TDEAction* m_actionSyncWithEditor; bool m_navNoDefinition; diff --git a/parts/ctags2/ctags2_part.cpp b/parts/ctags2/ctags2_part.cpp index 0f4f7b5c..e5b48dba 100644 --- a/parts/ctags2/ctags2_part.cpp +++ b/parts/ctags2/ctags2_part.cpp @@ -88,11 +88,11 @@ CTags2Part::CTags2Part(TQObject *parent, const char *name, const TQStringList& ) connect( _configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )), this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )) ); - new KAction( i18n("Lookup Current Text"), 0, CTRL+Key_Underscore, this, TQT_SLOT(slotLookup()), actionCollection(), "ctags_lookup_shortcut"); - new KAction( i18n("Lookup Current Text as Declaration"), 0, CTRL+Key_Semicolon, this, TQT_SLOT(slotLookupDeclaration()), actionCollection(), "ctags_declaration_shortcut"); - new KAction( i18n("Lookup Current Text as Definition"), 0, CTRL+Key_Colon, this, TQT_SLOT(slotLookupDefinition()), actionCollection(), "ctags_definition_shortcut"); - new KAction( i18n("Jump to Next Match"), 0, 0, this, TQT_SLOT(slotGoToNext()), actionCollection(), "ctags_jump_to_next"); - new KAction( i18n("Open Lookup Dialog"), 0, 0, this, TQT_SLOT(slotOpenLookup()), actionCollection(), "ctags_input_shortcut"); + new TDEAction( i18n("Lookup Current Text"), 0, CTRL+Key_Underscore, this, TQT_SLOT(slotLookup()), actionCollection(), "ctags_lookup_shortcut"); + new TDEAction( i18n("Lookup Current Text as Declaration"), 0, CTRL+Key_Semicolon, this, TQT_SLOT(slotLookupDeclaration()), actionCollection(), "ctags_declaration_shortcut"); + new TDEAction( i18n("Lookup Current Text as Definition"), 0, CTRL+Key_Colon, this, TQT_SLOT(slotLookupDefinition()), actionCollection(), "ctags_definition_shortcut"); + new TDEAction( i18n("Jump to Next Match"), 0, 0, this, TQT_SLOT(slotGoToNext()), actionCollection(), "ctags_jump_to_next"); + new TDEAction( i18n("Open Lookup Dialog"), 0, 0, this, TQT_SLOT(slotOpenLookup()), actionCollection(), "ctags_input_shortcut"); } diff --git a/parts/ctags2/ctags2_settingswidgetbase.ui b/parts/ctags2/ctags2_settingswidgetbase.ui index c96d04a2..275c1e4b 100644 --- a/parts/ctags2/ctags2_settingswidgetbase.ui +++ b/parts/ctags2/ctags2_settingswidgetbase.ui @@ -297,7 +297,7 @@ - + Name diff --git a/parts/ctags2/ctags2_widgetbase.ui b/parts/ctags2/ctags2_widgetbase.ui index 0d0b0d6c..0218e21b 100644 --- a/parts/ctags2/ctags2_widgetbase.ui +++ b/parts/ctags2/ctags2_widgetbase.ui @@ -22,7 +22,7 @@ 2 - + Tag diff --git a/parts/diff/diffpart.cpp b/parts/diff/diffpart.cpp index 4d36bd17..14ce5d0d 100644 --- a/parts/diff/diffpart.cpp +++ b/parts/diff/diffpart.cpp @@ -57,7 +57,7 @@ DiffPart::DiffPart(TQObject *parent, const char *name, const TQStringList &) mainWindow()->embedOutputView( diffWidget, nm, i18n("Output of the diff command") ); mainWindow()->setViewAvailable( diffWidget, false ); - KAction *action = new KAction( i18n("Difference Viewer..."), 0, + TDEAction *action = new TDEAction( i18n("Difference Viewer..."), 0, this, TQT_SLOT(slotExecDiff()), actionCollection(), "tools_diff" ); action->setToolTip(i18n("Difference viewer")); diff --git a/parts/distpart/distpart_part.cpp b/parts/distpart/distpart_part.cpp index 77e69705..b6e86da0 100644 --- a/parts/distpart/distpart_part.cpp +++ b/parts/distpart/distpart_part.cpp @@ -45,7 +45,7 @@ DistpartPart::DistpartPart(TQObject *parent, const char *name, const TQStringLis setXMLFile("kdevpart_distpart.rc"); - m_action = new KAction( i18n("Distribution && Publishing"), "package", 0, + m_action = new TDEAction( i18n("Distribution && Publishing"), "package", 0, this, TQT_SLOT(show()), actionCollection(), "make_dist" ); diff --git a/parts/distpart/distpart_part.h b/parts/distpart/distpart_part.h index de89c18d..4b907353 100644 --- a/parts/distpart/distpart_part.h +++ b/parts/distpart/distpart_part.h @@ -48,7 +48,7 @@ public slots: private: packageBase *RpmPackage, *LsmPackage; TQGuardedPtr m_dialog; - KAction *m_action; + TDEAction *m_action; TQGuardedPtr m_dlg; }; diff --git a/parts/distpart/distpart_ui.ui b/parts/distpart/distpart_ui.ui index 6182100f..3eec55e6 100644 --- a/parts/distpart/distpart_ui.ui +++ b/parts/distpart/distpart_ui.ui @@ -138,7 +138,7 @@ unnamed - + srcDistFileListBox @@ -942,7 +942,7 @@ Build Files unnamed - + uploadFileListBox 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 -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 -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 @@ standardFont_combo - + standardFont_combo - + fixedFont_combo 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("Show a manpage

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("Show an infopage

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 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 @@ - + 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(); } -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 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 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 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 /**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(parent->firstChild()); + TDEListViewItem* ret = dynamic_cast(parent->firstChild()); if(ret == 0) return 0; while(ret->nextSibling() != 0) { - ret = dynamic_cast(ret->nextSibling()); + ret = dynamic_cast(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 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; diff --git a/parts/doxygen/doxygenpart.cpp b/parts/doxygen/doxygenpart.cpp index 50c916f2..b238f99c 100644 --- a/parts/doxygen/doxygenpart.cpp +++ b/parts/doxygen/doxygenpart.cpp @@ -57,15 +57,15 @@ DoxygenPart::DoxygenPart(TQObject *parent, const char *name, const TQStringList setInstance(DoxygenFactory::instance()); setXMLFile("kdevdoxygen.rc"); - KAction *action; - action = new KAction( i18n("Build API Documentation"), 0, + TDEAction *action; + action = new TDEAction( i18n("Build API Documentation"), 0, this, TQT_SLOT(slotDoxygen()), actionCollection(), "build_doxygen" ); action->setToolTip(i18n("Build API documentation")); action->setWhatsThis(i18n("Build API documentation

Runs doxygen on a project Doxyfile to generate API documentation. " "If the search engine is enabled in Doxyfile, this also runs doxytag to create it.")); - action = new KAction( i18n("Clean API Documentation"), 0, + action = new TDEAction( i18n("Clean API Documentation"), 0, this, TQT_SLOT(slotDoxClean()), actionCollection(), "clean_doxygen" ); action->setToolTip(i18n("Clean API documentation")); @@ -78,13 +78,13 @@ DoxygenPart::DoxygenPart(TQObject *parent, const char *name, const TQStringList connect( _configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )), this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )) ); - m_actionDocumentFunction = new KAction(i18n("Document Current Function"), 0, CTRL+SHIFT+Key_S, this, TQT_SLOT(slotDocumentFunction()), actionCollection(), "edit_document_function"); + m_actionDocumentFunction = new TDEAction(i18n("Document Current Function"), 0, CTRL+SHIFT+Key_S, this, TQT_SLOT(slotDocumentFunction()), actionCollection(), "edit_document_function"); m_actionDocumentFunction->setToolTip( i18n("Create a documentation template above a function")); m_actionDocumentFunction->setWhatsThis(i18n("Document Current Function

Creates a documentation template according to a function's signature above a function definition/declaration.")); m_tmpDir.setAutoDelete(true); connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part* ))); - m_actionPreview = new KAction(i18n("Preview Doxygen Output"), 0, CTRL+ALT+Key_P, this, TQT_SLOT(slotRunPreview()), actionCollection(), "show_preview_doxygen_output"); + m_actionPreview = new TDEAction(i18n("Preview Doxygen Output"), 0, CTRL+ALT+Key_P, this, TQT_SLOT(slotRunPreview()), actionCollection(), "show_preview_doxygen_output"); m_actionPreview->setToolTip( i18n("Show a preview of the Doxygen output of this file") ); m_actionPreview->setWhatsThis( i18n("Preview Doxygen output

Runs Doxygen over the current file and shows the created index.html.") ); diff --git a/parts/doxygen/doxygenpart.h b/parts/doxygen/doxygenpart.h index 0a6ea9b4..6882e932 100644 --- a/parts/doxygen/doxygenpart.h +++ b/parts/doxygen/doxygenpart.h @@ -25,7 +25,7 @@ class DoxygenDialog; class TQPopupMenu; class Context; -class KAction; +class TDEAction; class KDialogBase; class ConfigWidgetProxy; @@ -102,11 +102,11 @@ private: //needed for doxygen preview TQString m_file; KTempDir m_tmpDir; - KAction* m_action; + TDEAction* m_action; //needed for documentFunction - KAction* m_actionDocumentFunction; - KAction* m_actionPreview; + TDEAction* m_actionDocumentFunction; + TDEAction* m_actionPreview; KTextEditor::EditInterface* m_activeEditor; KTextEditor::ViewCursorInterface* m_cursor; }; diff --git a/parts/filecreate/filecreate_listitem.cpp b/parts/filecreate/filecreate_listitem.cpp index 09dd0dc4..d792ab26 100644 --- a/parts/filecreate/filecreate_listitem.cpp +++ b/parts/filecreate/filecreate_listitem.cpp @@ -21,7 +21,7 @@ namespace FileCreate { ListItem::ListItem(TQListView * listview, const FileType * filetype) : - KListViewItem(listview), m_filetype(filetype), + TDEListViewItem(listview), m_filetype(filetype), m_filetypeRenderer(NULL) { init(); @@ -29,7 +29,7 @@ namespace FileCreate { ListItem::ListItem(ListItem * listitem, const FileType * filetype) : - KListViewItem(listitem), m_filetype(filetype), + TDEListViewItem(listitem), m_filetype(filetype), m_filetypeRenderer(NULL) { init(); @@ -46,12 +46,12 @@ namespace FileCreate { m_filetypeRenderer = new TQSimpleRichText( text(1), listView()->font() ); m_filetypeRenderer->setWidth(listView()->columnWidth(1)); setHeight(m_filetypeRenderer->height()); - KListViewItem::setup(); + TDEListViewItem::setup(); } void ListItem::setHeight( int height ) { - KListViewItem::setHeight( TQMAX(TQMAX(height,m_iconHeight), m_filetypeRenderer->height() ) ); + TDEListViewItem::setHeight( TQMAX(TQMAX(height,m_iconHeight), m_filetypeRenderer->height() ) ); } void ListItem::prepareResize() { @@ -73,7 +73,7 @@ namespace FileCreate { return; } - KListViewItem::paintCell( p, cg, column, width, align ); + TDEListViewItem::paintCell( p, cg, column, width, align ); } void ListItem::init() diff --git a/parts/filecreate/filecreate_listitem.h b/parts/filecreate/filecreate_listitem.h index 5dae2dcd..6cb9ecc5 100644 --- a/parts/filecreate/filecreate_listitem.h +++ b/parts/filecreate/filecreate_listitem.h @@ -21,7 +21,7 @@ class TQSimpleRichText; namespace FileCreate { -class ListItem : public KListViewItem { +class ListItem : public TDEListViewItem { public: ListItem(TQListView *listview, const FileType *filetype); diff --git a/parts/filecreate/filecreate_part.cpp b/parts/filecreate/filecreate_part.cpp index 0c907db1..0d4db9bc 100644 --- a/parts/filecreate/filecreate_part.cpp +++ b/parts/filecreate/filecreate_part.cpp @@ -78,7 +78,7 @@ FileCreatePart::FileCreatePart(TQObject *parent, const char *name, const TQStrin this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )) ); - KToolBarPopupAction * newAction = new KToolBarPopupAction( i18n("&New"), "filenew", CTRL+TQt::Key_N, this, TQT_SLOT(slotNewFile()), actionCollection(), "file_new"); + TDEToolBarPopupAction * newAction = new TDEToolBarPopupAction( i18n("&New"), "filenew", CTRL+TQt::Key_N, this, TQT_SLOT(slotNewFile()), actionCollection(), "file_new"); newAction->setWhatsThis( i18n("New file

Creates a new file. Also adds it the project if the Add to project checkbox is turned on.") ); newAction->setToolTip( i18n("Create a new file") ); m_newPopupMenu = newAction->popupMenu(); @@ -140,13 +140,13 @@ void FileCreatePart::slotAboutToShowNewPopupMenu() m_newPopupMenu->setItemParameter( id, (long)filetype ); } else { - KPopupMenu* subMenu = NULL; + TDEPopupMenu* subMenu = NULL; TQPtrList subtypes = filetype->subtypes(); for(FileType * subtype = subtypes.first(); subtype; subtype=subtypes.next()) { if (subtype->enabled()){ if( !subMenu ) - subMenu = new KPopupMenu(0,0); + subMenu = new TDEPopupMenu(0,0); TQPixmap iconPix = m_iconLoader->loadIcon( subtype->icon(), KIcon::Desktop, KIcon::SizeSmall, KIcon::DefaultState, NULL, true); @@ -159,7 +159,7 @@ void FileCreatePart::slotAboutToShowNewPopupMenu() { if( !m_subPopups ) { - m_subPopups = new TQPtrList; + m_subPopups = new TQPtrList; m_subPopups->setAutoDelete(true); } m_subPopups->append( subMenu ); diff --git a/parts/filecreate/filecreate_part.h b/parts/filecreate/filecreate_part.h index 18a9ccb1..9d090493 100644 --- a/parts/filecreate/filecreate_part.h +++ b/parts/filecreate/filecreate_part.h @@ -23,7 +23,7 @@ #include "filecreate_typechooser.h" -class KPopupMenu; +class TDEPopupMenu; namespace FileCreate { class Widget; @@ -92,7 +92,7 @@ public slots: void slotNewFile(); /** - * Called from KToolBarPopupMenu to request a new file action + * Called from TDEToolBarPopupMenu to request a new file action * @param pFileType is acutally a pointer to FileType */ void slotNewFilePopup(int pFileType); @@ -137,8 +137,8 @@ private: ConfigWidgetProxy * _configProxy; - KPopupMenu* m_newPopupMenu; - TQPtrList* m_subPopups; + TDEPopupMenu* m_newPopupMenu; + TQPtrList* m_subPopups; }; diff --git a/parts/filecreate/filecreate_widget3.cpp b/parts/filecreate/filecreate_widget3.cpp index 2bc308b6..9226edf4 100644 --- a/parts/filecreate/filecreate_widget3.cpp +++ b/parts/filecreate/filecreate_widget3.cpp @@ -30,7 +30,7 @@ namespace FileCreate { ListWidget::ListWidget(FileCreatePart *part) - : KListView(0, "KDevFileCreate"), TypeChooser(part) + : TDEListView(0, "KDevFileCreate"), TypeChooser(part) { setIcon( SmallIcon("filenew2") ); setCaption(i18n("File Create")); @@ -82,7 +82,7 @@ namespace FileCreate { li->prepareResize(); li = dynamic_cast(li->nextSibling()); } - KListView::resizeEvent(event); + TDEListView::resizeEvent(event); } void ListWidget::refresh() { diff --git a/parts/filecreate/filecreate_widget3.h b/parts/filecreate/filecreate_widget3.h index cdc2e499..863e3d73 100644 --- a/parts/filecreate/filecreate_widget3.h +++ b/parts/filecreate/filecreate_widget3.h @@ -27,7 +27,7 @@ namespace FileCreate { class FileType; - class ListWidget : public KListView, public TypeChooser + class ListWidget : public TDEListView, public TypeChooser { Q_OBJECT diff --git a/parts/filelist/filelist_widget.cpp b/parts/filelist/filelist_widget.cpp index 93769573..150bd156 100644 --- a/parts/filelist/filelist_widget.cpp +++ b/parts/filelist/filelist_widget.cpp @@ -35,7 +35,7 @@ * @return */ FileListWidget::FileListWidget(ProjectviewPart *part, TQWidget *parent) - : KListView(parent), TQToolTip( viewport() ), _part( part ) + : TDEListView(parent), TQToolTip( viewport() ), _part( part ) { addColumn( "" ); header()->hide(); @@ -132,7 +132,7 @@ void FileListWidget::refreshFileList( ) TQStringList selections = storeSelections(); int scrollbarPos = verticalScrollBar()->value(); - KListView::clear(); + TDEListView::clear(); KURL::List list = _part->partController()->openURLs(); TQValueListIterator it = list.begin(); @@ -224,7 +224,7 @@ void FileListWidget::popupMenu( TQListViewItem * item, const TQPoint & p, int ) { if ( item ) { - KPopupMenu popup; + TDEPopupMenu popup; popup.insertTitle( i18n("File List") ); popup.insertItem( i18n("Close Selected"), this, TQT_SLOT(closeSelectedFiles()) ); popup.insertItem( i18n("Save Selected"), this, TQT_SLOT(saveSelectedFiles()) ); diff --git a/parts/filelist/filelist_widget.h b/parts/filelist/filelist_widget.h index 19ed6329..b61cd8cc 100644 --- a/parts/filelist/filelist_widget.h +++ b/parts/filelist/filelist_widget.h @@ -30,7 +30,7 @@ class FileListItem; namespace KParts { class Part; } -class FileListWidget : public KListView, public TQToolTip +class FileListWidget : public TDEListView, public TQToolTip { Q_OBJECT diff --git a/parts/filelist/projectviewpart.cpp b/parts/filelist/projectviewpart.cpp index e963ac9f..6763dff4 100644 --- a/parts/filelist/projectviewpart.cpp +++ b/parts/filelist/projectviewpart.cpp @@ -275,23 +275,23 @@ void ProjectviewPart::init() void ProjectviewPart::setupActions() { - m_openPrjViewAction = new KSelectAction(i18n("Open Session..."), 0, actionCollection(), "viewsession_open"); + m_openPrjViewAction = new TDESelectAction(i18n("Open Session..."), 0, actionCollection(), "viewsession_open"); connect(m_openPrjViewAction, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotOpenProjectView(const TQString &))); m_openPrjViewAction->setToolTip(i18n("Open Session")); - m_savePrjViewAction = new KAction(i18n("Save Session"), "filesave", 0, this, TQT_SLOT(slotSaveProjectView()), actionCollection(), "viewsession_save"); + m_savePrjViewAction = new TDEAction(i18n("Save Session"), "filesave", 0, this, TQT_SLOT(slotSaveProjectView()), actionCollection(), "viewsession_save"); - m_newPrjViewAction = new KAction(i18n("New Session..."), "filenew", 0, this, TQT_SLOT(slotSaveAsProjectView()), actionCollection(), "viewsession_new"); + m_newPrjViewAction = new TDEAction(i18n("New Session..."), "filenew", 0, this, TQT_SLOT(slotSaveAsProjectView()), actionCollection(), "viewsession_new"); - m_deletePrjViewAction = new KSelectAction(i18n("Delete Session"), "editdelete", 0, actionCollection(), "viewsession_delete"); + m_deletePrjViewAction = new TDESelectAction(i18n("Delete Session"), "editdelete", 0, actionCollection(), "viewsession_delete"); connect(m_deletePrjViewAction, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotDeleteProjectView(const TQString &))); m_deletePrjViewAction->setToolTip(i18n("Delete Session")); - m_deleteCurrentPrjViewAction = new KAction(i18n("Delete Session"), "editdelete", 0, this, TQT_SLOT(slotDeleteProjectViewCurent()), actionCollection(), "viewsession_deletecurrent"); + m_deleteCurrentPrjViewAction = new TDEAction(i18n("Delete Session"), "editdelete", 0, this, TQT_SLOT(slotDeleteProjectViewCurent()), actionCollection(), "viewsession_deletecurrent"); m_deleteCurrentPrjViewAction->setToolTip(i18n("Delete Session")); diff --git a/parts/filelist/projectviewpart.h b/parts/filelist/projectviewpart.h index d2924c61..732ef0f3 100644 --- a/parts/filelist/projectviewpart.h +++ b/parts/filelist/projectviewpart.h @@ -32,13 +32,13 @@ class TQPopupMenu; -class KAction; -class KSelectAction; +class TDEAction; +class TDESelectAction; class KDialogBase; class Context; class ConfigWidgetProxy; class FileListWidget; -class KToolBar; +class TDEToolBar; class TQVBox; class ToolbarGUIBuilder; @@ -147,11 +147,11 @@ private: ViewMap m_projectViews; //container for the views - KAction *m_savePrjViewAction; - KAction *m_newPrjViewAction; - KAction *m_deleteCurrentPrjViewAction; - KSelectAction *m_openPrjViewAction; - KSelectAction *m_deletePrjViewAction; + TDEAction *m_savePrjViewAction; + TDEAction *m_newPrjViewAction; + TDEAction *m_deleteCurrentPrjViewAction; + TDESelectAction *m_openPrjViewAction; + TDESelectAction *m_deletePrjViewAction; TQString m_currentProjectView; TQString m_defaultProjectView; // load this after project loaded diff --git a/parts/filelist/toolbarguibuilder.cpp b/parts/filelist/toolbarguibuilder.cpp index e292d092..03e9acfd 100644 --- a/parts/filelist/toolbarguibuilder.cpp +++ b/parts/filelist/toolbarguibuilder.cpp @@ -23,7 +23,7 @@ #include ToolbarGUIBuilder::ToolbarGUIBuilder(TQWidget *parent, TQWidget *widget) - : KXMLGUIBuilder(widget), KToolBar(parent, "ToolbarGUIbuilder"), m_parent(parent) + : KXMLGUIBuilder(widget), TDEToolBar(parent, "ToolbarGUIbuilder"), m_parent(parent) { // setHidden(true); setFrameStyle(0); diff --git a/parts/filelist/toolbarguibuilder.h b/parts/filelist/toolbarguibuilder.h index e81c300e..477e9c13 100644 --- a/parts/filelist/toolbarguibuilder.h +++ b/parts/filelist/toolbarguibuilder.h @@ -31,7 +31,7 @@ * toolview * @author Jens Herden */ -class ToolbarGUIBuilder : public KXMLGUIBuilder, public KToolBar +class ToolbarGUIBuilder : public KXMLGUIBuilder, public TDEToolBar { public: ToolbarGUIBuilder(TQWidget *parent, TQWidget *widget); diff --git a/parts/fileselector/fileselector_part.cpp b/parts/fileselector/fileselector_part.cpp index 82587ac0..a98200ed 100644 --- a/parts/fileselector/fileselector_part.cpp +++ b/parts/fileselector/fileselector_part.cpp @@ -54,7 +54,7 @@ FileSelectorPart::FileSelectorPart(TQObject *parent, const char *name, const TQS m_filetree->readConfig( instance()->config(), "fileselector" ); - m_newFileAction = new KAction(i18n("New File..."), CTRL+ALT+SHIFT+Key_N, this, TQT_SLOT(newFile()), this); + m_newFileAction = new TDEAction(i18n("New File..."), CTRL+ALT+SHIFT+Key_N, this, TQT_SLOT(newFile()), this); } FileSelectorPart::~FileSelectorPart() diff --git a/parts/fileselector/fileselector_part.h b/parts/fileselector/fileselector_part.h index c4cae6e1..f415444d 100644 --- a/parts/fileselector/fileselector_part.h +++ b/parts/fileselector/fileselector_part.h @@ -19,7 +19,7 @@ public: FileSelectorPart(TQObject *parent, const char *name, const TQStringList &); virtual ~FileSelectorPart(); - KAction *newFileAction() const { return m_newFileAction; } + TDEAction *newFileAction() const { return m_newFileAction; } public slots: // void showTip(); @@ -34,7 +34,7 @@ private slots: private: TQGuardedPtr m_filetree; - KAction *m_newFileAction; + TDEAction *m_newFileAction; }; diff --git a/parts/fileselector/fileselector_widget.cpp b/parts/fileselector/fileselector_widget.cpp index 284b24da..295ff957 100644 --- a/parts/fileselector/fileselector_widget.cpp +++ b/parts/fileselector/fileselector_widget.cpp @@ -77,7 +77,7 @@ static void silenceTQToolBar(TQtMsgType, const char *) KDevFileSelectorToolBar::KDevFileSelectorToolBar(TQWidget *parent) - : KToolBar( parent, "KDev FileSelector Toolbar", true ) + : TDEToolBar( parent, "KDev FileSelector Toolbar", true ) { setMinimumWidth(10); } @@ -87,7 +87,7 @@ KDevFileSelectorToolBar::~KDevFileSelectorToolBar() void KDevFileSelectorToolBar::setMovingEnabled( bool) { - KToolBar::setMovingEnabled(false); + TDEToolBar::setMovingEnabled(false); } @@ -121,7 +121,7 @@ KDevFileSelector::KDevFileSelector( FileSelectorPart *part, KDevMainWindow *main mainwin(mainWindow), partController(partController) { - mActionCollection = new KActionCollection( this ); + mActionCollection = new TDEActionCollection( this ); TQVBoxLayout* lo = new TQVBoxLayout(this); @@ -145,21 +145,21 @@ KDevFileSelector::KDevFileSelector( FileSelectorPart *part, KDevMainWindow *main dir = new KDevDirOperator(m_part, KURL(), this, "operator"); dir->setView(KFile::/*Simple*/Detail); - KActionCollection *coll = dir->actionCollection(); + TDEActionCollection *coll = dir->actionCollection(); // some shortcuts of diroperator that clashes with KDev - coll->action( "delete" )->setShortcut( KShortcut( ALT + Key_Delete ) ); - coll->action( "reload" )->setShortcut( KShortcut( ALT + Key_F5 ) ); - coll->action( "back" )->setShortcut( KShortcut( ALT + SHIFT + Key_Left ) ); - coll->action( "forward" )->setShortcut( KShortcut( ALT + SHIFT + Key_Right ) ); + coll->action( "delete" )->setShortcut( TDEShortcut( ALT + Key_Delete ) ); + coll->action( "reload" )->setShortcut( TDEShortcut( ALT + Key_F5 ) ); + coll->action( "back" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Left ) ); + coll->action( "forward" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Right ) ); // some consistency - reset up for dir too - coll->action( "up" )->setShortcut( KShortcut( ALT + SHIFT + Key_Up ) ); - coll->action( "home" )->setShortcut( KShortcut( CTRL + ALT + Key_Home ) ); + coll->action( "up" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Up ) ); + coll->action( "home" )->setShortcut( TDEShortcut( CTRL + ALT + Key_Home ) ); lo->addWidget(dir); lo->setStretchFactor(dir, 2); // bookmarks action! - KActionMenu *acmBookmarks = new KActionMenu( i18n("Bookmarks"), "bookmark", + TDEActionMenu *acmBookmarks = new TDEActionMenu( i18n("Bookmarks"), "bookmark", mActionCollection, "bookmarks" ); acmBookmarks->setDelayed( false ); @@ -185,9 +185,9 @@ KDevFileSelector::KDevFileSelector( FileSelectorPart *part, KDevMainWindow *main filter, TQT_SLOT( addToHistory(const TQString&) ) ); // kaction for the dir sync method - acSyncDir = new KAction( i18n("Current Document Directory"), "dirsynch", 0, + acSyncDir = new TDEAction( i18n("Current Document Directory"), "dirsynch", 0, TQT_TQOBJECT(this), TQT_SLOT( setActiveDocumentDir() ), mActionCollection, "sync_dir" ); - toolbar->setIconText( KToolBar::IconOnly ); + toolbar->setIconText( TDEToolBar::IconOnly ); toolbar->setIconSize( 16 ); toolbar->setEnableContextMenu( false ); @@ -299,7 +299,7 @@ void KDevFileSelector::setupToolbar( TDEConfig *config ) "short view" << "detailed view" << "bookmarks" << "sync_dir"; } - KAction *ac; + TDEAction *ac; for ( TQStringList::Iterator it=tbactions.begin(); it != tbactions.end(); ++it ) { if ( *it == "bookmarks" || *it == "sync_dir" ) @@ -586,7 +586,7 @@ KFSConfigPage::KFSConfigPage( TQWidget *parent, const char *name, KDevFileSelect // Toolbar - a lot for a little... TQGroupBox *gbToolbar = new TQGroupBox( 1, Qt::Vertical, i18n("Toolbar"), this ); - acSel = new KActionSelector( gbToolbar ); + acSel = new TDEActionSelector( gbToolbar ); acSel->setAvailableLabel( i18n("A&vailable actions:") ); acSel->setSelectedLabel( i18n("S&elected actions:") ); lo->addWidget( gbToolbar ); @@ -758,7 +758,7 @@ void KFSConfigPage::init() "show hidden" << "properties"*/ << "bookmarks" << "sync_dir"; TQRegExp re("&(?=[^&])"); - KAction *ac; + TDEAction *ac; TQListBox *lb; for ( TQStringList::Iterator it=allActions.begin(); it != allActions.end(); ++it ) { @@ -798,10 +798,10 @@ void KDevDirOperator::activatedMenu( const KFileItem *fi, const TQPoint & pos ) setupMenu(); updateSelectionDependentActions(); - KActionMenu * am = dynamic_cast(actionCollection()->action("popupMenu")); + TDEActionMenu * am = dynamic_cast(actionCollection()->action("popupMenu")); if (!am) return; - KPopupMenu *popup = am->popupMenu(); + TDEPopupMenu *popup = am->popupMenu(); popup->insertSeparator(); m_part->newFileAction()->plug(popup); diff --git a/parts/fileselector/fileselector_widget.h b/parts/fileselector/fileselector_widget.h index 7c80a6de..c95335a2 100644 --- a/parts/fileselector/fileselector_widget.h +++ b/parts/fileselector/fileselector_widget.h @@ -32,8 +32,8 @@ class KDevMainWindow; class KDevPartController; class FileSelectorPart; -class KActionCollection; -class KActionSelector; +class TDEActionCollection; +class TDEActionSelector; class KDirOperator; class KURLComboBox; class KHistoryCombo; @@ -57,7 +57,7 @@ namespace KTextEditor */ /* I think this fix for not moving toolbars is better */ -class KDevFileSelectorToolBar: public KToolBar +class KDevFileSelectorToolBar: public TDEToolBar { Q_OBJECT @@ -121,7 +121,7 @@ public: void setupToolbar( TDEConfig * ); void setView( KFile::FileView ); KDevDirOperator *dirOperator(){ return dir; } - KActionCollection *actionCollection() { return mActionCollection; }; + TDEActionCollection *actionCollection() { return mActionCollection; }; public slots: void slotFilterChange(const TQString&); @@ -147,11 +147,11 @@ protected: private: class KDevFileSelectorToolBar *toolbar; - KActionCollection *mActionCollection; + TDEActionCollection *mActionCollection; class KBookmarkHandler *bookmarkHandler; KURLComboBox *cmbPath; KDevDirOperator * dir; - class KAction *acSyncDir; + class TDEAction *acSyncDir; KHistoryCombo * filter; class TQToolButton *btnFilter; @@ -197,7 +197,7 @@ private: KDevFileSelector *fileSelector; bool bDirty; //class TQListBox *lbAvailableActions, *lbUsedActions; - KActionSelector *acSel; + TDEActionSelector *acSel; class TQSpinBox *sbPathHistLength, *sbFilterHistLength; class TQCheckBox *cbSyncOpen, *cbSyncActive, *cbSyncShow; class TQCheckBox *cbSesLocation, *cbSesFilter; diff --git a/parts/fileselector/kactionselector.cpp b/parts/fileselector/kactionselector.cpp index 3d2a67c3..0b5b3801 100644 --- a/parts/fileselector/kactionselector.cpp +++ b/parts/fileselector/kactionselector.cpp @@ -32,24 +32,24 @@ #include #include -class KActionSelectorPrivate { +class TDEActionSelectorPrivate { public: TQListBox *availableListBox, *selectedListBox; TQToolButton *btnAdd, *btnRemove, *btnUp, *btnDown; TQLabel *lAvailable, *lSelected; bool moveOnDoubleClick, keyboardEnabled; - KActionSelector::ButtonIconSize iconSize; + TDEActionSelector::ButtonIconSize iconSize; TQString addIcon, removeIcon, upIcon, downIcon; - KActionSelector::InsertionPolicy availableInsertionPolicy, selectedInsertionPolicy; + TDEActionSelector::InsertionPolicy availableInsertionPolicy, selectedInsertionPolicy; bool showUpDownButtons; }; //BEGIN Constructor/destructor -KActionSelector::KActionSelector( TQWidget *parent, const char *name ) +TDEActionSelector::TDEActionSelector( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - d = new KActionSelectorPrivate(); + d = new TDEActionSelectorPrivate(); d->moveOnDoubleClick = true; d->keyboardEnabled = true; d->iconSize = SmallIcon; @@ -115,7 +115,7 @@ KActionSelector::KActionSelector( TQWidget *parent, const char *name ) d->selectedListBox->installEventFilter( this ); } -KActionSelector::~KActionSelector() +TDEActionSelector::~TDEActionSelector() { delete d; } @@ -124,17 +124,17 @@ KActionSelector::~KActionSelector() //BEGIN Public Methods -TQListBox *KActionSelector::availableListBox() +TQListBox *TDEActionSelector::availableListBox() { return d->availableListBox; } -TQListBox *KActionSelector::selectedListBox() +TQListBox *TDEActionSelector::selectedListBox() { return d->selectedListBox; } -void KActionSelector::setButtonIcon( const TQString &icon, MoveButton button ) +void TDEActionSelector::setButtonIcon( const TQString &icon, MoveButton button ) { switch ( button ) { @@ -155,11 +155,11 @@ void KActionSelector::setButtonIcon( const TQString &icon, MoveButton button ) d->btnDown->setIconSet( SmallIconSet( icon, d->iconSize ) ); break; default: - kdDebug()<<"KActionSelector::setButtonIcon: DAINBREAD!"<btnDown->setIconSet( iconset ); break; default: - kdDebug()<<"KActionSelector::setButtonIconSet: DAINBREAD!"<btnDown->setTextLabel( tip ); break; default: - kdDebug()<<"KActionSelector::setButtonToolTip: DAINBREAD!"<btnDown, text ); break; default: - kdDebug()<<"KActionSelector::setButtonWhatsThis: DAINBREAD!"<btnAdd->setEnabled( d->availableListBox->currentItem() > -1 ); d->btnRemove->setEnabled( d->selectedListBox->currentItem() > -1 ); @@ -235,84 +235,84 @@ void KActionSelector::setButtonsEnabled() //BEGIN Properties -bool KActionSelector::moveOnDoubleClick() const +bool TDEActionSelector::moveOnDoubleClick() const { return d->moveOnDoubleClick; } -void KActionSelector::setMoveOnDoubleClick( bool b ) +void TDEActionSelector::setMoveOnDoubleClick( bool b ) { d->moveOnDoubleClick = b; } -bool KActionSelector::keyboardEnabled() const +bool TDEActionSelector::keyboardEnabled() const { return d->keyboardEnabled; } -void KActionSelector::setKeyboardEnabled( bool b ) +void TDEActionSelector::setKeyboardEnabled( bool b ) { d->keyboardEnabled = b; } -TQString KActionSelector::availableLabel() const +TQString TDEActionSelector::availableLabel() const { return d->lAvailable->text(); } -void KActionSelector::setAvailableLabel( const TQString &text ) +void TDEActionSelector::setAvailableLabel( const TQString &text ) { d->lAvailable->setText( text ); } -TQString KActionSelector::selectedLabel() const +TQString TDEActionSelector::selectedLabel() const { return d->lSelected->text(); } -void KActionSelector::setSelectedLabel( const TQString &text ) +void TDEActionSelector::setSelectedLabel( const TQString &text ) { d->lSelected->setText( text ); } -KActionSelector::ButtonIconSize KActionSelector::buttonIconSize() const +TDEActionSelector::ButtonIconSize TDEActionSelector::buttonIconSize() const { return d->iconSize; } -void KActionSelector::setButtonIconSize( ButtonIconSize size ) +void TDEActionSelector::setButtonIconSize( ButtonIconSize size ) { d->iconSize = size; // reload icons loadIcons(); } -KActionSelector::InsertionPolicy KActionSelector::availableInsertionPolicy() const +TDEActionSelector::InsertionPolicy TDEActionSelector::availableInsertionPolicy() const { return d->availableInsertionPolicy; } -void KActionSelector::setAvailableInsertionPolicy( InsertionPolicy p ) +void TDEActionSelector::setAvailableInsertionPolicy( InsertionPolicy p ) { d->availableInsertionPolicy = p; } -KActionSelector::InsertionPolicy KActionSelector::selectedInsertionPolicy() const +TDEActionSelector::InsertionPolicy TDEActionSelector::selectedInsertionPolicy() const { return d->selectedInsertionPolicy; } -void KActionSelector::setSelectedInsertionPolicy( InsertionPolicy p ) +void TDEActionSelector::setSelectedInsertionPolicy( InsertionPolicy p ) { d->selectedInsertionPolicy = p; } -bool KActionSelector::showUpDownButtons() const +bool TDEActionSelector::showUpDownButtons() const { return d->showUpDownButtons; } -void KActionSelector::setShowUpDownButtons( bool show ) +void TDEActionSelector::setShowUpDownButtons( bool show ) { d->showUpDownButtons = show; if ( show ) @@ -331,7 +331,7 @@ void KActionSelector::setShowUpDownButtons( bool show ) //BEGIN Public Slots -void KActionSelector::polish() +void TDEActionSelector::polish() { setButtonsEnabled(); } @@ -339,7 +339,7 @@ void KActionSelector::polish() //END Public Slots //BEGIN Protected -void KActionSelector::keyPressEvent( TQKeyEvent *e ) +void TDEActionSelector::keyPressEvent( TQKeyEvent *e ) { if ( ! d->keyboardEnabled ) return; if ( (e->state() & TQt::ControlButton) ) @@ -365,7 +365,7 @@ void KActionSelector::keyPressEvent( TQKeyEvent *e ) } } -bool KActionSelector::eventFilter( TQObject *o, TQEvent *e ) +bool TDEActionSelector::eventFilter( TQObject *o, TQEvent *e ) { if ( d->keyboardEnabled && e->type() == TQEvent::KeyPress ) { @@ -412,7 +412,7 @@ bool KActionSelector::eventFilter( TQObject *o, TQEvent *e ) //BEGIN Private Slots -void KActionSelector::buttonAddClicked() +void TDEActionSelector::buttonAddClicked() { // move all selected items from available to selected listbox TQListBoxItem *item = d->availableListBox->firstItem(); @@ -430,7 +430,7 @@ void KActionSelector::buttonAddClicked() d->selectedListBox->setFocus(); } -void KActionSelector::buttonRemoveClicked() +void TDEActionSelector::buttonRemoveClicked() { // move all selected items from selected to available listbox TQListBoxItem *item = d->selectedListBox->firstItem(); @@ -448,7 +448,7 @@ void KActionSelector::buttonRemoveClicked() d->availableListBox->setFocus(); } -void KActionSelector::buttonUpClicked() +void TDEActionSelector::buttonUpClicked() { int c = d->selectedListBox->currentItem(); if ( c < 0 ) return; @@ -459,7 +459,7 @@ void KActionSelector::buttonUpClicked() emit movedUp( item ); } -void KActionSelector::buttonDownClicked() +void TDEActionSelector::buttonDownClicked() { int c = d->selectedListBox->currentItem(); if ( c < 0 ) return; @@ -470,7 +470,7 @@ void KActionSelector::buttonDownClicked() emit movedDown( item ); } -void KActionSelector::itemDoubleClicked( TQListBoxItem *item ) +void TDEActionSelector::itemDoubleClicked( TQListBoxItem *item ) { if ( d->moveOnDoubleClick ) moveItem( item ); @@ -480,7 +480,7 @@ void KActionSelector::itemDoubleClicked( TQListBoxItem *item ) //BEGIN Private Methods -void KActionSelector::loadIcons() +void TDEActionSelector::loadIcons() { d->btnAdd->setIconSet( SmallIconSet( d->addIcon, d->iconSize ) ); d->btnRemove->setIconSet( SmallIconSet( d->removeIcon, d->iconSize ) ); @@ -488,7 +488,7 @@ void KActionSelector::loadIcons() d->btnDown->setIconSet( SmallIconSet( d->downIcon, d->iconSize ) ); } -void KActionSelector::moveItem( TQListBoxItem *item ) +void TDEActionSelector::moveItem( TQListBoxItem *item ) { TQListBox *lbFrom = item->listBox(); TQListBox *lbTo; @@ -515,7 +515,7 @@ void KActionSelector::moveItem( TQListBoxItem *item ) emit removed( item ); } -int KActionSelector::insertionIndex( TQListBox *lb, InsertionPolicy policy ) +int TDEActionSelector::insertionIndex( TQListBox *lb, InsertionPolicy policy ) { int index; switch ( policy ) diff --git a/parts/fileselector/kactionselector.h b/parts/fileselector/kactionselector.h index b5dd65d3..a1c26394 100644 --- a/parts/fileselector/kactionselector.h +++ b/parts/fileselector/kactionselector.h @@ -27,7 +27,7 @@ class TQKeyEvent; class TQEvent; class TQIconSet; -class KActionSelectorPrivate; +class TDEActionSelectorPrivate; /** @short A widget for selecting and arranging actions/objects @@ -73,7 +73,7 @@ class KActionSelectorPrivate; @author Anders Lund */ -class KActionSelector : public TQWidget { +class TDEActionSelector : public TQWidget { Q_OBJECT TQ_ENUMS( ButtonIconSize InsertionPolicy ) @@ -87,8 +87,8 @@ class KActionSelector : public TQWidget { TQ_PROPERTY( bool showUpDownButtons READ showUpDownButtons WRITE setShowUpDownButtons ) public: - KActionSelector( TQWidget *parent=0, const char *name=0 ); - ~KActionSelector(); + TDEActionSelector( TQWidget *parent=0, const char *name=0 ); + ~TDEActionSelector(); /** @return The TQListBox holding the available actions @@ -394,7 +394,7 @@ private: /** Private data storage */ - KActionSelectorPrivate *d; + TDEActionSelectorPrivate *d; }; #endif // _KACTION_SELECTOR_H_ diff --git a/parts/fileselector/kbookmarkhandler.cpp b/parts/fileselector/kbookmarkhandler.cpp index 6467b83f..4c1c0271 100644 --- a/parts/fileselector/kbookmarkhandler.cpp +++ b/parts/fileselector/kbookmarkhandler.cpp @@ -35,7 +35,7 @@ #include "kbookmarkhandler.moc" -KBookmarkHandler::KBookmarkHandler( KDevFileSelector *parent, KPopupMenu* kpopupmenu ) +KBookmarkHandler::KBookmarkHandler( KDevFileSelector *parent, TDEPopupMenu* kpopupmenu ) : TQObject( parent, "KBookmarkHandler" ), KBookmarkOwner(), mParent( parent ), @@ -43,7 +43,7 @@ KBookmarkHandler::KBookmarkHandler( KDevFileSelector *parent, KPopupMenu* kpopup m_importStream( 0L ) { if (!m_menu) - m_menu = new KPopupMenu( parent, "bookmark menu" ); + m_menu = new TDEPopupMenu( parent, "bookmark menu" ); TQString file = locate( "data", "kdevfileselector/fsbookmarks.xml" ); if ( file.isEmpty() ) diff --git a/parts/fileselector/kbookmarkhandler.h b/parts/fileselector/kbookmarkhandler.h index 42d5df58..38091e0f 100644 --- a/parts/fileselector/kbookmarkhandler.h +++ b/parts/fileselector/kbookmarkhandler.h @@ -25,8 +25,8 @@ #include "fileselector_widget.h" class TQTextStream; -class KPopupMenu; -class KActionMenu; +class TDEPopupMenu; +class TDEActionMenu; class KBookmarkHandler : public TQObject, public KBookmarkOwner { @@ -34,14 +34,14 @@ class KBookmarkHandler : public TQObject, public KBookmarkOwner public: - KBookmarkHandler( KDevFileSelector *parent, KPopupMenu *kpopupmenu=0 ); + KBookmarkHandler( KDevFileSelector *parent, TDEPopupMenu *kpopupmenu=0 ); ~KBookmarkHandler(); // KBookmarkOwner interface: virtual void openBookmarkURL( const TQString& url ) { emit openURL( url ); } virtual TQString currentURL() const; - KPopupMenu *menu() const { return m_menu; } + TDEPopupMenu *menu() const { return m_menu; } signals: void openURL( const TQString& url ); @@ -59,7 +59,7 @@ protected: private: KDevFileSelector *mParent; - KPopupMenu *m_menu; + TDEPopupMenu *m_menu; KBookmarkMenu *m_bookmarkMenu; TQTextStream *m_importStream; diff --git a/parts/fileview/filegroupswidget.cpp b/parts/fileview/filegroupswidget.cpp index e0222eb5..d1629d1e 100644 --- a/parts/fileview/filegroupswidget.cpp +++ b/parts/fileview/filegroupswidget.cpp @@ -152,7 +152,7 @@ FileGroupsFileItem::FileGroupsFileItem(TQListViewItem *parent, const TQString &f } FileGroupsWidget::FileGroupsWidget(FileGroupsPart *part) - : KListView(0, "file view widget"), + : TDEListView(0, "file view widget"), m_actionToggleShowNonProjectFiles( 0 ), m_actionToggleDisplayLocation( 0 ) { /* @@ -175,15 +175,15 @@ FileGroupsWidget::FileGroupsWidget(FileGroupsPart *part) this, TQT_SLOT(slotItemExecuted(TQListViewItem*)) ); connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotItemExecuted(TQListViewItem*)) ); - connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), - this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) ); + connect( this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); - m_actionToggleShowNonProjectFiles = new KToggleAction( i18n("Show Non Project Files"), KShortcut(), + m_actionToggleShowNonProjectFiles = new TDEToggleAction( i18n("Show Non Project Files"), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotToggleShowNonProjectFiles()), TQT_TQOBJECT(this), "actiontoggleshowshownonprojectfiles" ); m_actionToggleShowNonProjectFiles->setCheckedState(i18n("Hide Non Project Files")); m_actionToggleShowNonProjectFiles->setWhatsThis(i18n("Show non project files

Shows files that do not belong to a project in a file tree.")); - m_actionToggleDisplayLocation = new KToggleAction( i18n("Display Location Column"), KShortcut(), + m_actionToggleDisplayLocation = new TDEToggleAction( i18n("Display Location Column"), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotToggleDisplayLocation()), TQT_TQOBJECT(this), "actiontoggleshowlocation" ); m_actionToggleDisplayLocation->setWhatsThis(i18n("Display the Location Column

Displays a column with the location of the files.")); @@ -222,9 +222,9 @@ void FileGroupsWidget::slotItemExecuted(TQListViewItem *item) } -void FileGroupsWidget::slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p) +void FileGroupsWidget::slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &p) { - KPopupMenu popup(this); + TDEPopupMenu popup(this); popup.insertTitle(i18n("File Groups")); /// @todo Add, remove groups int customizeId = popup.insertItem(i18n("Customize...")); diff --git a/parts/fileview/filegroupswidget.h b/parts/fileview/filegroupswidget.h index 7e0a4204..355c9662 100644 --- a/parts/fileview/filegroupswidget.h +++ b/parts/fileview/filegroupswidget.h @@ -18,7 +18,7 @@ class FileGroupsPart; class KDevProject; -class FileGroupsWidget : public KListView +class FileGroupsWidget : public TDEListView { Q_OBJECT @@ -34,7 +34,7 @@ public slots: private slots: void slotItemExecuted(TQListViewItem *item); - void slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p); + void slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &p); void slotToggleShowNonProjectFiles(); void slotToggleDisplayLocation(); @@ -46,8 +46,8 @@ private: TQStringList allFilesRecursively( TQString const & ); FileGroupsPart *m_part; - class KToggleAction *m_actionToggleShowNonProjectFiles; - class KToggleAction *m_actionToggleDisplayLocation; + class TDEToggleAction *m_actionToggleShowNonProjectFiles; + class TDEToggleAction *m_actionToggleDisplayLocation; int LocationID; }; diff --git a/parts/fileview/filetreeviewwidgetimpl.cpp b/parts/fileview/filetreeviewwidgetimpl.cpp index f1b557f2..044055cb 100644 --- a/parts/fileview/filetreeviewwidgetimpl.cpp +++ b/parts/fileview/filetreeviewwidgetimpl.cpp @@ -37,7 +37,7 @@ FileTreeViewWidgetImpl::FileTreeViewWidgetImpl( FileTreeWidget *parent, const ch kdDebug(9017) << "FileTreeViewWidgetImpl::FileTreeViewWidgetImpl()" << endl; // Actions - m_actionToggleShowNonProjectFiles = new KToggleAction( i18n("Show Non Project Files"), KShortcut(), + m_actionToggleShowNonProjectFiles = new TDEToggleAction( i18n("Show Non Project Files"), TDEShortcut(), this, TQT_SLOT(slotToggleShowNonProjectFiles()), this, "actiontoggleshowshownonprojectfiles" ); m_actionToggleShowNonProjectFiles->setCheckedState(i18n("Hide Non Project Files")); m_actionToggleShowNonProjectFiles->setWhatsThis(i18n("Show non project files

Shows files that do not belong to a project in a file tree.")); diff --git a/parts/fileview/filetreeviewwidgetimpl.h b/parts/fileview/filetreeviewwidgetimpl.h index 6cee53f8..bca8b1cd 100644 --- a/parts/fileview/filetreeviewwidgetimpl.h +++ b/parts/fileview/filetreeviewwidgetimpl.h @@ -28,7 +28,7 @@ namespace filetreeview } class FileViewPart; class TQHeader; -class KToggleAction; +class TDEToggleAction; class TQPopupMenu; /** @@ -100,7 +100,7 @@ private: bool m_isReloadingTree; - KToggleAction *m_actionToggleShowNonProjectFiles; + TDEToggleAction *m_actionToggleShowNonProjectFiles; }; #endif diff --git a/parts/fileview/filetreewidget.cpp b/parts/fileview/filetreewidget.cpp index 904f3710..caa43466 100644 --- a/parts/fileview/filetreewidget.cpp +++ b/parts/fileview/filetreewidget.cpp @@ -72,8 +72,8 @@ FileTreeWidget::FileTreeWidget( FileViewPart *part, TQWidget *parent, KDevVCSFil // Slot connections connect( this, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(slotItemExecuted(TQListViewItem*)) ); connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotItemExecuted(TQListViewItem*)) ); - connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), - this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) ); + connect( this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); // Intercepts KDevelop core signals and VCS notifications (if available) connect( m_part->project(), TQT_SIGNAL( activeDirectoryChanged( const TQString&, const TQString& ) ), this, TQT_SLOT( changeActiveDirectory( const TQString&, const TQString& ) ) ); @@ -199,11 +199,11 @@ void FileTreeWidget::slotItemExecuted( TQListViewItem* item ) /////////////////////////////////////////////////////////////////////////////// -void FileTreeWidget::slotContextMenu( KListView *, TQListViewItem* item, const TQPoint &p ) +void FileTreeWidget::slotContextMenu( TDEListView *, TQListViewItem* item, const TQPoint &p ) { kdDebug(9017) << "FileTreeWidget::slotContextMenu(...)" << endl; - KPopupMenu popup( this ); + TDEPopupMenu popup( this ); popup.insertTitle( i18n("File Tree") ); // If an item is selected, fill the file context with selected files' list diff --git a/parts/fileview/filetreewidget.h b/parts/fileview/filetreewidget.h index 5d844aa5..d43da13f 100644 --- a/parts/fileview/filetreewidget.h +++ b/parts/fileview/filetreewidget.h @@ -72,7 +72,7 @@ public slots: private slots: void slotItemExecuted(TQListViewItem *item); - void slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p); + void slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &p); void changeActiveDirectory( const TQString&, const TQString& ); void finishPopulate(KFileTreeViewItem* item); diff --git a/parts/fileview/vcsfiletreewidgetimpl.cpp b/parts/fileview/vcsfiletreewidgetimpl.cpp index 780ccf9f..a644c9d1 100644 --- a/parts/fileview/vcsfiletreewidgetimpl.cpp +++ b/parts/fileview/vcsfiletreewidgetimpl.cpp @@ -203,14 +203,14 @@ VCSFileTreeWidgetImpl::VCSFileTreeWidgetImpl( FileTreeWidget *parent, KDevVCSFil // Harakiri itself if the infoProvider object is destroyed since we cannot work anymore :-( connect( m_vcsInfoProvider, TQT_SIGNAL(destroyed()), TQT_SIGNAL(implementationInvalidated()) ); - m_actionToggleShowVCSFields = new KToggleAction( i18n("Show VCS Fields"), KShortcut(), + m_actionToggleShowVCSFields = new TDEToggleAction( i18n("Show VCS Fields"), TDEShortcut(), this, "actiontoggleshowvcsfieldstoggleaction" ); m_actionToggleShowVCSFields->setCheckedState(i18n("Hide VCS Fields")); TQString aboutAction = i18n("Show VCS fields

Shows Revision and Timestamp for each file contained in VCS repository."); m_actionToggleShowVCSFields->setWhatsThis( aboutAction ); connect( m_actionToggleShowVCSFields, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleShowVCSFields(bool)) ); - m_actionSyncWithRepository = new KAction( i18n( "Sync with Repository"), KShortcut(), + m_actionSyncWithRepository = new TDEAction( i18n( "Sync with Repository"), TDEShortcut(), this, TQT_SLOT(slotSyncWithRepository()), this, "actionsyncwithrepository" ); aboutAction = i18n("Sync with repository

Synchronize file status with remote repository."); m_actionSyncWithRepository->setWhatsThis( aboutAction ); diff --git a/parts/fileview/vcsfiletreewidgetimpl.h b/parts/fileview/vcsfiletreewidgetimpl.h index ac8a9d54..00a38b32 100644 --- a/parts/fileview/vcsfiletreewidgetimpl.h +++ b/parts/fileview/vcsfiletreewidgetimpl.h @@ -15,8 +15,8 @@ #include "filetreeviewwidgetimpl.h" class KDevVCSFileInfoProvider; -class KAction; -class KToggleAction; +class TDEAction; +class TDEToggleAction; /** * @author Mario Scalas @@ -56,8 +56,8 @@ private slots: private: bool showVCSFields() const; - KToggleAction *m_actionToggleShowVCSFields; - KAction *m_actionSyncWithRepository; + TDEToggleAction *m_actionToggleShowVCSFields; + TDEAction *m_actionSyncWithRepository; KDevVCSFileInfoProvider *m_vcsInfoProvider; //! We use this guard to avoid enabling the "reload tree" action when performing //! syncing with remote repositories. diff --git a/parts/filter/filterpart.cpp b/parts/filter/filterpart.cpp index aa10c559..69fc82eb 100644 --- a/parts/filter/filterpart.cpp +++ b/parts/filter/filterpart.cpp @@ -35,15 +35,15 @@ FilterPart::FilterPart(TQObject *parent, const char *name, const TQStringList &) setInstance(FilterFactory::instance()); setXMLFile("kdevfilter.rc"); - KAction *action; + TDEAction *action; - action = new KAction( i18n("Execute Command..."), 0, + action = new TDEAction( i18n("Execute Command..."), 0, this, TQT_SLOT(slotShellInsert()), actionCollection(), "tools_insertshell" ); action->setToolTip(i18n("Execute shell command")); action->setWhatsThis(i18n("Execute shell command

Executes a shell command and outputs its result into the current document.")); - action = new KAction( i18n("Filter Selection Through Command..."), 0, + action = new TDEAction( i18n("Filter Selection Through Command..."), 0, this, TQT_SLOT(slotShellFilter()), actionCollection(), "tools_filtershell" ); action->setToolTip(i18n("Filter selection through a shell command")); diff --git a/parts/fullscreen/fullscreen_part.h b/parts/fullscreen/fullscreen_part.h index 16b74733..8645f991 100644 --- a/parts/fullscreen/fullscreen_part.h +++ b/parts/fullscreen/fullscreen_part.h @@ -15,7 +15,7 @@ #include #include -class KAction; +class TDEAction; class FullScreenPart : public KDevPlugin { @@ -29,7 +29,7 @@ public slots: void slotToggleFullScreen(); private: - KToggleFullScreenAction* m_pFullScreen; + TDEToggleFullScreenAction* m_pFullScreen; bool m_bFullScreen; }; diff --git a/parts/grepview/grepviewpart.cpp b/parts/grepview/grepviewpart.cpp index 7b2822ec..627d7447 100644 --- a/parts/grepview/grepviewpart.cpp +++ b/parts/grepview/grepviewpart.cpp @@ -60,9 +60,9 @@ GrepViewPart::GrepViewPart( TQObject *parent, const char *name, const TQStringLi mainWindow()->embedOutputView(m_widget, i18n("Find in Files"), i18n("Output of the grep command")); - KAction *action; + TDEAction *action; - action = new KAction(i18n("Find in Fi&les..."), "grep", CTRL+ALT+Key_F, + action = new TDEAction(i18n("Find in Fi&les..."), "grep", CTRL+ALT+Key_F, this, TQT_SLOT(slotGrep()), actionCollection(), "edit_grep"); action->setToolTip( i18n("Search for expressions over several files") ); diff --git a/parts/grepview/grepviewwidget.cpp b/parts/grepview/grepviewwidget.cpp index 65ddf9e3..acace1b7 100644 --- a/parts/grepview/grepviewwidget.cpp +++ b/parts/grepview/grepviewwidget.cpp @@ -440,9 +440,9 @@ void GrepViewWidget::popupMenu(TQListBoxItem*, const TQPoint& p) { if(m_curOutput->isRunning()) return; - KPopupMenu rmbMenu; + TDEPopupMenu rmbMenu; - if(KAction *findAction = m_part->actionCollection()->action("edit_grep")) + if(TDEAction *findAction = m_part->actionCollection()->action("edit_grep")) { rmbMenu.insertTitle(i18n("Find in Files")); findAction->plug(&rmbMenu); diff --git a/parts/openwith/openwithpart.cpp b/parts/openwith/openwithpart.cpp index 321b1db7..b8f5e552 100644 --- a/parts/openwith/openwithpart.cpp +++ b/parts/openwith/openwithpart.cpp @@ -47,7 +47,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context) popup->insertItem( i18n("Open as UTF-8"), this, TQT_SLOT(openAsUtf8()) ); - KPopupMenu * openAsPopup = new KPopupMenu( popup ); + TDEPopupMenu * openAsPopup = new TDEPopupMenu( popup ); int id = popup->insertItem( i18n("Open As"), openAsPopup ); popup->setWhatsThis(id, i18n("Open As

Lists all encodings that can be used to open the selected file.")); @@ -63,7 +63,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context) i++; } - KPopupMenu * openWithPopup = new KPopupMenu( popup ); + TDEPopupMenu * openWithPopup = new TDEPopupMenu( popup ); // hmmm.. what to do here? open every different mimetype seperately? Just go with the first for now.. TQString mimeType = KMimeType::findByURL(m_urls.first(), 0, true, true)->name(); @@ -73,7 +73,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context) TDETrader::OfferList::Iterator it; for (it = offers.begin(); it != offers.end(); ++it) { - KAction *action = new KAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName( (*it)->desktopEntryPath() ).data()); + TDEAction *action = new TDEAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName( (*it)->desktopEntryPath() ).data()); connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(openWithService())); action->plug( openWithPopup ); } diff --git a/parts/outputviews/appoutputwidget.cpp b/parts/outputviews/appoutputwidget.cpp index 6c7f525a..d6aa0856 100644 --- a/parts/outputviews/appoutputwidget.cpp +++ b/parts/outputviews/appoutputwidget.cpp @@ -249,7 +249,7 @@ void AppOutputWidget::clearFilter() void AppOutputWidget::slotContextMenu( TQListBoxItem *, const TQPoint &p ) { - KPopupMenu popup(this, "filter output"); + TDEPopupMenu popup(this, "filter output"); int id = popup.insertItem( i18n("Clear output"), this, TQT_SLOT(clearViewAndContents()) ); popup.setItemEnabled( id, m_contentList.size() > 0 ); diff --git a/parts/outputviews/makeviewpart.cpp b/parts/outputviews/makeviewpart.cpp index 9185e5fd..cc8d356c 100644 --- a/parts/outputviews/makeviewpart.cpp +++ b/parts/outputviews/makeviewpart.cpp @@ -51,12 +51,12 @@ MakeViewPart::MakeViewPart(TQObject *parent, const char *name, const TQStringLis mainWindow()->embedOutputView(m_widget, i18n("Messages"), i18n("Compiler output messages")); - KAction *action; - action = new KAction( i18n("&Next Error"), Key_F4, TQT_TQOBJECT(m_widget), TQT_SLOT(nextError()), + TDEAction *action; + action = new TDEAction( i18n("&Next Error"), Key_F4, TQT_TQOBJECT(m_widget), TQT_SLOT(nextError()), actionCollection(), "view_next_error"); action->setToolTip( i18n("Go to the next error") ); action->setWhatsThis(i18n("Next error

Switches to the file and line where the next error was reported from.")); - action = new KAction( i18n("&Previous Error"), SHIFT+Key_F4, TQT_TQOBJECT(m_widget), TQT_SLOT(prevError()), + action = new TDEAction( i18n("&Previous Error"), SHIFT+Key_F4, TQT_TQOBJECT(m_widget), TQT_SLOT(prevError()), actionCollection(), "view_previous_error"); action->setToolTip( i18n("Go to the previous error") ); action->setWhatsThis(i18n("Previous error

Switches to the file and line where the previous error was reported from.")); diff --git a/parts/partexplorer/partexplorer_plugin.cpp b/parts/partexplorer/partexplorer_plugin.cpp index bf2c9ddc..b0bd82b1 100644 --- a/parts/partexplorer/partexplorer_plugin.cpp +++ b/parts/partexplorer/partexplorer_plugin.cpp @@ -40,7 +40,7 @@ PartExplorerPlugin::PartExplorerPlugin( TQObject *parent, const char *name, con m_widget = new PartExplorerForm( mainWindow()->main() ); // mainWindow()->embedSelectView( m_widget, i18n("PartExplorer"), i18n("Query system services")); - KAction *action = new KAction( i18n("&Part Explorer"), 0, this, TQT_SLOT(slotShowForm()), + TDEAction *action = new TDEAction( i18n("&Part Explorer"), 0, this, TQT_SLOT(slotShowForm()), actionCollection(), "show_partexplorerform" ); action->setToolTip(i18n("TDETrader query execution")); action->setWhatsThis(i18n("Part explorer

Shows a dialog for TDETrader query execution. Search your TDE documentation for more information about TDE services and TDETrader.")); diff --git a/parts/partexplorer/partexplorerform.cpp b/parts/partexplorer/partexplorerform.cpp index b7e970cf..8cff1f57 100644 --- a/parts/partexplorer/partexplorerform.cpp +++ b/parts/partexplorer/partexplorerform.cpp @@ -32,12 +32,12 @@ /////////////////////////////////////////////////////////////////////////////// namespace PartExplorer{ -class PropertyItem : public KListViewItem +class PropertyItem : public TDEListViewItem { public: - PropertyItem( KListViewItem *parent, const TQString &propertyName, + PropertyItem( TDEListViewItem *parent, const TQString &propertyName, const TQString &propertyType, const TQString &propertyValue ) - : KListViewItem( parent ) + : TDEListViewItem( parent ) { setText( 0, propertyName ); setText( 1, propertyType ); @@ -68,11 +68,11 @@ private: ResultsList* m_resultsList; }; -class ResultsList : public KListView +class ResultsList : public TDEListView { public: ResultsList( TQWidget *parent ) - : KListView( parent, "resultslist" ) + : TDEListView( parent, "resultslist" ) { this->setShowToolTips( false ); new ResultsToolTip( this ); @@ -82,7 +82,7 @@ public: void clear() { - KListView::clear(); + TDEListView::clear(); } }; @@ -197,13 +197,13 @@ void PartExplorerForm::fillServiceList( const TDETrader::OfferList &services ) this->m_resultsList->setRootIsDecorated( true ); - KListViewItem *rootItem = 0; + TDEListViewItem *rootItem = 0; TDETrader::OfferList::ConstIterator it = services.begin(); for ( ; it != services.end(); ++it ) { KService::Ptr service = (*it); - KListViewItem *serviceItem = new KListViewItem( this->m_resultsList, rootItem, service->name() ); + TDEListViewItem *serviceItem = new TDEListViewItem( this->m_resultsList, rootItem, service->name() ); TQStringList propertyNames = service->propertyNames(); for ( TQStringList::const_iterator it = propertyNames.begin(); it != propertyNames.end(); ++it ) diff --git a/parts/quickopen/quickopen_part.cpp b/parts/quickopen/quickopen_part.cpp index cd95f64a..ae8bae82 100644 --- a/parts/quickopen/quickopen_part.cpp +++ b/parts/quickopen/quickopen_part.cpp @@ -55,22 +55,22 @@ QuickOpenPart::QuickOpenPart(TQObject *parent, const char *name, const TQStringL setInstance(QuickOpenFactory::instance()); setXMLFile("kdevpart_quickopen.rc"); - m_actionQuickOpen = new KAction( i18n("Quick Open File..."), CTRL + ALT + Key_O, + m_actionQuickOpen = new TDEAction( i18n("Quick Open File..."), CTRL + ALT + Key_O, this, TQT_SLOT(slotQuickFileOpen()), actionCollection(), "quick_open" ); m_actionQuickOpen->setToolTip(i18n("Quick open file in project")); m_actionQuickOpen->setWhatsThis(i18n("Quick open

Provides a file name input form with completion listbox to quickly open file in a project.")); - m_actionQuickOpenClass = new KAction( i18n("Quick Open Class..."), CTRL + ALT + Key_C, + m_actionQuickOpenClass = new TDEAction( i18n("Quick Open Class..."), CTRL + ALT + Key_C, this, TQT_SLOT(slotQuickOpenClass()), actionCollection(), "quick_open_class" ); m_actionQuickOpenClass->setToolTip(i18n("Find class in project")); m_actionQuickOpenClass->setWhatsThis(i18n("Find class

Provides a class name input form with completion listbox to quickly open a file where the class is defined.")); - m_actionFunctionOpen = new KAction( i18n("Quick Open Method..."), CTRL + ALT + Key_M, this, TQT_SLOT(slotQuickOpenFunction()), actionCollection(), "quick_open_function" ); + m_actionFunctionOpen = new TDEAction( i18n("Quick Open Method..."), CTRL + ALT + Key_M, this, TQT_SLOT(slotQuickOpenFunction()), actionCollection(), "quick_open_function" ); m_actionFunctionOpen->setToolTip(i18n("Quick open function in project")); - m_switchToAction = new KAction(i18n("Switch To..."), KShortcut("CTRL+/"), this, TQT_SLOT(slotSwitchTo()), actionCollection(), "file_switchto"); + m_switchToAction = new TDEAction(i18n("Switch To..."), TDEShortcut("CTRL+/"), this, TQT_SLOT(slotSwitchTo()), actionCollection(), "file_switchto"); m_switchToAction->setToolTip(i18n("Switch to")); m_switchToAction->setWhatsThis(i18n("Switch to

Prompts to enter the name of previously opened file to switch to.")); diff --git a/parts/quickopen/quickopen_part.h b/parts/quickopen/quickopen_part.h index 304a78ae..b8c8460b 100644 --- a/parts/quickopen/quickopen_part.h +++ b/parts/quickopen/quickopen_part.h @@ -25,7 +25,7 @@ #include #include -class KAction; +class TDEAction; class QuickOpenPart : public KDevQuickOpen { @@ -48,10 +48,10 @@ private slots: void slotSwitchTo(); private: - KAction* m_actionQuickOpen; - KAction* m_actionQuickOpenClass; - KAction* m_actionFunctionOpen; - KAction* m_switchToAction; + TDEAction* m_actionQuickOpen; + TDEAction* m_actionQuickOpenClass; + TDEAction* m_actionFunctionOpen; + TDEAction* m_switchToAction; }; diff --git a/parts/quickopen/quickopenbase.ui b/parts/quickopen/quickopenbase.ui index 1f3dcdb4..1b29104a 100644 --- a/parts/quickopen/quickopenbase.ui +++ b/parts/quickopen/quickopenbase.ui @@ -44,7 +44,7 @@ itemList - + itemList diff --git a/parts/quickopen/quickopenfunctionchooseformbase.ui b/parts/quickopen/quickopenfunctionchooseformbase.ui index 2661c684..f4bae80b 100644 --- a/parts/quickopen/quickopenfunctionchooseformbase.ui +++ b/parts/quickopen/quickopenfunctionchooseformbase.ui @@ -86,7 +86,7 @@ File name: - + fileBox @@ -142,7 +142,7 @@ Function arguments list: - + argBox diff --git a/parts/regexptest/regexptestpart.cpp b/parts/regexptest/regexptestpart.cpp index 511e6be0..b671542e 100644 --- a/parts/regexptest/regexptestpart.cpp +++ b/parts/regexptest/regexptestpart.cpp @@ -30,9 +30,9 @@ RegexpTestPart::RegexpTestPart(TQObject *parent, const char *name, const TQStrin setInstance(RegexpTestFactory::instance()); setXMLFile("kdevregexptest.rc"); - KAction *action; + TDEAction *action; - action = new KAction( i18n("Debug Regular Expression..."), 0, + action = new TDEAction( i18n("Debug Regular Expression..."), 0, this, TQT_SLOT(slotRegexpTest()), actionCollection(), "tools_regexptest" ); action->setToolTip(i18n("Debug regular expression")); diff --git a/parts/replace/replace_part.cpp b/parts/replace/replace_part.cpp index 7a64cac8..857c6696 100644 --- a/parts/replace/replace_part.cpp +++ b/parts/replace/replace_part.cpp @@ -52,7 +52,7 @@ ReplacePart::ReplacePart(TQObject *parent, const char *name, const TQStringList& mainWindow()->embedOutputView( m_widget, i18n("Replace"), i18n("Project wide string replacement") ); mainWindow()->setViewAvailable( m_widget, false ); - action = new KAction(i18n("Find-Select-Replace..."), 0, + action = new TDEAction(i18n("Find-Select-Replace..."), 0, CTRL+SHIFT+Key_R, this, TQT_SLOT(slotReplace()), actionCollection(), "edit_replace_across"); action->setToolTip( i18n("Project wide string replacement") ); action->setWhatsThis( i18n("Find-Select-Replace

" diff --git a/parts/replace/replace_part.h b/parts/replace/replace_part.h index d6f79d98..fbd0f2f7 100644 --- a/parts/replace/replace_part.h +++ b/parts/replace/replace_part.h @@ -19,7 +19,7 @@ class ReplaceWidget; -class KAction; +class TDEAction; class Context; class ReplacePart : public KDevPlugin @@ -39,7 +39,7 @@ public slots: private: TQGuardedPtr m_widget; TQString m_popupstr; - KAction* action; + TDEAction* action; }; diff --git a/parts/replace/replaceview.cpp b/parts/replace/replaceview.cpp index a7cc78ca..a85b0818 100644 --- a/parts/replace/replaceview.cpp +++ b/parts/replace/replaceview.cpp @@ -27,7 +27,7 @@ ReplaceItem * ReplaceView::firstChild() const } -ReplaceView::ReplaceView( TQWidget * parent ) : KListView( parent ), _latestfile( 0 ) +ReplaceView::ReplaceView( TQWidget * parent ) : TDEListView( parent ), _latestfile( 0 ) { setSorting( -1 ); addColumn( "" ); diff --git a/parts/replace/replaceview.h b/parts/replace/replaceview.h index 5ed706a6..f70e41c0 100644 --- a/parts/replace/replaceview.h +++ b/parts/replace/replaceview.h @@ -21,7 +21,7 @@ class TQTextStream; class TQWidget; class ReplaceItem; -class ReplaceView : public KListView +class ReplaceView : public TDEListView { Q_OBJECT diff --git a/parts/scripting/scriptingpart.h b/parts/scripting/scriptingpart.h index 24d17104..832318b9 100644 --- a/parts/scripting/scriptingpart.h +++ b/parts/scripting/scriptingpart.h @@ -26,7 +26,7 @@ #include class TQPopupMenu; -class KAction; +class TDEAction; class KDialogBase; class Context; class ConfigWidgetProxy; diff --git a/parts/snippet/snippet_part.cpp b/parts/snippet/snippet_part.cpp index 0d39038e..e16f7821 100644 --- a/parts/snippet/snippet_part.cpp +++ b/parts/snippet/snippet_part.cpp @@ -73,7 +73,7 @@ SnippetPart::~SnippetPart() void SnippetPart::setupActions() { - new KAction( i18n("Show Snippet Tree"), CTRL+ALT+SHIFT+Key_S, this, TQT_SLOT(slotShowView()), actionCollection(), "snippet_showview"); + new TDEAction( i18n("Show Snippet Tree"), CTRL+ALT+SHIFT+Key_S, this, TQT_SLOT(slotShowView()), actionCollection(), "snippet_showview"); } /*! diff --git a/parts/snippet/snippet_widget.cpp b/parts/snippet/snippet_widget.cpp index 447193f4..dd057a29 100644 --- a/parts/snippet/snippet_widget.cpp +++ b/parts/snippet/snippet_widget.cpp @@ -47,13 +47,13 @@ #include "snippet_widget.h" SnippetWidget::SnippetWidget(SnippetPart *part) - : KListView(0, "snippet widget"), TQToolTip( viewport() ), + : TDEListView(0, "snippet widget"), TQToolTip( viewport() ), m_part( part ) { // init the TQPtrList _list.setAutoDelete(TRUE); - // init the KListView + // init the TDEListView setSorting( -1 ); addColumn( "" ); setFullWidth(true); @@ -213,7 +213,7 @@ void SnippetWidget::slotEdit() dlg.cbGroup->setCurrentText(SnippetItem::findGroupById(pSnippet->getParent(), _list)->getName()); if (dlg.exec() == TQDialog::Accepted) { - //update the KListView and the SnippetItem + //update the TDEListView and the SnippetItem item->setText( 0, dlg.snippetName->text() ); pSnippet->setName( dlg.snippetName->text() ); pSnippet->setText( dlg.snippetText->text() ); @@ -256,7 +256,7 @@ void SnippetWidget::slotEditGroup() dlg.textLabelGroup->setText(i18n("Language:")); if (dlg.exec() == TQDialog::Accepted) { - //update the KListView and the SnippetGroup + //update the TDEListView and the SnippetGroup item->setText( 0, dlg.snippetName->text() ); pGroup->setName( dlg.snippetName->text() ); pGroup->setLanguage(dlg.cbGroup->currentText()); @@ -545,7 +545,7 @@ void SnippetWidget::maybeTip( const TQPoint & p ) */ void SnippetWidget::showPopupMenu( TQListViewItem * item, const TQPoint & p, int ) { - KPopupMenu popup; + TDEPopupMenu popup; SnippetItem * selectedItem = static_cast(item); if ( item ) { @@ -882,7 +882,7 @@ TQString SnippetWidget::showSingleVarDialog(TQString var, TQMapsetToolTip(i18n("A tip how to use TDevelop")); action->setWhatsThis(i18n("Tip of the day

" diff --git a/parts/tools/kapplicationtree.cpp b/parts/tools/kapplicationtree.cpp index 287e5b40..d035a185 100644 --- a/parts/tools/kapplicationtree.cpp +++ b/parts/tools/kapplicationtree.cpp @@ -65,7 +65,7 @@ template class TQPtrList; // ---------------------------------------------------------------------- -KDevAppTreeListItem::KDevAppTreeListItem( KListView* parent, const TQString & name, +KDevAppTreeListItem::KDevAppTreeListItem( TDEListView* parent, const TQString & name, const TQPixmap& pixmap, bool parse, bool dir, const TQString& p, const TQString& c, const TQString& dE ) : TQListViewItem( parent, name ) { @@ -132,7 +132,7 @@ bool KDevAppTreeListItem::isDirectory() // ---------------------------------------------------------------------- KDevApplicationTree::KDevApplicationTree( TQWidget *parent, const char* name ) - : KListView( parent, name ), currentitem(0) + : TDEListView( parent, name ), currentitem(0) { addColumn( i18n("Known Applications") ); setRootIsDecorated( true ); @@ -249,7 +249,7 @@ void KDevApplicationTree::slotSelectionChanged(TQListViewItem* i) void KDevApplicationTree::resizeEvent( TQResizeEvent * e) { setColumnWidth(0, width()-TQApplication::style().pixelMetric(TQStyle::PM_ScrollBarExtent)); - KListView::resizeEvent(e); + TDEListView::resizeEvent(e); } diff --git a/parts/tools/kapplicationtree.h b/parts/tools/kapplicationtree.h index 4e76dab8..864ab1a0 100644 --- a/parts/tools/kapplicationtree.h +++ b/parts/tools/kapplicationtree.h @@ -50,7 +50,7 @@ protected: void init(const TQPixmap& pixmap, bool parse, bool dir, const TQString& _path, const TQString& _exec, const TQString& _dEntry); public: - KDevAppTreeListItem( KListView* parent, const TQString & name, const TQPixmap& pixmap, + KDevAppTreeListItem( TDEListView* parent, const TQString & name, const TQPixmap& pixmap, bool parse, bool dir, const TQString& p, const TQString& c, const TQString& dE ); KDevAppTreeListItem( TQListViewItem* parent, const TQString & name, const TQPixmap& pixmap, bool parse, bool dir, const TQString& p, const TQString& c, const TQString& dE ); @@ -71,7 +71,7 @@ protected: /** * @internal */ -class KDevApplicationTree : public KListView +class KDevApplicationTree : public TDEListView { Q_OBJECT diff --git a/parts/tools/tools_part.cpp b/parts/tools/tools_part.cpp index 28af7745..50ff0230 100644 --- a/parts/tools/tools_part.cpp +++ b/parts/tools/tools_part.cpp @@ -86,7 +86,7 @@ void ToolsPart::insertConfigWidget( const KDialogBase * dlg, TQWidget * page, un void ToolsPart::updateMenu() { - TQPtrList actions; + TQPtrList actions; unplugActionList("tools_list"); @@ -102,7 +102,7 @@ void ToolsPart::updateMenu() if (df.readName().isNull()) continue; - KAction *action = new KAction(df.readName(), df.readIcon(), 0, + TDEAction *action = new TDEAction(df.readName(), df.readIcon(), 0, this, TQT_SLOT(slotToolActivated()), (TQObject*)0, name.latin1()); actions.append(action); } @@ -172,14 +172,14 @@ void ToolsPart::updateToolsMenu() TQStringList l = config->readListEntry("Tool Menu"); - TQPtrList actions; + TQPtrList actions; TQStringList::ConstIterator it; for (it = l.begin(); it != l.end(); ++it) { TQString menutext = *it; TDEConfig *config = ToolsFactory::instance()->config(); config->setGroup("Tool Menu " + menutext); bool isdesktopfile = config->readBoolEntry("DesktopFile"); - KAction *action = new KAction(*it, 0, + TDEAction *action = new TDEAction(*it, 0, this, TQT_SLOT(toolsMenuActivated()), (TQObject*) 0, menutext.utf8()); if (isdesktopfile) { diff --git a/parts/valgrind/valgrind_part.cpp b/parts/valgrind/valgrind_part.cpp index aa530e95..aece8c06 100644 --- a/parts/valgrind/valgrind_part.cpp +++ b/parts/valgrind/valgrind_part.cpp @@ -58,12 +58,12 @@ ValgrindPart::ValgrindPart( TQObject *parent, const char *name, const TQStringLi "mismatched use of malloc/new/new [] vs free/delete/delete []
" "some abuses of the POSIX pthread API." ) ); - KAction* action = new KAction( i18n("&Valgrind Memory Leak Check"), 0, this, + TDEAction* action = new TDEAction( i18n("&Valgrind Memory Leak Check"), 0, this, TQT_SLOT(slotExecValgrind()), actionCollection(), "tools_valgrind" ); action->setToolTip(i18n("Valgrind memory leak check")); action->setWhatsThis(i18n("Valgrind memory leak check

Runs Valgrind - a tool to help you find memory-management problems in your programs.")); - action = new KAction( i18n("P&rofile with KCachegrind"), 0, this, + action = new TDEAction( i18n("P&rofile with KCachegrind"), 0, this, TQT_SLOT(slotExecCalltree()), actionCollection(), "tools_calltree" ); action->setToolTip(i18n("Profile with KCachegrind")); action->setWhatsThis(i18n("Profile with KCachegrind

Runs your program in calltree and then displays profiler information in KCachegrind.")); diff --git a/parts/valgrind/valgrind_widget.cpp b/parts/valgrind/valgrind_widget.cpp index e3d36291..07fd2123 100644 --- a/parts/valgrind/valgrind_widget.cpp +++ b/parts/valgrind/valgrind_widget.cpp @@ -91,7 +91,7 @@ ValgrindWidget::ValgrindWidget( ValgrindPart *part ) : TQWidget(0, "valgrind widget"), _part( part ) { TQVBoxLayout* vbl = new TQVBoxLayout( this ); - lv = new KListView( this ); + lv = new TDEListView( this ); lv->addColumn( i18n( "No." ) ); lv->addColumn( i18n( "Thread" ) ); lv->addColumn( i18n( "Message" ) ); @@ -110,8 +110,8 @@ ValgrindWidget::ValgrindWidget( ValgrindPart *part ) this, TQT_SLOT(aboutToShowPopup()) ); connect( lv, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(executed(TQListViewItem*)) ); - connect( lv, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), - this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) ); + connect( lv, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); } @@ -194,7 +194,7 @@ void ValgrindWidget::aboutToShowPopup() popup->setItemEnabled( 3, en ); } -void ValgrindWidget::slotContextMenu( KListView* l, TQListViewItem* /*i*/, const TQPoint& p ) +void ValgrindWidget::slotContextMenu( TDEListView* l, TQListViewItem* /*i*/, const TQPoint& p ) { if ( l != lv ) return; diff --git a/parts/valgrind/valgrind_widget.h b/parts/valgrind/valgrind_widget.h index ad1660ad..bb525758 100644 --- a/parts/valgrind/valgrind_widget.h +++ b/parts/valgrind/valgrind_widget.h @@ -8,7 +8,7 @@ #include "valgrinditem.h" class ValgrindPart; -class KListView; +class TDEListView; class TQListViewItem; class TQPopupMenu; @@ -29,13 +29,13 @@ signals: private slots: void executed( TQListViewItem* item ); - void slotContextMenu( KListView* l, TQListViewItem* i, const TQPoint& p ); + void slotContextMenu( TDEListView* l, TQListViewItem* i, const TQPoint& p ); void expandAll(); void collapseAll(); void aboutToShowPopup(); private: - KListView* lv; + TDEListView* lv; int msgNumber; ValgrindPart* _part; TQPopupMenu* popup; diff --git a/parts/vcsmanager/vcsmanagerpart.h b/parts/vcsmanager/vcsmanagerpart.h index ce1aee4f..1fbccbff 100644 --- a/parts/vcsmanager/vcsmanagerpart.h +++ b/parts/vcsmanager/vcsmanagerpart.h @@ -26,7 +26,7 @@ #include class TQPopupMenu; -class KAction; +class TDEAction; class KDialogBase; class Context; class ConfigWidgetProxy; -- cgit v1.2.1