diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CMakeLists.txt | 4 | ||||
-rw-r--r-- | lib/Makefile.am | 10 | ||||
-rw-r--r-- | lib/catalog/CMakeLists.txt | 4 | ||||
-rw-r--r-- | lib/catalog/Makefile.am | 14 | ||||
-rw-r--r-- | lib/cppparser/CMakeLists.txt | 6 | ||||
-rw-r--r-- | lib/cppparser/Makefile.am | 12 | ||||
-rw-r--r-- | lib/cppparser/lexer.cpp | 4 | ||||
-rw-r--r-- | lib/interfaces/CMakeLists.txt | 34 | ||||
-rw-r--r-- | lib/interfaces/Makefile.am | 38 | ||||
-rw-r--r-- | lib/interfaces/TDevCoreIface.cpp (renamed from lib/interfaces/KDevCoreIface.cpp) | 18 | ||||
-rw-r--r-- | lib/interfaces/TDevCoreIface.h (renamed from lib/interfaces/KDevCoreIface.h) | 14 | ||||
-rw-r--r-- | lib/interfaces/TDevPartControllerIface.cpp (renamed from lib/interfaces/KDevPartControllerIface.cpp) | 30 | ||||
-rw-r--r-- | lib/interfaces/TDevPartControllerIface.h (renamed from lib/interfaces/KDevPartControllerIface.h) | 14 | ||||
-rw-r--r-- | lib/interfaces/extensions/CMakeLists.txt | 20 | ||||
-rw-r--r-- | lib/interfaces/extensions/Mainpage.dox | 10 | ||||
-rw-r--r-- | lib/interfaces/extensions/Makefile.am | 18 | ||||
-rw-r--r-- | lib/interfaces/extensions/codebrowserfrontend.h | 8 | ||||
-rw-r--r-- | lib/interfaces/extensions/dcop/CMakeLists.txt | 10 | ||||
-rw-r--r-- | lib/interfaces/extensions/dcop/Makefile.am | 10 | ||||
-rw-r--r-- | lib/interfaces/extensions/dcop/TDevAppFrontendIface.cpp (renamed from lib/interfaces/extensions/dcop/KDevAppFrontendIface.cpp) | 26 | ||||
-rw-r--r-- | lib/interfaces/extensions/dcop/TDevAppFrontendIface.h (renamed from lib/interfaces/extensions/dcop/KDevAppFrontendIface.h) | 14 | ||||
-rw-r--r-- | lib/interfaces/extensions/dcop/TDevMakeFrontendIface.cpp (renamed from lib/interfaces/extensions/dcop/KDevMakeFrontendIface.cpp) | 14 | ||||
-rw-r--r-- | lib/interfaces/extensions/dcop/TDevMakeFrontendIface.h (renamed from lib/interfaces/extensions/dcop/KDevMakeFrontendIface.h) | 14 | ||||
-rw-r--r-- | lib/interfaces/extensions/kdevappfrontend.cpp | 2 | ||||
-rw-r--r-- | lib/interfaces/extensions/kdevmakefrontend.cpp | 2 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevappfrontend.cpp | 2 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevappfrontend.h (renamed from lib/interfaces/extensions/kdevappfrontend.h) | 20 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevcreatefile.h (renamed from lib/interfaces/extensions/kdevcreatefile.h) | 22 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevdifffrontend.cpp (renamed from lib/interfaces/extensions/kdevdifffrontend.cpp) | 10 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevdifffrontend.h (renamed from lib/interfaces/extensions/kdevdifffrontend.h) | 20 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevmakefrontend.cpp | 2 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevmakefrontend.h (renamed from lib/interfaces/extensions/kdevmakefrontend.h) | 20 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevquickopen.h (renamed from lib/interfaces/extensions/kdevquickopen.h) | 36 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevsourceformatter.h (renamed from lib/interfaces/extensions/kdevsourceformatter.h) | 18 | ||||
-rw-r--r-- | lib/interfaces/extensions/tdevversioncontrol.h (renamed from lib/interfaces/extensions/kdevversioncontrol.h) | 36 | ||||
-rw-r--r-- | lib/interfaces/external/Mainpage.dox | 14 | ||||
-rw-r--r-- | lib/interfaces/extras/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/interfaces/extras/Makefile.am | 14 | ||||
-rw-r--r-- | lib/interfaces/extras/kdevcompileroptions.cpp | 8 | ||||
-rw-r--r-- | lib/interfaces/extras/tdevcompileroptions.cpp | 8 | ||||
-rw-r--r-- | lib/interfaces/extras/tdevcompileroptions.h (renamed from lib/interfaces/extras/kdevcompileroptions.h) | 20 | ||||
-rw-r--r-- | lib/interfaces/extras/tdevvcsintegrator.cpp (renamed from lib/interfaces/extras/kdevvcsintegrator.cpp) | 6 | ||||
-rw-r--r-- | lib/interfaces/extras/tdevvcsintegrator.h (renamed from lib/interfaces/extras/kdevvcsintegrator.h) | 10 | ||||
-rw-r--r-- | lib/interfaces/katedocumentmanagerinterface.cpp | 4 | ||||
-rw-r--r-- | lib/interfaces/katedocumentmanagerinterface.h | 6 | ||||
-rw-r--r-- | lib/interfaces/tdevapi.cpp (renamed from lib/interfaces/kdevapi.cpp) | 40 | ||||
-rw-r--r-- | lib/interfaces/tdevapi.h (renamed from lib/interfaces/kdevapi.h) | 48 | ||||
-rw-r--r-- | lib/interfaces/tdevcoderepository.cpp (renamed from lib/interfaces/kdevcoderepository.cpp) | 26 | ||||
-rw-r--r-- | lib/interfaces/tdevcoderepository.h (renamed from lib/interfaces/kdevcoderepository.h) | 16 | ||||
-rw-r--r-- | lib/interfaces/tdevcore.cpp (renamed from lib/interfaces/kdevcore.cpp) | 14 | ||||
-rw-r--r-- | lib/interfaces/tdevcore.h (renamed from lib/interfaces/kdevcore.h) | 26 | ||||
-rw-r--r-- | lib/interfaces/tdevdesignerintegration.cpp (renamed from lib/interfaces/kdevdesignerintegration.cpp) | 18 | ||||
-rw-r--r-- | lib/interfaces/tdevdesignerintegration.h (renamed from lib/interfaces/kdevdesignerintegration.h) | 16 | ||||
-rw-r--r-- | lib/interfaces/tdevdesignerintegrationiface.cpp (renamed from lib/interfaces/kdevdesignerintegrationiface.cpp) | 18 | ||||
-rw-r--r-- | lib/interfaces/tdevdesignerintegrationiface.h (renamed from lib/interfaces/kdevdesignerintegrationiface.h) | 14 | ||||
-rw-r--r-- | lib/interfaces/tdevgenericfactory.h (renamed from lib/interfaces/kdevgenericfactory.h) | 30 | ||||
-rw-r--r-- | lib/interfaces/tdevlanguagesupport.cpp (renamed from lib/interfaces/kdevlanguagesupport.cpp) | 74 | ||||
-rw-r--r-- | lib/interfaces/tdevlanguagesupport.h (renamed from lib/interfaces/kdevlanguagesupport.h) | 38 | ||||
-rw-r--r-- | lib/interfaces/tdevmainwindow.cpp (renamed from lib/interfaces/kdevmainwindow.cpp) | 4 | ||||
-rw-r--r-- | lib/interfaces/tdevmainwindow.h (renamed from lib/interfaces/kdevmainwindow.h) | 10 | ||||
-rw-r--r-- | lib/interfaces/tdevpartcontroller.cpp (renamed from lib/interfaces/kdevpartcontroller.cpp) | 10 | ||||
-rw-r--r-- | lib/interfaces/tdevpartcontroller.h (renamed from lib/interfaces/kdevpartcontroller.h) | 10 | ||||
-rw-r--r-- | lib/interfaces/tdevplugin.cpp (renamed from lib/interfaces/kdevplugin.cpp) | 56 | ||||
-rw-r--r-- | lib/interfaces/tdevplugin.h (renamed from lib/interfaces/kdevplugin.h) | 64 | ||||
-rw-r--r-- | lib/interfaces/tdevplugincontroller.cpp (renamed from lib/interfaces/kdevplugincontroller.cpp) | 16 | ||||
-rw-r--r-- | lib/interfaces/tdevplugincontroller.h (renamed from lib/interfaces/kdevplugincontroller.h) | 20 | ||||
-rw-r--r-- | lib/interfaces/tdevplugininfo.cpp (renamed from lib/interfaces/kdevplugininfo.cpp) | 46 | ||||
-rw-r--r-- | lib/interfaces/tdevplugininfo.h (renamed from lib/interfaces/kdevplugininfo.h) | 18 | ||||
-rw-r--r-- | lib/interfaces/tdevproject.cpp (renamed from lib/interfaces/kdevproject.cpp) | 44 | ||||
-rw-r--r-- | lib/interfaces/tdevproject.h (renamed from lib/interfaces/kdevproject.h) | 20 | ||||
-rw-r--r-- | lib/interfaces/tdevprojectiface.cpp (renamed from lib/interfaces/kdevprojectiface.cpp) | 72 | ||||
-rw-r--r-- | lib/interfaces/tdevprojectiface.h (renamed from lib/interfaces/kdevprojectiface.h) | 16 | ||||
-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 | ||||
-rw-r--r-- | lib/widgets/CMakeLists.txt | 10 | ||||
-rw-r--r-- | lib/widgets/Makefile.am | 24 | ||||
-rw-r--r-- | lib/widgets/propeditor/CMakeLists.txt | 4 | ||||
-rw-r--r-- | lib/widgets/propeditor/Makefile.am | 14 | ||||
-rw-r--r-- | lib/widgets/tdevhtml_partui.rc (renamed from lib/widgets/kdevhtml_partui.rc) | 2 | ||||
-rw-r--r-- | lib/widgets/tdevhtmlpart.cpp (renamed from lib/widgets/kdevhtmlpart.cpp) | 58 | ||||
-rw-r--r-- | lib/widgets/tdevhtmlpart.h (renamed from lib/widgets/kdevhtmlpart.h) | 10 | ||||
-rw-r--r-- | lib/widgets/tdevtabwidget.cpp (renamed from lib/widgets/kdevtabwidget.cpp) | 8 |
92 files changed, 846 insertions, 846 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 0398ddf0..e9088337 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -31,9 +31,9 @@ link_directories( tde_add_library( tdevelop SHARED SOURCES dummy.cpp VERSION 1.0.0 - EMBED kdevutil-static kdevinterfaces-static + EMBED tdevutil-static tdevinterfaces-static LINK - kdevpropertyeditor-shared + tdevpropertyeditor-shared tdescript-shared tdeparts-shared tdetexteditor-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/lib/Makefile.am b/lib/Makefile.am index d590051e..55b974c5 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,4 +1,4 @@ -# Here resides the library of general KDevelop-related utilities, +# Here resides the library of general TDevelop-related utilities, # which may be linked by any plugin or part. This is installed # as a shared library, including header files @@ -6,11 +6,11 @@ INCLUDES = $(all_includes) lib_LTLIBRARIES = libtdevelop.la libtdevelop_la_LDFLAGS = -no-undefined $(all_libraries) -version-info 1:0 -libtdevelop_la_LIBADD = $(top_builddir)/lib/interfaces/libkdevinterfaces.la \ - $(top_builddir)/lib/widgets/propeditor/libkdevpropertyeditor.la $(LIB_TDEIO) +libtdevelop_la_LIBADD = $(top_builddir)/lib/interfaces/libtdevinterfaces.la \ + $(top_builddir)/lib/widgets/propeditor/libtdevpropertyeditor.la $(LIB_TDEIO) -# $(top_builddir)/lib/util/libkdevutil.la $(top_builddir)/lib/widgets/propeditor/libkdevpropertyeditor.la \ -# $(top_builddir)/lib/interfaces/external/libkinterfacedesigner.la $(top_builddir)/lib/interfaces/extensions/libkdevextensions.la \ +# $(top_builddir)/lib/util/libtdevutil.la $(top_builddir)/lib/widgets/propeditor/libtdevpropertyeditor.la \ +# $(top_builddir)/lib/interfaces/external/libkinterfacedesigner.la $(top_builddir)/lib/interfaces/extensions/libtdevextensions.la \ # -ltdetexteditor $(LIB_TDEPARTS) $(LIB_TDEIO) -ltdescript libtdevelop_la_SOURCES = dummy.cpp diff --git a/lib/catalog/CMakeLists.txt b/lib/catalog/CMakeLists.txt index 5c1b4f2b..13b008d1 100644 --- a/lib/catalog/CMakeLists.txt +++ b/lib/catalog/CMakeLists.txt @@ -28,9 +28,9 @@ install( FILES DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/catalog ) -##### kdevcatalog (shared) ###################### +##### tdevcatalog (shared) ###################### -tde_add_library( kdevcatalog SHARED AUTOMOC +tde_add_library( tdevcatalog SHARED AUTOMOC SOURCES tag.cpp catalog.cpp VERSION 0.0.0 LINK tdecore-shared ${BDB_LIBRARY} diff --git a/lib/catalog/Makefile.am b/lib/catalog/Makefile.am index c8c7ddc1..e45a2530 100644 --- a/lib/catalog/Makefile.am +++ b/lib/catalog/Makefile.am @@ -1,13 +1,13 @@ INCLUDES = $(all_includes) $(DB3INCLUDES) -lib_LTLIBRARIES = libkdevcatalog.la -libkdevcatalog_la_SOURCES = tag.cpp catalog.cpp -libkdevcatalog_la_LDFLAGS = -no-undefined $(all_libraries) $(DB3LDFLAGS) -libkdevcatalog_la_LIBADD = -l$(DB3LIB) $(LIB_TDECORE) $(LIB_QT) +lib_LTLIBRARIES = libtdevcatalog.la +libtdevcatalog_la_SOURCES = tag.cpp catalog.cpp +libtdevcatalog_la_LDFLAGS = -no-undefined $(all_libraries) $(DB3LDFLAGS) +libtdevcatalog_la_LIBADD = -l$(DB3LIB) $(LIB_TDECORE) $(LIB_QT) -kdevcatalogincludedir = $(includedir)/tdevelop/catalog -kdevcataloginclude_HEADERS = catalog.h tag.h +tdevcatalogincludedir = $(includedir)/tdevelop/catalog +tdevcataloginclude_HEADERS = catalog.h tag.h DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils DOXYGEN_PROJECTNAME = TDevelop Catalog Library -DOXYGEN_DOCDIRPREFIX = kdev +DOXYGEN_DOCDIRPREFIX = tdev include ../../Doxyfile.am diff --git a/lib/cppparser/CMakeLists.txt b/lib/cppparser/CMakeLists.txt index 3b53e900..20db36c5 100644 --- a/lib/cppparser/CMakeLists.txt +++ b/lib/cppparser/CMakeLists.txt @@ -31,13 +31,13 @@ install( FILES DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/cppparser ) -##### kdevcppparser (shared) #################### +##### tdevcppparser (shared) #################### -tde_add_library( kdevcppparser SHARED AUTOMOC +tde_add_library( tdevcppparser SHARED AUTOMOC SOURCES ast.cpp cachemanager.cpp driver.cpp errors.cpp lexer.cpp lexercache.cpp lookup.cpp parser.cpp tree_parser.cpp VERSION 0.0.0 - LINK kdevinterfaces-static tdeio-shared + LINK tdevinterfaces-static tdeio-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/lib/cppparser/Makefile.am b/lib/cppparser/Makefile.am index 4e62cebf..082c8227 100644 --- a/lib/cppparser/Makefile.am +++ b/lib/cppparser/Makefile.am @@ -1,11 +1,11 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces $(all_includes) AM_CXXFLAGS = -DKDEVELOP_BGPARSER -lib_LTLIBRARIES = libkdevcppparser.la -libkdevcppparser_la_LDFLAGS = $(all_libraries) -libkdevcppparser_la_LIBADD = $(LIB_QT) $(LIB_TDECORE) $(top_builddir)/lib/interfaces/libkdevinterfaces.la -lDCOP $(LIB_TDEUI) $(LIB_TDEPARTS) -ltdetexteditor $(LIB_TDEIO) -ltdescript -libkdevcppparser_la_SOURCES = ast.cpp cachemanager.cpp driver.cpp errors.cpp \ +lib_LTLIBRARIES = libtdevcppparser.la +libtdevcppparser_la_LDFLAGS = $(all_libraries) +libtdevcppparser_la_LIBADD = $(LIB_QT) $(LIB_TDECORE) $(top_builddir)/lib/interfaces/libtdevinterfaces.la -lDCOP $(LIB_TDEUI) $(LIB_TDEPARTS) -ltdetexteditor $(LIB_TDEIO) -ltdescript +libtdevcppparser_la_SOURCES = ast.cpp cachemanager.cpp driver.cpp errors.cpp \ lexer.cpp lexercache.cpp lookup.cpp parser.cpp tree_parser.cpp -kdevcppparserincludedir = $(includedir)/tdevelop/cppparser -kdevcppparserinclude_HEADERS = ast.h driver.h lexer.h parser.h tree_parser.h errors.h lookup.h cachemanager.h lexercache.h macro.h +tdevcppparserincludedir = $(includedir)/tdevelop/cppparser +tdevcppparserinclude_HEADERS = ast.h driver.h lexer.h parser.h tree_parser.h errors.h lookup.h cachemanager.h lexercache.h macro.h diff --git a/lib/cppparser/lexer.cpp b/lib/cppparser/lexer.cpp index 5325c80f..5f01a19e 100644 --- a/lib/cppparser/lexer.cpp +++ b/lib/cppparser/lexer.cpp @@ -30,7 +30,7 @@ #if defined( KDEVELOP_BGPARSER ) #include <tqthread.h> -class KDevTread: public TQThread +class TDevTread: public TQThread { public: static void yield() @@ -41,7 +41,7 @@ public: inline void qthread_yield() { - KDevTread::yield(); + TDevTread::yield(); } #endif diff --git a/lib/interfaces/CMakeLists.txt b/lib/interfaces/CMakeLists.txt index 94b07bec..47d6855d 100644 --- a/lib/interfaces/CMakeLists.txt +++ b/lib/interfaces/CMakeLists.txt @@ -27,12 +27,12 @@ include_directories( ##### headers ################################### install( FILES - kdevlanguagesupport.h kdevmainwindow.h kdevpartcontroller.h - kdevplugin.h kdevproject.h kdevcore.h kdevcoderepository.h + tdevlanguagesupport.h tdevmainwindow.h tdevpartcontroller.h + tdevplugin.h tdevproject.h tdevcore.h tdevcoderepository.h codemodel.h codemodel_utils.h codemodel_treeparser.h - kdevgenericfactory.h kdevapi.h kdevdesignerintegration.h - kdevplugincontroller.h kdevplugininfo.h KDevCoreIface.h - KDevPartControllerIface.h katedocumentmanagerinterface.h + tdevgenericfactory.h tdevapi.h tdevdesignerintegration.h + tdevplugincontroller.h tdevplugininfo.h TDevCoreIface.h + TDevPartControllerIface.h katedocumentmanagerinterface.h hashedstring.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/interfaces ) @@ -42,20 +42,20 @@ install( FILES DESTINATION ${SERVICETYPES_INSTALL_DIR} ) -##### kdevinterfaces (static) ################### +##### tdevinterfaces (static) ################### -tde_add_library( kdevinterfaces STATIC_PIC AUTOMOC +tde_add_library( tdevinterfaces STATIC_PIC AUTOMOC SOURCES - kdevcore.cpp kdevproject.cpp kdevlanguagesupport.cpp - kdevpartcontroller.cpp kdevapi.cpp KDevCoreIface.skel - kdevmainwindow.cpp KDevPartControllerIface.skel - kdevplugin.cpp kdevcoderepository.cpp + tdevcore.cpp tdevproject.cpp tdevlanguagesupport.cpp + tdevpartcontroller.cpp tdevapi.cpp TDevCoreIface.skel + tdevmainwindow.cpp TDevPartControllerIface.skel + tdevplugin.cpp tdevcoderepository.cpp codemodel.cpp codemodel_treeparser.cpp - codemodel_utils.cpp kdevdesignerintegration.cpp - kdevplugincontroller.cpp kdevplugininfo.cpp - KDevCoreIface.cpp KDevPartControllerIface.cpp + codemodel_utils.cpp tdevdesignerintegration.cpp + tdevplugincontroller.cpp tdevplugininfo.cpp + TDevCoreIface.cpp TDevPartControllerIface.cpp katedocumentmanagerinterface.cpp - katedocumentmanagerinterface.skel kdevprojectiface.cpp - kdevprojectiface.skel kdevdesignerintegrationiface.cpp - kdevdesignerintegrationiface.skel hashedstring.cpp + katedocumentmanagerinterface.skel tdevprojectiface.cpp + tdevprojectiface.skel tdevdesignerintegrationiface.cpp + tdevdesignerintegrationiface.skel hashedstring.cpp ) diff --git a/lib/interfaces/Makefile.am b/lib/interfaces/Makefile.am index 1944f4f9..93533492 100644 --- a/lib/interfaces/Makefile.am +++ b/lib/interfaces/Makefile.am @@ -1,27 +1,27 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces/external -I$(top_srcdir)/lib/util -I$(top_srcdir)/lib/cppparser \ $(all_includes) -noinst_LTLIBRARIES = libkdevinterfaces.la +noinst_LTLIBRARIES = libtdevinterfaces.la -libkdevinterfaces_la_SOURCES = kdevcore.cpp kdevproject.cpp \ - kdevlanguagesupport.cpp kdevpartcontroller.cpp kdevapi.cpp KDevCoreIface.skel \ - kdevmainwindow.cpp KDevPartControllerIface.skel kdevplugin.cpp kdevcoderepository.cpp \ +libtdevinterfaces_la_SOURCES = tdevcore.cpp tdevproject.cpp \ + tdevlanguagesupport.cpp tdevpartcontroller.cpp tdevapi.cpp TDevCoreIface.skel \ + tdevmainwindow.cpp TDevPartControllerIface.skel tdevplugin.cpp tdevcoderepository.cpp \ codemodel.cpp codemodel_treeparser.cpp codemodel_utils.cpp \ - kdevdesignerintegration.cpp kdevplugincontroller.cpp kdevplugininfo.cpp KDevCoreIface.cpp \ - KDevPartControllerIface.cpp katedocumentmanagerinterface.cpp katedocumentmanagerinterface.skel \ - kdevprojectiface.cpp kdevprojectiface.skel kdevdesignerintegrationiface.cpp \ - kdevdesignerintegrationiface.skel hashedstring.cpp -libkdevinterfaces_la_LDFLAGS = -no-undefined $(all_libraries) -libkdevinterfaces_la_LIBADD = $(top_builddir)/lib/interfaces/external/libkinterfacedesigner.la \ - $(top_builddir)/lib/util/libkdevutil.la \ + tdevdesignerintegration.cpp tdevplugincontroller.cpp tdevplugininfo.cpp TDevCoreIface.cpp \ + TDevPartControllerIface.cpp katedocumentmanagerinterface.cpp katedocumentmanagerinterface.skel \ + tdevprojectiface.cpp tdevprojectiface.skel tdevdesignerintegrationiface.cpp \ + tdevdesignerintegrationiface.skel hashedstring.cpp +libtdevinterfaces_la_LDFLAGS = -no-undefined $(all_libraries) +libtdevinterfaces_la_LIBADD = $(top_builddir)/lib/interfaces/external/libkinterfacedesigner.la \ + $(top_builddir)/lib/util/libtdevutil.la \ $(LIB_TDEUI) $(LIB_TDEHTML) $(LIB_TDEPARTS) -ltdetexteditor -ltdescript -lDCOP tdevelopincludedir = $(includedir)/tdevelop/interfaces -tdevelopinclude_HEADERS = kdevlanguagesupport.h kdevmainwindow.h \ - kdevpartcontroller.h kdevplugin.h kdevproject.h kdevcore.h kdevcoderepository.h codemodel.h \ - codemodel_utils.h codemodel_treeparser.h kdevgenericfactory.h kdevapi.h \ - kdevdesignerintegration.h kdevplugincontroller.h kdevplugininfo.h KDevCoreIface.h \ - KDevPartControllerIface.h katedocumentmanagerinterface.h \ +tdevelopinclude_HEADERS = tdevlanguagesupport.h tdevmainwindow.h \ + tdevpartcontroller.h tdevplugin.h tdevproject.h tdevcore.h tdevcoderepository.h codemodel.h \ + codemodel_utils.h codemodel_treeparser.h tdevgenericfactory.h tdevapi.h \ + tdevdesignerintegration.h tdevplugincontroller.h tdevplugininfo.h TDevCoreIface.h \ + TDevPartControllerIface.h katedocumentmanagerinterface.h \ hashedstring.h @@ -33,8 +33,8 @@ METASOURCES = AUTO SUBDIRS = extensions external extras -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevutil designer_integration kdevcatalog kdevprofileslib kdevextensions +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevutil designer_integration tdevcatalog tdevprofileslib tdevextensions DOXYGEN_PROJECTNAME = TDevelop Interfaces Library -DOXYGEN_DOCDIRPREFIX = kdev +DOXYGEN_DOCDIRPREFIX = tdev include ../../Doxyfile.am -noinst_HEADERS = kdevprojectiface.h kdevdesignerintegrationiface.h +noinst_HEADERS = tdevprojectiface.h tdevdesignerintegrationiface.h diff --git a/lib/interfaces/KDevCoreIface.cpp b/lib/interfaces/TDevCoreIface.cpp index aa70e01b..39d4bb97 100644 --- a/lib/interfaces/KDevCoreIface.cpp +++ b/lib/interfaces/TDevCoreIface.cpp @@ -22,38 +22,38 @@ */ #include <kdebug.h> #include <dcopclient.h> -#include "KDevCoreIface.h" -#include "kdevcore.h" +#include "TDevCoreIface.h" +#include "tdevcore.h" -KDevCoreIface::KDevCoreIface(KDevCore *core) - : TQObject(core), DCOPObject("KDevCore"), m_core(core) +TDevCoreIface::TDevCoreIface(TDevCore *core) + : TQObject(core), DCOPObject("TDevCore"), m_core(core) { connect( m_core, TQT_SIGNAL(projectOpened()), this, TQT_SLOT(forwardProjectOpened()) ); connect( m_core, TQT_SIGNAL(projectClosed()), this, TQT_SLOT(forwardProjectClosed()) ); } -KDevCoreIface::~KDevCoreIface() +TDevCoreIface::~TDevCoreIface() {} -void KDevCoreIface::forwardProjectOpened() +void TDevCoreIface::forwardProjectOpened() { kdDebug(9000) << "dcop emitting project opened" << endl; emitDCOPSignal("projectOpened()", TQByteArray()); } -void KDevCoreIface::forwardProjectClosed() +void TDevCoreIface::forwardProjectClosed() { kdDebug(9000) << "dcop emitting project closed" << endl; emitDCOPSignal("projectClosed()", TQByteArray()); } -void KDevCoreIface::openProject( const TQString & projectFileName ) +void TDevCoreIface::openProject( const TQString & projectFileName ) { m_core->openProject(projectFileName); } -#include "KDevCoreIface.moc" +#include "TDevCoreIface.moc" diff --git a/lib/interfaces/KDevCoreIface.h b/lib/interfaces/TDevCoreIface.h index 612c8457..f259005a 100644 --- a/lib/interfaces/KDevCoreIface.h +++ b/lib/interfaces/TDevCoreIface.h @@ -18,16 +18,16 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _KDEVCOREIFACE_H_ -#define _KDEVCOREIFACE_H_ +#ifndef _TDEVCOREIFACE_H_ +#define _TDEVCOREIFACE_H_ #include <dcopobject.h> #include <dcopref.h> -class KDevCore; +class TDevCore; -class KDevCoreIface : public TQObject, public DCOPObject +class TDevCoreIface : public TQObject, public DCOPObject { Q_OBJECT // @@ -35,8 +35,8 @@ class KDevCoreIface : public TQObject, public DCOPObject public: - KDevCoreIface( KDevCore *core ); - ~KDevCoreIface(); + TDevCoreIface( TDevCore *core ); + ~TDevCoreIface(); k_dcop: void openProject(const TQString& projectFileName); @@ -46,7 +46,7 @@ private slots: void forwardProjectClosed(); private: - KDevCore *m_core; + TDevCore *m_core; }; #endif diff --git a/lib/interfaces/KDevPartControllerIface.cpp b/lib/interfaces/TDevPartControllerIface.cpp index 1b184453..e8bd1bb7 100644 --- a/lib/interfaces/KDevPartControllerIface.cpp +++ b/lib/interfaces/TDevPartControllerIface.cpp @@ -21,12 +21,12 @@ #include <kurl.h> -#include "KDevPartControllerIface.h" -#include "kdevpartcontroller.h" +#include "TDevPartControllerIface.h" +#include "tdevpartcontroller.h" -KDevPartControllerIface::KDevPartControllerIface(KDevPartController *pc) - : TQObject(pc), DCOPObject("KDevPartController"), m_controller(pc) +TDevPartControllerIface::TDevPartControllerIface(TDevPartController *pc) + : TQObject(pc), DCOPObject("TDevPartController"), m_controller(pc) { connect(pc, TQT_SIGNAL(loadedFile(const KURL &)), this, TQT_SLOT(forwardLoadedFile(const KURL &))); connect(pc, TQT_SIGNAL(savedFile(const KURL &)), this, TQT_SLOT(forwardSavedFile(const KURL &))); @@ -34,62 +34,62 @@ KDevPartControllerIface::KDevPartControllerIface(KDevPartController *pc) } -KDevPartControllerIface::~KDevPartControllerIface() +TDevPartControllerIface::~TDevPartControllerIface() { } -void KDevPartControllerIface::editDocument(const TQString &url, int lineNum) +void TDevPartControllerIface::editDocument(const TQString &url, int lineNum) { m_controller->editDocument(KURL(url), lineNum); } -void KDevPartControllerIface::showDocument(const TQString &url, bool newWin) +void TDevPartControllerIface::showDocument(const TQString &url, bool newWin) { m_controller->showDocument(KURL(url), newWin); } -void KDevPartControllerIface::saveAllFiles() +void TDevPartControllerIface::saveAllFiles() { m_controller->saveAllFiles(); } -void KDevPartControllerIface::revertAllFiles() +void TDevPartControllerIface::revertAllFiles() { m_controller->revertAllFiles(); } -void KDevPartControllerIface::forwardLoadedFile(const KURL &fileName) +void TDevPartControllerIface::forwardLoadedFile(const KURL &fileName) { kdDebug(9000) << "dcop emitting loadedFile " << fileName << endl; emitDCOPSignal("projectOpened()", TQByteArray()); } -void KDevPartControllerIface::forwardSavedFile(const KURL &fileName) +void TDevPartControllerIface::forwardSavedFile(const KURL &fileName) { kdDebug(9000) << "dcop emitting savedFile " << fileName << endl; emitDCOPSignal("projectClosed()", TQByteArray()); } -void KDevPartControllerIface::forwardClosedFile(const KURL &fileName) +void TDevPartControllerIface::forwardClosedFile(const KURL &fileName) { kdDebug(9000) << "dcop emitting closedFile " << fileName << endl; emitDCOPSignal("projectClosed()", TQByteArray()); } -bool KDevPartControllerIface::closeAllFiles( ) +bool TDevPartControllerIface::closeAllFiles( ) { return m_controller->closeAllFiles(); } -uint KDevPartControllerIface::documentState( const KURL & url ) +uint TDevPartControllerIface::documentState( const KURL & url ) { return (uint) m_controller->documentState(url); } -#include "KDevPartControllerIface.moc" +#include "TDevPartControllerIface.moc" diff --git a/lib/interfaces/KDevPartControllerIface.h b/lib/interfaces/TDevPartControllerIface.h index 8c3647ea..87a4e04e 100644 --- a/lib/interfaces/KDevPartControllerIface.h +++ b/lib/interfaces/TDevPartControllerIface.h @@ -16,16 +16,16 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _KDEVPARTCONTROLLERIFACE_H_ -#define _KDEVPARTCONTROLLERIFACE_H_ +#ifndef _TDEVPARTCONTROLLERIFACE_H_ +#define _TDEVPARTCONTROLLERIFACE_H_ #include <dcopobject.h> #include <dcopref.h> #include <kurl.h> -class KDevPartController; +class TDevPartController; -class KDevPartControllerIface : public TQObject, public DCOPObject +class TDevPartControllerIface : public TQObject, public DCOPObject { Q_OBJECT // @@ -33,8 +33,8 @@ class KDevPartControllerIface : public TQObject, public DCOPObject public: - KDevPartControllerIface(KDevPartController *pc); - ~KDevPartControllerIface(); + TDevPartControllerIface(TDevPartController *pc); + ~TDevPartControllerIface(); k_dcop: @@ -56,7 +56,7 @@ private slots: private: - KDevPartController *m_controller; + TDevPartController *m_controller; }; diff --git a/lib/interfaces/extensions/CMakeLists.txt b/lib/interfaces/extensions/CMakeLists.txt index 459c1197..cf5514be 100644 --- a/lib/interfaces/extensions/CMakeLists.txt +++ b/lib/interfaces/extensions/CMakeLists.txt @@ -22,9 +22,9 @@ include_directories( ##### headers ################################### install( FILES - codebrowserfrontend.h kdevappfrontend.h kdevcreatefile.h - kdevdifffrontend.h kdevmakefrontend.h kdevquickopen.h - kdevsourceformatter.h kdevversioncontrol.h + codebrowserfrontend.h tdevappfrontend.h tdevcreatefile.h + tdevdifffrontend.h tdevmakefrontend.h tdevquickopen.h + tdevsourceformatter.h tdevversioncontrol.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/interfaces/extensions ) install( FILES @@ -35,20 +35,20 @@ install( FILES DESTINATION ${SERVICETYPES_INSTALL_DIR} ) -##### kdevextensions (static) ################### +##### tdevextensions (static) ################### add_custom_command( OUTPUT codebrowserfrontend.moc.cpp COMMAND ${TMOC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/codebrowserfrontend.h -o codebrowserfrontend.moc.cpp DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/codebrowserfrontend.h ) -add_custom_command( OUTPUT kdevversioncontrol.moc.cpp +add_custom_command( OUTPUT tdevversioncontrol.moc.cpp COMMAND - ${TMOC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/kdevversioncontrol.h -o kdevversioncontrol.moc.cpp - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/kdevversioncontrol.h ) + ${TMOC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/tdevversioncontrol.h -o tdevversioncontrol.moc.cpp + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tdevversioncontrol.h ) -tde_add_library( kdevextensions STATIC_PIC AUTOMOC +tde_add_library( tdevextensions STATIC_PIC AUTOMOC SOURCES - kdevappfrontend.cpp kdevappfrontend.cpp kdevmakefrontend.cpp - codebrowserfrontend.moc.cpp kdevversioncontrol.moc.cpp + tdevappfrontend.cpp tdevappfrontend.cpp tdevmakefrontend.cpp + codebrowserfrontend.moc.cpp tdevversioncontrol.moc.cpp ) diff --git a/lib/interfaces/extensions/Mainpage.dox b/lib/interfaces/extensions/Mainpage.dox index 3b493fde..37c72c16 100644 --- a/lib/interfaces/extensions/Mainpage.dox +++ b/lib/interfaces/extensions/Mainpage.dox @@ -10,8 +10,8 @@ This library contains extension interfaces used by TDevelop plugin architecture. \section whatisextension What is the TDevelop extension Extension is a TDevelop plugin which implements one of extension interfaces. -Extension is usually not important enough to be returned by @ref KDevApi and @ref KDevPlugin -methods. Therefore extension instance can be obtained by @ref KDevPlugin::extension method. +Extension is usually not important enough to be returned by @ref TDevApi and @ref TDevPlugin +methods. Therefore extension instance can be obtained by @ref TDevPlugin::extension method. Note: extension plugins can be either core, global and project plugins. They are loaded in the same way other plugins are. But extensions differ from usual plugins. @@ -36,10 +36,10 @@ those should be loaded at a time. This can be accomplished by: @endcode - Define an abstract base class for an extension like: @code - class KDevMyExtension: public KDevPlugin { + class KDevMyExtension: public TDevPlugin { public: - KDevMyExtension(const KDevPluginInfo *info, QObject* parent, const char* name) - :KDevPlugin(info, parent, name) {} + KDevMyExtension(const TDevPluginInfo *info, QObject* parent, const char* name) + :TDevPlugin(info, parent, name) {} virtual void doSomething() = 0; }; diff --git a/lib/interfaces/extensions/Makefile.am b/lib/interfaces/extensions/Makefile.am index a6d00bc2..55f4d774 100644 --- a/lib/interfaces/extensions/Makefile.am +++ b/lib/interfaces/extensions/Makefile.am @@ -1,7 +1,7 @@ tdevelopincludeextdir = $(includedir)/tdevelop/interfaces/extensions -tdevelopincludeext_HEADERS = codebrowserfrontend.h kdevappfrontend.h \ - kdevcreatefile.h kdevdifffrontend.h kdevmakefrontend.h kdevquickopen.h \ - kdevsourceformatter.h kdevversioncontrol.h +tdevelopincludeext_HEADERS = codebrowserfrontend.h tdevappfrontend.h \ + tdevcreatefile.h tdevdifffrontend.h tdevmakefrontend.h tdevquickopen.h \ + tdevsourceformatter.h tdevversioncontrol.h servicetypedir = $(kde_servicetypesdir) servicetype_DATA = tdevelopappfrontend.desktop \ @@ -10,14 +10,14 @@ servicetype_DATA = tdevelopappfrontend.desktop \ tdevelopversioncontrol.desktop SUBDIRS = dcop -libkdevextensions_la_LDFLAGS = $(all_libraries) -noinst_LTLIBRARIES = libkdevextensions.la -libkdevextensions_la_SOURCES = kdevappfrontend.cpp kdevmakefrontend.cpp +libtdevextensions_la_LDFLAGS = $(all_libraries) +noinst_LTLIBRARIES = libtdevextensions.la +libtdevextensions_la_SOURCES = tdevappfrontend.cpp tdevmakefrontend.cpp INCLUDES = -I$(top_srcdir)/lib/interfaces $(all_includes) METASOURCES = AUTO -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevinterfaces -DOXYGEN_PROJECTNAME = KDevelop Extension Interfaces Library -DOXYGEN_DOCDIRPREFIX = kdev +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevinterfaces +DOXYGEN_PROJECTNAME = TDevelop Extension Interfaces Library +DOXYGEN_DOCDIRPREFIX = tdev include ../../../Doxyfile.am noinst_HEADERS = codebrowserfrontend.h diff --git a/lib/interfaces/extensions/codebrowserfrontend.h b/lib/interfaces/extensions/codebrowserfrontend.h index e8158fe4..68c4e90f 100644 --- a/lib/interfaces/extensions/codebrowserfrontend.h +++ b/lib/interfaces/extensions/codebrowserfrontend.h @@ -20,18 +20,18 @@ #define CODEBROWSERRONTEND_H -#include <kdevplugin.h> +#include <tdevplugin.h> #include <codemodel.h> namespace Extensions { -class KDevCodeBrowserFrontend : public KDevPlugin { +class TDevCodeBrowserFrontend : public TDevPlugin { Q_OBJECT public: - KDevCodeBrowserFrontend(const KDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) - :KDevPlugin(info, parent, name ? name : "CodeBrowserFrontend") {} + TDevCodeBrowserFrontend(const TDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) + :TDevPlugin(info, parent, name ? name : "CodeBrowserFrontend") {} ///Used by the quickopen-plugin to notify extensions that it jumped to a searched item virtual bool jumpedToItem( ItemDom item ) = 0; diff --git a/lib/interfaces/extensions/dcop/CMakeLists.txt b/lib/interfaces/extensions/dcop/CMakeLists.txt index b6255fc6..8658d320 100644 --- a/lib/interfaces/extensions/dcop/CMakeLists.txt +++ b/lib/interfaces/extensions/dcop/CMakeLists.txt @@ -21,14 +21,14 @@ include_directories( ##### headers ################################### install( FILES - KDevAppFrontendIface.h KDevMakeFrontendIface.h + TDevAppFrontendIface.h TDevMakeFrontendIface.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/interfaces/extensions/dcop ) -##### kdevdcopextensions (static) ############### +##### tdevdcopextensions (static) ############### -tde_add_library( kdevdcopextensions STATIC_PIC +tde_add_library( tdevdcopextensions STATIC_PIC SOURCES - KDevAppFrontendIface.cpp KDevMakeFrontendIface.cpp - KDevAppFrontendIface.skel KDevMakeFrontendIface.skel + TDevAppFrontendIface.cpp TDevMakeFrontendIface.cpp + TDevAppFrontendIface.skel TDevMakeFrontendIface.skel ) diff --git a/lib/interfaces/extensions/dcop/Makefile.am b/lib/interfaces/extensions/dcop/Makefile.am index 116c4979..e46606ac 100644 --- a/lib/interfaces/extensions/dcop/Makefile.am +++ b/lib/interfaces/extensions/dcop/Makefile.am @@ -1,10 +1,10 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/lib/interfaces/extensions $(all_includes) METASOURCES = AUTO -noinst_LTLIBRARIES = libkdevdcopextensions.la -libkdevdcopextensions_la_LDFLAGS = $(all_libraries) -libkdevdcopextensions_la_SOURCES = KDevAppFrontendIface.cpp \ - KDevMakeFrontendIface.cpp KDevAppFrontendIface.skel KDevMakeFrontendIface.skel +noinst_LTLIBRARIES = libtdevdcopextensions.la +libtdevdcopextensions_la_LDFLAGS = $(all_libraries) +libtdevdcopextensions_la_SOURCES = TDevAppFrontendIface.cpp \ + TDevMakeFrontendIface.cpp TDevAppFrontendIface.skel TDevMakeFrontendIface.skel dcopincludeextdir = $(includedir)/tdevelop/interfaces/extensions/dcop -dcopincludeext_HEADERS = KDevAppFrontendIface.h KDevMakeFrontendIface.h +dcopincludeext_HEADERS = TDevAppFrontendIface.h TDevMakeFrontendIface.h diff --git a/lib/interfaces/extensions/dcop/KDevAppFrontendIface.cpp b/lib/interfaces/extensions/dcop/TDevAppFrontendIface.cpp index 1eca4bfc..a42d0d7d 100644 --- a/lib/interfaces/extensions/dcop/KDevAppFrontendIface.cpp +++ b/lib/interfaces/extensions/dcop/TDevAppFrontendIface.cpp @@ -21,56 +21,56 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "KDevAppFrontendIface.h" -#include "kdevappfrontend.h" +#include "TDevAppFrontendIface.h" +#include "tdevappfrontend.h" -KDevAppFrontendIface::KDevAppFrontendIface(KDevAppFrontend *appFrontend) - : DCOPObject("KDevAppFrontend"), m_appFrontend(appFrontend) +TDevAppFrontendIface::TDevAppFrontendIface(TDevAppFrontend *appFrontend) + : DCOPObject("TDevAppFrontend"), m_appFrontend(appFrontend) { } -KDevAppFrontendIface::~KDevAppFrontendIface() +TDevAppFrontendIface::~TDevAppFrontendIface() {} -void KDevAppFrontendIface::startAppCommand(const TQString &directory, const TQString &command, bool inTerminal) +void TDevAppFrontendIface::startAppCommand(const TQString &directory, const TQString &command, bool inTerminal) { m_appFrontend->startAppCommand(directory, command, inTerminal); } -void KDevAppFrontendIface::stopApplication( ) +void TDevAppFrontendIface::stopApplication( ) { m_appFrontend->stopApplication(); } -bool KDevAppFrontendIface::isRunning( ) +bool TDevAppFrontendIface::isRunning( ) { return m_appFrontend->isRunning(); } -void KDevAppFrontendIface::clearView( ) +void TDevAppFrontendIface::clearView( ) { m_appFrontend->clearView(); } -void KDevAppFrontendIface::insertStderrLine( const TQCString & line ) +void TDevAppFrontendIface::insertStderrLine( const TQCString & line ) { m_appFrontend->insertStderrLine(line); } -void KDevAppFrontendIface::insertStdoutLine( const TQCString & line ) +void TDevAppFrontendIface::insertStdoutLine( const TQCString & line ) { m_appFrontend->insertStdoutLine(line); } -void KDevAppFrontendIface::addPartialStderrLine( const TQCString& line ) +void TDevAppFrontendIface::addPartialStderrLine( const TQCString& line ) { m_appFrontend->addPartialStderrLine(line); } -void KDevAppFrontendIface::addPartialStdoutLine( const TQCString& line ) +void TDevAppFrontendIface::addPartialStdoutLine( const TQCString& line ) { m_appFrontend->addPartialStdoutLine(line); } diff --git a/lib/interfaces/extensions/dcop/KDevAppFrontendIface.h b/lib/interfaces/extensions/dcop/TDevAppFrontendIface.h index 3903e897..5061c782 100644 --- a/lib/interfaces/extensions/dcop/KDevAppFrontendIface.h +++ b/lib/interfaces/extensions/dcop/TDevAppFrontendIface.h @@ -19,21 +19,21 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _KDEVAPPFRONTENDIFACE_H_ -#define _KDEVAPPFRONTENDIFACE_H_ +#ifndef _TDEVAPPFRONTENDIFACE_H_ +#define _TDEVAPPFRONTENDIFACE_H_ #include <dcopobject.h> -class KDevAppFrontend; +class TDevAppFrontend; -class KDevAppFrontendIface : public DCOPObject +class TDevAppFrontendIface : public DCOPObject { K_DCOP public: - KDevAppFrontendIface( KDevAppFrontend *appFrontend ); - ~KDevAppFrontendIface(); + TDevAppFrontendIface( TDevAppFrontend *appFrontend ); + ~TDevAppFrontendIface(); k_dcop: void startAppCommand(const TQString &directory, const TQString &command, bool inTerminal); @@ -46,7 +46,7 @@ k_dcop: void addPartialStdoutLine(const TQCString &line); private: - KDevAppFrontend *m_appFrontend; + TDevAppFrontend *m_appFrontend; }; #endif diff --git a/lib/interfaces/extensions/dcop/KDevMakeFrontendIface.cpp b/lib/interfaces/extensions/dcop/TDevMakeFrontendIface.cpp index 73305e4a..06bd432f 100644 --- a/lib/interfaces/extensions/dcop/KDevMakeFrontendIface.cpp +++ b/lib/interfaces/extensions/dcop/TDevMakeFrontendIface.cpp @@ -20,27 +20,27 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "KDevMakeFrontendIface.h" -#include "kdevmakefrontend.h" +#include "TDevMakeFrontendIface.h" +#include "tdevmakefrontend.h" -KDevMakeFrontendIface::KDevMakeFrontendIface(KDevMakeFrontend *makeFrontend) - : DCOPObject("KDevMakeFrontend") +TDevMakeFrontendIface::TDevMakeFrontendIface(TDevMakeFrontend *makeFrontend) + : DCOPObject("TDevMakeFrontend") { m_makeFrontend = makeFrontend; } -KDevMakeFrontendIface::~KDevMakeFrontendIface() +TDevMakeFrontendIface::~TDevMakeFrontendIface() {} -void KDevMakeFrontendIface::queueCommand(const TQString &dir, const TQString &command) +void TDevMakeFrontendIface::queueCommand(const TQString &dir, const TQString &command) { m_makeFrontend->queueCommand(dir, command); } -bool KDevMakeFrontendIface::isRunning( ) +bool TDevMakeFrontendIface::isRunning( ) { return m_makeFrontend->isRunning(); } diff --git a/lib/interfaces/extensions/dcop/KDevMakeFrontendIface.h b/lib/interfaces/extensions/dcop/TDevMakeFrontendIface.h index 53217359..3aee75be 100644 --- a/lib/interfaces/extensions/dcop/KDevMakeFrontendIface.h +++ b/lib/interfaces/extensions/dcop/TDevMakeFrontendIface.h @@ -18,28 +18,28 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _KDEVMAKEFRONTENDIFACE_H_ -#define _KDEVMAKEFRONTENDIFACE_H_ +#ifndef _TDEVMAKEFRONTENDIFACE_H_ +#define _TDEVMAKEFRONTENDIFACE_H_ #include <dcopobject.h> -class KDevMakeFrontend; +class TDevMakeFrontend; -class KDevMakeFrontendIface : public DCOPObject +class TDevMakeFrontendIface : public DCOPObject { K_DCOP public: - KDevMakeFrontendIface( KDevMakeFrontend *makeFrontend ); - ~KDevMakeFrontendIface(); + TDevMakeFrontendIface( TDevMakeFrontend *makeFrontend ); + ~TDevMakeFrontendIface(); k_dcop: void queueCommand(const TQString &dir, const TQString &command); bool isRunning(); private: - KDevMakeFrontend *m_makeFrontend; + TDevMakeFrontend *m_makeFrontend; }; #endif diff --git a/lib/interfaces/extensions/kdevappfrontend.cpp b/lib/interfaces/extensions/kdevappfrontend.cpp deleted file mode 100644 index 3d918fe2..00000000 --- a/lib/interfaces/extensions/kdevappfrontend.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "kdevappfrontend.h" -#include "kdevappfrontend.moc" diff --git a/lib/interfaces/extensions/kdevmakefrontend.cpp b/lib/interfaces/extensions/kdevmakefrontend.cpp deleted file mode 100644 index 5e035270..00000000 --- a/lib/interfaces/extensions/kdevmakefrontend.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "kdevmakefrontend.h" -#include "kdevmakefrontend.moc" diff --git a/lib/interfaces/extensions/tdevappfrontend.cpp b/lib/interfaces/extensions/tdevappfrontend.cpp new file mode 100644 index 00000000..4f7c52a7 --- /dev/null +++ b/lib/interfaces/extensions/tdevappfrontend.cpp @@ -0,0 +1,2 @@ +#include "tdevappfrontend.h" +#include "tdevappfrontend.moc" diff --git a/lib/interfaces/extensions/kdevappfrontend.h b/lib/interfaces/extensions/tdevappfrontend.h index 76952f35..085d3c9d 100644 --- a/lib/interfaces/extensions/kdevappfrontend.h +++ b/lib/interfaces/extensions/tdevappfrontend.h @@ -23,14 +23,14 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVAPPFRONTEND_H -#define KDEVAPPFRONTEND_H +#ifndef TDEVAPPFRONTEND_H +#define TDEVAPPFRONTEND_H #include <tqstringlist.h> -#include <kdevplugin.h> +#include <tdevplugin.h> /** -@file kdevappfrontend.h +@file tdevappfrontend.h Application frontend interface. */ @@ -45,16 +45,16 @@ Currently, this interface defines ways to do the following: Instances that implement this interface are available through extension architecture: @code -KDevAppFrontend *apf = extension<KDevAppFrontend>("TDevelop/AppFrontend"); +TDevAppFrontend *apf = extension<TDevAppFrontend>("TDevelop/AppFrontend"); if (apf) { // do something } else { // fail } @endcode -@sa KDevPlugin::extension method documentation. +@sa TDevPlugin::extension method documentation. */ -class KDevAppFrontend : public KDevPlugin +class TDevAppFrontend : public TDevPlugin { Q_OBJECT @@ -66,11 +66,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevAppFrontend(const KDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) - :KDevPlugin(info, parent, name ? name : "KDevAppFrontend") {} + TDevAppFrontend(const TDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) + :TDevPlugin(info, parent, name ? name : "TDevAppFrontend") {} /**@return Whether the application is currently running.*/ virtual bool isRunning() = 0; diff --git a/lib/interfaces/extensions/kdevcreatefile.h b/lib/interfaces/extensions/tdevcreatefile.h index 35b98d19..b1148e94 100644 --- a/lib/interfaces/extensions/kdevcreatefile.h +++ b/lib/interfaces/extensions/tdevcreatefile.h @@ -17,15 +17,15 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVCREATEFILE_H -#define KDEVCREATEFILE_H +#ifndef TDEVCREATEFILE_H +#define TDEVCREATEFILE_H #include <tqstring.h> -#include <kdevplugin.h> +#include <tdevplugin.h> /** -@file kdevcreatefile.h +@file tdevcreatefile.h File creation facility interface. */ @@ -36,20 +36,20 @@ An abstract class for all extensions that are responsible for file creation. Instances that implement this interface are available through extension architecture: @code -KDevCreateFile *cf = extension<KDevCreateFile>("TDevelop/CreateFile"); +TDevCreateFile *cf = extension<TDevCreateFile>("TDevelop/CreateFile"); if (cf) { // do something } else { // fail } @endcode -@sa KDevPlugin::extension method documentation. +@sa TDevPlugin::extension method documentation. */ -class KDevCreateFile : public KDevPlugin +class TDevCreateFile : public TDevPlugin { public: - /**File created with @ref KDevCreateFile implementation.*/ + /**File created with @ref TDevCreateFile implementation.*/ class CreatedFile { public: @@ -119,11 +119,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevCreateFile(const KDevPluginInfo *info, TQObject * parent = 0, const char * name = 0) - :KDevPlugin(info, parent, name) {} + TDevCreateFile(const TDevPluginInfo *info, TQObject * parent = 0, const char * name = 0) + :TDevPlugin(info, parent, name) {} /**Creates a new file, within or without the project. Supply as much information as you know. Leave what you don't know as TQString(). diff --git a/lib/interfaces/extensions/kdevdifffrontend.cpp b/lib/interfaces/extensions/tdevdifffrontend.cpp index 745703e4..aa7e0b19 100644 --- a/lib/interfaces/extensions/kdevdifffrontend.cpp +++ b/lib/interfaces/extensions/tdevdifffrontend.cpp @@ -18,16 +18,16 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevdifffrontend.h" +#include "tdevdifffrontend.h" -KDevDiffFrontend::KDevDiffFrontend(const KDevPluginInfo *info, TQObject *parent, const char *name) - : KDevPlugin(info, parent, name ? name : "KDevDiffFrontend") +TDevDiffFrontend::TDevDiffFrontend(const TDevPluginInfo *info, TQObject *parent, const char *name) + : TDevPlugin(info, parent, name ? name : "TDevDiffFrontend") { } -KDevDiffFrontend::~KDevDiffFrontend() +TDevDiffFrontend::~TDevDiffFrontend() { } -#include "kdevdifffrontend.moc" +#include "tdevdifffrontend.moc" diff --git a/lib/interfaces/extensions/kdevdifffrontend.h b/lib/interfaces/extensions/tdevdifffrontend.h index 6d4cb2b6..c0c343cb 100644 --- a/lib/interfaces/extensions/kdevdifffrontend.h +++ b/lib/interfaces/extensions/tdevdifffrontend.h @@ -18,14 +18,14 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVDIFFFRONTEND_H -#define KDEVDIFFFRONTEND_H +#ifndef TDEVDIFFFRONTEND_H +#define TDEVDIFFFRONTEND_H #include <kurl.h> -#include <kdevplugin.h> +#include <tdevplugin.h> /** -@file kdevdifffrontend.h +@file tdevdifffrontend.h Diff frontend interface. */ @@ -36,16 +36,16 @@ files. Instances that implement this interface are available through extension architecture: @code -KDevDiffFrontend *df = extension<KDevDiffFrontend>("TDevelop/DiffFrontend"); +TDevDiffFrontend *df = extension<TDevDiffFrontend>("TDevelop/DiffFrontend"); if (df) { // do something } else { // fail } @endcode -@sa KDevPlugin::extension method documentation. +@sa TDevPlugin::extension method documentation. */ -class KDevDiffFrontend : public KDevPlugin +class TDevDiffFrontend : public TDevPlugin { public: @@ -55,11 +55,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevDiffFrontend( const KDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) - :KDevPlugin(info, parent, name ? name : "KDevDiffFrontend") {} + TDevDiffFrontend( const TDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) + :TDevPlugin(info, parent, name ? name : "TDevDiffFrontend") {} /**Displays the patch. @param diff A string which contains a patch in unified format.*/ diff --git a/lib/interfaces/extensions/tdevmakefrontend.cpp b/lib/interfaces/extensions/tdevmakefrontend.cpp new file mode 100644 index 00000000..140d074d --- /dev/null +++ b/lib/interfaces/extensions/tdevmakefrontend.cpp @@ -0,0 +1,2 @@ +#include "tdevmakefrontend.h" +#include "tdevmakefrontend.moc" diff --git a/lib/interfaces/extensions/kdevmakefrontend.h b/lib/interfaces/extensions/tdevmakefrontend.h index 52afa3d3..47b14fc4 100644 --- a/lib/interfaces/extensions/kdevmakefrontend.h +++ b/lib/interfaces/extensions/tdevmakefrontend.h @@ -23,14 +23,14 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVMAKEFRONTEND_H -#define KDEVMAKEFRONTEND_H +#ifndef TDEVMAKEFRONTEND_H +#define TDEVMAKEFRONTEND_H #include <tqstringlist.h> -#include <kdevplugin.h> +#include <tdevplugin.h> /** -@file kdevmakefrontend.h +@file tdevmakefrontend.h Make frontend interface. */ @@ -41,16 +41,16 @@ or similar commands to build a project, api documentation, etc. Instances that implement this interface are available through extension architecture: @code -KDevMakeFrontend *mf = extension<KDevMakeFrontend>("TDevelop/MakeFrontend"); +TDevMakeFrontend *mf = extension<TDevMakeFrontend>("TDevelop/MakeFrontend"); if (mf) { // do something } else { // fail } @endcode -@sa KDevPlugin::extension method documentation. +@sa TDevPlugin::extension method documentation. */ -class KDevMakeFrontend : public KDevPlugin +class TDevMakeFrontend : public TDevPlugin { Q_OBJECT @@ -63,11 +63,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevMakeFrontend(const KDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) - :KDevPlugin(info, parent, name ? name : "KDevMakeFrontend") {} + TDevMakeFrontend(const TDevPluginInfo *info, TQObject *parent=0, const char *name=0 ) + :TDevPlugin(info, parent, name ? name : "TDevMakeFrontend") {} /**@return The widget where the make output is shown.*/ virtual TQWidget* widget() { return 0L; } diff --git a/lib/interfaces/extensions/kdevquickopen.h b/lib/interfaces/extensions/tdevquickopen.h index 91dce7ca..e1fd2f65 100644 --- a/lib/interfaces/extensions/kdevquickopen.h +++ b/lib/interfaces/extensions/tdevquickopen.h @@ -16,14 +16,14 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVQUICKOPEN_H -#define KDEVQUICKOPEN_H +#ifndef TDEVQUICKOPEN_H +#define TDEVQUICKOPEN_H -#include <kdevplugin.h> +#include <tdevplugin.h> #include <kurl.h> /** -@file kdevquickopen.h +@file tdevquickopen.h Source formatter interface. */ @@ -39,10 +39,10 @@ if (qo) { // fail } @endcode -@sa @ref KDevPlugin::extension method documentation. +@sa @ref TDevPlugin::extension method documentation. @sa @ref whatisextension and @ref creatingextension sections of Platform API documentation. */ -class KDevQuickOpen : public KDevPlugin +class KDevQuickOpen : public TDevPlugin { public: /**Constructor. @@ -51,11 +51,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevQuickOpen(const KDevPluginInfo *info, TQObject* parent, const char* name) - :KDevPlugin(info, parent, name) {} + KDevQuickOpen(const TDevPluginInfo *info, TQObject* parent, const char* name) + :TDevPlugin(info, parent, name) {} /**Shows the file selection dialog. @param text A list of urls to open.*/ @@ -81,14 +81,14 @@ public: the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVQUICKOPEN_H -#define KDEVQUICKOPEN_H +#ifndef TDEVQUICKOPEN_H +#define TDEVQUICKOPEN_H -#include <kdevplugin.h> +#include <tdevplugin.h> #include <kurl.h> /** -@file kdevquickopen.h +@file tdevquickopen.h Source formatter interface. */ @@ -104,10 +104,10 @@ if (qo) { // fail } @endcode -@sa @ref KDevPlugin::extension method documentation. +@sa @ref TDevPlugin::extension method documentation. @sa @ref whatisextension and @ref creatingextension sections of Platform API documentation. */ -class KDevQuickOpen : public KDevPlugin +class KDevQuickOpen : public TDevPlugin { public: /**Constructor. @@ -116,11 +116,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevQuickOpen(const KDevPluginInfo *info, TQObject* parent, const char* name) - :KDevPlugin(info, parent, name) {} + KDevQuickOpen(const TDevPluginInfo *info, TQObject* parent, const char* name) + :TDevPlugin(info, parent, name) {} /**Shows the file selection dialog. @param text A list of urls to open.*/ diff --git a/lib/interfaces/extensions/kdevsourceformatter.h b/lib/interfaces/extensions/tdevsourceformatter.h index c4a380cf..3403a5d2 100644 --- a/lib/interfaces/extensions/kdevsourceformatter.h +++ b/lib/interfaces/extensions/tdevsourceformatter.h @@ -16,13 +16,13 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVSOURCEFORMATTER_H -#define KDEVSOURCEFORMATTER_H +#ifndef TDEVSOURCEFORMATTER_H +#define TDEVSOURCEFORMATTER_H -#include <kdevplugin.h> +#include <tdevplugin.h> /** -@file kdevsourceformatter.h +@file tdevsourceformatter.h Source formatter interface. */ @@ -39,10 +39,10 @@ if (sf) { // fail } @endcode -@sa @ref KDevPlugin::extension method documentation. +@sa @ref TDevPlugin::extension method documentation. @sa @ref whatisextension and @ref creatingextension sections of Platform API documentation. */ -class KDevSourceFormatter : public KDevPlugin +class KDevSourceFormatter : public TDevPlugin { public: /**Constructor. @@ -51,11 +51,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevSourceFormatter(const KDevPluginInfo *info, TQObject* parent, const char* name) - :KDevPlugin(info, parent, name) {} + KDevSourceFormatter(const TDevPluginInfo *info, TQObject* parent, const char* name) + :TDevPlugin(info, parent, name) {} /**Formats the source. @param text A string with a code. diff --git a/lib/interfaces/extensions/kdevversioncontrol.h b/lib/interfaces/extensions/tdevversioncontrol.h index a19c6275..d796e31f 100644 --- a/lib/interfaces/extensions/kdevversioncontrol.h +++ b/lib/interfaces/extensions/tdevversioncontrol.h @@ -20,8 +20,8 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVVERSIONCONTROL_H -#define KDEVVERSIONCONTROL_H +#ifndef TDEVVERSIONCONTROL_H +#define TDEVVERSIONCONTROL_H #include <tqobject.h> #include <tqstring.h> @@ -29,10 +29,10 @@ #include <tqmap.h> #include <tqvaluelist.h> -#include <kdevplugin.h> +#include <tdevplugin.h> /** -@file kdevversioncontrol.h +@file tdevversioncontrol.h Version control system interface and utility classes. */ @@ -112,7 +112,7 @@ This is a type definition: @code TQMap<TQString,VCSFileInfo> VCSFileInfoMap; @en */ typedef TQMap<TQString,VCSFileInfo> VCSFileInfoMap; -class KDevVCSFileInfoProvider; +class TDevVCSFileInfoProvider; /** @@ -123,16 +123,16 @@ VCS support plugins should implement this interface. Instances that implement this interface are available through extension architecture: @code -KDevVersionControl *vcs = extension<KDevVersionControl>("TDevelop/VersionControl"); +TDevVersionControl *vcs = extension<TDevVersionControl>("TDevelop/VersionControl"); if (vcs) { // do something } else { // fail } @endcode -@sa KDevPlugin::extension method documentation. +@sa TDevPlugin::extension method documentation. */ -class KDevVersionControl: public KDevPlugin +class TDevVersionControl: public TDevPlugin { Q_OBJECT @@ -144,11 +144,11 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevVersionControl(const KDevPluginInfo *info, TQObject *parent, const char *name ) - :KDevPlugin(info, parent, name ) {} + TDevVersionControl(const TDevPluginInfo *info, TQObject *parent, const char *name ) + :TDevPlugin(info, parent, name ) {} /**Creates a new project in the passed path @p dir. This should instantiate VCS infrastructure and import a project into the VCS in that directory. @@ -161,7 +161,7 @@ public: virtual bool fetchFromRepository() = 0; /**@return The file info provider for this version control (0 if none is available).*/ - virtual KDevVCSFileInfoProvider *fileInfoProvider() const = 0; + virtual TDevVCSFileInfoProvider *fileInfoProvider() const = 0; /**Checks if the directory is valid for this version control (for example CVS may check for the presence of "<dirPath>/CVS/" subdir and something else) @@ -182,7 +182,7 @@ signals: /** Basic interface for providing info on file registered in a version control repository repository. */ -class KDevVCSFileInfoProvider: public TQObject +class TDevVCSFileInfoProvider: public TQObject { Q_OBJECT @@ -190,7 +190,7 @@ public: /**Constructor. @param parent The parent VCS plugin. @param name The name of a provider object.*/ - KDevVCSFileInfoProvider(KDevVersionControl *parent, const char *name) + TDevVCSFileInfoProvider(TDevVersionControl *parent, const char *name) : TQObject( parent, name ), m_owner(parent) {} /**Gets the status for local files in the specified directory: @@ -226,14 +226,14 @@ signals: protected: /**@return The version control which owns this provider.*/ - KDevVersionControl *owner() const { return m_owner; } + TDevVersionControl *owner() const { return m_owner; } private: - KDevVersionControl *m_owner; + TDevVersionControl *m_owner; private: - KDevVCSFileInfoProvider( const KDevVCSFileInfoProvider & ); - KDevVCSFileInfoProvider &operator=( const KDevVCSFileInfoProvider & ); + TDevVCSFileInfoProvider( const TDevVCSFileInfoProvider & ); + TDevVCSFileInfoProvider &operator=( const TDevVCSFileInfoProvider & ); }; #endif diff --git a/lib/interfaces/external/Mainpage.dox b/lib/interfaces/external/Mainpage.dox index 4ed571dd..6c2fb2b9 100644 --- a/lib/interfaces/external/Mainpage.dox +++ b/lib/interfaces/external/Mainpage.dox @@ -30,7 +30,7 @@ are connected to corresponding Q_SLOTS of TDevelop designer integration engine w Each language support which wants to use integrated designer, must reimplement @code -virtual KDevDesignerIntegration *KDevLanguageSupport::designer(KInterfaceDesigner::DesignerType type) +virtual TDevDesignerIntegration *TDevLanguageSupport::designer(KInterfaceDesigner::DesignerType type) @endcode method and return designer integration object. @@ -39,15 +39,15 @@ developers. With the convenience library writing %Qt designer integration for th trivial task. -\section kdevdesigner KDevelop Designer technical overview -KDevelop version >= 3.1 comes with a customized version (fork ;)) of %Qt Designer. It is called KDevelop Designer (KDevDesigner, kdevdesigner from the command line). KDevDesigner has some important differences: -- KDevDesigner provides a read/write KPart which can be embedded into any application which wants to edit .ui files. TDevelop IDE embeds KDevDesigner this way. -- KDevDesigner uses %KDE icons and dialogs and thus provides better integration with a system. +\section tdevdesigner KDevelop Designer technical overview +KDevelop version >= 3.1 comes with a customized version (fork ;)) of %Qt Designer. It is called KDevelop Designer (TDevDesigner, tdevdesigner from the command line). TDevDesigner has some important differences: +- TDevDesigner provides a read/write KPart which can be embedded into any application which wants to edit .ui files. TDevelop IDE embeds TDevDesigner this way. +- TDevDesigner uses %KDE icons and dialogs and thus provides better integration with a system. . -It is safe to preview forms with some %KDE widgets from tdeui and tdeio libraries - KDevDesigner part is linked to those libraries so it will not crash under some circumstances. +It is safe to preview forms with some %KDE widgets from tdeui and tdeio libraries - TDevDesigner part is linked to those libraries so it will not crash under some circumstances. -KDevDesigner will not create .ui.h files - this feature is completely disabled. Integrated KDevDesigner will use subclassing approach, standalone does not allow to enter code. +TDevDesigner will not create .ui.h files - this feature is completely disabled. Integrated TDevDesigner will use subclassing approach, standalone does not allow to enter code. \section other Other information diff --git a/lib/interfaces/extras/CMakeLists.txt b/lib/interfaces/extras/CMakeLists.txt index eb4cdb75..afe233aa 100644 --- a/lib/interfaces/extras/CMakeLists.txt +++ b/lib/interfaces/extras/CMakeLists.txt @@ -22,7 +22,7 @@ link_directories( ##### headers ################################### install( FILES - kdevcompileroptions.h kdevvcsintegrator.h + tdevcompileroptions.h tdevvcsintegrator.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/interfaces/extras ) install( FILES @@ -30,10 +30,10 @@ install( FILES DESTINATION ${SERVICETYPES_INSTALL_DIR} ) -##### kdevextras (shared) ####################### +##### tdevextras (shared) ####################### -tde_add_library( kdevextras SHARED AUTOMOC - SOURCES kdevcompileroptions.cpp kdevvcsintegrator.cpp +tde_add_library( tdevextras SHARED AUTOMOC + SOURCES tdevcompileroptions.cpp tdevvcsintegrator.cpp VERSION 0.0.0 LINK ${TQT_LIBRARIES} DESTINATION ${LIB_INSTALL_DIR} diff --git a/lib/interfaces/extras/Makefile.am b/lib/interfaces/extras/Makefile.am index 67615223..c504621e 100644 --- a/lib/interfaces/extras/Makefile.am +++ b/lib/interfaces/extras/Makefile.am @@ -1,18 +1,18 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces/external -I$(top_srcdir)/lib/util \ $(all_includes) METASOURCES = AUTO -libkdevextras_la_LIBADD = $(LIB_QT) -libkdevextras_la_LDFLAGS = $(all_libraries) -lib_LTLIBRARIES = libkdevextras.la +libtdevextras_la_LIBADD = $(LIB_QT) +libtdevextras_la_LDFLAGS = $(all_libraries) +lib_LTLIBRARIES = libtdevextras.la tdevelopincludedir = $(includedir)/tdevelop/interfaces/extras servicetypedir = $(kde_servicetypesdir) -tdevelopinclude_HEADERS = kdevcompileroptions.h kdevvcsintegrator.h -libkdevextras_la_SOURCES = kdevcompileroptions.cpp kdevvcsintegrator.cpp +tdevelopinclude_HEADERS = tdevcompileroptions.h tdevvcsintegrator.h +libtdevextras_la_SOURCES = tdevcompileroptions.cpp tdevvcsintegrator.cpp servicetype_DATA = tdevelopcompileroptions.desktop \ tdevelopvcsintegrator.desktop -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevinterfaces +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevinterfaces DOXYGEN_PROJECTNAME = TDevelop Extra Interfaces Library -DOXYGEN_DOCDIRPREFIX = kdev +DOXYGEN_DOCDIRPREFIX = tdev include ../../../Doxyfile.am diff --git a/lib/interfaces/extras/kdevcompileroptions.cpp b/lib/interfaces/extras/kdevcompileroptions.cpp deleted file mode 100644 index 22c701f1..00000000 --- a/lib/interfaces/extras/kdevcompileroptions.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include "kdevcompileroptions.h" - -KDevCompilerOptions::KDevCompilerOptions( TQObject * parent, const char * name ) - :TQObject(parent, name) -{ -} - -#include "kdevcompileroptions.moc" diff --git a/lib/interfaces/extras/tdevcompileroptions.cpp b/lib/interfaces/extras/tdevcompileroptions.cpp new file mode 100644 index 00000000..9eead32f --- /dev/null +++ b/lib/interfaces/extras/tdevcompileroptions.cpp @@ -0,0 +1,8 @@ +#include "tdevcompileroptions.h" + +TDevCompilerOptions::TDevCompilerOptions( TQObject * parent, const char * name ) + :TQObject(parent, name) +{ +} + +#include "tdevcompileroptions.moc" diff --git a/lib/interfaces/extras/kdevcompileroptions.h b/lib/interfaces/extras/tdevcompileroptions.h index 6544c5d0..b8509a99 100644 --- a/lib/interfaces/extras/kdevcompileroptions.h +++ b/lib/interfaces/extras/tdevcompileroptions.h @@ -19,12 +19,12 @@ */ /** -@file kdevcompileroptions.h +@file tdevcompileroptions.h The interface to compiler options configuration. */ -#ifndef _KDEVCOMPILEROPTIONS_H_ -#define _KDEVCOMPILEROPTIONS_H_ +#ifndef _TDEVCOMPILEROPTIONS_H_ +#define _TDEVCOMPILEROPTIONS_H_ #include <tqobject.h> @@ -34,7 +34,7 @@ Used by build systems to give users a compiler options configuration dialog. Common use case: @code -static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObject *parent ) +static TDevCompilerOptions *createCompilerOptions( const TQString &name, TQObject *parent ) { KService::Ptr service = KService::serviceByDesktopName( name ); if ( !service ) @@ -50,17 +50,17 @@ static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObjec args = TQStringList::split(" ", prop.toString()); TQObject *obj = factory->create(parent, service->name().latin1(), - "KDevCompilerOptions", args); + "TDevCompilerOptions", args); - if (!obj->inherits("KDevCompilerOptions")) + if (!obj->inherits("TDevCompilerOptions")) return 0; - KDevCompilerOptions *dlg = (KDevCompilerOptions*) obj; + TDevCompilerOptions *dlg = (TDevCompilerOptions*) obj; return dlg; } ... -KDevCompilerOptions *plugin = createCompilerOptions(compilerName, parent); +TDevCompilerOptions *plugin = createCompilerOptions(compilerName, parent); TQString flags = ""; //old compiler flags if ( plugin ) { @@ -69,13 +69,13 @@ if ( plugin ) } @endcode */ -class KDevCompilerOptions : public TQObject +class TDevCompilerOptions : public TQObject { Q_OBJECT public: - KDevCompilerOptions( TQObject *parent=0, const char *name=0 ); + TDevCompilerOptions( TQObject *parent=0, const char *name=0 ); /** * Opens a dialog which allows the user to configure the diff --git a/lib/interfaces/extras/kdevvcsintegrator.cpp b/lib/interfaces/extras/tdevvcsintegrator.cpp index 5a6ab429..26bf915d 100644 --- a/lib/interfaces/extras/kdevvcsintegrator.cpp +++ b/lib/interfaces/extras/tdevvcsintegrator.cpp @@ -16,11 +16,11 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevvcsintegrator.h" +#include "tdevvcsintegrator.h" -KDevVCSIntegrator::KDevVCSIntegrator(TQObject *parent, const char *name) +TDevVCSIntegrator::TDevVCSIntegrator(TQObject *parent, const char *name) :TQObject(parent, name) { } -#include "kdevvcsintegrator.moc" +#include "tdevvcsintegrator.moc" diff --git a/lib/interfaces/extras/kdevvcsintegrator.h b/lib/interfaces/extras/tdevvcsintegrator.h index 793070b3..23ee6c22 100644 --- a/lib/interfaces/extras/kdevvcsintegrator.h +++ b/lib/interfaces/extras/tdevvcsintegrator.h @@ -16,13 +16,13 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVVCSINTEGRATOR_H -#define KDEVVCSINTEGRATOR_H +#ifndef TDEVVCSINTEGRATOR_H +#define TDEVVCSINTEGRATOR_H #include <tqobject.h> /** -@file kdevvcsintegrator.h +@file tdevvcsintegrator.h The interface to VCS integrators. */ @@ -62,11 +62,11 @@ The interface to VCS integrators. VCS integrator takes care about setting up VCS for new and existing projects. It can, for example, perform checkout or import operations. */ -class KDevVCSIntegrator: public TQObject { +class TDevVCSIntegrator: public TQObject { Q_OBJECT public: - KDevVCSIntegrator(TQObject *parent = 0, const char *name = 0); + TDevVCSIntegrator(TQObject *parent = 0, const char *name = 0); /**Reimplement to return a dialog to fetch the project from VCS.*/ virtual VCSDialog *fetcher(TQWidget *parent) = 0; diff --git a/lib/interfaces/katedocumentmanagerinterface.cpp b/lib/interfaces/katedocumentmanagerinterface.cpp index 0afbcc81..360be1c4 100644 --- a/lib/interfaces/katedocumentmanagerinterface.cpp +++ b/lib/interfaces/katedocumentmanagerinterface.cpp @@ -17,7 +17,7 @@ Boston, MA 02110-1301, USA. */ #include "katedocumentmanagerinterface.h" -#include "kdevpartcontroller.h" +#include "tdevpartcontroller.h" #include <kurl.h> #include <dcopclient.h> #include <tdeapplication.h> @@ -26,7 +26,7 @@ #include <kurl.h> #include <kdebug.h> -KateDocumentManagerInterface::KateDocumentManagerInterface( KDevPartController *pc) +KateDocumentManagerInterface::KateDocumentManagerInterface( TDevPartController *pc) : TQObject(pc), DCOPObject("KateDocumentManager"), m_controller(pc) { diff --git a/lib/interfaces/katedocumentmanagerinterface.h b/lib/interfaces/katedocumentmanagerinterface.h index 8bdbdf8f..235c7738 100644 --- a/lib/interfaces/katedocumentmanagerinterface.h +++ b/lib/interfaces/katedocumentmanagerinterface.h @@ -23,7 +23,7 @@ #include <dcopobject.h> #include <dcopref.h> #include <kurl.h> -class KDevPartController; +class TDevPartController; /** This is an emulated interface to provide compatibility with Kate scripts. @@ -36,7 +36,7 @@ class KateDocumentManagerInterface : public TQObject, public DCOPObject { // K_DCOP public: - KateDocumentManagerInterface( KDevPartController *pc ); + KateDocumentManagerInterface( TDevPartController *pc ); ~KateDocumentManagerInterface(); @@ -53,7 +53,7 @@ k_dcop: uint documents(); private: - KDevPartController *m_controller; + TDevPartController *m_controller; }; #endif diff --git a/lib/interfaces/kdevapi.cpp b/lib/interfaces/tdevapi.cpp index 04cf078d..4f726107 100644 --- a/lib/interfaces/kdevapi.cpp +++ b/lib/interfaces/tdevapi.cpp @@ -17,15 +17,15 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevapi.h" +#include "tdevapi.h" -#include "kdevcoderepository.h" +#include "tdevcoderepository.h" /////////////////////////////////////////////////////////////////////////////// -// class KDevApi::Private +// class TDevApi::Private /////////////////////////////////////////////////////////////////////////////// -class KDevApi::Private +class TDevApi::Private { public: Private() @@ -34,60 +34,60 @@ public: {} TQDomDocument *m_projectDom; - KDevProject *m_project; - KDevLanguageSupport *m_languageSupport; - KDevCodeRepository* m_codeRepository; + TDevProject *m_project; + TDevLanguageSupport *m_languageSupport; + TDevCodeRepository* m_codeRepository; }; /////////////////////////////////////////////////////////////////////////////// -// class KDevApi +// class TDevApi /////////////////////////////////////////////////////////////////////////////// -KDevApi::KDevApi() +TDevApi::TDevApi() { - d = new KDevApi::Private; - d->m_codeRepository = new KDevCodeRepository(); + d = new TDevApi::Private; + d->m_codeRepository = new TDevCodeRepository(); } -KDevApi::~KDevApi() +TDevApi::~TDevApi() { delete d->m_codeRepository; delete d; } -KDevProject *KDevApi::project() const +TDevProject *TDevApi::project() const { return d->m_project; } -void KDevApi::setProject(KDevProject *project) +void TDevApi::setProject(TDevProject *project) { d->m_project = project; } -KDevLanguageSupport *KDevApi::languageSupport() const +TDevLanguageSupport *TDevApi::languageSupport() const { return d->m_languageSupport; } -void KDevApi::setLanguageSupport(KDevLanguageSupport *languageSupport) +void TDevApi::setLanguageSupport(TDevLanguageSupport *languageSupport) { d->m_languageSupport = languageSupport; } -TQDomDocument *KDevApi::projectDom() const +TQDomDocument *TDevApi::projectDom() const { return d->m_projectDom; } -void KDevApi::setProjectDom(TQDomDocument *dom) +void TDevApi::setProjectDom(TQDomDocument *dom) { d->m_projectDom = dom; } -KDevCodeRepository *KDevApi::codeRepository() const +TDevCodeRepository *TDevApi::codeRepository() const { return d->m_codeRepository; } -#include "kdevapi.moc" +#include "tdevapi.moc" diff --git a/lib/interfaces/kdevapi.h b/lib/interfaces/tdevapi.h index d1f4f5cc..a2e38f7c 100644 --- a/lib/interfaces/kdevapi.h +++ b/lib/interfaces/tdevapi.h @@ -17,56 +17,56 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVAPI_H -#define KDEVAPI_H +#ifndef TDEVAPI_H +#define TDEVAPI_H #include <tqobject.h> class TQStringList; class TQDomDocument; -class KDevCore; -class KDevProject; -class KDevLanguageSupport; +class TDevCore; +class TDevProject; +class TDevLanguageSupport; class CodeModel; -class KDevPartController; -class KDevMainWindow; -class KDevCodeRepository; -class KDevPlugin; -class KDevPluginController; +class TDevPartController; +class TDevMainWindow; +class TDevCodeRepository; +class TDevPlugin; +class TDevPluginController; /** -@file kdevapi.h +@file tdevapi.h KDevelop API interface. */ /** The interface to KDevelop's core components. Needs to be implemented in a shell. Developers do not need to use this -class because @ref KDevPlugin already provides API convenience methods. +class because @ref TDevPlugin already provides API convenience methods. */ -class KDevApi: public TQObject +class TDevApi: public TQObject { Q_OBJECT public: /**Constructor.*/ - KDevApi(); + TDevApi(); /**Destructor.*/ - virtual ~KDevApi(); + virtual ~TDevApi(); /**@return A reference to the toplevel widget.*/ - virtual KDevMainWindow *mainWindow() const = 0; + virtual TDevMainWindow *mainWindow() const = 0; /**@return A reference to the part controller which is used to manipulate loaded KParts.*/ - virtual KDevPartController *partController() const = 0; + virtual TDevPartController *partController() const = 0; /**@return A reference to the plugin controller which is used to manipulate loaded plugin.*/ - virtual KDevPluginController *pluginController() const = 0; + virtual TDevPluginController *pluginController() const = 0; /**@return A reference to the application core - an object which provides basic functionalities for inter-parts communications / cooperation.*/ - virtual KDevCore *core() const = 0; + virtual TDevCore *core() const = 0; /**@return A reference to the memory symbol store.*/ virtual CodeModel *codeModel() const = 0; @@ -79,22 +79,22 @@ public: void setProjectDom(TQDomDocument *dom); /**@return A reference to the current project component or 0 if no project is loaded.*/ - KDevProject *project() const; + TDevProject *project() const; /**Sets the current project. @param project The project plugin which becames the current project.*/ - void setProject(KDevProject *project); + void setProject(TDevProject *project); /**@return A reference to the language support component or 0 if no support available.*/ - KDevLanguageSupport *languageSupport() const; + TDevLanguageSupport *languageSupport() const; /**Sets the object charged of providing handling for the source files written in particular language (languages support component). @param languageSupport The language support plugin.*/ - void setLanguageSupport(KDevLanguageSupport *languageSupport); + void setLanguageSupport(TDevLanguageSupport *languageSupport); /**@return A reference to the code repository (accessor to persistent symbol stores).*/ - KDevCodeRepository *codeRepository() const; + TDevCodeRepository *codeRepository() const; private: class Private; diff --git a/lib/interfaces/kdevcoderepository.cpp b/lib/interfaces/tdevcoderepository.cpp index 26249544..f5716294 100644 --- a/lib/interfaces/kdevcoderepository.cpp +++ b/lib/interfaces/tdevcoderepository.cpp @@ -16,56 +16,56 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevcoderepository.h" +#include "tdevcoderepository.h" -struct KDevCodeRepositoryData +struct TDevCodeRepositoryData { Catalog* mainCatalog; TQValueList<Catalog*> catalogs; - KDevCodeRepositoryData(): mainCatalog( 0 ) {} + TDevCodeRepositoryData(): mainCatalog( 0 ) {} }; -KDevCodeRepository::KDevCodeRepository( ) - : d( new KDevCodeRepositoryData ) +TDevCodeRepository::TDevCodeRepository( ) + : d( new TDevCodeRepositoryData ) { } -KDevCodeRepository::~KDevCodeRepository( ) +TDevCodeRepository::~TDevCodeRepository( ) { delete( d ); } -Catalog* KDevCodeRepository::mainCatalog() +Catalog* TDevCodeRepository::mainCatalog() { return d->mainCatalog; } -void KDevCodeRepository::setMainCatalog( Catalog * mainCatalog ) +void TDevCodeRepository::setMainCatalog( Catalog * mainCatalog ) { d->mainCatalog = mainCatalog; } -void KDevCodeRepository::registerCatalog( Catalog * catalog ) +void TDevCodeRepository::registerCatalog( Catalog * catalog ) { d->catalogs.append( catalog ); emit catalogRegistered( catalog ); } -void KDevCodeRepository::unregisterCatalog( Catalog * catalog ) +void TDevCodeRepository::unregisterCatalog( Catalog * catalog ) { d->catalogs.remove( catalog ); emit catalogUnregistered( catalog ); } -void KDevCodeRepository::touchCatalog( Catalog * catalog ) +void TDevCodeRepository::touchCatalog( Catalog * catalog ) { emit catalogChanged( catalog ); } -TQValueList< Catalog * > KDevCodeRepository::registeredCatalogs( ) +TQValueList< Catalog * > TDevCodeRepository::registeredCatalogs( ) { return d->catalogs; } -#include "kdevcoderepository.moc" +#include "tdevcoderepository.moc" diff --git a/lib/interfaces/kdevcoderepository.h b/lib/interfaces/tdevcoderepository.h index 4e1dd765..b87d66e8 100644 --- a/lib/interfaces/kdevcoderepository.h +++ b/lib/interfaces/tdevcoderepository.h @@ -16,18 +16,18 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVCODEREPOSITORY_H -#define KDEVCODEREPOSITORY_H +#ifndef TDEVCODEREPOSITORY_H +#define TDEVCODEREPOSITORY_H #include <tqobject.h> #include <tqvaluelist.h> /** -@file kdevcoderepository.h +@file tdevcoderepository.h Code repository - the persistent symbol store accessor. */ -class KDevCodeRepositoryData; +class TDevCodeRepositoryData; class Catalog; /** @@ -45,15 +45,15 @@ never or rarely changes. System libraries are perfect examples of such code. Symbols from code contained in project files are better stored in memory symbol store like @ref CodeModel. */ -class KDevCodeRepository : public TQObject +class TDevCodeRepository : public TQObject { Q_OBJECT public: /**Constructor.*/ - KDevCodeRepository(); + TDevCodeRepository(); /**Destructor.*/ - virtual ~KDevCodeRepository(); + virtual ~TDevCodeRepository(); /**@return The main catalog. Each catalog can be marked is main to provide easy access to it.*/ @@ -89,7 +89,7 @@ signals: void catalogChanged( Catalog* catalog ); private: - KDevCodeRepositoryData* d; + TDevCodeRepositoryData* d; }; #endif diff --git a/lib/interfaces/kdevcore.cpp b/lib/interfaces/tdevcore.cpp index dda66cbf..726bf2cb 100644 --- a/lib/interfaces/kdevcore.cpp +++ b/lib/interfaces/tdevcore.cpp @@ -21,8 +21,8 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "KDevCoreIface.h" -#include "kdevcore.h" +#include "TDevCoreIface.h" +#include "tdevcore.h" #include "urlutil.h" @@ -282,17 +282,17 @@ const ProjectModelItem* ProjectModelItemContext::item() const /////////////////////////////////////////////////////////////////////////////// -// class KDevCore +// class TDevCore /////////////////////////////////////////////////////////////////////////////// -KDevCore::KDevCore( TQObject *parent, const char *name ) +TDevCore::TDevCore( TQObject *parent, const char *name ) : TQObject( parent, name ) { - new KDevCoreIface(this); + new TDevCoreIface(this); } -KDevCore::~KDevCore() +TDevCore::~TDevCore() { } -#include "kdevcore.moc" +#include "tdevcore.moc" diff --git a/lib/interfaces/kdevcore.h b/lib/interfaces/tdevcore.h index fad2891a..fadcdfde 100644 --- a/lib/interfaces/kdevcore.h +++ b/lib/interfaces/tdevcore.h @@ -25,11 +25,11 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVCORE_H -#define KDEVCORE_H +#ifndef TDEVCORE_H +#define TDEVCORE_H /** -@file kdevcore.h +@file tdevcore.h The interface to the application core and context menu classes. */ @@ -40,7 +40,7 @@ The interface to the application core and context menu classes. #include <kurl.h> class KDialogBase; -class KDevPlugin; +class TDevPlugin; class CodeModelItem; class ProjectModelItem; @@ -75,7 +75,7 @@ to if you reimplement TQWidget::contextMenuEvent method. <b>How to fill context menu from a plugin:</b> -# Create a @code contextMenu(TQPopupMenu *, const Context *) @endcode slot in your plugin class. --# Connect KDevCore::contextMenu(TQPopupMenu *, const Context *) signal to that slot in +-# Connect TDevCore::contextMenu(TQPopupMenu *, const Context *) signal to that slot in the constructor of your plugin:\n @code connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), @@ -287,7 +287,7 @@ private: /** -A KDevCore class defines an object which takes care about the cooperation +A TDevCore class defines an object which takes care about the cooperation between the various plug-in which compose KDevelop. It defines: - signals that can be captured for menu customization; @@ -297,7 +297,7 @@ It defines: - etc. . */ -class KDevCore: public TQObject +class TDevCore: public TQObject { Q_OBJECT @@ -305,10 +305,10 @@ public: /**Constructor @param parent The TQObject that's the parent of this class. @param name The name of the class.*/ - KDevCore(TQObject *parent=0, const char *name=0); + TDevCore(TQObject *parent=0, const char *name=0); /**Destructor.*/ - virtual ~KDevCore(); + virtual ~TDevCore(); /**Fills the context menu. This method should be called by a part that wants to show a @@ -322,7 +322,7 @@ public: @param context The pointer to a Context object of this popup menu.*/ virtual void fillContextMenu(TQPopupMenu *popup, const Context *context) = 0; - /**Closes the current project and open the new one. You cannot use the @ref KDevPlugin::project() + /**Closes the current project and open the new one. You cannot use the @ref TDevPlugin::project() * method right after opening a new project, as it will return a null pointer. *You must wait for the eventloop to be reentered, so use a signleshot timer *to do the job needed after the project is opened or connect a slot to the @@ -338,7 +338,7 @@ public: manually by means of stop button. @param which The plugin to mark. @param runs true if plugin is running something, false if it is not.*/ - virtual void running(KDevPlugin *which, bool runs) = 0; + virtual void running(TDevPlugin *which, bool runs) = 0; signals: /**Emitted after the core has done all initializations and @@ -356,8 +356,8 @@ signals: /**The user has clicked the stop button. If all actions should be cancelled, pass 0 to @p which - @param which The KDevPlugin object to stop.*/ - void stopButtonClicked(KDevPlugin *which); + @param which The TDevPlugin object to stop.*/ + void stopButtonClicked(TDevPlugin *which); /**A context menu has been requested somewhere. Components may hook some entries into it. More information on the diff --git a/lib/interfaces/kdevdesignerintegration.cpp b/lib/interfaces/tdevdesignerintegration.cpp index 0ba325ab..73fa7999 100644 --- a/lib/interfaces/kdevdesignerintegration.cpp +++ b/lib/interfaces/tdevdesignerintegration.cpp @@ -16,25 +16,25 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevdesignerintegration.h" -#include "kdevdesignerintegrationiface.h" +#include "tdevdesignerintegration.h" +#include "tdevdesignerintegrationiface.h" -class KDevDesignerIntegration::KDevDesignerIntegrationPrivate { +class TDevDesignerIntegration::TDevDesignerIntegrationPrivate { public: - KDevDesignerIntegrationIface *m_iface; + TDevDesignerIntegrationIface *m_iface; }; -KDevDesignerIntegration::KDevDesignerIntegration(TQObject *parent, const char *name) +TDevDesignerIntegration::TDevDesignerIntegration(TQObject *parent, const char *name) : TQObject(parent, name) { - dptr = new KDevDesignerIntegrationPrivate(); + dptr = new TDevDesignerIntegrationPrivate(); - dptr->m_iface = new KDevDesignerIntegrationIface(this); + dptr->m_iface = new TDevDesignerIntegrationIface(this); } -KDevDesignerIntegration::~KDevDesignerIntegration() +TDevDesignerIntegration::~TDevDesignerIntegration() { delete dptr; } -#include "kdevdesignerintegration.moc" +#include "tdevdesignerintegration.moc" diff --git a/lib/interfaces/kdevdesignerintegration.h b/lib/interfaces/tdevdesignerintegration.h index 528926cb..532d8b8b 100644 --- a/lib/interfaces/kdevdesignerintegration.h +++ b/lib/interfaces/tdevdesignerintegration.h @@ -16,15 +16,15 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVDESIGNERINTEGRATION_H -#define KDEVDESIGNERINTEGRATION_H +#ifndef TDEVDESIGNERINTEGRATION_H +#define TDEVDESIGNERINTEGRATION_H #include <designer.h> #include <tqobject.h> #include <tqdom.h> /** -@file kdevdesignerintegration.h +@file tdevdesignerintegration.h TDevelop designer integration interface. */ @@ -48,7 +48,7 @@ necessary files at desired line numbers and adds (edits, removes) code for imple For example, TQt Designer integration should be able to create an subclass for a form and reimplement slots defined in the form. */ -class KDevDesignerIntegration : public TQObject +class TDevDesignerIntegration : public TQObject { Q_OBJECT @@ -56,9 +56,9 @@ public: /**Constructor. @param parent Parent object. @param name Internal name.*/ - KDevDesignerIntegration(TQObject *parent = 0, const char *name = 0); + TDevDesignerIntegration(TQObject *parent = 0, const char *name = 0); /**Destructor.*/ - ~KDevDesignerIntegration(); + ~TDevDesignerIntegration(); /**Saves designer integration settings.*/ virtual void saveSettings(TQDomDocument dom, TQString path) = 0; @@ -91,8 +91,8 @@ public slots: @param formName The name of a GUI form.*/ virtual void openSource(const TQString &formName) = 0; private: - class KDevDesignerIntegrationPrivate; - KDevDesignerIntegrationPrivate *dptr; + class TDevDesignerIntegrationPrivate; + TDevDesignerIntegrationPrivate *dptr; }; #endif diff --git a/lib/interfaces/kdevdesignerintegrationiface.cpp b/lib/interfaces/tdevdesignerintegrationiface.cpp index 964ca340..bd4f349b 100644 --- a/lib/interfaces/kdevdesignerintegrationiface.cpp +++ b/lib/interfaces/tdevdesignerintegrationiface.cpp @@ -16,46 +16,46 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevdesignerintegrationiface.h" +#include "tdevdesignerintegrationiface.h" #include <designer.h> -#include "kdevdesignerintegration.h" +#include "tdevdesignerintegration.h" -KDevDesignerIntegrationIface::KDevDesignerIntegrationIface(KDevDesignerIntegration *p) +TDevDesignerIntegrationIface::TDevDesignerIntegrationIface(TDevDesignerIntegration *p) : DCOPObject("GUIDesigner"), m_designer(p) { //FIXME figure out what number our interface is... } -KDevDesignerIntegrationIface::~KDevDesignerIntegrationIface() +TDevDesignerIntegrationIface::~TDevDesignerIntegrationIface() { } -void KDevDesignerIntegrationIface::addFunction( const TQString & formName, TQString returnType, TQString function, TQString specifier, TQString access, uint type ) +void TDevDesignerIntegrationIface::addFunction( const TQString & formName, TQString returnType, TQString function, TQString specifier, TQString access, uint type ) { KInterfaceDesigner::Function f = {returnType, function, specifier, access, (KInterfaceDesigner::FunctionType)type }; m_designer->addFunction(formName, f); } -void KDevDesignerIntegrationIface::removeFunction( const TQString & formName, TQString returnType, TQString function, TQString specifier, TQString access, uint type ) +void TDevDesignerIntegrationIface::removeFunction( const TQString & formName, TQString returnType, TQString function, TQString specifier, TQString access, uint type ) { KInterfaceDesigner::Function f = {returnType, function, specifier, access, (KInterfaceDesigner::FunctionType)type }; m_designer->addFunction(formName, f); } -void KDevDesignerIntegrationIface::editFunction( const TQString & formName, TQString oldReturnType, TQString oldFunction, TQString oldSpecifier, TQString oldAccess, uint oldType, TQString returnType, TQString function, TQString specifier, TQString access, uint type ) +void TDevDesignerIntegrationIface::editFunction( const TQString & formName, TQString oldReturnType, TQString oldFunction, TQString oldSpecifier, TQString oldAccess, uint oldType, TQString returnType, TQString function, TQString specifier, TQString access, uint type ) { KInterfaceDesigner::Function fold = {oldReturnType, oldFunction, oldSpecifier, oldAccess, (KInterfaceDesigner::FunctionType)oldType }; KInterfaceDesigner::Function fnew = {returnType, function, specifier, access, (KInterfaceDesigner::FunctionType)type }; m_designer->editFunction(formName,fold,fnew); } -void KDevDesignerIntegrationIface::openFunction( const TQString & formName, const TQString & functionName ) +void TDevDesignerIntegrationIface::openFunction( const TQString & formName, const TQString & functionName ) { m_designer->openFunction(formName,functionName); } -void KDevDesignerIntegrationIface::openSource( const TQString & formName ) +void TDevDesignerIntegrationIface::openSource( const TQString & formName ) { m_designer->openSource(formName); } diff --git a/lib/interfaces/kdevdesignerintegrationiface.h b/lib/interfaces/tdevdesignerintegrationiface.h index c6c8988a..0dd6f8d1 100644 --- a/lib/interfaces/kdevdesignerintegrationiface.h +++ b/lib/interfaces/tdevdesignerintegrationiface.h @@ -16,23 +16,23 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVDESIGNERINTEGRATIONIFACE_H -#define KDEVDESIGNERINTEGRATIONIFACE_H +#ifndef TDEVDESIGNERINTEGRATIONIFACE_H +#define TDEVDESIGNERINTEGRATIONIFACE_H #include <dcopobject.h> -class KDevDesignerIntegration; +class TDevDesignerIntegration; /** The dcop interface for GUI designers in KDevelop. @author KDevelop Authors */ -class KDevDesignerIntegrationIface : public DCOPObject +class TDevDesignerIntegrationIface : public DCOPObject { K_DCOP public: - KDevDesignerIntegrationIface(KDevDesignerIntegration *p); + TDevDesignerIntegrationIface(TDevDesignerIntegration *p); - ~KDevDesignerIntegrationIface(); + ~TDevDesignerIntegrationIface(); k_dcop: void addFunction(const TQString &formName, TQString returnType, TQString function,TQString specifier,TQString access,uint type); void removeFunction(const TQString &formName, TQString returnType, TQString function,TQString specifier,TQString access,uint type); @@ -43,7 +43,7 @@ k_dcop: void openSource(const TQString &formName); private: - KDevDesignerIntegration *m_designer; + TDevDesignerIntegration *m_designer; }; #endif diff --git a/lib/interfaces/kdevgenericfactory.h b/lib/interfaces/tdevgenericfactory.h index 6f8d3dc9..7fdbdb28 100644 --- a/lib/interfaces/kdevgenericfactory.h +++ b/lib/interfaces/tdevgenericfactory.h @@ -21,7 +21,7 @@ #include <tdeaboutdata.h> /** -@file kdevgenericfactory.h +@file tdevgenericfactory.h KDevelop generic plugin factory. */ @@ -32,37 +32,37 @@ Usually it is convenient to use K_EXPORT_COMPONENT_FACTORY macro to create factories for TDevelop plugins. For example, for DummyPlugin the factory can be created (in dummyplugin.cpp file) as: @code -typedef KDevGenericFactory<DummyPlugin> DummyPluginFactory; -K_EXPORT_COMPONENT_FACTORY(libkdevdummyplugin, DummyPluginFactory( data ) ) +typedef TDevGenericFactory<DummyPlugin> DummyPluginFactory; +K_EXPORT_COMPONENT_FACTORY(libtdevdummyplugin, DummyPluginFactory( data ) ) @endcode Data should be a const static object. This way it complies with the requirements -for data objecs of KDevGenericFactory constructor. +for data objecs of TDevGenericFactory constructor. <b>Important:</b><br> There is no need to create @ref TDEAboutData objects. It is more useful to create -a static const @ref KDevPluginInfo object which can be used also in the constructor +a static const @ref TDevPluginInfo object which can be used also in the constructor of a plugin. For example, dummyplugin.cpp file could contain: @code -#include <kdevplugininfo.h> +#include <tdevplugininfo.h> -static const KDevPluginInfo data("KDevDummyPlugin"); -typedef KDevGenericFactory<DummyPlugin> DummyPluginFactory; -K_EXPORT_COMPONENT_FACTORY(libkdevdummyplugin, DummyPluginFactory( data ) ) +static const TDevPluginInfo data("KDevDummyPlugin"); +typedef TDevGenericFactory<DummyPlugin> DummyPluginFactory; +K_EXPORT_COMPONENT_FACTORY(libtdevdummyplugin, DummyPluginFactory( data ) ) DummyPlugin::DummyPlugin(TQObject *parent, const char *name, const TQStringList & ) - :KDevPlugin(&data, parent, name) + :TDevPlugin(&data, parent, name) { } @endcode -In the example above the duplication of information is avoided as same @ref KDevPluginInfo -objects are used for plugin and for plugin factory. This is possible because @ref KDevPluginInfo -class has an operator to cast @ref KDevPluginInfo to @ref TDEAboutData. +In the example above the duplication of information is avoided as same @ref TDevPluginInfo +objects are used for plugin and for plugin factory. This is possible because @ref TDevPluginInfo +class has an operator to cast @ref TDevPluginInfo to @ref TDEAboutData. */ template <class T, class ParentType = TQObject> -class KDevGenericFactory: public KGenericFactory<T, ParentType> +class TDevGenericFactory: public KGenericFactory<T, ParentType> { public: /**Constructor. @@ -73,7 +73,7 @@ public: - license type number. . data object should live as long as factory lives.*/ - KDevGenericFactory(TDEAboutData *data) + TDevGenericFactory(TDEAboutData *data) :KGenericFactory<T, ParentType>(data->appName()), aboutData(data) { } diff --git a/lib/interfaces/kdevlanguagesupport.cpp b/lib/interfaces/tdevlanguagesupport.cpp index aa5b560c..d283a434 100644 --- a/lib/interfaces/kdevlanguagesupport.cpp +++ b/lib/interfaces/tdevlanguagesupport.cpp @@ -26,141 +26,141 @@ #include <kdebug.h> -#include "kdevdesignerintegration.h" -#include "kdevlanguagesupport.h" +#include "tdevdesignerintegration.h" +#include "tdevlanguagesupport.h" -KDevLanguageSupport::KDevLanguageSupport(const KDevPluginInfo *info, TQObject *parent, const char *name) - : KDevPlugin(info, parent, name ? name : "KDevLanguageSupport" ) +TDevLanguageSupport::TDevLanguageSupport(const TDevPluginInfo *info, TQObject *parent, const char *name) + : TDevPlugin(info, parent, name ? name : "TDevLanguageSupport" ) { } -KDevLanguageSupport::~KDevLanguageSupport() +TDevLanguageSupport::~TDevLanguageSupport() { } -KDevLanguageSupport::Features KDevLanguageSupport::features() +TDevLanguageSupport::Features TDevLanguageSupport::features() { return Features(0); } -KMimeType::List KDevLanguageSupport::mimeTypes() +KMimeType::List TDevLanguageSupport::mimeTypes() { return KMimeType::List(); } -TQString KDevLanguageSupport::formatTag( const Tag& /*tag*/ ) +TQString TDevLanguageSupport::formatTag( const Tag& /*tag*/ ) { return TQString(); } -TQString KDevLanguageSupport::formatClassName(const TQString &name) +TQString TDevLanguageSupport::formatClassName(const TQString &name) { return name; } -TQString KDevLanguageSupport::unformatClassName(const TQString &name) +TQString TDevLanguageSupport::unformatClassName(const TQString &name) { return name; } -bool KDevLanguageSupport::shouldSplitDocument(const KURL &url) +bool TDevLanguageSupport::shouldSplitDocument(const KURL &url) { return false; } -Qt::Orientation KDevLanguageSupport::splitOrientation() const +Qt::Orientation TDevLanguageSupport::splitOrientation() const { return Qt::Vertical; } -void KDevLanguageSupport::addClass() +void TDevLanguageSupport::addClass() { } -void KDevLanguageSupport::addMethod( ClassDom /*klass*/ ) +void TDevLanguageSupport::addMethod( ClassDom /*klass*/ ) { } -void KDevLanguageSupport::implementVirtualMethods( ClassDom /*klass*/ ) +void TDevLanguageSupport::implementVirtualMethods( ClassDom /*klass*/ ) { } -void KDevLanguageSupport::addAttribute( ClassDom /*klass*/ ) +void TDevLanguageSupport::addAttribute( ClassDom /*klass*/ ) { } -TQStringList KDevLanguageSupport::subclassWidget(const TQString& /*formName*/) +TQStringList TDevLanguageSupport::subclassWidget(const TQString& /*formName*/) { return TQStringList(); } -TQStringList KDevLanguageSupport::updateWidget(const TQString& /*formName*/, const TQString& /*fileName*/) +TQStringList TDevLanguageSupport::updateWidget(const TQString& /*formName*/, const TQString& /*fileName*/) { return TQStringList(); } -TQString KDevLanguageSupport::formatModelItem( const CodeModelItem *item, bool /*shortDescription*/ ) +TQString TDevLanguageSupport::formatModelItem( const CodeModelItem *item, bool /*shortDescription*/ ) { return item->name(); } -void KDevLanguageSupport::addFunction( DesignerType type, const TQString & formName, Function function ) +void TDevLanguageSupport::addFunction( DesignerType type, const TQString & formName, Function function ) { -// kdDebug() << "KDevLanguageSupport::addFunction: 1" << endl; - KDevDesignerIntegration *designerIntegration = designer(type); -// kdDebug() << "KDevLanguageSupport::addFunction: 2" << endl; +// kdDebug() << "TDevLanguageSupport::addFunction: 1" << endl; + TDevDesignerIntegration *designerIntegration = designer(type); +// kdDebug() << "TDevLanguageSupport::addFunction: 2" << endl; if (!designerIntegration) { -// kdDebug() << "KDevLanguageSupport::addFunction: x" << endl; +// kdDebug() << "TDevLanguageSupport::addFunction: x" << endl; return; } -// kdDebug() << "KDevLanguageSupport::addFunction: 3" << endl; +// kdDebug() << "TDevLanguageSupport::addFunction: 3" << endl; designerIntegration->addFunction(formName, function); -// kdDebug() << "KDevLanguageSupport::addFunction: 4" << endl; +// kdDebug() << "TDevLanguageSupport::addFunction: 4" << endl; } -void KDevLanguageSupport::editFunction( DesignerType type, const TQString & formName, Function oldFunction, Function function ) +void TDevLanguageSupport::editFunction( DesignerType type, const TQString & formName, Function oldFunction, Function function ) { - KDevDesignerIntegration *designerIntegration = designer(type); + TDevDesignerIntegration *designerIntegration = designer(type); if (!designerIntegration) return; designerIntegration->editFunction(formName, oldFunction, function); } -void KDevLanguageSupport::removeFunction( DesignerType type, const TQString & formName, Function function ) +void TDevLanguageSupport::removeFunction( DesignerType type, const TQString & formName, Function function ) { - KDevDesignerIntegration *designerIntegration = designer(type); + TDevDesignerIntegration *designerIntegration = designer(type); if (!designerIntegration) return; designerIntegration->removeFunction(formName, function); } -KDevDesignerIntegration * KDevLanguageSupport::designer( DesignerType // type +TDevDesignerIntegration * TDevLanguageSupport::designer( DesignerType // type ) { return 0; } -void KDevLanguageSupport::openFunction( DesignerType type, const TQString & formName, const TQString & functionName ) +void TDevLanguageSupport::openFunction( DesignerType type, const TQString & formName, const TQString & functionName ) { - KDevDesignerIntegration *designerIntegration = designer(type); + TDevDesignerIntegration *designerIntegration = designer(type); if (!designerIntegration) return; designerIntegration->openFunction(formName, functionName); } -void KDevLanguageSupport::createAccessMethods( ClassDom // theClass +void TDevLanguageSupport::createAccessMethods( ClassDom // theClass , VariableDom // theVariable ) { } -void KDevLanguageSupport::openSource( DesignerType type, const TQString & formName) +void TDevLanguageSupport::openSource( DesignerType type, const TQString & formName) { - KDevDesignerIntegration *designerIntegration = designer(type); + TDevDesignerIntegration *designerIntegration = designer(type); if (!designerIntegration) return; designerIntegration->openSource(formName); } -#include "kdevlanguagesupport.moc" +#include "tdevlanguagesupport.moc" diff --git a/lib/interfaces/kdevlanguagesupport.h b/lib/interfaces/tdevlanguagesupport.h index 42221868..a1778ff6 100644 --- a/lib/interfaces/kdevlanguagesupport.h +++ b/lib/interfaces/tdevlanguagesupport.h @@ -22,23 +22,23 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVLANGUAGESUPPORT_H -#define KDEVLANGUAGESUPPORT_H +#ifndef TDEVLANGUAGESUPPORT_H +#define TDEVLANGUAGESUPPORT_H #include <tqstring.h> #include <tqstringlist.h> #include <kmimetype.h> -#include "kdevplugin.h" +#include "tdevplugin.h" #include "codemodel.h" #include <designer.h> /** -@file kdevlanguagesupport.h +@file tdevlanguagesupport.h Interface to programming language specific features. */ class Tag; -class KDevDesignerIntegration; +class TDevDesignerIntegration; using namespace KInterfaceDesigner; @@ -50,15 +50,15 @@ which language support to load. Language support plugin is a good place for: - a language parser which fills memory and persistent symbol store -(see @ref CodeModel and @ref KDevCodeRepository); +(see @ref CodeModel and @ref TDevCodeRepository); - code wizards specific to a programming language (like new class wizard); -- GUI designer integration (see @ref KDevLanguageSupport::designer method -documentation and @ref KDevDesignerIntegration class documentation; +- GUI designer integration (see @ref TDevLanguageSupport::designer method +documentation and @ref TDevDesignerIntegration class documentation; - symbol (class, function, etc.) name formatting to a human-readable convention (pretty formatted name). . */ -class KDevLanguageSupport: public KDevPlugin +class TDevLanguageSupport: public TDevPlugin { Q_OBJECT @@ -91,12 +91,12 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevLanguageSupport(const KDevPluginInfo *info, TQObject *parent, const char *name); + TDevLanguageSupport(const TDevPluginInfo *info, TQObject *parent, const char *name); /**Destructor.*/ - ~KDevLanguageSupport(); + ~TDevLanguageSupport(); /**@return The feature set of the language. This is e.g. used by the class view to decide which organizer items to display and which not.*/ @@ -183,7 +183,7 @@ public: /**Reimplement this method if you want to use integrated GUI designer for the language. Implementation could look like (in pseudo code): @code - KDevDesignerIntegration *des = 0; + TDevDesignerIntegration *des = 0; switch (type) { case KInterfaceDesigner::TQtDesigner: @@ -203,25 +203,25 @@ public: from designerintegration support library. @param type The type of the designer to integrate. @return The pointer to designer integration of given type or 0.*/ - virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type); + virtual TDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type); public slots: /**Adds a function requested by a GUI designer. No need to reimplement this slot - unless you want to use specific implementation of KDevDesignerIntegration interface. + unless you want to use specific implementation of TDevDesignerIntegration interface. @param type The type of integrated designer. @param formName The name of a GUI form. @param function The function to implement (add).*/ void addFunction(DesignerType type, const TQString &formName, Function function); /**Removes a function requested by a GUI designer. No need to reimplement this slot - unless you want to use specific implementation of KDevDesignerIntegration interface. + unless you want to use specific implementation of TDevDesignerIntegration interface. @param type The type of integrated designer. @param formName The name of a GUI form. @param function The function to remove.*/ void removeFunction(DesignerType type, const TQString &formName, Function function); /**Edits a function requested by a GUI designer. No need to reimplement this slot - unless you want to use specific implementation of KDevDesignerIntegration interface. + unless you want to use specific implementation of TDevDesignerIntegration interface. @param type The type of integrated designer. @param formName The name of a GUI form. @param oldFunction The old function signature before editing. @@ -229,14 +229,14 @@ public slots: void editFunction(DesignerType type, const TQString &formName, Function oldFunction, Function function); /**Opens a function requested by a GUI designer. No need to reimplement this slot - unless you want to use specific implementation of KDevDesignerIntegration interface. + unless you want to use specific implementation of TDevDesignerIntegration interface. @param type The type of integrated designer. @param formName The name of a GUI form. @param functionName The name of a function to seek in the code for.*/ void openFunction(DesignerType type, const TQString &formName, const TQString &functionName); /**Opens a form source requested by a GUI designer. No need to reimplement this slot - unless you want to use specific implementation of KDevDesignerIntegration interface. + unless you want to use specific implementation of TDevDesignerIntegration interface. @param type The type of integrated designer. @param formName The name of a GUI form.*/ void openSource(DesignerType type, const TQString &formName); diff --git a/lib/interfaces/kdevmainwindow.cpp b/lib/interfaces/tdevmainwindow.cpp index 4b95f669..e73250e9 100644 --- a/lib/interfaces/kdevmainwindow.cpp +++ b/lib/interfaces/tdevmainwindow.cpp @@ -17,12 +17,12 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevmainwindow.h" +#include "tdevmainwindow.h" #include <tdemainwindow.h> #include <kstatusbar.h> -KStatusBar *KDevMainWindow::statusBar() +KStatusBar *TDevMainWindow::statusBar() { return main()->statusBar(); } diff --git a/lib/interfaces/kdevmainwindow.h b/lib/interfaces/tdevmainwindow.h index 8138ab78..83aef3b0 100644 --- a/lib/interfaces/kdevmainwindow.h +++ b/lib/interfaces/tdevmainwindow.h @@ -19,8 +19,8 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEV_MAINWINDOW_H -#define KDEV_MAINWINDOW_H +#ifndef TDEV_MAINWINDOW_H +#define TDEV_MAINWINDOW_H #include <tqstring.h> @@ -29,7 +29,7 @@ class KStatusBar; class TDEMainWindow; /** -@file kdevmainwindow.h +@file tdevmainwindow.h KDevelop main window interface. */ @@ -37,11 +37,11 @@ KDevelop main window interface. KDevelop main window interface. Provides methods to control the main window of an application. */ -class KDevMainWindow +class TDevMainWindow { public: /**Destroys the main window*/ - virtual ~KDevMainWindow() {} // must be virtual! + virtual ~TDevMainWindow() {} // must be virtual! /**Embeds a view of a part into the main window. @param view The view to embed. Must be a KPart. diff --git a/lib/interfaces/kdevpartcontroller.cpp b/lib/interfaces/tdevpartcontroller.cpp index 58f1dc2a..e718ecf4 100644 --- a/lib/interfaces/kdevpartcontroller.cpp +++ b/lib/interfaces/tdevpartcontroller.cpp @@ -16,15 +16,15 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "KDevPartControllerIface.h" -#include "kdevpartcontroller.h" +#include "TDevPartControllerIface.h" +#include "tdevpartcontroller.h" #include "katedocumentmanagerinterface.h" -KDevPartController::KDevPartController(TQWidget *parent) +TDevPartController::TDevPartController(TQWidget *parent) : KParts::PartManager(parent) { - new KDevPartControllerIface(this); + new TDevPartControllerIface(this); new KateDocumentManagerInterface(this); } -#include "kdevpartcontroller.moc" +#include "tdevpartcontroller.moc" diff --git a/lib/interfaces/kdevpartcontroller.h b/lib/interfaces/tdevpartcontroller.h index fd8e6830..2bb593e6 100644 --- a/lib/interfaces/kdevpartcontroller.h +++ b/lib/interfaces/tdevpartcontroller.h @@ -22,15 +22,15 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEV_PARTCONTROLLER_H -#define KDEV_PARTCONTROLLER_H +#ifndef TDEV_PARTCONTROLLER_H +#define TDEV_PARTCONTROLLER_H #include <kurl.h> #include <tdeparts/partmanager.h> #include <ktrader.h> /** -@file kdevpartcontroller.h +@file tdevpartcontroller.h KDevelop part controller interface. */ @@ -53,7 +53,7 @@ Interface to control loaded parts and other documents. Part controller works with embedded into the shell parts. Such parts are usually editors, GUI designers, etc. */ -class KDevPartController: public KParts::PartManager +class TDevPartController: public KParts::PartManager { Q_OBJECT @@ -61,7 +61,7 @@ class KDevPartController: public KParts::PartManager public: /**Constructor. @param parent The parent object.*/ - KDevPartController(TQWidget *parent); + TDevPartController(TQWidget *parent); /**Call this before a call to @ref editDocument to set the encoding of the document to be opened. diff --git a/lib/interfaces/kdevplugin.cpp b/lib/interfaces/tdevplugin.cpp index 31717446..42d30cc8 100644 --- a/lib/interfaces/kdevplugin.cpp +++ b/lib/interfaces/tdevplugin.cpp @@ -24,13 +24,13 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevplugin.h" +#include "tdevplugin.h" -#include "kdevapi.h" -#include "kdevcore.h" -#include "kdevplugininfo.h" -#include "kdevpartcontroller.h" -#include "kdevplugincontroller.h" +#include "tdevapi.h" +#include "tdevcore.h" +#include "tdevplugininfo.h" +#include "tdevpartcontroller.h" +#include "tdevplugincontroller.h" #include <tdeaction.h> #include <tdeglobal.h> @@ -42,23 +42,23 @@ #include <assert.h> /////////////////////////////////////////////////////////////////////////////// -// struct KDevPlugin::Private +// struct TDevPlugin::Private /////////////////////////////////////////////////////////////////////////////// -struct KDevPlugin::Private +struct TDevPlugin::Private { - const KDevPluginInfo *info; + const TDevPluginInfo *info; }; /////////////////////////////////////////////////////////////////////////////// -// class KDevPlugin +// class TDevPlugin /////////////////////////////////////////////////////////////////////////////// -KDevPlugin::KDevPlugin(const KDevPluginInfo *info, TQObject *parent, const char *name) +TDevPlugin::TDevPlugin(const TDevPluginInfo *info, TQObject *parent, const char *name) :TQObject(parent, name), d(new Private) { - assert(parent->inherits( "KDevApi" )); - m_api = static_cast<KDevApi *>( parent ); + assert(parent->inherits( "TDevApi" )); + m_api = static_cast<TDevApi *>( parent ); actionCollection()->setHighlightingEnabled( true ); @@ -66,74 +66,74 @@ KDevPlugin::KDevPlugin(const KDevPluginInfo *info, TQObject *parent, const char TDEGlobal::iconLoader()->addAppDir("tdevelop"); } -KDevPlugin::~KDevPlugin() +TDevPlugin::~TDevPlugin() { delete( d ); } -KDevMainWindow *KDevPlugin::mainWindow() +TDevMainWindow *TDevPlugin::mainWindow() { return m_api->mainWindow(); } -KDevCore *KDevPlugin::core() const +TDevCore *TDevPlugin::core() const { return m_api->core(); } -KDevProject *KDevPlugin::project() const +TDevProject *TDevPlugin::project() const { return m_api->project(); } -CodeModel *KDevPlugin::codeModel() const +CodeModel *TDevPlugin::codeModel() const { return m_api->codeModel(); } -TQDomDocument *KDevPlugin::projectDom() const +TQDomDocument *TDevPlugin::projectDom() const { return m_api->projectDom(); } -KDevLanguageSupport *KDevPlugin::languageSupport() const +TDevLanguageSupport *TDevPlugin::languageSupport() const { return m_api->languageSupport(); } -KDevPartController *KDevPlugin::partController() const +TDevPartController *TDevPlugin::partController() const { return m_api->partController(); } -KDevPluginController *KDevPlugin::pluginController() const +TDevPluginController *TDevPlugin::pluginController() const { return m_api->pluginController(); } -void KDevPlugin::restorePartialProjectSession(const TQDomElement* /*el*/) +void TDevPlugin::restorePartialProjectSession(const TQDomElement* /*el*/) { // there's still nothing to do in the base class } -void KDevPlugin::savePartialProjectSession(TQDomElement* /*el*/) +void TDevPlugin::savePartialProjectSession(TQDomElement* /*el*/) { // there's still nothing to do in the base class } -KDevCodeRepository * KDevPlugin::codeRepository() const +TDevCodeRepository * TDevPlugin::codeRepository() const { return m_api->codeRepository(); } -KDevPlugin * KDevPlugin::extension_internal(const TQString &serviceType, const TQString &constraint) +TDevPlugin * TDevPlugin::extension_internal(const TQString &serviceType, const TQString &constraint) { return m_api->pluginController()->extension(serviceType, constraint); } -const KDevPluginInfo *KDevPlugin::info() +const TDevPluginInfo *TDevPlugin::info() { return d->info; } -#include "kdevplugin.moc" +#include "tdevplugin.moc" diff --git a/lib/interfaces/kdevplugin.h b/lib/interfaces/tdevplugin.h index 31cc5550..eaa66146 100644 --- a/lib/interfaces/kdevplugin.h +++ b/lib/interfaces/tdevplugin.h @@ -17,26 +17,26 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVPLUGIN_H -#define KDEVPLUGIN_H +#ifndef TDEVPLUGIN_H +#define TDEVPLUGIN_H #include <tqobject.h> #include <kxmlguiclient.h> -#include "kdevapi.h" - -class KDevCore; -class KDevProject; -class KDevVersionControl; -class KDevLanguageSupport; -class KDevPartController; -class KDevMainWindow; -class KDevCodeRepository; +#include "tdevapi.h" + +class TDevCore; +class TDevProject; +class TDevVersionControl; +class TDevLanguageSupport; +class TDevPartController; +class TDevMainWindow; +class TDevCodeRepository; class CodeModel; -class KDevPluginInfo; +class TDevPluginInfo; class TQDomElement; /** -@file kdevplugin.h +@file tdevplugin.h TDevelop plugin interface. */ @@ -92,19 +92,19 @@ Plugin scope can be either: - Global - Project . -Global plugins are plugins which require only shell to be loaded and do not operate on @ref KDevProject interface and/or do not use project wide information.\n +Global plugins are plugins which require only shell to be loaded and do not operate on @ref TDevProject interface and/or do not use project wide information.\n Core plugins are global plugins which offer some important "core" functionality and thus are not selectable by user in plugin configuration pages.\n Project plugins require a project to be loaded and are usually loaded/unloaded among with the project. -If your plugin use @ref KDevProject interface and/or operate on project-related information then this is the project plugin. +If your plugin use @ref TDevProject interface and/or operate on project-related information then this is the project plugin. -@sa KDevGenericFactory class documentation for an information about plugin instantiation +@sa TDevGenericFactory class documentation for an information about plugin instantiation and writing factories for plugins. -@sa KDevCore class documentation for an information about features which are available to plugins +@sa TDevCore class documentation for an information about features which are available to plugins from shell applications. */ -class KDevPlugin: public TQObject, public KXMLGUIClient +class TDevPlugin: public TQObject, public KXMLGUIClient { Q_OBJECT @@ -116,30 +116,30 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevPlugin(const KDevPluginInfo *info, TQObject *parent, const char *name = 0); + TDevPlugin(const TDevPluginInfo *info, TQObject *parent, const char *name = 0); /**Destructs a plugin.*/ - virtual ~KDevPlugin(); + virtual ~TDevPlugin(); /**Provides an information about the plugin. @return TDEAboutData object which was initialized in the constructor.*/ - const KDevPluginInfo* info(); + const TDevPluginInfo* info(); /**@return A reference to the toplevel widget.*/ - KDevMainWindow *mainWindow(); + TDevMainWindow *mainWindow(); /**@return A reference to the application core - an object which provides basic functionalities for inter-parts communications / cooperation.*/ - KDevCore *core() const; + TDevCore *core() const; /**@return A reference to the current project component or 0 if no project is loaded.*/ - KDevProject *project() const; + TDevProject *project() const; /**@return A reference to the language support component or 0 if no support available.*/ - KDevLanguageSupport *languageSupport() const; + TDevLanguageSupport *languageSupport() const; /**@return A reference to the memory symbol store.*/ CodeModel *codeModel() const; @@ -148,13 +148,13 @@ public: TQDomDocument *projectDom() const; /**@return A reference to the part controller which is used to manipulate loaded KParts.*/ - KDevPartController *partController() const; + TDevPartController *partController() const; /**@return A reference to the plugin controller which is used to manipulate loaded plugin.*/ - virtual KDevPluginController *pluginController() const; + virtual TDevPluginController *pluginController() const; /**@return A reference to the code repository (accessor to persistent symbol stores).*/ - KDevCodeRepository* codeRepository() const; + TDevCodeRepository* codeRepository() const; /**Queries for the plugin which supports given service type (such plugins are called extensions in KDevelop). All already loaded plugins will be queried and the <b>first loaded one</b> to support @@ -162,7 +162,7 @@ public: entry is required in .desktop file for that plugin. Template argument is used as a type to cast the result to. This is done because extension - is usually derived from a certain base class and not directly from KDevPlugin. + is usually derived from a certain base class and not directly from TDevPlugin. @param serviceType The service type of an extension (like "TDevelop/SourceFormatter"). @param constraint The constraint which is applied when quering for the service. This constraint is a usual TDETrader constraint statement (like "[X-TDevelop-Foo]=='MyFoo'"). @@ -191,9 +191,9 @@ public: virtual void savePartialProjectSession(TQDomElement* el); private: - KDevPlugin *extension_internal(const TQString &serviceType, const TQString &constraint = ""); + TDevPlugin *extension_internal(const TQString &serviceType, const TQString &constraint = ""); - KDevApi *m_api; + TDevApi *m_api; class Private; Private *d; }; diff --git a/lib/interfaces/kdevplugincontroller.cpp b/lib/interfaces/tdevplugincontroller.cpp index 1cc6caa3..bf1eb5e7 100644 --- a/lib/interfaces/kdevplugincontroller.cpp +++ b/lib/interfaces/tdevplugincontroller.cpp @@ -16,34 +16,34 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevplugincontroller.h" +#include "tdevplugincontroller.h" -#include "kdevplugin.h" +#include "tdevplugin.h" -KDevPluginController::KDevPluginController() +TDevPluginController::TDevPluginController() { } -TDETrader::OfferList KDevPluginController::query(const TQString &serviceType, +TDETrader::OfferList TDevPluginController::query(const TQString &serviceType, const TQString &constraint) { return TDETrader::self()->query(serviceType, TQString("%1 and [X-TDevelop-Version] == %2").arg(constraint).arg(TDEVELOP_PLUGIN_VERSION)); } -TDETrader::OfferList KDevPluginController::queryPlugins(const TQString &constraint) +TDETrader::OfferList TDevPluginController::queryPlugins(const TQString &constraint) { return query("TDevelop/Plugin", constraint); } -KURL::List KDevPluginController::profileResources(const TQString &/*nameFilter*/) +KURL::List TDevPluginController::profileResources(const TQString &/*nameFilter*/) { return KURL::List(); } -KURL::List KDevPluginController::profileResourcesRecursive(const TQString &/*nameFilter*/) +KURL::List TDevPluginController::profileResourcesRecursive(const TQString &/*nameFilter*/) { return KURL::List(); } -#include "kdevplugincontroller.moc" +#include "tdevplugincontroller.moc" diff --git a/lib/interfaces/kdevplugincontroller.h b/lib/interfaces/tdevplugincontroller.h index 05ee050b..ee44764d 100644 --- a/lib/interfaces/kdevplugincontroller.h +++ b/lib/interfaces/tdevplugincontroller.h @@ -16,8 +16,8 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVPLUGINCONTROLLER_H -#define KDEVPLUGINCONTROLLER_H +#ifndef TDEVPLUGINCONTROLLER_H +#define TDEVPLUGINCONTROLLER_H #include <tqobject.h> @@ -25,18 +25,18 @@ #include <ktrader.h> /** -@file kdevplugincontroller.h +@file tdevplugincontroller.h TDevelop plugin controller interface. */ -class KDevPlugin; +class TDevPlugin; class ProfileEngine; /** The base class for TDevelop plugin controller. Plugin controller is responsible for quering, loading and unloading available plugins. */ -class KDevPluginController: public TQObject +class TDevPluginController: public TQObject { Q_OBJECT @@ -46,7 +46,7 @@ public: * Returns a uniquely specified plugin. If it isn't already loaded, it will be. * Use with caution! See extension for parameter details. */ - virtual KDevPlugin * loadPlugin( const TQString & serviceType, const TQString & constraint ) = 0; + virtual TDevPlugin * loadPlugin( const TQString & serviceType, const TQString & constraint ) = 0; /** * Unloads the plugin specified by @p plugin @@ -60,7 +60,7 @@ public: virtual void unloadPlugins(TQStringList const &list) = 0; /**@return The list of currently loaded plugins.*/ - virtual const TQValueList<KDevPlugin*> loadedPlugins() = 0; + virtual const TQValueList<TDevPlugin*> loadedPlugins() = 0; /**Queries for the plugin which supports given service type. All already loaded plugins will be queried and the first one to support the service type @@ -70,7 +70,7 @@ public: @param constraint The constraint which is applied when quering for the service. This constraint is a usual TDETrader constraint statement (like "[X-TDevelop-Foo]=='MyFoo'"). @return A KDevelop extension plugin for given service type or 0 if no plugin supports it*/ - virtual KDevPlugin *extension(const TQString &serviceType, const TQString &constraint = "") = 0; + virtual TDevPlugin *extension(const TQString &serviceType, const TQString &constraint = "") = 0; /**Queries KDevelop services. Version is checked automatically by adding proper X-TDevelop-Version=N statement into the query. @@ -82,7 +82,7 @@ public: static TDETrader::OfferList query(const TQString &serviceType, const TQString &constraint); /**Queries TDevelop plugins. Works like - KDevPluginController::query with serviceType set to "TDevelop/Plugin". + TDevPluginController::query with serviceType set to "TDevelop/Plugin". @param constraint A constraint for the service. Do not include plugin version number - it is done automatically. @return The list of plugin offers.*/ @@ -112,7 +112,7 @@ signals: protected: /**Constructor.*/ - KDevPluginController(); + TDevPluginController(); }; diff --git a/lib/interfaces/kdevplugininfo.cpp b/lib/interfaces/tdevplugininfo.cpp index e80385cb..2f607431 100644 --- a/lib/interfaces/kdevplugininfo.cpp +++ b/lib/interfaces/tdevplugininfo.cpp @@ -16,16 +16,16 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "kdevplugininfo.h" +#include "tdevplugininfo.h" #include <tqvariant.h> #include <kservice.h> #include <kdebug.h> -#include "kdevplugincontroller.h" +#include "tdevplugincontroller.h" -struct KDevPluginInfo::Private { +struct TDevPluginInfo::Private { TQString m_pluginName; TQString m_rawGenericName; @@ -46,7 +46,7 @@ struct KDevPluginInfo::Private { }; -KDevPluginInfo::KDevPluginInfo(const TQString &pluginName) +TDevPluginInfo::TDevPluginInfo(const TQString &pluginName) :d(new Private()) { d->m_pluginName = pluginName; @@ -89,92 +89,92 @@ KDevPluginInfo::KDevPluginInfo(const TQString &pluginName) } -KDevPluginInfo::operator TDEAboutData *() const +TDevPluginInfo::operator TDEAboutData *() const { return d->m_data; } -TQString KDevPluginInfo::pluginName() const +TQString TDevPluginInfo::pluginName() const { return d->m_pluginName; } -TQString KDevPluginInfo::genericName() const +TQString TDevPluginInfo::genericName() const { return d->m_genericName; } -TQString KDevPluginInfo::icon() const +TQString TDevPluginInfo::icon() const { return d->m_icon; } -TQString KDevPluginInfo::description() const +TQString TDevPluginInfo::description() const { return d->m_description; } -TQString KDevPluginInfo::version() const +TQString TDevPluginInfo::version() const { return d->m_version; } -int KDevPluginInfo::licenseType() const +int TDevPluginInfo::licenseType() const { return d->m_licenseType; } -TQString KDevPluginInfo::license() const +TQString TDevPluginInfo::license() const { - KDevPluginInfo &info = *const_cast<KDevPluginInfo*>(this); + TDevPluginInfo &info = *const_cast<TDevPluginInfo*>(this); // return TDEAboutData(info).license(); TDEAboutData *data = info; return data->license(); } -TQString KDevPluginInfo::copyrightStatement() const +TQString TDevPluginInfo::copyrightStatement() const { return d->m_copyrightStatement; } -TQString KDevPluginInfo::homePageAddress() const +TQString TDevPluginInfo::homePageAddress() const { return d->m_homePageAddress; } -TQString KDevPluginInfo::bugsEmailAddress() const +TQString TDevPluginInfo::bugsEmailAddress() const { return d->m_bugsEmailAddress; } -TQVariant KDevPluginInfo::property(const TQString &name) const +TQVariant TDevPluginInfo::property(const TQString &name) const { - TDETrader::OfferList offers = KDevPluginController::queryPlugins(TQString("Name='%1'").arg(d->m_pluginName)); + TDETrader::OfferList offers = TDevPluginController::queryPlugins(TQString("Name='%1'").arg(d->m_pluginName)); if (offers.count() == 1) return offers.first()->property(name); return TQVariant(); } -TQVariant KDevPluginInfo::operator [](const TQString &name) const +TQVariant TDevPluginInfo::operator [](const TQString &name) const { return property(name); } -TQStringList KDevPluginInfo::propertyNames( ) const +TQStringList TDevPluginInfo::propertyNames( ) const { - TDETrader::OfferList offers = KDevPluginController::queryPlugins(TQString("Name='%1'").arg(d->m_pluginName)); + TDETrader::OfferList offers = TDevPluginController::queryPlugins(TQString("Name='%1'").arg(d->m_pluginName)); if (offers.count() == 1) return offers.first()->propertyNames(); return TQStringList(); } -void KDevPluginInfo::addAuthor(const char *name, const char *task, +void TDevPluginInfo::addAuthor(const char *name, const char *task, const char *emailAddress, const char *webAddress) { d->m_authors.append(TDEAboutPerson(name, task, emailAddress, webAddress)); } -void KDevPluginInfo::addCredit(const char *name, const char *task, +void TDevPluginInfo::addCredit(const char *name, const char *task, const char *emailAddress, const char *webAddress) { d->m_credits.append(TDEAboutPerson(name, task, emailAddress, webAddress)); diff --git a/lib/interfaces/kdevplugininfo.h b/lib/interfaces/tdevplugininfo.h index ffd1c46e..419d61aa 100644 --- a/lib/interfaces/kdevplugininfo.h +++ b/lib/interfaces/tdevplugininfo.h @@ -16,15 +16,15 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVPLUGININFO_H -#define KDEVPLUGININFO_H +#ifndef TDEVPLUGININFO_H +#define TDEVPLUGININFO_H #include <tqvariant.h> #include <tdeaboutdata.h> /** -@file kdevplugininfo.h +@file tdevplugininfo.h TDevelop plugin information container class. */ @@ -32,20 +32,20 @@ TDevelop plugin information container class. Information about TDevelop plugin. It uses plugin name to query plugin .desktop files and retrieve most information. Names of authors and credits to other people -must be added manually using KDevPluginInfo::addAuthor and KDevPluginInfo::addCredit +must be added manually using TDevPluginInfo::addAuthor and TDevPluginInfo::addCredit methods. -@sa KDevPlugin class documentation for more information about .desktop files. +@sa TDevPlugin class documentation for more information about .desktop files. */ -class KDevPluginInfo +class TDevPluginInfo { public: /**Constructor. @param pluginName A name of a plugin. Must be the same as the name of a .desktop file and the same as the location of plugin resource files.*/ - KDevPluginInfo(const TQString &pluginName); + TDevPluginInfo(const TQString &pluginName); - /**Casts KDevPluginInfo to TDEAboutData. Uses KDevPluginInfo::pluginName as TDEAboutData::appName, - KDevPluginInfo::rawGenericName as TDEAboutData::programName KDevPluginInfo::licenseType as TDEAboutData::licenseType. Other parameters are ignored.*/ + /**Casts TDevPluginInfo to TDEAboutData. Uses TDevPluginInfo::pluginName as TDEAboutData::appName, + TDevPluginInfo::rawGenericName as TDEAboutData::programName TDevPluginInfo::licenseType as TDEAboutData::licenseType. Other parameters are ignored.*/ operator TDEAboutData*() const; /**@return A name of a plugin (always untranslated).*/ diff --git a/lib/interfaces/kdevproject.cpp b/lib/interfaces/tdevproject.cpp index e8616df1..77136ca0 100644 --- a/lib/interfaces/kdevproject.cpp +++ b/lib/interfaces/tdevproject.cpp @@ -24,21 +24,21 @@ #include <kdebug.h> -#include "kdevproject.h" +#include "tdevproject.h" #include <urlutil.h> #include <tqfileinfo.h> #include <tqtimer.h> -#include "kdevprojectiface.h" +#include "tdevprojectiface.h" -struct KDevProject::Private { +struct TDevProject::Private { TQMap<TQString, TQString> m_absToRel; TQStringList m_symlinkList; TQTimer *m_timer; - KDevProjectIface *m_iface; + TDevProjectIface *m_iface; }; -KDevProject::KDevProject(const KDevPluginInfo *info, TQObject *parent, const char *name) - : KDevPlugin(info, parent, name), d(new KDevProject::Private()) +TDevProject::TDevProject(const TDevPluginInfo *info, TQObject *parent, const char *name) + : TDevPlugin(info, parent, name), d(new TDevProject::Private()) { connect( this, TQT_SIGNAL(addedFilesToProject(const TQStringList& )), this, TQT_SLOT(buildFileMap()) ); connect( this, TQT_SIGNAL(removedFilesFromProject(const TQStringList& )), this, TQT_SLOT(buildFileMap()) ); @@ -48,10 +48,10 @@ KDevProject::KDevProject(const KDevPluginInfo *info, TQObject *parent, const cha d->m_timer = new TQTimer(this); connect(d->m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBuildFileMap())); - d->m_iface = new KDevProjectIface(this); + d->m_iface = new TDevProjectIface(this); } -KDevProject::~KDevProject() +TDevProject::~TDevProject() { d->m_timer->stop(); delete d->m_iface; @@ -59,7 +59,7 @@ KDevProject::~KDevProject() delete d; } -void KDevProject::changedFile( const TQString & fileName ) +void TDevProject::changedFile( const TQString & fileName ) { TQStringList fileList; fileList.append ( fileName ); @@ -68,35 +68,35 @@ void KDevProject::changedFile( const TQString & fileName ) } -void KDevProject::changedFiles( const TQStringList & fileList ) +void TDevProject::changedFiles( const TQStringList & fileList ) { emit changedFilesInProject( fileList ); } -KDevProject::Options KDevProject::options() const +TDevProject::Options TDevProject::options() const { - return (KDevProject::Options)0; + return (TDevProject::Options)0; } -bool KDevProject::isProjectFile( const TQString & absFileName ) +bool TDevProject::isProjectFile( const TQString & absFileName ) { return d->m_absToRel.contains( absFileName ); } -TQString KDevProject::relativeProjectFile( const TQString & absFileName ) +TQString TDevProject::relativeProjectFile( const TQString & absFileName ) { if( isProjectFile(absFileName) ) return d->m_absToRel[ absFileName ]; return TQString(); } -void KDevProject::buildFileMap() +void TDevProject::buildFileMap() { d->m_timer->stop(); d->m_timer->start(0, true); } -void KDevProject::slotBuildFileMap() +void TDevProject::slotBuildFileMap() { kdDebug(9000) << k_funcinfo << endl; @@ -115,22 +115,22 @@ void KDevProject::slotBuildFileMap() } } -void KDevProject::openProject( const TQString & /*dirName*/, const TQString & /*projectName*/ ) +void TDevProject::openProject( const TQString & /*dirName*/, const TQString & /*projectName*/ ) { buildFileMap(); } -TQStringList KDevProject::symlinkProjectFiles( ) +TQStringList TDevProject::symlinkProjectFiles( ) { return d->m_symlinkList; } -TQString KDevProject::defaultRunDirectory(const TQString& projectPluginName) const +TQString TDevProject::defaultRunDirectory(const TQString& projectPluginName) const { return DomUtil::readEntry(*projectDom(), "/" + projectPluginName + "/run/globalcwd"); } -void KDevProject::slotAddFilesToFileMap( const TQStringList & fileList ) +void TDevProject::slotAddFilesToFileMap( const TQStringList & fileList ) { TQStringList::ConstIterator it = fileList.begin(); while( it != fileList.end() ) @@ -147,7 +147,7 @@ void KDevProject::slotAddFilesToFileMap( const TQStringList & fileList ) } } -void KDevProject::slotRemoveFilesFromFileMap( const TQStringList & fileList ) +void TDevProject::slotRemoveFilesFromFileMap( const TQStringList & fileList ) { TQStringList::ConstIterator it = fileList.begin(); while( it != fileList.end() ) @@ -161,4 +161,4 @@ void KDevProject::slotRemoveFilesFromFileMap( const TQStringList & fileList ) } } -#include "kdevproject.moc" +#include "tdevproject.moc" diff --git a/lib/interfaces/kdevproject.h b/lib/interfaces/tdevproject.h index 256b0c0c..fa320edf 100644 --- a/lib/interfaces/kdevproject.h +++ b/lib/interfaces/tdevproject.h @@ -22,17 +22,17 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef KDEVPROJECT_H -#define KDEVPROJECT_H +#ifndef TDEVPROJECT_H +#define TDEVPROJECT_H -#include "kdevplugin.h" +#include "tdevplugin.h" #include "domutil.h" #include <tqstringlist.h> #include <tqmap.h> /** -@file kdevproject.h +@file tdevproject.h KDevelop project interface. */ @@ -40,12 +40,12 @@ class TQTimer; /** KDevelop project interface. -Plugins implementing the KDevProject interfaces are used to manage projects. +Plugins implementing the TDevProject interfaces are used to manage projects. Project can be considered as a way of grouping files (in text editors) or as a way of providing support for a build system (like it is done in TDevelop IDE buildtools). */ -class KDevProject: public KDevPlugin +class TDevProject: public TDevPlugin { Q_OBJECT @@ -56,12 +56,12 @@ public: plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. - @param parent The parent object for the plugin. Parent object must implement @ref KDevApi + @param parent The parent object for the plugin. Parent object must implement @ref TDevApi interface. Otherwise the plugin will not be constructed. @param name The internal name which identifies the plugin.*/ - KDevProject(const KDevPluginInfo *info, TQObject *parent=0, const char *name=0); + TDevProject(const TDevPluginInfo *info, TQObject *parent=0, const char *name=0); /**Destructor.*/ - virtual ~KDevProject(); + virtual ~TDevProject(); /**Options of the project plugin.*/ enum Options { @@ -83,7 +83,7 @@ public: virtual void closeProject() = 0; /**Reimplement this method to set project plugin options. Default implementation - returns KDevProject::UsesOtherBuildSystem.*/ + returns TDevProject::UsesOtherBuildSystem.*/ virtual Options options() const; /**@return The canonical absolute directory of the project. Canonical means that diff --git a/lib/interfaces/kdevprojectiface.cpp b/lib/interfaces/tdevprojectiface.cpp index 28d4501c..625a4118 100644 --- a/lib/interfaces/kdevprojectiface.cpp +++ b/lib/interfaces/tdevprojectiface.cpp @@ -19,168 +19,168 @@ Boston, MA 02110-1301, USA. */ -#include "kdevprojectiface.h" -#include "kdevproject.h" +#include "tdevprojectiface.h" +#include "tdevproject.h" #include "domutil.h" -KDevProjectIface::KDevProjectIface(KDevProject *prj) - : TQObject(prj), DCOPObject("KDevProject"), m_prj(prj) +TDevProjectIface::TDevProjectIface(TDevProject *prj) + : TQObject(prj), DCOPObject("TDevProject"), m_prj(prj) { } -KDevProjectIface::~KDevProjectIface() +TDevProjectIface::~TDevProjectIface() { } -void KDevProjectIface::openProject( const TQString & dirName, const TQString & projectName ) +void TDevProjectIface::openProject( const TQString & dirName, const TQString & projectName ) { m_prj->openProject(dirName,projectName); } -void KDevProjectIface::closeProject( ) +void TDevProjectIface::closeProject( ) { m_prj->closeProject(); } -uint KDevProjectIface::options( ) const +uint TDevProjectIface::options( ) const { return (uint)m_prj->options(); } -TQString KDevProjectIface::projectDirectory( ) const +TQString TDevProjectIface::projectDirectory( ) const { return m_prj->projectDirectory(); } -TQString KDevProjectIface::projectName( ) const +TQString TDevProjectIface::projectName( ) const { return m_prj->projectName(); } -TQString KDevProjectIface::mainProgram() const +TQString TDevProjectIface::mainProgram() const { return m_prj->mainProgram(); } -TQString KDevProjectIface::runDirectory( ) const +TQString TDevProjectIface::runDirectory( ) const { return m_prj->runDirectory(); } -TQString KDevProjectIface::activeDirectory( ) const +TQString TDevProjectIface::activeDirectory( ) const { return m_prj->activeDirectory(); } -TQString KDevProjectIface::buildDirectory( ) const +TQString TDevProjectIface::buildDirectory( ) const { return m_prj->buildDirectory(); } -TQStringList KDevProjectIface::allFiles( ) const +TQStringList TDevProjectIface::allFiles( ) const { return m_prj->allFiles(); } -TQStringList KDevProjectIface::distFiles( ) const +TQStringList TDevProjectIface::distFiles( ) const { return m_prj->distFiles(); } -void KDevProjectIface::addFiles( const TQStringList & fileList ) +void TDevProjectIface::addFiles( const TQStringList & fileList ) { m_prj->addFiles(fileList); } -void KDevProjectIface::addFile( const TQString & fileName ) +void TDevProjectIface::addFile( const TQString & fileName ) { m_prj->addFile(fileName); } -void KDevProjectIface::removeFiles( const TQStringList & fileList ) +void TDevProjectIface::removeFiles( const TQStringList & fileList ) { m_prj->removeFiles(fileList); } -void KDevProjectIface::removeFile( const TQString & fileName ) +void TDevProjectIface::removeFile( const TQString & fileName ) { m_prj->removeFile(fileName); } -void KDevProjectIface::changedFiles( const TQStringList & fileList ) +void TDevProjectIface::changedFiles( const TQStringList & fileList ) { m_prj->changedFiles(fileList); } -void KDevProjectIface::changedFile( const TQString & fileName ) +void TDevProjectIface::changedFile( const TQString & fileName ) { m_prj->changedFile(fileName); } -bool KDevProjectIface::isProjectFile( const TQString & absFileName ) +bool TDevProjectIface::isProjectFile( const TQString & absFileName ) { return m_prj->isProjectFile(absFileName); } -TQString KDevProjectIface::relativeProjectFile( const TQString & absFileName ) +TQString TDevProjectIface::relativeProjectFile( const TQString & absFileName ) { return m_prj->relativeProjectFile(absFileName); } -TQStringList KDevProjectIface::symlinkProjectFiles( ) +TQStringList TDevProjectIface::symlinkProjectFiles( ) { return m_prj->symlinkProjectFiles(); } -TQString KDevProjectIface::readEntry( const TQString & path, const TQString & defaultEntry ) +TQString TDevProjectIface::readEntry( const TQString & path, const TQString & defaultEntry ) { return DomUtil::readEntry( *m_prj->projectDom(), path, defaultEntry); } -int KDevProjectIface::readIntEntry( const TQString & path, int defaultEntry ) +int TDevProjectIface::readIntEntry( const TQString & path, int defaultEntry ) { return DomUtil::readIntEntry(*m_prj->projectDom(), path,defaultEntry); } -bool KDevProjectIface::readBoolEntry( const TQString & path, bool defaultEntry ) +bool TDevProjectIface::readBoolEntry( const TQString & path, bool defaultEntry ) { return DomUtil::readBoolEntry(*m_prj->projectDom(), path, defaultEntry); } -TQStringList KDevProjectIface::readListEntry( const TQString & path, const TQString & tag ) +TQStringList TDevProjectIface::readListEntry( const TQString & path, const TQString & tag ) { return DomUtil::readListEntry(*m_prj->projectDom(), path, tag); } -TQMap< TQString, TQString > KDevProjectIface::readMapEntry( const TQString & path ) +TQMap< TQString, TQString > TDevProjectIface::readMapEntry( const TQString & path ) { return DomUtil::readMapEntry(*m_prj->projectDom(), path); } -void KDevProjectIface::writeEntry( const TQString & path, const TQString & value ) +void TDevProjectIface::writeEntry( const TQString & path, const TQString & value ) { DomUtil::writeEntry(*m_prj->projectDom(), path, value); } -void KDevProjectIface::writeIntEntry( const TQString & path, int value ) +void TDevProjectIface::writeIntEntry( const TQString & path, int value ) { DomUtil::writeIntEntry(*m_prj->projectDom(), path, value); } -void KDevProjectIface::writeBoolEntry( const TQString & path, bool value ) +void TDevProjectIface::writeBoolEntry( const TQString & path, bool value ) { DomUtil::writeBoolEntry(*m_prj->projectDom(), path, value); } -void KDevProjectIface::writeListEntry( const TQString & path, const TQString & tag, const TQStringList & value ) +void TDevProjectIface::writeListEntry( const TQString & path, const TQString & tag, const TQStringList & value ) { DomUtil::writeListEntry(*m_prj->projectDom(), path, tag, value); } -void KDevProjectIface::writeMapEntry( const TQString & path, const TQMap< TQString, TQString > & map ) +void TDevProjectIface::writeMapEntry( const TQString & path, const TQMap< TQString, TQString > & map ) { DomUtil::writeMapEntry(*m_prj->projectDom(), path, map); } -#include "kdevprojectiface.moc" +#include "tdevprojectiface.moc" diff --git a/lib/interfaces/kdevprojectiface.h b/lib/interfaces/tdevprojectiface.h index e30cd6cc..c3e0ddd4 100644 --- a/lib/interfaces/kdevprojectiface.h +++ b/lib/interfaces/tdevprojectiface.h @@ -17,29 +17,29 @@ Boston, MA 02110-1301, USA. */ -#ifndef KDEVPROJECTIFACE_H -#define KDEVPROJECTIFACE_H +#ifndef TDEVPROJECTIFACE_H +#define TDEVPROJECTIFACE_H #include <dcopobject.h> #include <tqstringlist.h> #include <tqmap.h> -class KDevProject; +class TDevProject; /** -DCOP Interface for the @ref KDevProject object. +DCOP Interface for the @ref TDevProject object. @author KDevelop Authors */ -class KDevProjectIface : public TQObject, public DCOPObject +class TDevProjectIface : public TQObject, public DCOPObject { Q_OBJECT // K_DCOP public: - KDevProjectIface(KDevProject *prj); + TDevProjectIface(TDevProject *prj); - ~KDevProjectIface(); + ~TDevProjectIface(); k_dcop: void openProject(const TQString &dirName, const TQString &projectName); void closeProject(); @@ -76,7 +76,7 @@ k_dcop: void writeMapEntry(const TQString& path, const TQMap<TQString,TQString> &map); private: - KDevProject *m_prj; + TDevProject *m_prj; }; #endif 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() diff --git a/lib/widgets/CMakeLists.txt b/lib/widgets/CMakeLists.txt index 30e0ba3e..86303b6d 100644 --- a/lib/widgets/CMakeLists.txt +++ b/lib/widgets/CMakeLists.txt @@ -28,22 +28,22 @@ link_directories( install( FILES tdelistviewaction.h qcomboview.h flagboxes.h ksavealldialog.h resizablecombo.h kcomboview.h - kdevhtmlpart.h processlinemaker.h processwidget.h + tdevhtmlpart.h processlinemaker.h processwidget.h fancylistviewitem.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/widgets ) ##### other data ################################ -install( FILES kdevhtml_partui.rc DESTINATION ${DATA_INSTALL_DIR}/tdevelop ) +install( FILES tdevhtml_partui.rc DESTINATION ${DATA_INSTALL_DIR}/tdevelop ) -##### kdevwidgets (shared) ###################### +##### tdevwidgets (shared) ###################### -tde_add_library( kdevwidgets SHARED AUTOMOC +tde_add_library( tdevwidgets SHARED AUTOMOC SOURCES flagboxes.cpp qcomboview.cpp tdelistviewaction.cpp - kcomboview.cpp resizablecombo.cpp kdevhtmlpart.cpp + kcomboview.cpp resizablecombo.cpp tdevhtmlpart.cpp processlinemaker.cpp processwidget.cpp ksavealldialog.cpp fancylistviewitem.cpp VERSION 0.0.0 diff --git a/lib/widgets/Makefile.am b/lib/widgets/Makefile.am index 69be7a11..7181151e 100644 --- a/lib/widgets/Makefile.am +++ b/lib/widgets/Makefile.am @@ -2,29 +2,29 @@ INCLUDES = -I$(top_srcdir)/lib/compat -I$(top_srcdir)/lib/interfaces $(all_inclu METASOURCES = AUTO -lib_LTLIBRARIES = libkdevwidgets.la +lib_LTLIBRARIES = libtdevwidgets.la -kdevwidgetsincludedir = $(includedir)/tdevelop/widgets +tdevwidgetsincludedir = $(includedir)/tdevelop/widgets -libkdevwidgets_la_SOURCES = flagboxes.cpp qcomboview.cpp tdelistviewaction.cpp \ - kcomboview.cpp resizablecombo.cpp kdevhtmlpart.cpp processlinemaker.cpp \ +libtdevwidgets_la_SOURCES = flagboxes.cpp qcomboview.cpp tdelistviewaction.cpp \ + kcomboview.cpp resizablecombo.cpp tdevhtmlpart.cpp processlinemaker.cpp \ processwidget.cpp ksavealldialog.cpp fancylistviewitem.cpp -kdevwidgetsinclude_HEADERS = tdelistviewaction.h qcomboview.h flagboxes.h \ - ksavealldialog.h resizablecombo.h kcomboview.h kdevhtmlpart.h processlinemaker.h \ +tdevwidgetsinclude_HEADERS = tdelistviewaction.h qcomboview.h flagboxes.h \ + ksavealldialog.h resizablecombo.h kcomboview.h tdevhtmlpart.h processlinemaker.h \ processwidget.h fancylistviewitem.h SUBDIRS = propeditor -libkdevwidgets_la_LIBADD = $(top_builddir)/lib/interfaces/libkdevinterfaces.la -libkdevwidgets_la_LDFLAGS = -no-undefined $(all_libraries) +libtdevwidgets_la_LIBADD = $(top_builddir)/lib/interfaces/libtdevinterfaces.la +libtdevwidgets_la_LDFLAGS = -no-undefined $(all_libraries) rcdir = $(kde_datadir)/tdevelop -rc_DATA = kdevhtml_partui.rc +rc_DATA = tdevhtml_partui.rc -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevutil kdevinterfaces -DOXYGEN_PROJECTNAME = KDevelop Widgets Library -DOXYGEN_DOCDIRPREFIX = kdev +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevutil tdevinterfaces +DOXYGEN_PROJECTNAME = TDevelop Widgets Library +DOXYGEN_DOCDIRPREFIX = tdev include ../../Doxyfile.am diff --git a/lib/widgets/propeditor/CMakeLists.txt b/lib/widgets/propeditor/CMakeLists.txt index 2620aaa0..1cffb908 100644 --- a/lib/widgets/propeditor/CMakeLists.txt +++ b/lib/widgets/propeditor/CMakeLists.txt @@ -38,9 +38,9 @@ install( FILES DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/propeditor ) -##### kdevpropertyeditor (shared) ############### +##### tdevpropertyeditor (shared) ############### -tde_add_library( kdevpropertyeditor SHARED AUTOMOC +tde_add_library( tdevpropertyeditor SHARED AUTOMOC SOURCES childproperty.cpp pcombobox.cpp pdummywidget.cpp ppointedit.cpp propertymachinefactory.cpp diff --git a/lib/widgets/propeditor/Makefile.am b/lib/widgets/propeditor/Makefile.am index e07d5c69..a01eb4d3 100644 --- a/lib/widgets/propeditor/Makefile.am +++ b/lib/widgets/propeditor/Makefile.am @@ -1,18 +1,18 @@ INCLUDES = -I$(top_srcdir)/lib/compat $(all_includes) METASOURCES = AUTO -lib_LTLIBRARIES = libkdevpropertyeditor.la -libkdevpropertyeditor_la_LIBADD = $(LIB_TDEIO) -libkdevpropertyeditor_la_LDFLAGS = -no-undefined $(all_libraries) -libkdevpropertyeditor_la_SOURCES = childproperty.cpp pcombobox.cpp pdummywidget.cpp ppointedit.cpp propertymachinefactory.cpp pstringlistedit.cpp\ +lib_LTLIBRARIES = libtdevpropertyeditor.la +libtdevpropertyeditor_la_LIBADD = $(LIB_TDEIO) +libtdevpropertyeditor_la_LDFLAGS = -no-undefined $(all_libraries) +libtdevpropertyeditor_la_SOURCES = childproperty.cpp pcombobox.cpp pdummywidget.cpp ppointedit.cpp propertymachinefactory.cpp pstringlistedit.cpp\ multiproperty.cpp pcursoredit.cpp pfontbutton.cpp prectedit.cpp propertywidget.cpp psymbolcombo.cpp\ pcheckbox.cpp pdateedit.cpp pfontcombo.cpp property.cpp psizeedit.cpp purledit.cpp\ pcolorbutton.cpp pdatetimeedit.cpp plineedit.cpp propertyeditor.cpp psizepolicyedit.cpp pyesnobutton.cpp\ pcolorcombo.cpp pdoublenuminput.cpp ppixmapedit.cpp propertylist.cpp pspinbox.cpp propertywidgetproxy.cpp plinestyleedit.cpp qeditlistbox.cpp -kdevpropeditorincludedir = $(includedir)/tdevelop/propeditor -kdevpropeditorinclude_HEADERS = childproperty.h pcombobox.h pdummywidget.h ppointedit.h propertymachinefactory.h pcursoredit.h pfontbutton.h prectedit.h propertywidget.h pdateedit.h pfontcombo.h property.h psizeedit.h pdatetimeedit.h plineedit.h propertyeditor.h psizepolicyedit.h pdoublenuminput.h ppixmapedit.h propertylist.h pspinbox.h propertywidgetproxy.h multiproperty.h pyesnobutton.h purledit.h psymbolcombo.h pstringlistedit.h pcolorcombo.h pcolorbutton.h pcheckbox.h plinestyleedit.h +tdevpropeditorincludedir = $(includedir)/tdevelop/propeditor +tdevpropeditorinclude_HEADERS = childproperty.h pcombobox.h pdummywidget.h ppointedit.h propertymachinefactory.h pcursoredit.h pfontbutton.h prectedit.h propertywidget.h pdateedit.h pfontcombo.h property.h psizeedit.h pdatetimeedit.h plineedit.h propertyeditor.h psizepolicyedit.h pdoublenuminput.h ppixmapedit.h propertylist.h pspinbox.h propertywidgetproxy.h multiproperty.h pyesnobutton.h purledit.h psymbolcombo.h pstringlistedit.h pcolorcombo.h pcolorbutton.h pcheckbox.h plinestyleedit.h DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils -DOXYGEN_PROJECTNAME = KDevelop Property Editing Library +DOXYGEN_PROJECTNAME = TDevelop Property Editing Library include ../../../Doxyfile.am diff --git a/lib/widgets/kdevhtml_partui.rc b/lib/widgets/tdevhtml_partui.rc index 5a55b7bf..a62fa22f 100644 --- a/lib/widgets/kdevhtml_partui.rc +++ b/lib/widgets/tdevhtml_partui.rc @@ -1,5 +1,5 @@ <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> -<kpartgui version="3" name="KDevHTMLPart" > +<kpartgui version="3" name="TDevHTMLPart" > <MenuBar> <Menu name="file" noMerge="0"><text>&File</text> diff --git a/lib/widgets/kdevhtmlpart.cpp b/lib/widgets/tdevhtmlpart.cpp index 76697cfa..6ec74651 100644 --- a/lib/widgets/kdevhtmlpart.cpp +++ b/lib/widgets/tdevhtmlpart.cpp @@ -14,15 +14,15 @@ #include <tdehtml_settings.h> #include <tdeconfig.h> -#include <kdevmainwindow.h> +#include <tdevmainwindow.h> -#include "kdevhtmlpart.h" +#include "tdevhtmlpart.h" -KDevHTMLPart::KDevHTMLPart() - : TDEHTMLPart(0L, 0L, 0L, "KDevHTMLPart", DefaultGUI ) +TDevHTMLPart::TDevHTMLPart() + : TDEHTMLPart(0L, 0L, 0L, "TDevHTMLPart", DefaultGUI ) { - setXMLFile(locate("data", "tdevelop/kdevhtml_partui.rc"), true); + setXMLFile(locate("data", "tdevelop/tdevhtml_partui.rc"), true); connect(browserExtension(), TQT_SIGNAL(openURLRequestDelayed(const KURL &,const KParts::URLArgs &)), this, TQT_SLOT(openURLRequest(const KURL &)) ); @@ -87,7 +87,7 @@ KDevHTMLPart::KDevHTMLPart() setZoomFactor(appConfig->readEntry("Zoom", "100").toInt()); } -void KDevHTMLPart::popup( const TQString & url, const TQPoint & p ) +void TDevHTMLPart::popup( const TQString & url, const TQPoint & p ) { // TDEPopupMenu popup( i18n( "Documentation Viewer" ), this->widget() ); TDEPopupMenu popup(this->widget()); @@ -143,11 +143,11 @@ void KDevHTMLPart::popup( const TQString & url, const TQPoint & p ) kdDebug() << "processing relative url: " << url << endl; if (url.startsWith("#")) { - kurl = KURL(KDevHTMLPart::url()); + kurl = KURL(TDevHTMLPart::url()); kurl.setRef(url.mid(1)); } else - kurl = KURL(KDevHTMLPart::url().upURL().url(true)+url); + kurl = KURL(TDevHTMLPart::url().upURL().url(true)+url); } else kurl = KURL(url); @@ -157,13 +157,13 @@ void KDevHTMLPart::popup( const TQString & url, const TQPoint & p ) } } -void KDevHTMLPart::setContext(const TQString &context) +void TDevHTMLPart::setContext(const TQString &context) { m_context = context; } -TQString KDevHTMLPart::context() const +TQString TDevHTMLPart::context() const { return m_context; } @@ -250,7 +250,7 @@ done: #undef I #undef X -TQString KDevHTMLPart::resolveEnvVarsInURL(const TQString& url) +TQString TDevHTMLPart::resolveEnvVarsInURL(const TQString& url) { // check for environment variables and make necessary translations TQString path = url; @@ -318,7 +318,7 @@ TQString KDevHTMLPart::resolveEnvVarsInURL(const TQString& url) return path; } -bool KDevHTMLPart::openURL(const KURL &url) +bool TDevHTMLPart::openURL(const KURL &url) { TQString path = resolveEnvVarsInURL(url.url()); KURL newUrl(path); @@ -339,47 +339,47 @@ bool KDevHTMLPart::openURL(const KURL &url) return retval; } -void KDevHTMLPart::openURLRequest(const KURL &url) +void TDevHTMLPart::openURLRequest(const KURL &url) { openURL( url ); } -void KDevHTMLPart::slotReload( ) +void TDevHTMLPart::slotReload( ) { openURL( url() ); } -void KDevHTMLPart::slotStop( ) +void TDevHTMLPart::slotStop( ) { closeURL(); } -void KDevHTMLPart::slotStarted( TDEIO::Job * ) +void TDevHTMLPart::slotStarted( TDEIO::Job * ) { stopAction->setEnabled(true); } -void KDevHTMLPart::slotCompleted( ) +void TDevHTMLPart::slotCompleted( ) { stopAction->setEnabled(false); } -void KDevHTMLPart::slotCancelled( const TQString & /*errMsg*/ ) +void TDevHTMLPart::slotCancelled( const TQString & /*errMsg*/ ) { stopAction->setEnabled(false); } -/*void KDevHTMLPart::slotDuplicate( ) +/*void TDevHTMLPart::slotDuplicate( ) { PartController::getInstance()->showDocument(url(), true); }*/ -void KDevHTMLPart::slotPrint( ) +void TDevHTMLPart::slotPrint( ) { view()->print(); } -void KDevHTMLPart::slotBack() +void TDevHTMLPart::slotBack() { if ( m_Current != m_history.begin() ) { @@ -390,7 +390,7 @@ void KDevHTMLPart::slotBack() } } -void KDevHTMLPart::slotForward() +void TDevHTMLPart::slotForward() { if ( m_Current != m_history.fromLast() ) { @@ -401,7 +401,7 @@ void KDevHTMLPart::slotForward() } } -void KDevHTMLPart::slotBackAboutToShow() +void TDevHTMLPart::slotBackAboutToShow() { TDEPopupMenu *popup = m_backAction->popupMenu(); popup->clear(); @@ -426,7 +426,7 @@ void KDevHTMLPart::slotBackAboutToShow() } } -void KDevHTMLPart::slotForwardAboutToShow() +void TDevHTMLPart::slotForwardAboutToShow() { TDEPopupMenu *popup = m_forwardAction->popupMenu(); popup->clear(); @@ -451,7 +451,7 @@ void KDevHTMLPart::slotForwardAboutToShow() } } -void KDevHTMLPart::slotPopupActivated( int id ) +void TDevHTMLPart::slotPopupActivated( int id ) { kdDebug(9000) << "id: " << id << endl; @@ -471,7 +471,7 @@ void KDevHTMLPart::slotPopupActivated( int id ) } } -void KDevHTMLPart::addHistoryEntry() +void TDevHTMLPart::addHistoryEntry() { TQValueList<DocumentationHistoryEntry>::Iterator it = m_Current; @@ -491,7 +491,7 @@ void KDevHTMLPart::addHistoryEntry() } } -void KDevHTMLPart::slotCopy( ) +void TDevHTMLPart::slotCopy( ) { TQString text = selectedText(); text.replace( TQChar( 0xa0 ), ' ' ); @@ -501,7 +501,7 @@ void KDevHTMLPart::slotCopy( ) connect( cb, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotClearSelection() ) ); } -void KDevHTMLPart::slotSelectionChanged( ) +void TDevHTMLPart::slotSelectionChanged( ) { if (selectedText().isEmpty()) copyAction->setEnabled(false); @@ -509,4 +509,4 @@ void KDevHTMLPart::slotSelectionChanged( ) copyAction->setEnabled(true); } -#include "kdevhtmlpart.moc" +#include "tdevhtmlpart.moc" diff --git a/lib/widgets/kdevhtmlpart.h b/lib/widgets/tdevhtmlpart.h index 6c8f7dc3..e822488b 100644 --- a/lib/widgets/kdevhtmlpart.h +++ b/lib/widgets/tdevhtmlpart.h @@ -1,5 +1,5 @@ -#ifndef __KDEVHTMLPART_H__ -#define __KDEVHTMLPART_H__ +#ifndef __TDEVHTMLPART_H__ +#define __TDEVHTMLPART_H__ #include <stdlib.h> @@ -8,7 +8,7 @@ #include <tdehtml_part.h> /** -@file kdevhtmlpart.h +@file tdevhtmlpart.h Customized TDEHTML part for KDevelop. */ @@ -41,7 +41,7 @@ Represents customized BrowserViewGUI mode of TDEHTMLPart. Provides also actions . It has it's own popup menu and font/zoom settings. */ -class KDevHTMLPart : public TDEHTMLPart +class TDevHTMLPart : public TDEHTMLPart { Q_OBJECT @@ -50,7 +50,7 @@ public: enum Options { CanDuplicate=1, CanOpenInNewWindow=2 }; - KDevHTMLPart(); + TDevHTMLPart(); void setContext(const TQString &context); TQString context() const; diff --git a/lib/widgets/kdevtabwidget.cpp b/lib/widgets/tdevtabwidget.cpp index 33c9f733..adfd4566 100644 --- a/lib/widgets/kdevtabwidget.cpp +++ b/lib/widgets/tdevtabwidget.cpp @@ -16,9 +16,9 @@ #include <kicontheme.h> #include <kiconloader.h> -#include "kdevtabwidget.h" +#include "tdevtabwidget.h" -KDevTabWidget::KDevTabWidget(TQWidget *parent, const char *name) : TQTabWidget(parent,name) +TDevTabWidget::TDevTabWidget(TQWidget *parent, const char *name) : TQTabWidget(parent,name) { m_pTabBar = new KTabBar(this, "tabbar"); setTabBar(m_pTabBar); @@ -55,7 +55,7 @@ void KTabBar::mousePressEvent(TQMouseEvent *e) TQTab *tab = selectTab(e->pos() ); if( tab == 0L ) return; - m_pPage = ((KDevTabWidget*)parent())->page(indexOf(tab->identifier() ) ); + m_pPage = ((TDevTabWidget*)parent())->page(indexOf(tab->identifier() ) ); if(m_pPage == 0L) return; m_pPopupMenu->exec(mapToGlobal(e->pos())); @@ -63,4 +63,4 @@ void KTabBar::mousePressEvent(TQMouseEvent *e) TQTabBar::mousePressEvent(e); } -#include "kdevtabwidget.moc" +#include "tdevtabwidget.moc" |