diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-03-02 20:05:33 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-03-02 20:05:33 +0100 |
commit | 722ce1efbac31c61b1d4b13f7e075c9f311e3e73 (patch) | |
tree | db1b6b28566e5fe9accb4a688f7257673cecb080 /parts/astyle/astyle_part.cpp | |
parent | afb74575caf7dd8ccb6c235b1c8d788e320c19da (diff) | |
download | tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.tar.gz tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.zip |
Finish renaming tdevelop components
Diffstat (limited to 'parts/astyle/astyle_part.cpp')
-rw-r--r-- | parts/astyle/astyle_part.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/astyle/astyle_part.cpp b/parts/astyle/astyle_part.cpp index 16d590ab..57d032c8 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 <kdevgenericfactory.h> +#include <tdevgenericfactory.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 <kdevcore.h> -#include <kdevapi.h> -#include <kdevpartcontroller.h> -#include <kdevplugininfo.h> +#include <tdevcore.h> +#include <tdevapi.h> +#include <tdevpartcontroller.h> +#include <tdevplugininfo.h> #include <configwidgetproxy.h> #include <tdeapplication.h> #include <tdeconfig.h> @@ -33,22 +33,22 @@ #include "astyle_widget.h" #include "astyle_adaptor.h" -static const KDevPluginInfo data("kdevastyle"); +static const TDevPluginInfo data("tdevastyle"); 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 KDevGenericFactory<AStylePart> AStyleFactory; -K_EXPORT_COMPONENT_FACTORY( libkdevastyle, AStyleFactory( data ) ) +typedef TDevGenericFactory<AStylePart> AStyleFactory; +K_EXPORT_COMPONENT_FACTORY( libtdevastyle, AStyleFactory( data ) ) AStylePart::AStylePart(TQObject *parent, const char *name, const TQStringList &) : KDevSourceFormatter(&data, parent, name ? name : "AStylePart") { setInstance(AStyleFactory::instance()); - setXMLFile("kdevpart_astyle.rc"); + setXMLFile("tdevpart_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()); - KDevFormatter formatter(m_project); + TDevFormatter 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); - KDevFormatter * formatter = ( widget)? new KDevFormatter( widget ) : new KDevFormatter(options); + TDevFormatter * formatter = ( widget)? new TDevFormatter( widget ) : new TDevFormatter(options); formatter->init(&is); @@ -390,7 +390,7 @@ TQString AStylePart::formatSource( const TQString text ) TQString AStylePart::indentString( ) const { - KDevFormatter formatter(m_project); + TDevFormatter formatter(m_project); return formatter.indentString(); } |