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/doxygen/doxygenpart.cpp | 10 +++++----- parts/doxygen/doxygenpart.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'parts/doxygen') 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; }; -- cgit v1.2.3