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 /lib/util | |
parent | afb74575caf7dd8ccb6c235b1c8d788e320c19da (diff) | |
download | tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.tar.gz tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.zip |
Finish renaming tdevelop components
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/util/Makefile.am | 18 | ||||
-rw-r--r-- | lib/util/configwidgetproxy.cpp | 4 | ||||
-rw-r--r-- | lib/util/configwidgetproxy.h | 8 | ||||
-rw-r--r-- | lib/util/filetemplate.cpp | 18 | ||||
-rw-r--r-- | lib/util/filetemplate.h | 12 | ||||
-rw-r--r-- | lib/util/tdeveditorutil.cpp (renamed from lib/util/kdeveditorutil.cpp) | 10 | ||||
-rw-r--r-- | lib/util/tdeveditorutil.h (renamed from lib/util/kdeveditorutil.h) | 8 | ||||
-rw-r--r-- | lib/util/tdevjobtimer.cpp (renamed from lib/util/kdevjobtimer.cpp) | 14 | ||||
-rw-r--r-- | lib/util/tdevjobtimer.h (renamed from lib/util/kdevjobtimer.h) | 10 | ||||
-rw-r--r-- | lib/util/tdevshellwidget.cpp (renamed from lib/util/kdevshellwidget.cpp) | 24 | ||||
-rw-r--r-- | lib/util/tdevshellwidget.h (renamed from lib/util/kdevshellwidget.h) | 10 |
12 files changed, 72 insertions, 72 deletions
diff --git a/lib/util/CMakeLists.txt b/lib/util/CMakeLists.txt index 1eb17f35..0114b5ae 100644 --- a/lib/util/CMakeLists.txt +++ b/lib/util/CMakeLists.txt @@ -26,13 +26,13 @@ install( FILES DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/util ) -##### kdevutil (static) ######################### +##### tdevutil (static) ######################### -tde_add_library( kdevutil STATIC_PIC AUTOMOC +tde_add_library( tdevutil STATIC_PIC AUTOMOC SOURCES blockingkprocess.cpp configwidgetproxy.cpp domutil.cpp execcommand.cpp filetemplate.cpp - kdeveditorutil.cpp kdevjobtimer.cpp - kdevshellwidget.cpp tdescriptactionmanager.cpp + tdeveditorutil.cpp tdevjobtimer.cpp + tdevshellwidget.cpp tdescriptactionmanager.cpp rurl.cpp settings.cpp urlutil.cpp ) diff --git a/lib/util/Makefile.am b/lib/util/Makefile.am index 8bf28091..52ededb0 100644 --- a/lib/util/Makefile.am +++ b/lib/util/Makefile.am @@ -1,10 +1,10 @@ INCLUDES = -I$(top_srcdir)/lib/compat -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/lib/sourceinfo $(all_includes) -noinst_LTLIBRARIES = libkdevutil.la +noinst_LTLIBRARIES = libtdevutil.la -libkdevutil_la_SOURCES = blockingkprocess.cpp configwidgetproxy.cpp domutil.cpp \ - execcommand.cpp filetemplate.cpp kdeveditorutil.cpp kdevjobtimer.cpp \ - kdevshellwidget.cpp tdescriptactionmanager.cpp rurl.cpp settings.cpp urlutil.cpp +libtdevutil_la_SOURCES = blockingkprocess.cpp configwidgetproxy.cpp domutil.cpp \ + execcommand.cpp filetemplate.cpp tdeveditorutil.cpp tdevjobtimer.cpp \ + tdevshellwidget.cpp tdescriptactionmanager.cpp rurl.cpp settings.cpp urlutil.cpp METASOURCES = AUTO @@ -12,10 +12,10 @@ tdevelopincludedir = $(includedir)/tdevelop/util tdevelopinclude_HEADERS = domutil.h execcommand.h filetemplate.h urlutil.h \ configwidgetproxy.h rurl.h tdescriptactionmanager.h -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevextensions kdevinterfaces -DOXYGEN_PROJECTNAME = KDevelop Utility Library -DOXYGEN_DOCDIRPREFIX = kdev +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevextensions tdevinterfaces +DOXYGEN_PROJECTNAME = TDevelop Utility Library +DOXYGEN_DOCDIRPREFIX = tdev include ../../Doxyfile.am -noinst_HEADERS = blockingkprocess.h kdeveditorutil.h kdevjobtimer.h \ - kdevshellwidget.h settings.h +noinst_HEADERS = blockingkprocess.h tdeveditorutil.h tdevjobtimer.h \ + tdevshellwidget.h settings.h diff --git a/lib/util/configwidgetproxy.cpp b/lib/util/configwidgetproxy.cpp index bea1c79a..c2251158 100644 --- a/lib/util/configwidgetproxy.cpp +++ b/lib/util/configwidgetproxy.cpp @@ -26,13 +26,13 @@ #include <kdialogbase.h> #include <kiconloader.h> -#include <kdevcore.h> +#include <tdevcore.h> #include "configwidgetproxy.h" -ConfigWidgetProxy::ConfigWidgetProxy( KDevCore * core ) +ConfigWidgetProxy::ConfigWidgetProxy( TDevCore * core ) { connect( core, TQT_SIGNAL(configWidget(KDialogBase*)), this, TQT_SLOT(slotConfigWidget( KDialogBase*)) ); connect( core, TQT_SIGNAL(projectConfigWidget(KDialogBase*)), this, TQT_SLOT(slotProjectConfigWidget( KDialogBase*)) ); diff --git a/lib/util/configwidgetproxy.h b/lib/util/configwidgetproxy.h index 7881f830..f1ced178 100644 --- a/lib/util/configwidgetproxy.h +++ b/lib/util/configwidgetproxy.h @@ -24,7 +24,7 @@ #include <tqstring.h> #include <tqmap.h> -class KDevCore; +class TDevCore; class KDialogBase; /** @@ -65,8 +65,8 @@ void MyPart::insertConfigWidget( TQObject const * dlg, TQWidget * page, unsigned } @endcode -Note that this replaces the functionality of typical KDevCore::configWidget() and -KDevCore::projectConfigWidget() slots. +Note that this replaces the functionality of typical TDevCore::configWidget() and +TDevCore::projectConfigWidget() slots. */ class ConfigWidgetProxy : public TQObject { @@ -76,7 +76,7 @@ Q_OBJECT public: /**Constructor. @param core An instance of KDevelop Core.*/ - ConfigWidgetProxy( KDevCore * core ); + ConfigWidgetProxy( TDevCore * core ); virtual ~ConfigWidgetProxy(); /** diff --git a/lib/util/filetemplate.cpp b/lib/util/filetemplate.cpp index c2454580..4d0facdf 100644 --- a/lib/util/filetemplate.cpp +++ b/lib/util/filetemplate.cpp @@ -27,12 +27,12 @@ #include <kstandarddirs.h> -#include "kdevplugin.h" -#include "kdevproject.h" +#include "tdevplugin.h" +#include "tdevproject.h" #include "domutil.h" -bool FileTemplate::exists(KDevPlugin *part, const TQString &name, Policy p) +bool FileTemplate::exists(TDevPlugin *part, const TQString &name, Policy p) { //TQString fileName = (p == Default) ? // (part->project()->projectDirectory() + "/templates/" + name) : name; @@ -40,17 +40,17 @@ bool FileTemplate::exists(KDevPlugin *part, const TQString &name, Policy p) return TQFile::exists( fullPathForName(part,name,p) ); } -TQString FileTemplate::read(KDevPlugin *part, const TQString &name, Policy p) +TQString FileTemplate::read(TDevPlugin *part, const TQString &name, Policy p) { - //KDevProject *project = part->project(); + //TDevProject *project = part->project(); //TQString fileName = (p == Default) ? (project->projectDirectory() + // "/templates/" + name) : name; return readFile(part, fullPathForName(part, name, p) ); } -TQString FileTemplate::readFile(KDevPlugin *part, const TQString &fileName) +TQString FileTemplate::readFile(TDevPlugin *part, const TQString &fileName) { TQDomDocument &dom = *part->projectDom(); @@ -87,7 +87,7 @@ TQString FileTemplate::makeSubstitutions( TQDomDocument & dom, const TQString & } -bool FileTemplate::copy(KDevPlugin *part, const TQString &name, +bool FileTemplate::copy(TDevPlugin *part, const TQString &name, const TQString &dest, Policy p) { TQString text = read(part, name, p); @@ -109,7 +109,7 @@ bool FileTemplate::copy(KDevPlugin *part, const TQString &name, return true; } -TQString FileTemplate::fullPathForName(KDevPlugin *part, const TQString &name, +TQString FileTemplate::fullPathForName(TDevPlugin *part, const TQString &name, Policy p) { // if Policy is not default, full path is just the name if (p!=Default) return name; @@ -123,6 +123,6 @@ TQString FileTemplate::fullPathForName(KDevPlugin *part, const TQString &name, } // next try global - TQString globalName = ::locate("data", "kdevfilecreate/file-templates/" + name); + TQString globalName = ::locate("data", "tdevfilecreate/file-templates/" + name); return globalName.isNull() ? fileName : globalName; } diff --git a/lib/util/filetemplate.h b/lib/util/filetemplate.h index 8f863535..7802f9b7 100644 --- a/lib/util/filetemplate.h +++ b/lib/util/filetemplate.h @@ -22,7 +22,7 @@ #include <tqstring.h> -class KDevPlugin; +class TDevPlugin; class TQDomDocument; /** @@ -49,21 +49,21 @@ public: * exists in the current project. File templates * are stored in the "templates" subdirectory of a project or in application shared dirs. */ - static bool exists(KDevPlugin *part, const TQString &name, Policy p = Default); + static bool exists(TDevPlugin *part, const TQString &name, Policy p = Default); /** * Reads a template with the given name (e.g. "cpp") * and makes variable substitutions (like $AUTHOR$ etc.) * in it. The resulting string is returned. */ - static TQString read(KDevPlugin *part, const TQString &name, Policy p = Default); + static TQString read(TDevPlugin *part, const TQString &name, Policy p = Default); /** * Reads a template with the given URL * and makes variable substitutions (like $AUTHOR$ etc.) * in it. The resulting string is returned. */ - static TQString readFile(KDevPlugin *part, const TQString &fileName); + static TQString readFile(TDevPlugin *part, const TQString &fileName); /** * Makes variable substitutions on a text, based on a specified TQDomDocument @@ -76,13 +76,13 @@ public: * file with the name dest and - while copying - * performs variable substitutions. */ - static bool copy(KDevPlugin *part, const TQString &name, + static bool copy(TDevPlugin *part, const TQString &name, const TQString &dest, Policy p = Default); /** * Translates a template name into a full path, or suggests a full path * for the template in the project directory if it doesn't exist. */ - static TQString fullPathForName(KDevPlugin *part, const TQString &name, Policy p = Default); + static TQString fullPathForName(TDevPlugin *part, const TQString &name, Policy p = Default); }; #endif diff --git a/lib/util/kdeveditorutil.cpp b/lib/util/tdeveditorutil.cpp index 198e9a42..455909f8 100644 --- a/lib/util/kdeveditorutil.cpp +++ b/lib/util/tdeveditorutil.cpp @@ -9,7 +9,7 @@ * * ***************************************************************************/ -#include "kdeveditorutil.h" +#include "tdeveditorutil.h" #include <tdetexteditor/document.h> #include <tdetexteditor/view.h> @@ -17,7 +17,7 @@ #include <tdetexteditor/editinterface.h> #include <tdetexteditor/selectioninterface.h> -bool KDevEditorUtil::currentPositionReal( unsigned int * line, unsigned int * col, KTextEditor::Document * doc, KTextEditor::View * view ) +bool TDevEditorUtil::currentPositionReal( unsigned int * line, unsigned int * col, KTextEditor::Document * doc, KTextEditor::View * view ) { if ( !line || !col ) return false; @@ -33,7 +33,7 @@ bool KDevEditorUtil::currentPositionReal( unsigned int * line, unsigned int * co return true; } -TQString KDevEditorUtil::currentLine( KTextEditor::Document * doc, KTextEditor::View * view ) +TQString TDevEditorUtil::currentLine( KTextEditor::Document * doc, KTextEditor::View * view ) { KTextEditor::EditInterface * editIface = dynamic_cast<KTextEditor::EditInterface*>( doc ); if ( !editIface ) return TQString(); @@ -50,7 +50,7 @@ TQString KDevEditorUtil::currentLine( KTextEditor::Document * doc, KTextEditor:: return editIface->textLine(line); } -TQString KDevEditorUtil::currentWord( KTextEditor::Document * doc, KTextEditor::View * view ) +TQString TDevEditorUtil::currentWord( KTextEditor::Document * doc, KTextEditor::View * view ) { KTextEditor::EditInterface * editIface = dynamic_cast<KTextEditor::EditInterface*>( doc ); if ( !editIface ) return TQString(); @@ -78,7 +78,7 @@ TQString KDevEditorUtil::currentWord( KTextEditor::Document * doc, KTextEditor:: } -TQString KDevEditorUtil::currentSelection( KTextEditor::Document * doc ) +TQString TDevEditorUtil::currentSelection( KTextEditor::Document * doc ) { KTextEditor::SelectionInterface * selectIface = dynamic_cast<KTextEditor::SelectionInterface*>( doc ); return selectIface ? selectIface->selection() : TQString(); diff --git a/lib/util/kdeveditorutil.h b/lib/util/tdeveditorutil.h index 79a64fe1..d69e914b 100644 --- a/lib/util/kdeveditorutil.h +++ b/lib/util/tdeveditorutil.h @@ -9,8 +9,8 @@ * * ***************************************************************************/ -#ifndef KDEVEDITOR_H -#define KDEVEDITOR_H +#ifndef TDEVEDITOR_H +#define TDEVEDITOR_H namespace KTextEditor { @@ -25,9 +25,9 @@ Class with some common utility operations not currently supported by KTE @author Jens Dagerbo <jens.dagerbo@swipnet.se> */ -class KDevEditorUtil +class TDevEditorUtil { - KDevEditorUtil() {} + TDevEditorUtil() {} public: /** diff --git a/lib/util/kdevjobtimer.cpp b/lib/util/tdevjobtimer.cpp index b0b78250..0e1465e0 100644 --- a/lib/util/kdevjobtimer.cpp +++ b/lib/util/tdevjobtimer.cpp @@ -9,31 +9,31 @@ * * ***************************************************************************/ -#include "kdevjobtimer.h" +#include "tdevjobtimer.h" -KDevJobTimer::KDevJobTimer( void * payload, TQObject *parent, const char *name) +TDevJobTimer::TDevJobTimer( void * payload, TQObject *parent, const char *name) : TQTimer(parent, name) { m_payload = payload; connect( this, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()) ); } -KDevJobTimer::~KDevJobTimer() +TDevJobTimer::~TDevJobTimer() { } -void KDevJobTimer::singleShot(int msec, TQObject * receiver, const char * member, void * payload) +void TDevJobTimer::singleShot(int msec, TQObject * receiver, const char * member, void * payload) { - KDevJobTimer * p = new KDevJobTimer( payload ); + TDevJobTimer * p = new TDevJobTimer( payload ); p->start( msec, true ); connect( p, TQT_SIGNAL(timeout(void*)), receiver, member ); } -void KDevJobTimer::slotTimeout() +void TDevJobTimer::slotTimeout() { emit timeout( m_payload ); m_payload = 0; deleteLater(); } -#include "kdevjobtimer.moc" +#include "tdevjobtimer.moc" diff --git a/lib/util/kdevjobtimer.h b/lib/util/tdevjobtimer.h index b0fa829e..313e56e5 100644 --- a/lib/util/kdevjobtimer.h +++ b/lib/util/tdevjobtimer.h @@ -9,12 +9,12 @@ * * ***************************************************************************/ -#ifndef KDEVJOBTIMER_H -#define KDEVJOBTIMER_H +#ifndef TDEVJOBTIMER_H +#define TDEVJOBTIMER_H #include <tqtimer.h> -class KDevJobTimer : public TQTimer +class TDevJobTimer : public TQTimer { Q_OBJECT @@ -25,8 +25,8 @@ signals: void timeout(void*); private: - KDevJobTimer( void * payload, TQObject *parent = 0, const char *name = 0); - ~KDevJobTimer(); + TDevJobTimer( void * payload, TQObject *parent = 0, const char *name = 0); + ~TDevJobTimer(); private slots: void slotTimeout(); diff --git a/lib/util/kdevshellwidget.cpp b/lib/util/tdevshellwidget.cpp index b9220250..b5b8d195 100644 --- a/lib/util/kdevshellwidget.cpp +++ b/lib/util/tdevshellwidget.cpp @@ -18,25 +18,25 @@ #include <kde_terminal_interface.h> #include <kprocess.h> -#include "kdevshellwidget.h" +#include "tdevshellwidget.h" -KDevShellWidget::KDevShellWidget(TQWidget *parent, const char *name) +TDevShellWidget::TDevShellWidget(TQWidget *parent, const char *name) : TQVBox(parent, name), m_doAutoActivate( false ), m_isRunning( false ) { } -KDevShellWidget::~KDevShellWidget() +TDevShellWidget::~TDevShellWidget() { } -void KDevShellWidget::setShell( const TQString & shell, const TQStrList & arguments ) +void TDevShellWidget::setShell( const TQString & shell, const TQStrList & arguments ) { m_shellName = shell; m_shellArguments = arguments; } -void KDevShellWidget::activate( ) +void TDevShellWidget::activate( ) { KLibFactory *factory = KLibLoader::self()->factory("libkonsolepart"); if ( !factory ) return; @@ -67,7 +67,7 @@ void KDevShellWidget::activate( ) } -void KDevShellWidget::partDestroyed( ) +void TDevShellWidget::partDestroyed( ) { if ( m_doAutoActivate ) { @@ -75,7 +75,7 @@ void KDevShellWidget::partDestroyed( ) } } -void KDevShellWidget::processExited( TDEProcess * proc ) +void TDevShellWidget::processExited( TDEProcess * proc ) { m_isRunning = false; @@ -89,7 +89,7 @@ void KDevShellWidget::processExited( TDEProcess * proc ) emit shellSignalled( proc->exitSignal() ); } -void KDevShellWidget::sendInput( const TQString & text ) +void TDevShellWidget::sendInput( const TQString & text ) { if ( !m_konsolePart ) return; TerminalInterface* ti = static_cast<TerminalInterface*>( m_konsolePart->tqt_cast( "TerminalInterface" ) ); @@ -98,12 +98,12 @@ void KDevShellWidget::sendInput( const TQString & text ) ti->sendInput( text ); } -bool KDevShellWidget::isRunning( ) +bool TDevShellWidget::isRunning( ) { return m_isRunning; } -void KDevShellWidget::setAutoReactivateOnClose( bool doAutoActivate ) +void TDevShellWidget::setAutoReactivateOnClose( bool doAutoActivate ) { // to auto reactivate can be dangerous, do it like this to avoid // reactivating with a non-working setting (the partDestroyed() @@ -114,12 +114,12 @@ void KDevShellWidget::setAutoReactivateOnClose( bool doAutoActivate ) m_doAutoActivate = false; } -void KDevShellWidget::setAutoReactivateOnCloseDelayed( ) +void TDevShellWidget::setAutoReactivateOnCloseDelayed( ) { m_doAutoActivate = true; } -#include "kdevshellwidget.moc" +#include "tdevshellwidget.moc" // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off; diff --git a/lib/util/kdevshellwidget.h b/lib/util/tdevshellwidget.h index 6bb6a8d7..f6476814 100644 --- a/lib/util/kdevshellwidget.h +++ b/lib/util/tdevshellwidget.h @@ -10,8 +10,8 @@ ***************************************************************************/ -#ifndef KDEVSHELLWIDGET_H -#define KDEVSHELLWIDGET_H +#ifndef TDEVSHELLWIDGET_H +#define TDEVSHELLWIDGET_H #include <tqstrlist.h> #include <tqvbox.h> @@ -23,15 +23,15 @@ namespace KParts class ReadOnlyPart; } -class KDevShellWidget : public TQVBox +class TDevShellWidget : public TQVBox { Q_OBJECT public: - KDevShellWidget(TQWidget *parent = 0, const char *name = 0); - virtual ~KDevShellWidget(); + TDevShellWidget(TQWidget *parent = 0, const char *name = 0); + virtual ~TDevShellWidget(); /** * Stores the shell name and arguments, that will be used in @ref activate() |