summaryrefslogtreecommitdiffstats
path: root/parts/astyle/astyle_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/astyle/astyle_part.cpp')
-rw-r--r--parts/astyle/astyle_part.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/astyle/astyle_part.cpp b/parts/astyle/astyle_part.cpp
index 57d032c8..16d590ab 100644
--- a/parts/astyle/astyle_part.cpp
+++ b/parts/astyle/astyle_part.cpp
@@ -7,7 +7,7 @@
#include <tdeversion.h>
#include <kdebug.h>
#include <kdialogbase.h>
-#include <tdevgenericfactory.h>
+#include <kdevgenericfactory.h>
#include <kiconloader.h>
#include <tdelocale.h>
#include <tdeparts/part.h>
@@ -17,10 +17,10 @@
#include <tdetexteditor/viewcursorinterface.h>
#include <tdetexteditor/selectioninterface.h>
#include <kprogress.h>
-#include <tdevcore.h>
-#include <tdevapi.h>
-#include <tdevpartcontroller.h>
-#include <tdevplugininfo.h>
+#include <kdevcore.h>
+#include <kdevapi.h>
+#include <kdevpartcontroller.h>
+#include <kdevplugininfo.h>
#include <configwidgetproxy.h>
#include <tdeapplication.h>
#include <tdeconfig.h>
@@ -33,22 +33,22 @@
#include "astyle_widget.h"
#include "astyle_adaptor.h"
-static const TDevPluginInfo data("tdevastyle");
+static const KDevPluginInfo data("kdevastyle");
namespace {
const char* defaultFormatExtensions = "*.cpp *.h *.hpp,*.c *.h,*.cxx *.hxx,*.c++ *.h++,*.cc *.hh,*.C *.H,*.diff ,*.inl,*.java,*.moc,*.patch,*.tlh,*.xpm";
}
-typedef TDevGenericFactory<AStylePart> AStyleFactory;
-K_EXPORT_COMPONENT_FACTORY( libtdevastyle, AStyleFactory( data ) )
+typedef KDevGenericFactory<AStylePart> AStyleFactory;
+K_EXPORT_COMPONENT_FACTORY( libkdevastyle, AStyleFactory( data ) )
AStylePart::AStylePart(TQObject *parent, const char *name, const TQStringList &)
: KDevSourceFormatter(&data, parent, name ? name : "AStylePart")
{
setInstance(AStyleFactory::instance());
- setXMLFile("tdevpart_astyle.rc");
+ setXMLFile("kdevpart_astyle.rc");
formatTextAction = new TDEAction(i18n("&Reformat Source"), 0, this, TQT_SLOT(beautifySource()), actionCollection(), "edit_astyle");
formatTextAction->setEnabled(false);
@@ -161,7 +161,7 @@ void AStylePart::beautifySource()
//if there is a selection, we only format it.
ASStringIterator is(has_selection ? sel_iface->selection() : iface->text());
- TDevFormatter formatter(m_project);
+ KDevFormatter formatter(m_project);
formatter.init(&is);
@@ -346,7 +346,7 @@ void AStylePart::activePartChanged ( KParts::Part *part )
TQString AStylePart::formatSource( const TQString text, AStyleWidget * widget, const TQMap<TQString, TQVariant>& options )
{
ASStringIterator is(text);
- TDevFormatter * formatter = ( widget)? new TDevFormatter( widget ) : new TDevFormatter(options);
+ KDevFormatter * formatter = ( widget)? new KDevFormatter( widget ) : new KDevFormatter(options);
formatter->init(&is);
@@ -390,7 +390,7 @@ TQString AStylePart::formatSource( const TQString text )
TQString AStylePart::indentString( ) const
{
- TDevFormatter formatter(m_project);
+ KDevFormatter formatter(m_project);
return formatter.indentString();
}