summaryrefslogtreecommitdiffstats
path: root/languages
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages')
-rw-r--r--languages/ada/AdaParser.cpp38
-rw-r--r--languages/ada/AdaParser.hpp4
-rw-r--r--languages/ada/AdaStoreWalker.cpp14
-rw-r--r--languages/ada/AdaStoreWalker.hpp2
-rw-r--r--languages/ada/AdaStoreWalkerTokenTypes.hpp4
-rw-r--r--languages/ada/AdaTokenTypes.hpp4
-rw-r--r--languages/ada/AdaTreeParserSuper.cpp14
-rw-r--r--languages/ada/AdaTreeParserSuper.hpp2
-rw-r--r--languages/ada/AdaTreeParserSuperTokenTypes.hpp4
-rw-r--r--languages/ada/README.dox2
-rw-r--r--languages/ada/ada.g14
-rw-r--r--languages/ada/ada.store.g2
-rw-r--r--languages/ada/ada.tree.g6
-rw-r--r--languages/ada/ada_utils.cpp8
-rw-r--r--languages/ada/adasupportpart.cpp22
-rw-r--r--languages/ada/adasupportpart.h3
-rw-r--r--languages/ada/addclass.cpp10
-rw-r--r--languages/ada/addclassdlg.ui52
-rw-r--r--languages/ada/backgroundparser.cpp4
-rw-r--r--languages/ada/backgroundparser.h2
-rw-r--r--languages/ada/configproblemreporter.ui16
-rw-r--r--languages/ada/configproblemreporter.ui.h2
-rw-r--r--languages/ada/configure.in.in2
-rw-r--r--languages/ada/problemreporter.cpp22
-rw-r--r--languages/ada/problemreporter.h5
-rw-r--r--languages/bash/README.dox2
-rw-r--r--languages/bash/bashsupport_part.cpp8
-rw-r--r--languages/bash/bashsupport_part.h6
-rw-r--r--languages/cpp/KDevCppSupportIface.h1
-rw-r--r--languages/cpp/README.dox2
-rw-r--r--languages/cpp/addattributedialog.cpp30
-rw-r--r--languages/cpp/addattributedialog.h3
-rw-r--r--languages/cpp/addattributedialogbase.ui60
-rw-r--r--languages/cpp/addmethoddialog.cpp46
-rw-r--r--languages/cpp/addmethoddialog.h3
-rw-r--r--languages/cpp/addmethoddialogbase.ui68
-rw-r--r--languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate4
-rw-r--r--languages/cpp/app_templates/cmakelibcpp/cmakelibcpp.kdevtemplate4
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp34
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h5
-rw-r--r--languages/cpp/app_templates/cmakesimple/cmakesimple.kdevtemplate2
-rw-r--r--languages/cpp/app_templates/cmakesimplec/cmakesimplec.kdevtemplate2
-rw-r--r--languages/cpp/app_templates/dcopservice/dcopservice.cpp2
-rw-r--r--languages/cpp/app_templates/generichello/generichello.kdevtemplate2
-rw-r--r--languages/cpp/app_templates/gnome2mmapp/main_window.hh2
-rw-r--r--languages/cpp/app_templates/gtk2mmapp/main_window.hh2
-rw-r--r--languages/cpp/app_templates/kapp/app.cpp8
-rw-r--r--languages/cpp/app_templates/kapp/app.h3
-rw-r--r--languages/cpp/app_templates/kapp/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kapp/appview.h3
-rw-r--r--languages/cpp/app_templates/kapp/pref.cpp16
-rw-r--r--languages/cpp/app_templates/kapp/pref.h11
-rw-r--r--languages/cpp/app_templates/kapp/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/kateplugin/plugin_app.cpp8
-rw-r--r--languages/cpp/app_templates/kateplugin/plugin_app.h6
-rw-r--r--languages/cpp/app_templates/kateplugin/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/kateplugin2/plugin_app.cpp12
-rw-r--r--languages/cpp/app_templates/kateplugin2/plugin_app.h9
-rw-r--r--languages/cpp/app_templates/kateplugin2/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/kcmodule/module.cpp4
-rw-r--r--languages/cpp/app_templates/kcmodule/module.h3
-rw-r--r--languages/cpp/app_templates/kcmodule/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/kconfig35/app.h1
-rw-r--r--languages/cpp/app_templates/kconfig35/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kconfig35/appview.h3
-rw-r--r--languages/cpp/app_templates/kconfig35/appview_base.ui6
-rw-r--r--languages/cpp/app_templates/kconfig35/prefs-base.ui18
-rw-r--r--languages/cpp/app_templates/kconfig35/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4.cpp10
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4.h1
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4view.cpp2
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4view.h5
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4view_base.ui12
-rw-r--r--languages/cpp/app_templates/kde4app/kde4app-CMakeLists.txt2
-rw-r--r--languages/cpp/app_templates/kde4app/prefs_base.ui22
-rw-r--r--languages/cpp/app_templates/kdedcop/app.h1
-rw-r--r--languages/cpp/app_templates/kdedcop/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/kdevlang/kdevlang_part.cpp6
-rw-r--r--languages/cpp/app_templates/kdevlang/kdevlang_part.h3
-rw-r--r--languages/cpp/app_templates/kdevpart/globalconfig.cpp4
-rw-r--r--languages/cpp/app_templates/kdevpart/globalconfig.h3
-rw-r--r--languages/cpp/app_templates/kdevpart/globalconfigbase.ui4
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_part.cpp4
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_part.h3
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_widget.h3
-rw-r--r--languages/cpp/app_templates/kdevpart/projectconfig.cpp4
-rw-r--r--languages/cpp/app_templates/kdevpart/projectconfig.h3
-rw-r--r--languages/cpp/app_templates/kdevpart/projectconfigbase.ui4
-rw-r--r--languages/cpp/app_templates/kdevpart2/globalconfig.cpp4
-rw-r--r--languages/cpp/app_templates/kdevpart2/globalconfig.h3
-rw-r--r--languages/cpp/app_templates/kdevpart2/globalconfigbase.ui4
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp4
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_part.h3
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_widget.h3
-rw-r--r--languages/cpp/app_templates/kdevpart2/projectconfig.cpp4
-rw-r--r--languages/cpp/app_templates/kdevpart2/projectconfig.h3
-rw-r--r--languages/cpp/app_templates/kdevpart2/projectconfigbase.ui4
-rw-r--r--languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp4
-rw-r--r--languages/cpp/app_templates/kfileplugin/kfile_plugin.h3
-rw-r--r--languages/cpp/app_templates/kfileplugin/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/khello/app.h1
-rw-r--r--languages/cpp/app_templates/khello/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/khello2/app.h1
-rw-r--r--languages/cpp/app_templates/khello2/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/khello2/widget.cpp4
-rw-r--r--languages/cpp/app_templates/khello2/widget.h3
-rw-r--r--languages/cpp/app_templates/khello2/widgetbase.ui12
-rw-r--r--languages/cpp/app_templates/kicker/applet.cpp8
-rw-r--r--languages/cpp/app_templates/kicker/applet.h7
-rw-r--r--languages/cpp/app_templates/kicker/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/kioslave/slave.cpp2
-rw-r--r--languages/cpp/app_templates/kioslave/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/kmake/mainview.ui14
-rw-r--r--languages/cpp/app_templates/kmake/mainviewimp.cpp4
-rw-r--r--languages/cpp/app_templates/kmake/mainviewimp.h3
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_factory.cpp10
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_factory.h5
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.cpp14
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.h7
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_view.cpp4
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_view.h3
-rw-r--r--languages/cpp/app_templates/kofficepart/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp4
-rw-r--r--languages/cpp/app_templates/konqnavpanel/konqnavpanel.h7
-rw-r--r--languages/cpp/app_templates/kpartapp/app.cpp2
-rw-r--r--languages/cpp/app_templates/kpartapp/app.h1
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.cpp20
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.h10
-rw-r--r--languages/cpp/app_templates/kpartapp/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/kpartplugin/plugin_app.cpp14
-rw-r--r--languages/cpp/app_templates/kpartplugin/plugin_app.h6
-rw-r--r--languages/cpp/app_templates/kpartplugin/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/QUICKSTART16
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/SConscript-src2
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/SConstruct16
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/app_part.cpp14
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/app_part.h5
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp8
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdi.h1
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp8
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdiView.h3
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp2
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h5
-rwxr-xr-xlanguages/cpp/app_templates/kscons_kmdi/messages.sh6
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/prefs.ui6
-rw-r--r--languages/cpp/app_templates/kscons_kxt/QUICKSTART16
-rw-r--r--languages/cpp/app_templates/kscons_kxt/SConscript-src2
-rw-r--r--languages/cpp/app_templates/kscons_kxt/SConstruct16
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.cpp2
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.h1
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.h3
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview_base.ui6
-rwxr-xr-xlanguages/cpp/app_templates/kscons_kxt/messages.sh6
-rw-r--r--languages/cpp/app_templates/kscons_kxt/prefs-base.ui18
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.cpp4
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.h4
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaverui.ui16
-rw-r--r--languages/cpp/app_templates/kscreensaver/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/kxt/app.h1
-rw-r--r--languages/cpp/app_templates/kxt/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kxt/appview.h3
-rw-r--r--languages/cpp/app_templates/kxt/appview_base.ui6
-rw-r--r--languages/cpp/app_templates/kxt/prefs-base.ui18
-rw-r--r--languages/cpp/app_templates/kxt/src-Makefile.am4
-rw-r--r--languages/cpp/app_templates/noatunui/plugin_impl.cpp12
-rw-r--r--languages/cpp/app_templates/noatunui/plugin_impl.h1
-rw-r--r--languages/cpp/app_templates/noatunui/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/noatunvisual/plugin_impl.cpp6
-rw-r--r--languages/cpp/app_templates/noatunvisual/plugin_impl.h2
-rw-r--r--languages/cpp/app_templates/noatunvisual/src-Makefile.am2
-rw-r--r--languages/cpp/app_templates/opieapp/app.pro4
-rw-r--r--languages/cpp/app_templates/opieapp/example.cpp8
-rw-r--r--languages/cpp/app_templates/opieapp/example.h5
-rw-r--r--languages/cpp/app_templates/opieapp/examplebase.ui4
-rw-r--r--languages/cpp/app_templates/opieapplet/app.pro4
-rw-r--r--languages/cpp/app_templates/opieapplet/simpleimpl.cpp30
-rw-r--r--languages/cpp/app_templates/opieapplet/simpleimpl.h29
-rw-r--r--languages/cpp/app_templates/opieinput/app.pro4
-rw-r--r--languages/cpp/app_templates/opieinput/simpleimpl.cpp22
-rw-r--r--languages/cpp/app_templates/opieinput/simpleimpl.h11
-rw-r--r--languages/cpp/app_templates/opiemenu/app.pro4
-rw-r--r--languages/cpp/app_templates/opiemenu/simpleimpl.cpp16
-rw-r--r--languages/cpp/app_templates/opiemenu/simpleimpl.h9
-rw-r--r--languages/cpp/app_templates/opienet/app.pro4
-rw-r--r--languages/cpp/app_templates/opienet/simmplemodule.h8
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.cpp8
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.h3
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.cpp4
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.h8
-rw-r--r--languages/cpp/app_templates/opietoday/app.pro4
-rw-r--r--languages/cpp/app_templates/opietoday/exampleplugin.cpp6
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginimpl.cpp12
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginimpl.h4
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginwidget.cpp8
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginwidget.h3
-rw-r--r--languages/cpp/app_templates/prc-tool/palmhello.c2
-rw-r--r--languages/cpp/app_templates/qmakeapp/qmakeapp.cpp34
-rw-r--r--languages/cpp/app_templates/qmakeapp/qmakeapp.h5
-rw-r--r--languages/cpp/app_templates/qt4hello/main.cpp6
-rw-r--r--languages/cpp/app_templates/qt4makeapp/main.cpp2
-rw-r--r--languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp38
-rw-r--r--languages/cpp/app_templates/qt4makeapp/qt4makeapp.h13
-rw-r--r--languages/cpp/app_templates/qtopia4app/example.cpp12
-rw-r--r--languages/cpp/app_templates/qtopia4app/example.h5
-rw-r--r--languages/cpp/app_templates/qtopia4app/example.html4
-rw-r--r--languages/cpp/app_templates/qtopia4app/examplebase.ui10
-rw-r--r--languages/cpp/app_templates/qtopia4app/main.cpp6
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.control2
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.cpp8
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.h3
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.html4
-rw-r--r--languages/cpp/app_templates/qtopiaapp/examplebase.ui4
-rw-r--r--languages/cpp/app_templates/qtopiaapp/main.cpp4
-rw-r--r--languages/cpp/ast_utils.cpp22
-rw-r--r--languages/cpp/ast_utils.h2
-rw-r--r--languages/cpp/backgroundparser.cpp42
-rw-r--r--languages/cpp/backgroundparser.h2
-rw-r--r--languages/cpp/ccconfigwidget.cpp50
-rw-r--r--languages/cpp/ccconfigwidget.h13
-rw-r--r--languages/cpp/ccconfigwidgetbase.ui226
-rw-r--r--languages/cpp/classgeneratorconfig.cpp8
-rw-r--r--languages/cpp/classgeneratorconfig.h5
-rw-r--r--languages/cpp/classgeneratorconfigbase.ui38
-rw-r--r--languages/cpp/codeinformationrepository.cpp8
-rw-r--r--languages/cpp/codeinformationrepository.h2
-rw-r--r--languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp102
-rw-r--r--languages/cpp/compiler/gccoptions/gccoptionsplugin.h7
-rw-r--r--languages/cpp/computerecoverypoints.h2
-rw-r--r--languages/cpp/configproblemreporter.ui32
-rw-r--r--languages/cpp/configproblemreporter.ui.h4
-rw-r--r--languages/cpp/cpp_tags.h6
-rw-r--r--languages/cpp/cppcodecompletion.cpp340
-rw-r--r--languages/cpp/cppcodecompletion.h22
-rw-r--r--languages/cpp/cppcodecompletionconfig.cpp2
-rw-r--r--languages/cpp/cppcodecompletionconfig.h3
-rw-r--r--languages/cpp/cppevaluation.cpp6
-rw-r--r--languages/cpp/cppimplementationwidget.cpp26
-rw-r--r--languages/cpp/cppimplementationwidget.h3
-rw-r--r--languages/cpp/cppnewclassdlg.cpp503
-rw-r--r--languages/cpp/cppnewclassdlg.h63
-rw-r--r--languages/cpp/cppnewclassdlgbase.ui154
-rw-r--r--languages/cpp/cppsplitheadersourceconfig.cpp2
-rw-r--r--languages/cpp/cppsplitheadersourceconfig.h3
-rw-r--r--languages/cpp/cppsupport_events.h6
-rw-r--r--languages/cpp/cppsupport_utils.cpp2
-rw-r--r--languages/cpp/cppsupportpart.cpp132
-rw-r--r--languages/cpp/cppsupportpart.h30
-rw-r--r--languages/cpp/creategettersetter.ui20
-rw-r--r--languages/cpp/creategettersetterconfiguration.cpp2
-rw-r--r--languages/cpp/creategettersetterconfiguration.h3
-rw-r--r--languages/cpp/creategettersetterdialog.cpp4
-rw-r--r--languages/cpp/creategettersetterdialog.h3
-rw-r--r--languages/cpp/createpcsdialog.cpp20
-rw-r--r--languages/cpp/createpcsdialog.h3
-rw-r--r--languages/cpp/createpcsdialogbase.ui32
-rw-r--r--languages/cpp/debugger/TODO.txt2
-rw-r--r--languages/cpp/debugger/breakpoint.cpp10
-rw-r--r--languages/cpp/debugger/breakpoint.h3
-rw-r--r--languages/cpp/debugger/dbgcontroller.h5
-rw-r--r--languages/cpp/debugger/dbgpsdlg.cpp14
-rw-r--r--languages/cpp/debugger/dbgpsdlg.h3
-rw-r--r--languages/cpp/debugger/dbgtoolbar.cpp102
-rw-r--r--languages/cpp/debugger/dbgtoolbar.h12
-rw-r--r--languages/cpp/debugger/debuggerconfigwidget.cpp8
-rw-r--r--languages/cpp/debugger/debuggerconfigwidget.h3
-rw-r--r--languages/cpp/debugger/debuggerconfigwidgetbase.ui60
-rw-r--r--languages/cpp/debugger/debuggerpart.cpp46
-rw-r--r--languages/cpp/debugger/debuggerpart.h5
-rw-r--r--languages/cpp/debugger/debuggertracingdialog.cpp4
-rw-r--r--languages/cpp/debugger/debuggertracingdialog.h3
-rw-r--r--languages/cpp/debugger/debuggertracingdialogbase.ui20
-rw-r--r--languages/cpp/debugger/disassemblewidget.cpp4
-rw-r--r--languages/cpp/debugger/disassemblewidget.h5
-rw-r--r--languages/cpp/debugger/framestackwidget.cpp40
-rw-r--r--languages/cpp/debugger/framestackwidget.h19
-rw-r--r--languages/cpp/debugger/gdbbreakpointwidget.cpp66
-rw-r--r--languages/cpp/debugger/gdbbreakpointwidget.h12
-rw-r--r--languages/cpp/debugger/gdbcommand.cpp4
-rw-r--r--languages/cpp/debugger/gdbcommand.h16
-rw-r--r--languages/cpp/debugger/gdbcontroller.cpp74
-rw-r--r--languages/cpp/debugger/gdbcontroller.h3
-rw-r--r--languages/cpp/debugger/gdboutputwidget.cpp28
-rw-r--r--languages/cpp/debugger/gdboutputwidget.h20
-rw-r--r--languages/cpp/debugger/gdbparser.cpp8
-rw-r--r--languages/cpp/debugger/gdbparser.h2
-rw-r--r--languages/cpp/debugger/gdbtable.cpp8
-rw-r--r--languages/cpp/debugger/gdbtable.h7
-rw-r--r--languages/cpp/debugger/label_with_double_click.cpp4
-rw-r--r--languages/cpp/debugger/label_with_double_click.h5
-rw-r--r--languages/cpp/debugger/memviewdlg.cpp34
-rw-r--r--languages/cpp/debugger/memviewdlg.h10
-rw-r--r--languages/cpp/debugger/mi/gdbmi.h2
-rw-r--r--languages/cpp/debugger/mi/milexer.cpp2
-rw-r--r--languages/cpp/debugger/stty.cpp10
-rw-r--r--languages/cpp/debugger/stty.h3
-rw-r--r--languages/cpp/debugger/tests/print_pointers/print_pointers.kdevelop2
-rw-r--r--languages/cpp/debugger/variablewidget.cpp212
-rw-r--r--languages/cpp/debugger/variablewidget.h47
-rw-r--r--languages/cpp/declarationinfo.h2
-rw-r--r--languages/cpp/doc/clanlib.toc2
-rw-r--r--languages/cpp/doc/cppannotations.toc8
-rw-r--r--languages/cpp/doc/gnome1.toc6
-rw-r--r--languages/cpp/doc/kde2book.toc232
-rw-r--r--languages/cpp/doc/libc.toc14
-rw-r--r--languages/cpp/doc/qt-kdev3.toc6
-rw-r--r--languages/cpp/doc/stl.toc12
-rw-r--r--languages/cpp/doxydoc.cpp12
-rw-r--r--languages/cpp/includepathresolver.cpp38
-rw-r--r--languages/cpp/includepathresolver.h2
-rw-r--r--languages/cpp/kdevdriver.cpp22
-rw-r--r--languages/cpp/main.cpp6
-rw-r--r--languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp10
-rw-r--r--languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h5
-rw-r--r--languages/cpp/pcsimporter/customimporter/settingsdialog.cpp10
-rw-r--r--languages/cpp/pcsimporter/customimporter/settingsdialog.h5
-rw-r--r--languages/cpp/pcsimporter/customimporter/settingsdialogbase.ui14
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp10
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h11
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp16
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h3
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/settingsdialogbase.ui28
-rw-r--r--languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp42
-rw-r--r--languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h15
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp28
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialog.h5
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui22
-rw-r--r--languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp16
-rw-r--r--languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h15
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp30
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialog.h5
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui30
-rw-r--r--languages/cpp/problemreporter.cpp24
-rw-r--r--languages/cpp/problemreporter.h5
-rw-r--r--languages/cpp/qtbuildconfig.cpp60
-rw-r--r--languages/cpp/qtbuildconfig.h25
-rw-r--r--languages/cpp/qtdesignercppintegration.cpp50
-rw-r--r--languages/cpp/qtdesignercppintegration.h9
-rw-r--r--languages/cpp/simplecontext.cpp2
-rw-r--r--languages/cpp/simplecontext.h6
-rw-r--r--languages/cpp/simpletype.cpp56
-rw-r--r--languages/cpp/simpletype.h46
-rw-r--r--languages/cpp/simpletypecachebinder.h14
-rw-r--r--languages/cpp/simpletypecatalog.cpp8
-rw-r--r--languages/cpp/simpletypecatalog.h4
-rw-r--r--languages/cpp/simpletypefunction.cpp18
-rw-r--r--languages/cpp/simpletypefunction.h10
-rw-r--r--languages/cpp/simpletypenamespace.cpp30
-rw-r--r--languages/cpp/simpletypenamespace.h2
-rw-r--r--languages/cpp/store_walker.cpp12
-rw-r--r--languages/cpp/store_walker.h2
-rw-r--r--languages/cpp/storeconverter.cpp2
-rw-r--r--languages/cpp/stringhelpers.cpp22
-rw-r--r--languages/cpp/stringhelpers.h6
-rw-r--r--languages/cpp/subclassing_template/subclass_qt4_template.cpp4
-rw-r--r--languages/cpp/subclassing_template/subclass_qt4_template.h7
-rw-r--r--languages/cpp/subclassing_template/subclass_template.cpp4
-rw-r--r--languages/cpp/subclassing_template/subclass_template.h3
-rw-r--r--languages/cpp/subclassingdlg.cpp90
-rw-r--r--languages/cpp/subclassingdlg.h10
-rw-r--r--languages/cpp/subclassingdlgbase.ui32
-rw-r--r--languages/cpp/tag_creator.cpp28
-rw-r--r--languages/cpp/typedecoration.h4
-rw-r--r--languages/cpp/typedesc.cpp10
-rw-r--r--languages/cpp/typedesc.h2
-rw-r--r--languages/csharp/README.dox2
-rw-r--r--languages/csharp/csharpconfigwidget.cpp4
-rw-r--r--languages/csharp/csharpconfigwidget.h3
-rw-r--r--languages/csharp/csharpconfigwidgetbase.ui12
-rw-r--r--languages/csharp/csharpsupportpart.cpp8
-rw-r--r--languages/csharp/csharpsupportpart.h3
-rw-r--r--languages/fortran/README.dox2
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp10
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsfactory.h5
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp58
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsplugin.h7
-rw-r--r--languages/fortran/fixedformparser.cpp2
-rw-r--r--languages/fortran/fortransupportpart.cpp8
-rw-r--r--languages/fortran/fortransupportpart.h3
-rw-r--r--languages/fortran/ftnchekconfigwidget.cpp24
-rw-r--r--languages/fortran/ftnchekconfigwidget.h3
-rw-r--r--languages/fortran/ftnchekconfigwidgetbase.ui80
-rw-r--r--languages/java/JavaLexer.cpp6
-rw-r--r--languages/java/JavaLexer.hpp2
-rw-r--r--languages/java/JavaRecognizer.cpp54
-rw-r--r--languages/java/JavaRecognizer.hpp2
-rw-r--r--languages/java/JavaStoreWalker.cpp26
-rw-r--r--languages/java/JavaStoreWalkerTokenTypes.hpp2
-rw-r--r--languages/java/JavaTokenTypes.hpp2
-rw-r--r--languages/java/KDevJavaSupportIface.h1
-rw-r--r--languages/java/README.dox2
-rw-r--r--languages/java/app_templates/kappjava/appview.java6
-rw-r--r--languages/java/app_templates/kappjava/pref.java16
-rw-r--r--languages/java/app_templates/superwaba/src-Makefile4
-rw-r--r--languages/java/backgroundparser.cpp32
-rw-r--r--languages/java/backgroundparser.h2
-rw-r--r--languages/java/configproblemreporter.ui36
-rw-r--r--languages/java/configproblemreporter.ui.h4
-rw-r--r--languages/java/driver.cpp14
-rw-r--r--languages/java/java.g6
-rw-r--r--languages/java/java.store.g18
-rw-r--r--languages/java/javasupport_events.h6
-rw-r--r--languages/java/javasupportpart.cpp67
-rw-r--r--languages/java/javasupportpart.h3
-rw-r--r--languages/java/problemreporter.cpp24
-rw-r--r--languages/java/problemreporter.h3
-rw-r--r--languages/kjssupport/jscodecompletion.cpp4
-rw-r--r--languages/kjssupport/jscodecompletion.h5
-rw-r--r--languages/kjssupport/kjsproblems.cpp10
-rw-r--r--languages/kjssupport/kjsproblems.h3
-rw-r--r--languages/kjssupport/kjssupport_part.cpp12
-rw-r--r--languages/kjssupport/kjssupport_part.h3
-rw-r--r--languages/kjssupport/subclassingdlg.cpp70
-rw-r--r--languages/kjssupport/subclassingdlg.h10
-rw-r--r--languages/kjssupport/subclassingdlgbase.ui36
-rw-r--r--languages/lib/debugger/Mainpage.dox2
-rw-r--r--languages/lib/debugger/debugger.cpp2
-rw-r--r--languages/lib/debugger/debugger.h3
-rw-r--r--languages/lib/debugger/kdevdebugger.cpp4
-rw-r--r--languages/lib/debugger/kdevdebugger.h5
-rw-r--r--languages/lib/designer_integration/implementationwidget.cpp32
-rw-r--r--languages/lib/designer_integration/implementationwidget.h7
-rw-r--r--languages/lib/designer_integration/implementationwidgetbase.ui36
-rw-r--r--languages/lib/designer_integration/qtdesignerintegration.cpp42
-rw-r--r--languages/lib/designer_integration/qtdesignerintegration.h15
-rw-r--r--languages/lib/interfaces/kdevpcsimporter.cpp6
-rw-r--r--languages/lib/interfaces/kdevpcsimporter.h7
-rw-r--r--languages/pascal/PascalLexer.cpp6
-rw-r--r--languages/pascal/PascalLexer.hpp2
-rw-r--r--languages/pascal/PascalParser.cpp72
-rw-r--r--languages/pascal/PascalStoreWalker.cpp22
-rw-r--r--languages/pascal/PascalStoreWalkerTokenTypes.hpp6
-rw-r--r--languages/pascal/PascalTokenTypes.hpp9
-rw-r--r--languages/pascal/README.dox2
-rw-r--r--languages/pascal/backgroundparser.cpp2
-rw-r--r--languages/pascal/backgroundparser.h2
-rw-r--r--languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp12
-rw-r--r--languages/pascal/compiler/dccoptions/dccoptionsplugin.h7
-rw-r--r--languages/pascal/compiler/dccoptions/optiontabs.cpp100
-rw-r--r--languages/pascal/compiler/dccoptions/optiontabs.h25
-rw-r--r--languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp12
-rw-r--r--languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h7
-rw-r--r--languages/pascal/compiler/fpcoptions/optiontabs.cpp168
-rw-r--r--languages/pascal/compiler/fpcoptions/optiontabs.h37
-rw-r--r--languages/pascal/configproblemreporter.ui16
-rw-r--r--languages/pascal/pascal.g2
-rw-r--r--languages/pascal/pascalsupport_part.cpp16
-rw-r--r--languages/pascal/pascalsupport_part.h3
-rw-r--r--languages/pascal/problemreporter.cpp20
-rw-r--r--languages/pascal/problemreporter.h5
-rw-r--r--languages/perl/README.dox2
-rw-r--r--languages/perl/doc/perl.toc2
-rw-r--r--languages/perl/perlconfigwidget.cpp4
-rw-r--r--languages/perl/perlconfigwidget.h3
-rw-r--r--languages/perl/perlconfigwidgetbase.ui14
-rw-r--r--languages/perl/perlparser.cpp26
-rw-r--r--languages/perl/perlparser.h4
-rw-r--r--languages/perl/perlsupportpart.cpp8
-rw-r--r--languages/perl/perlsupportpart.h3
-rw-r--r--languages/php/README.dox2
-rw-r--r--languages/php/data/phpfunctions68
-rw-r--r--languages/php/doc/php.toc228
-rw-r--r--languages/php/phpcodecompletion.cpp48
-rw-r--r--languages/php/phpcodecompletion.h1
-rw-r--r--languages/php/phpconfigdata.h1
-rw-r--r--languages/php/phpconfigwidget.cpp6
-rw-r--r--languages/php/phpconfigwidget.h3
-rw-r--r--languages/php/phpconfigwidgetbase.ui98
-rw-r--r--languages/php/phperrorview.cpp24
-rw-r--r--languages/php/phperrorview.h3
-rw-r--r--languages/php/phpfile.cpp54
-rw-r--r--languages/php/phpfile.h1
-rw-r--r--languages/php/phphtmlview.h1
-rw-r--r--languages/php/phpinfodlg.ui14
-rw-r--r--languages/php/phpnewclassdlg.cpp14
-rw-r--r--languages/php/phpnewclassdlg.h3
-rw-r--r--languages/php/phpnewclassdlgbase.ui26
-rw-r--r--languages/php/phpparser.cpp8
-rw-r--r--languages/php/phpparser.h4
-rw-r--r--languages/php/phpsupport_event.h6
-rw-r--r--languages/php/phpsupportpart.cpp8
-rw-r--r--languages/php/phpsupportpart.h5
-rw-r--r--languages/python/README.dox2
-rw-r--r--languages/python/app_templates/pyqt/documentdetails.ui14
-rw-r--r--languages/python/app_templates/pyqt/templates-ui-dialog4
-rw-r--r--languages/python/app_templates/pyqt/templates-ui-mainwin8
-rw-r--r--languages/python/doc/python.toc20
-rwxr-xr-xlanguages/python/kde_pydoc.py8
-rw-r--r--languages/python/pythonconfigwidget.cpp4
-rw-r--r--languages/python/pythonconfigwidget.h3
-rw-r--r--languages/python/pythonconfigwidgetbase.ui18
-rw-r--r--languages/python/pythonimplementationwidget.cpp12
-rw-r--r--languages/python/pythonimplementationwidget.h3
-rw-r--r--languages/python/pythonsupportpart.cpp22
-rw-r--r--languages/python/pythonsupportpart.h3
-rw-r--r--languages/python/qtdesignerpythonintegration.cpp12
-rw-r--r--languages/python/qtdesignerpythonintegration.h11
-rw-r--r--languages/ruby/README.dox2
-rw-r--r--languages/ruby/app_templates/dcopservice/app.cpp6
-rw-r--r--languages/ruby/app_templates/kapp/app.cpp6
-rw-r--r--languages/ruby/app_templates/kapp/app.rb2
-rw-r--r--languages/ruby/app_templates/kapp/appview.rb12
-rw-r--r--languages/ruby/app_templates/kapp/pref.rb16
-rw-r--r--languages/ruby/app_templates/kapp/src-Makefile.am2
-rw-r--r--languages/ruby/app_templates/kxt/app.cpp6
-rw-r--r--languages/ruby/app_templates/kxt/app.rb2
-rw-r--r--languages/ruby/app_templates/kxt/appview.rb10
-rw-r--r--languages/ruby/app_templates/kxt/appview_base.ui6
-rw-r--r--languages/ruby/app_templates/kxt/prefs-base.ui18
-rw-r--r--languages/ruby/app_templates/kxt/src-Makefile.am2
-rw-r--r--languages/ruby/app_templates/qtruby4app/qtruby4app.rb4
-rw-r--r--languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb4
-rw-r--r--languages/ruby/debugger/breakpoint.cpp6
-rw-r--r--languages/ruby/debugger/dbgcontroller.h7
-rw-r--r--languages/ruby/debugger/dbgpsdlg.cpp16
-rw-r--r--languages/ruby/debugger/dbgpsdlg.h3
-rw-r--r--languages/ruby/debugger/dbgtoolbar.cpp92
-rw-r--r--languages/ruby/debugger/dbgtoolbar.h10
-rw-r--r--languages/ruby/debugger/debuggee.rb6
-rw-r--r--languages/ruby/debugger/debuggerpart.cpp26
-rw-r--r--languages/ruby/debugger/debuggerpart.h5
-rw-r--r--languages/ruby/debugger/framestackwidget.cpp22
-rw-r--r--languages/ruby/debugger/framestackwidget.h13
-rw-r--r--languages/ruby/debugger/rdbbreakpointwidget.cpp38
-rw-r--r--languages/ruby/debugger/rdbbreakpointwidget.h7
-rw-r--r--languages/ruby/debugger/rdbcontroller.cpp70
-rw-r--r--languages/ruby/debugger/rdbcontroller.h3
-rw-r--r--languages/ruby/debugger/rdboutputwidget.cpp10
-rw-r--r--languages/ruby/debugger/rdboutputwidget.h7
-rw-r--r--languages/ruby/debugger/rdbparser.cpp50
-rw-r--r--languages/ruby/debugger/rdbparser.h6
-rw-r--r--languages/ruby/debugger/rdbtable.cpp8
-rw-r--r--languages/ruby/debugger/rdbtable.h7
-rw-r--r--languages/ruby/debugger/stty.cpp8
-rw-r--r--languages/ruby/debugger/stty.h3
-rw-r--r--languages/ruby/debugger/variablewidget.cpp68
-rw-r--r--languages/ruby/debugger/variablewidget.h30
-rw-r--r--languages/ruby/doc/ruby.toc10
-rw-r--r--languages/ruby/qtdesignerrubyintegration.cpp8
-rw-r--r--languages/ruby/qtdesignerrubyintegration.h9
-rw-r--r--languages/ruby/rubyconfigwidget.cpp4
-rw-r--r--languages/ruby/rubyconfigwidget.h3
-rw-r--r--languages/ruby/rubyconfigwidgetbase.ui48
-rw-r--r--languages/ruby/rubyimplementationwidget.cpp10
-rw-r--r--languages/ruby/rubyimplementationwidget.h3
-rw-r--r--languages/ruby/rubysupport_part.cpp48
-rw-r--r--languages/ruby/rubysupport_part.h3
-rw-r--r--languages/sql/README.dox2
-rw-r--r--languages/sql/sqlactions.cpp14
-rw-r--r--languages/sql/sqlactions.h13
-rw-r--r--languages/sql/sqlconfigwidget.ui30
-rw-r--r--languages/sql/sqlconfigwidget.ui.h18
-rw-r--r--languages/sql/sqloutputwidget.cpp28
-rw-r--r--languages/sql/sqloutputwidget.h9
-rw-r--r--languages/sql/sqlsupport_part.cpp60
-rw-r--r--languages/sql/sqlsupport_part.h11
556 files changed, 4587 insertions, 4482 deletions
diff --git a/languages/ada/AdaParser.cpp b/languages/ada/AdaParser.cpp
index e783595e..3656446e 100644
--- a/languages/ada/AdaParser.cpp
+++ b/languages/ada/AdaParser.cpp
@@ -1954,10 +1954,10 @@ void AdaParser::value_s() {
returnAST = value_s_AST;
}
-void AdaParser::parenth_values() {
+void AdaParser::tqparenth_values() {
returnAST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
ANTLR_USE_NAMESPACE(antlr)ASTPair currentAST;
- RefAdaAST parenth_values_AST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
+ RefAdaAST tqparenth_values_AST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
match(LPAREN);
value();
@@ -1981,8 +1981,8 @@ void AdaParser::parenth_values() {
_loop46:;
} // ( ... )*
match(RPAREN);
- parenth_values_AST = RefAdaAST(currentAST.root);
- returnAST = parenth_values_AST;
+ tqparenth_values_AST = RefAdaAST(currentAST.root);
+ returnAST = tqparenth_values_AST;
}
void AdaParser::value() {
@@ -2869,10 +2869,10 @@ RefAdaAST AdaParser::is_operator() {
return d;
}
-void AdaParser::parenthesized_primary() {
+void AdaParser::tqparenthesized_primary() {
returnAST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
ANTLR_USE_NAMESPACE(antlr)ASTPair currentAST;
- RefAdaAST parenthesized_primary_AST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
+ RefAdaAST tqparenthesized_primary_AST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
ANTLR_USE_NAMESPACE(antlr)RefToken pp = ANTLR_USE_NAMESPACE(antlr)nullToken;
RefAdaAST pp_AST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
@@ -2913,8 +2913,8 @@ void AdaParser::parenthesized_primary() {
Set(pp_AST, PARENTHESIZED_PRIMARY);
#line 2915 "AdaParser.cpp"
}
- parenthesized_primary_AST = RefAdaAST(currentAST.root);
- returnAST = parenthesized_primary_AST;
+ tqparenthesized_primary_AST = RefAdaAST(currentAST.root);
+ returnAST = tqparenthesized_primary_AST;
}
void AdaParser::extension_opt() {
@@ -5643,7 +5643,7 @@ void AdaParser::enumeration_aggregate() {
ANTLR_USE_NAMESPACE(antlr)ASTPair currentAST;
RefAdaAST enumeration_aggregate_AST = RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
- parenth_values();
+ tqparenth_values();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
}
@@ -8484,7 +8484,7 @@ void AdaParser::statements() {
case SELECT:
case ABORT:
case RAISE:
- case REQUEUE:
+ case RETQUEUE:
{
statement();
if (inputState->guessing==0) {
@@ -8601,7 +8601,7 @@ void AdaParser::handled_stmts_opt() {
case SELECT:
case ABORT:
case RAISE:
- case REQUEUE:
+ case RETQUEUE:
{
statements();
if (inputState->guessing==0) {
@@ -8708,7 +8708,7 @@ void AdaParser::statement() {
}
break;
}
- case REQUEUE:
+ case RETQUEUE:
{
requeue_stmt();
if (inputState->guessing==0) {
@@ -8878,7 +8878,7 @@ void AdaParser::def_label_opt() {
case SELECT:
case ABORT:
case RAISE:
- case REQUEUE:
+ case RETQUEUE:
{
break;
}
@@ -9207,7 +9207,7 @@ void AdaParser::requeue_stmt() {
r_AST = astFactory->create(r);
astFactory->makeASTRoot(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(r_AST));
}
- match(REQUEUE);
+ match(RETQUEUE);
name();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
@@ -9238,7 +9238,7 @@ void AdaParser::requeue_stmt() {
match(SEMI);
if ( inputState->guessing==0 ) {
#line 1393 "ada.g"
- Set (r_AST, REQUEUE_STATEMENT);
+ Set (r_AST, RETQUEUE_STATEMENT);
#line 9243 "AdaParser.cpp"
}
requeue_stmt_AST = RefAdaAST(currentAST.root);
@@ -10517,7 +10517,7 @@ void AdaParser::stmts_opt() {
case SELECT:
case ABORT:
case RAISE:
- case REQUEUE:
+ case RETQUEUE:
{
statement();
if (inputState->guessing==0) {
@@ -11401,7 +11401,7 @@ void AdaParser::primary() {
}
case LPAREN:
{
- parenthesized_primary();
+ tqparenthesized_primary();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
}
@@ -11623,7 +11623,7 @@ void AdaParser::name_or_qualified() {
switch ( LA(1)) {
case LPAREN:
{
- parenthesized_primary();
+ tqparenthesized_primary();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
}
@@ -12036,7 +12036,7 @@ const char* AdaParser::tokenNames[] = {
"RAISE_STATEMENT",
"RANGE_ATTRIBUTE_REFERENCE",
"RECORD_REPRESENTATION_CLAUSE",
- "REQUEUE_STATEMENT",
+ "RETQUEUE_STATEMENT",
"RETURN_STATEMENT",
"SELECTIVE_ACCEPT",
"SEQUENCE_OF_STATEMENTS",
diff --git a/languages/ada/AdaParser.hpp b/languages/ada/AdaParser.hpp
index 0074c820..cf9fec9b 100644
--- a/languages/ada/AdaParser.hpp
+++ b/languages/ada/AdaParser.hpp
@@ -97,7 +97,7 @@ public:
public: void function_tail();
public: void generic_inst();
public: void value_s();
- public: void parenth_values();
+ public: void tqparenth_values();
public: void value();
public: void ranged_expr_s();
public: void ranged_expr();
@@ -115,7 +115,7 @@ public:
public: void name();
public: RefAdaAST definable_operator_symbol();
public: RefAdaAST is_operator();
- public: void parenthesized_primary();
+ public: void tqparenthesized_primary();
public: void extension_opt();
public: void separate_or_abstract(
RefAdaAST t
diff --git a/languages/ada/AdaStoreWalker.cpp b/languages/ada/AdaStoreWalker.cpp
index 167d671c..1561277f 100644
--- a/languages/ada/AdaStoreWalker.cpp
+++ b/languages/ada/AdaStoreWalker.cpp
@@ -3223,8 +3223,8 @@ void AdaStoreWalker::name(RefAdaAST _t) {
_retTree = _t;
}
-void AdaStoreWalker::parenthesized_primary(RefAdaAST _t) {
- RefAdaAST parenthesized_primary_AST_in = (_t == RefAdaAST(ASTNULL)) ? RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
+void AdaStoreWalker::tqparenthesized_primary(RefAdaAST _t) {
+ RefAdaAST tqparenthesized_primary_AST_in = (_t == RefAdaAST(ASTNULL)) ? RefAdaAST(ANTLR_USE_NAMESPACE(antlr)nullAST) : _t;
try { // for error handling
RefAdaAST __t129 = _t;
@@ -6710,7 +6710,7 @@ void AdaStoreWalker::statement(RefAdaAST _t) {
_t = _retTree;
break;
}
- case REQUEUE_STATEMENT:
+ case RETQUEUE_STATEMENT:
{
requeue_stmt(_t);
_t = _retTree;
@@ -7102,7 +7102,7 @@ void AdaStoreWalker::requeue_stmt(RefAdaAST _t) {
try { // for error handling
RefAdaAST __t470 = _t;
RefAdaAST tmp233_AST_in = _t;
- match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),REQUEUE_STATEMENT);
+ match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),RETQUEUE_STATEMENT);
_t = _t->getFirstChild();
name(_t);
_t = _retTree;
@@ -8809,7 +8809,7 @@ void AdaStoreWalker::primary(RefAdaAST _t) {
}
case PARENTHESIZED_PRIMARY:
{
- parenthesized_primary(_t);
+ tqparenthesized_primary(_t);
_t = _retTree;
break;
}
@@ -8960,7 +8960,7 @@ void AdaStoreWalker::name_or_qualified(RefAdaAST _t) {
switch ( _t->getType()) {
case PARENTHESIZED_PRIMARY:
{
- parenthesized_primary(_t);
+ tqparenthesized_primary(_t);
_t = _retTree;
break;
}
@@ -9271,7 +9271,7 @@ const char* AdaStoreWalker::tokenNames[] = {
"RAISE_STATEMENT",
"RANGE_ATTRIBUTE_REFERENCE",
"RECORD_REPRESENTATION_CLAUSE",
- "REQUEUE_STATEMENT",
+ "RETQUEUE_STATEMENT",
"RETURN_STATEMENT",
"SELECTIVE_ACCEPT",
"SEQUENCE_OF_STATEMENTS",
diff --git a/languages/ada/AdaStoreWalker.hpp b/languages/ada/AdaStoreWalker.hpp
index c18f5dcd..bf661ea2 100644
--- a/languages/ada/AdaStoreWalker.hpp
+++ b/languages/ada/AdaStoreWalker.hpp
@@ -185,7 +185,7 @@ public:
public: void defining_identifier_list(RefAdaAST _t);
public: void init_opt(RefAdaAST _t);
public: void name(RefAdaAST _t);
- public: void parenthesized_primary(RefAdaAST _t);
+ public: void tqparenthesized_primary(RefAdaAST _t);
public: void extension_opt(RefAdaAST _t);
public: void task_type_or_single_decl(RefAdaAST _t);
public: void prot_type_or_single_decl(RefAdaAST _t);
diff --git a/languages/ada/AdaStoreWalkerTokenTypes.hpp b/languages/ada/AdaStoreWalkerTokenTypes.hpp
index daaa4b21..bdaf1d2a 100644
--- a/languages/ada/AdaStoreWalkerTokenTypes.hpp
+++ b/languages/ada/AdaStoreWalkerTokenTypes.hpp
@@ -92,7 +92,7 @@ struct CUSTOM_API AdaStoreWalkerTokenTypes {
OR = 81,
TERMINATE = 82,
RAISE = 83,
- REQUEUE = 84,
+ RETQUEUE = 84,
AND = 85,
XOR = 86,
NOT = 87,
@@ -177,7 +177,7 @@ struct CUSTOM_API AdaStoreWalkerTokenTypes {
RAISE_STATEMENT = 166,
RANGE_ATTRIBUTE_REFERENCE = 167,
RECORD_REPRESENTATION_CLAUSE = 168,
- REQUEUE_STATEMENT = 169,
+ RETQUEUE_STATEMENT = 169,
RETURN_STATEMENT = 170,
SELECTIVE_ACCEPT = 171,
SEQUENCE_OF_STATEMENTS = 172,
diff --git a/languages/ada/AdaTokenTypes.hpp b/languages/ada/AdaTokenTypes.hpp
index 918b1cfd..8ef62fbf 100644
--- a/languages/ada/AdaTokenTypes.hpp
+++ b/languages/ada/AdaTokenTypes.hpp
@@ -92,7 +92,7 @@ struct CUSTOM_API AdaTokenTypes {
OR = 81,
TERMINATE = 82,
RAISE = 83,
- REQUEUE = 84,
+ RETQUEUE = 84,
AND = 85,
XOR = 86,
NOT = 87,
@@ -177,7 +177,7 @@ struct CUSTOM_API AdaTokenTypes {
RAISE_STATEMENT = 166,
RANGE_ATTRIBUTE_REFERENCE = 167,
RECORD_REPRESENTATION_CLAUSE = 168,
- REQUEUE_STATEMENT = 169,
+ RETQUEUE_STATEMENT = 169,
RETURN_STATEMENT = 170,
SELECTIVE_ACCEPT = 171,
SEQUENCE_OF_STATEMENTS = 172,
diff --git a/languages/ada/AdaTreeParserSuper.cpp b/languages/ada/AdaTreeParserSuper.cpp
index be5f0623..f6c122b5 100644
--- a/languages/ada/AdaTreeParserSuper.cpp
+++ b/languages/ada/AdaTreeParserSuper.cpp
@@ -2404,8 +2404,8 @@ void AdaTreeParserSuper::definable_operator_symbol(ANTLR_USE_NAMESPACE(antlr)Ref
_retTree = _t;
}
-void AdaTreeParserSuper::parenthesized_primary(ANTLR_USE_NAMESPACE(antlr)RefAST _t) {
- ANTLR_USE_NAMESPACE(antlr)RefAST parenthesized_primary_AST_in = (_t == ANTLR_USE_NAMESPACE(antlr)RefAST(ASTNULL)) ? ANTLR_USE_NAMESPACE(antlr)nullAST : _t;
+void AdaTreeParserSuper::tqparenthesized_primary(ANTLR_USE_NAMESPACE(antlr)RefAST _t) {
+ ANTLR_USE_NAMESPACE(antlr)RefAST tqparenthesized_primary_AST_in = (_t == ANTLR_USE_NAMESPACE(antlr)RefAST(ASTNULL)) ? ANTLR_USE_NAMESPACE(antlr)nullAST : _t;
try { // for error handling
ANTLR_USE_NAMESPACE(antlr)RefAST __t101 = _t;
@@ -6298,7 +6298,7 @@ void AdaTreeParserSuper::statement(ANTLR_USE_NAMESPACE(antlr)RefAST _t) {
_t = _retTree;
break;
}
- case REQUEUE_STATEMENT:
+ case RETQUEUE_STATEMENT:
{
requeue_stmt(_t);
_t = _retTree;
@@ -6690,7 +6690,7 @@ void AdaTreeParserSuper::requeue_stmt(ANTLR_USE_NAMESPACE(antlr)RefAST _t) {
try { // for error handling
ANTLR_USE_NAMESPACE(antlr)RefAST __t463 = _t;
ANTLR_USE_NAMESPACE(antlr)RefAST tmp231_AST_in = _t;
- match(_t,REQUEUE_STATEMENT);
+ match(_t,RETQUEUE_STATEMENT);
_t = _t->getFirstChild();
name(_t);
_t = _retTree;
@@ -8397,7 +8397,7 @@ void AdaTreeParserSuper::primary(ANTLR_USE_NAMESPACE(antlr)RefAST _t) {
}
case PARENTHESIZED_PRIMARY:
{
- parenthesized_primary(_t);
+ tqparenthesized_primary(_t);
_t = _retTree;
break;
}
@@ -8548,7 +8548,7 @@ void AdaTreeParserSuper::name_or_qualified(ANTLR_USE_NAMESPACE(antlr)RefAST _t)
switch ( _t->getType()) {
case PARENTHESIZED_PRIMARY:
{
- parenthesized_primary(_t);
+ tqparenthesized_primary(_t);
_t = _retTree;
break;
}
@@ -8882,7 +8882,7 @@ const char* AdaTreeParserSuper::tokenNames[] = {
"RAISE_STATEMENT",
"RANGE_ATTRIBUTE_REFERENCE",
"RECORD_REPRESENTATION_CLAUSE",
- "REQUEUE_STATEMENT",
+ "RETQUEUE_STATEMENT",
"RETURN_STATEMENT",
"SELECTIVE_ACCEPT",
"SEQUENCE_OF_STATEMENTS",
diff --git a/languages/ada/AdaTreeParserSuper.hpp b/languages/ada/AdaTreeParserSuper.hpp
index a4d164f0..01833993 100644
--- a/languages/ada/AdaTreeParserSuper.hpp
+++ b/languages/ada/AdaTreeParserSuper.hpp
@@ -67,7 +67,7 @@ public:
public: void init_opt(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
public: void name(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
public: void definable_operator_symbol(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
- public: void parenthesized_primary(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
+ public: void tqparenthesized_primary(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
public: void extension_opt(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
public: void spec_decl_part(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
public: void basic_declarative_items_opt(ANTLR_USE_NAMESPACE(antlr)RefAST _t);
diff --git a/languages/ada/AdaTreeParserSuperTokenTypes.hpp b/languages/ada/AdaTreeParserSuperTokenTypes.hpp
index 924b7415..46edd24a 100644
--- a/languages/ada/AdaTreeParserSuperTokenTypes.hpp
+++ b/languages/ada/AdaTreeParserSuperTokenTypes.hpp
@@ -92,7 +92,7 @@ struct CUSTOM_API AdaTreeParserSuperTokenTypes {
OR = 81,
TERMINATE = 82,
RAISE = 83,
- REQUEUE = 84,
+ RETQUEUE = 84,
AND = 85,
XOR = 86,
NOT = 87,
@@ -177,7 +177,7 @@ struct CUSTOM_API AdaTreeParserSuperTokenTypes {
RAISE_STATEMENT = 166,
RANGE_ATTRIBUTE_REFERENCE = 167,
RECORD_REPRESENTATION_CLAUSE = 168,
- REQUEUE_STATEMENT = 169,
+ RETQUEUE_STATEMENT = 169,
RETURN_STATEMENT = 170,
SELECTIVE_ACCEPT = 171,
SEQUENCE_OF_STATEMENTS = 172,
diff --git a/languages/ada/README.dox b/languages/ada/README.dox
index e71e6d45..ccb7f0aa 100644
--- a/languages/ada/README.dox
+++ b/languages/ada/README.dox
@@ -24,7 +24,7 @@ with the one from <a href="ftp://fara.cs.uni-potsdam.de/incoming/CppCodeGenerato
\authors <a href="mailto:roberto AT kdevelop.org">Roberto Raggi</a>
\authors <a href="mailto:cloudtemple AT mksat.net">Alexander Dymo</a>
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\requirement Ada compiler
diff --git a/languages/ada/ada.g b/languages/ada/ada.g
index 5f97952b..876255f5 100644
--- a/languages/ada/ada.g
+++ b/languages/ada/ada.g
@@ -179,7 +179,7 @@ generic_inst : NEW! compound_name ( LPAREN! value_s RPAREN! )?
{ pop_def_id(); }
;
-parenth_values : LPAREN! value ( COMMA! value )* RPAREN!
+tqparenth_values : LPAREN! value ( COMMA! value )* RPAREN!
;
value : ( OTHERS^ RIGHT_SHAFT! expression
@@ -287,7 +287,7 @@ definable_operator_symbol returns [RefAdaAST d]
op:CHAR_STRING { #op->setType(OPERATOR_SYMBOL); d=#op; }
;
-parenthesized_primary : pp:LPAREN^
+tqparenthesized_primary : pp:LPAREN^
( NuLL RECORD!
| value_s extension_opt
)
@@ -851,7 +851,7 @@ abstract_tagged_limited_opt
local_enum_name : IDENTIFIER // to be refined: do a symbol table lookup
;
-enumeration_aggregate : parenth_values
+enumeration_aggregate : tqparenth_values
;
aliased_constant_opt : ( ALIASED )? ( CONSTANT )?
@@ -1267,7 +1267,7 @@ accept_stmt : a:ACCEPT^ def_id[false] entry_index_opt formal_part_opt
;
entry_index_opt : ( (LPAREN expression RPAREN) => LPAREN! expression RPAREN!
- // Looks alot like parenthesized_expr_opt, but it's not.
+ // Looks alot like tqparenthesized_expr_opt, but it's not.
// We need the syn pred for the usage context in accept_stmt.
// The formal_part_opt that follows the entry_index_opt there
// creates ambiguity (due to the opening LPAREN.)
@@ -1463,7 +1463,7 @@ factor : ( NOT^ primary
;
primary : ( name_or_qualified
- | parenthesized_primary
+ | tqparenthesized_primary
| allocator
| NuLL
| NUMERIC_LIT
@@ -1485,7 +1485,7 @@ name_or_qualified { RefAdaAST dummy; }
)
| p:LPAREN^ value_s RPAREN!
{ Set(#p, INDEXED_COMPONENT); }
- | TIC^ ( parenthesized_primary | attribute_id )
+ | TIC^ ( tqparenthesized_primary | attribute_id )
)*
;
@@ -1773,7 +1773,7 @@ tokens {
// part 3: Non-RM synthetic tokens.
// They exist mainly to normalize the node structure with respect to
// optional items. (Without them, the presence or absence of an optional
- // item would change the node layout, but we want a fixed layout.)
+ // item would change the node tqlayout, but we want a fixed tqlayout.)
ABSTRACT_FUNCTION_DECLARATION;
ABSTRACT_PROCEDURE_DECLARATION;
ACCESS_TO_FUNCTION_DECLARATION;
diff --git a/languages/ada/ada.store.g b/languages/ada/ada.store.g
index dbca7312..a9a6fbde 100644
--- a/languages/ada/ada.store.g
+++ b/languages/ada/ada.store.g
@@ -582,7 +582,7 @@ name_or_qualified
)
| #(INDEXED_COMPONENT name_or_qualified value_s)
| #(TIC name_or_qualified
- ( parenthesized_primary
+ ( tqparenthesized_primary
| attribute_id
)
)
diff --git a/languages/ada/ada.tree.g b/languages/ada/ada.tree.g
index df167dcd..6f343f97 100644
--- a/languages/ada/ada.tree.g
+++ b/languages/ada/ada.tree.g
@@ -189,7 +189,7 @@ name : IDENTIFIER
definable_operator_symbol : OPERATOR_SYMBOL
;
-parenthesized_primary
+tqparenthesized_primary
: #(PARENTHESIZED_PRIMARY ( NuLL | value_s extension_opt ) )
;
@@ -901,7 +901,7 @@ factor : #(NOT primary)
primary :
( name_or_qualified
- | parenthesized_primary
+ | tqparenthesized_primary
| allocator
| NuLL
| NUMERIC_LIT
@@ -926,7 +926,7 @@ name_or_qualified
)
| #(INDEXED_COMPONENT name_or_qualified value_s)
| #(TIC name_or_qualified
- ( parenthesized_primary
+ ( tqparenthesized_primary
| attribute_id
)
)
diff --git a/languages/ada/ada_utils.cpp b/languages/ada/ada_utils.cpp
index 6e4bea13..516218c8 100644
--- a/languages/ada/ada_utils.cpp
+++ b/languages/ada/ada_utils.cpp
@@ -16,7 +16,7 @@
TQString qtext (const RefAdaAST& n)
{
- return TQString::fromLatin1 (text (n).c_str ());
+ return TQString::tqfromLatin1 (text (n).c_str ());
}
TQStringList qnamelist (const RefAdaAST& n)
@@ -30,7 +30,7 @@ TQString ada_spec_filename (const TQString& comp_unit_name)
{
TQString fn (comp_unit_name.lower ());
- fn.replace (TQRegExp("."), "-");
+ fn.tqreplace (TQRegExp("."), "-");
fn += ".ads";
return fn;
}
@@ -44,7 +44,7 @@ TQString fq_specfilename (const TQString& comp_unit_name)
TQString adaincpath = getenv ("ADA_INCLUDE_PATH");
if (adaincpath.isNull ())
- return TQString::null;
+ return TQString();
TQStringList dirs = TQStringList::split (':', adaincpath);
TQString fq_filename;
@@ -64,6 +64,6 @@ TQString fq_specfilename (const TQString& comp_unit_name)
} else {
kdDebug () << "Cannot find file " << fname << endl;
}
- return TQString::null;
+ return TQString();
}
diff --git a/languages/ada/adasupportpart.cpp b/languages/ada/adasupportpart.cpp
index 7c7f4198..35b34c44 100644
--- a/languages/ada/adasupportpart.cpp
+++ b/languages/ada/adasupportpart.cpp
@@ -50,8 +50,8 @@ struct AdaSupportPartData {
AdaSupportPartData () : problemReporter (0) {}
};
-AdaSupportPart::AdaSupportPart (TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport (&data, parent, name ? name : "AdaSupportPart"), d (new AdaSupportPartData())
+AdaSupportPart::AdaSupportPart (TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport (&data, tqparent, name ? name : "AdaSupportPart"), d (new AdaSupportPartData())
{
setInstance (AdaSupportPartFactory::instance ());
@@ -78,7 +78,7 @@ AdaSupportPart::AdaSupportPart (TQObject *parent, const char *name, const TQStri
// a small hack (robe)
//classStore ()->globalScope ()->setName ("(default packages)");
//classStore ()->addScope (classStore ()->globalScope ());
- //classStore ()->globalScope ()->setName (TQString::null);
+ //classStore ()->globalScope ()->setName (TQString());
}
@@ -143,7 +143,7 @@ void AdaSupportPart::initialParse ()
TQString fn = project ()->projectDirectory () + "/" + *it;
maybeParse (fn);
- kapp->processEvents (500);
+ kapp->tqprocessEvents (500);
}
emit updatedSourceInfo();
@@ -167,7 +167,7 @@ void AdaSupportPart::maybeParse (const TQString &fileName)
{
kdDebug () << "AdaSupportPart::maybeParse: " << fileName << endl;
- if (!fileExtensions ().contains (TQFileInfo (fileName).extension ()))
+ if (!fileExtensions ().tqcontains (TQFileInfo (fileName).extension ()))
return;
// mainWindow ()->statusBar ()->message (i18n ("Parsing file: %1").arg (fileName));
@@ -250,7 +250,7 @@ void AdaSupportPart::parse (const TQString &fileName)
}
} catch (antlr::ANTLRException& ex) {
kdDebug () << "*exception*: " << ex.toString ().c_str () << endl;
- d->problemReporter->reportError (TQString::fromLatin1( ex.getMessage ().c_str() ),
+ d->problemReporter->reportError (TQString::tqfromLatin1( ex.getMessage ().c_str() ),
fileName,
lexer.getLine (),
lexer.getColumn ());
@@ -285,7 +285,7 @@ void AdaSupportPart::parseContents (const TQString& contents, const TQString& fi
} catch (antlr::ANTLRException& ex) {
kdDebug () << "*exception*: " << ex.toString ().c_str () << endl;
- d->problemReporter->reportError (TQString::fromLatin1( ex.getMessage().c_str() ),
+ d->problemReporter->reportError (TQString::tqfromLatin1( ex.getMessage().c_str() ),
fileName,
lexer.getLine (),
lexer.getColumn ());
@@ -298,7 +298,7 @@ void AdaSupportPart::savedFile (const KURL& fileName)
{
kdDebug () << "AdaSupportPart::savedFile ()" << endl;
- if (project ()->allFiles ().contains (fileName.path().mid (project ()->projectDirectory ().length () + 1))) {
+ if (project ()->allFiles ().tqcontains (fileName.path().mid (project ()->projectDirectory ().length () + 1))) {
maybeParse (fileName.path());
emit updatedSourceInfo();
}
@@ -328,7 +328,7 @@ void AdaSupportPart::saveProjectSourceInfo( )
return;
TQDataStream stream( &f );
- TQMap<TQString, Q_ULONG> offsets;
+ TQMap<TQString, TQ_ULONG> offsets;
TQString pcs( "PCS" );
stream << pcs << KDEV_PCS_VERSION;
@@ -336,13 +336,13 @@ void AdaSupportPart::saveProjectSourceInfo( )
stream << int( fileList.size() );
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ){
const FileDom dom = (*it);
-#if QT_VERSION >= 0x030100
+#if [[[TQT_VERSION IS DEPRECATED]]] >= 0x030100
stream << dom->name() << m_timestamp[ dom->name() ].toTime_t();
#else
stream << dom->name() << toTime_t(m_timestamp[ dom->name() ]);
#endif
offsets.insert( dom->name(), stream.device()->at() );
- stream << (Q_ULONG)0; // dummy offset
+ stream << (TQ_ULONG)0; // dummy offset
}
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ){
diff --git a/languages/ada/adasupportpart.h b/languages/ada/adasupportpart.h
index aefaab76..a2e01a5f 100644
--- a/languages/ada/adasupportpart.h
+++ b/languages/ada/adasupportpart.h
@@ -13,8 +13,9 @@ class TQStringList;
class AdaSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- AdaSupportPart (TQObject *parent, const char *name, const TQStringList &);
+ AdaSupportPart (TQObject *tqparent, const char *name, const TQStringList &);
~AdaSupportPart ();
void parseContents (const TQString& contents, const TQString& fileName);
diff --git a/languages/ada/addclass.cpp b/languages/ada/addclass.cpp
index ee28ff93..8605e42a 100644
--- a/languages/ada/addclass.cpp
+++ b/languages/ada/addclass.cpp
@@ -33,7 +33,7 @@ AddClassInfo::AddClassInfo()
TQString AddClassInfo::adaFileName() const
{
TQString dest = className;
- dest.replace(TQRegExp("\\."), "/");
+ dest.tqreplace(TQRegExp("\\."), "/");
return sourceDir + "/" + dest + ".ada";
}
@@ -183,12 +183,12 @@ bool AddClass::generate()
" * published by the Free Software Foundation; either version 2 of the\n"
" * License, or (at your option) any later version.\n";
}
- else if (m_info.license == "QPL")
+ else if (m_info.license == "TQPL")
{
code +=
" * This program may be distributed under the terms of the Q Public\n"
" * License as defined by Trolltech AS of Norway and appearing in the\n"
- " * file LICENSE.QPL included in the packaging of this file.\n"
+ " * file LICENSE.TQPL included in the packaging of this file.\n"
" *\n"
" * This program is distributed in the hope that it will be useful,\n"
" * but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
@@ -206,7 +206,7 @@ bool AddClass::generate()
// find class and package name
TQString className, packageName;
- int i = m_info.className.findRev('.');
+ int i = m_info.className.tqfindRev('.');
if (i == -1)
{
packageName = "";
@@ -322,7 +322,7 @@ bool AddClass::generate()
// create directories
TQString dest = packageName;
- dest.replace(TQRegExp("\\."), "/");
+ dest.tqreplace(TQRegExp("\\."), "/");
dest = m_info.sourceDir + "/" + dest;
if (!makeDirs(dest))
diff --git a/languages/ada/addclassdlg.ui b/languages/ada/addclassdlg.ui
index 49900786..80f466be 100644
--- a/languages/ada/addclassdlg.ui
+++ b/languages/ada/addclassdlg.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>AddClassDlg</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>AddClassDlg</cstring>
</property>
@@ -30,7 +30,7 @@
<string>&amp;Implements</string>
</property>
</widget>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="4">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>GroupBox1</cstring>
</property>
@@ -64,7 +64,7 @@
<enum>Expanding</enum>
</property>
</spacer>
- <widget class="QCheckBox" row="3" column="2">
+ <widget class="TQCheckBox" row="3" column="2">
<property name="name">
<cstring>Abstract</cstring>
</property>
@@ -72,7 +72,7 @@
<string>&amp;Abstract</string>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="1">
+ <widget class="TQCheckBox" row="3" column="1">
<property name="name">
<cstring>Interface</cstring>
</property>
@@ -80,7 +80,7 @@
<string>&amp;Interface</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -91,7 +91,7 @@
<cstring>ClassName</cstring>
</property>
</widget>
- <widget class="QButtonGroup" row="4" column="1" rowspan="1" colspan="3">
+ <widget class="TQButtonGroup" row="4" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>ButtonGroup1</cstring>
</property>
@@ -109,7 +109,7 @@
<number>0</number>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>Public</cstring>
</property>
@@ -120,7 +120,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>Protected</cstring>
</property>
@@ -128,7 +128,7 @@
<string>P&amp;rotected</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>Private</cstring>
</property>
@@ -138,7 +138,7 @@
</widget>
</hbox>
</widget>
- <widget class="QCheckBox" row="3" column="3">
+ <widget class="TQCheckBox" row="3" column="3">
<property name="name">
<cstring>Final</cstring>
</property>
@@ -162,7 +162,7 @@
<enum>Expanding</enum>
</property>
</spacer>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -173,7 +173,7 @@
<cstring>Extends</cstring>
</property>
</widget>
- <widget class="QPushButton" row="0" column="5">
+ <widget class="TQPushButton" row="0" column="5">
<property name="name">
<cstring>BrowseSourcePath</cstring>
</property>
@@ -194,7 +194,7 @@
<cstring>SourcePath</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
@@ -207,7 +207,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="2" column="0" rowspan="1" colspan="4">
+ <widget class="TQGroupBox" row="2" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>GroupBox3</cstring>
</property>
@@ -219,7 +219,7 @@
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>Constructor</cstring>
</property>
@@ -230,7 +230,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>Main</cstring>
</property>
@@ -240,7 +240,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox" row="3" column="0" rowspan="1" colspan="4">
+ <widget class="TQGroupBox" row="3" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>GroupBox4</cstring>
</property>
@@ -252,7 +252,7 @@
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel5</cstring>
</property>
@@ -286,7 +286,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QTextEdit" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQTextEdit" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>Documentation</cstring>
</property>
@@ -318,7 +318,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QPushButton" row="5" column="3">
+ <widget class="TQPushButton" row="5" column="3">
<property name="name">
<cstring>PushButton3</cstring>
</property>
@@ -337,7 +337,7 @@
<enum>Expanding</enum>
</property>
</spacer>
- <widget class="QPushButton" row="5" column="0">
+ <widget class="TQPushButton" row="5" column="0">
<property name="name">
<cstring>PushButton1</cstring>
</property>
@@ -348,7 +348,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="5" column="1">
+ <widget class="TQPushButton" row="5" column="1">
<property name="name">
<cstring>PushButton2</cstring>
</property>
@@ -420,15 +420,15 @@
<tabstop>PushButton2</tabstop>
<tabstop>PushButton3</tabstop>
</tabstops>
-<slots>
+<Q_SLOTS>
<slot>Public_toggled( bool )</slot>
-</slots>
+</Q_SLOTS>
<includes>
<include location="global" impldecl="in implementation">keditlistbox.h</include>
<include location="global" impldecl="in implementation">kcombobox.h</include>
<include location="global" impldecl="in implementation">klineedit.h</include>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/ada/backgroundparser.cpp b/languages/ada/backgroundparser.cpp
index 68607851..2ee39af8 100644
--- a/languages/ada/backgroundparser.cpp
+++ b/languages/ada/backgroundparser.cpp
@@ -25,7 +25,7 @@ BackgroundParser::BackgroundParser( ProblemReporter* reporter,
const TQString& source,
const TQString& filename )
: m_reporter( reporter ),
- m_source( source.unicode(), source.length() ),
+ m_source( source.tqunicode(), source.length() ),
m_fileName( filename )
{
}
@@ -64,7 +64,7 @@ void BackgroundParser::run()
} catch( antlr::ANTLRException& ex ){
kdDebug() << "*exception*: " << ex.toString().c_str() << endl;
- m_reporter->reportError( TQString::fromLatin1( ex.getMessage().c_str() ),
+ m_reporter->reportError( TQString::tqfromLatin1( ex.getMessage().c_str() ),
m_fileName,
lexer.getLine(),
lexer.getColumn() );
diff --git a/languages/ada/backgroundparser.h b/languages/ada/backgroundparser.h
index 3c41d450..e07ff55f 100644
--- a/languages/ada/backgroundparser.h
+++ b/languages/ada/backgroundparser.h
@@ -19,7 +19,7 @@
class ProblemReporter;
-class BackgroundParser: public QThread{
+class BackgroundParser: public TQThread{
public:
BackgroundParser( ProblemReporter* reporter,
const TQString& source,
diff --git a/languages/ada/configproblemreporter.ui b/languages/ada/configproblemreporter.ui
index 75f35b1f..86bb221d 100644
--- a/languages/ada/configproblemreporter.ui
+++ b/languages/ada/configproblemreporter.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>ConfigureProblemReporter</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ConfigureProblemReporter</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>bgParserCheckbox</cstring>
</property>
@@ -24,7 +24,7 @@
<string>&amp;Enable background parsing</string>
</property>
</widget>
- <widget class="QSlider">
+ <widget class="TQSlider">
<property name="name">
<cstring>delaySlider</cstring>
</property>
@@ -57,7 +57,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>0</width>
<height>101</height>
@@ -78,12 +78,12 @@
<include location="global" impldecl="in implementation">kdialog.h</include>
<include location="local" impldecl="in implementation">configproblemreporter.ui.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>init()</slot>
<slot>destroy()</slot>
<slot>accept()</slot>
<slot>bgParserCheckbox_toggled( bool b )</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/ada/configproblemreporter.ui.h b/languages/ada/configproblemreporter.ui.h
index a336965c..20932393 100644
--- a/languages/ada/configproblemreporter.ui.h
+++ b/languages/ada/configproblemreporter.ui.h
@@ -1,7 +1,7 @@
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
-** If you wish to add, delete or rename slots use Qt Designer which will
+** If you wish to add, delete or rename slots use TQt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/
diff --git a/languages/ada/configure.in.in b/languages/ada/configure.in.in
index be677e4b..c64a6b76 100644
--- a/languages/ada/configure.in.in
+++ b/languages/ada/configure.in.in
@@ -1,4 +1,4 @@
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
-AC_CHECK_HEADERS(sstream)
+KDE_CHECK_HEADERS(sstream)
AC_LANG_RESTORE
diff --git a/languages/ada/problemreporter.cpp b/languages/ada/problemreporter.cpp
index 652d5a6b..1b9b5bc4 100644
--- a/languages/ada/problemreporter.cpp
+++ b/languages/ada/problemreporter.cpp
@@ -50,15 +50,15 @@
#include <kdialogbase.h>
-class ProblemItem: public QListViewItem{
+class ProblemItem: public TQListViewItem{
public:
- ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListView* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : TQListViewItem( parent, level, problem, file, line, column ) {}
+ : TQListViewItem( tqparent, level, problem, file, line, column ) {}
- ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListViewItem* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : TQListViewItem( parent, level, problem, file, line, column ) {}
+ : TQListViewItem( tqparent, level, problem, file, line, column ) {}
int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 3 || column == 4 ){
@@ -73,8 +73,8 @@ public:
};
-ProblemReporter::ProblemReporter( AdaSupportPart* part, TQWidget* parent, const char* name )
- : TQListView( parent, name ),
+ProblemReporter::ProblemReporter( AdaSupportPart* part, TQWidget* tqparent, const char* name )
+ : TQListView( tqparent, name ),
m_adaSupport( part ),
m_editor( 0 ),
m_document( 0 ),
@@ -185,7 +185,7 @@ void ProblemReporter::reparse()
}
/* Temporarily deactivated (crashes)*/
- if (!m_adaSupport->fileExtensions ().contains (TQFileInfo (m_filename).extension ()))
+ if (!m_adaSupport->fileExtensions ().tqcontains (TQFileInfo (m_filename).extension ()))
{
m_bgParser = new BackgroundParser( this, m_editor->text(), m_filename );
m_bgParser->start();
@@ -211,7 +211,7 @@ void ProblemReporter::reportError( TQString message,
new ProblemItem( this,
"error",
- message.replace( TQRegExp("\n"), "" ),
+ message.tqreplace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
@@ -223,7 +223,7 @@ void ProblemReporter::reportWarning( TQString message,
{
new ProblemItem( this,
"warning",
- message.replace( TQRegExp("\n"), "" ),
+ message.tqreplace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
@@ -235,7 +235,7 @@ void ProblemReporter::reportMessage( TQString message,
{
new TQListViewItem( this,
"message",
- message.replace( TQRegExp("\n"), "" ),
+ message.tqreplace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
diff --git a/languages/ada/problemreporter.h b/languages/ada/problemreporter.h
index 16fe2181..84c9ce57 100644
--- a/languages/ada/problemreporter.h
+++ b/languages/ada/problemreporter.h
@@ -37,10 +37,11 @@ namespace KTextEditor{
class Document;
}
-class ProblemReporter: public QListView{
+class ProblemReporter: public TQListView{
Q_OBJECT
+ TQ_OBJECT
public:
- ProblemReporter( AdaSupportPart* part, TQWidget* parent=0, const char* name=0 );
+ ProblemReporter( AdaSupportPart* part, TQWidget* tqparent=0, const char* name=0 );
virtual ~ProblemReporter();
virtual void reportError( TQString message, TQString filename,
diff --git a/languages/bash/README.dox b/languages/bash/README.dox
index 95765f0a..af38febf 100644
--- a/languages/bash/README.dox
+++ b/languages/bash/README.dox
@@ -10,6 +10,6 @@ Supports bash language
\feature runs bash script in external terminal
\feature syntax highlighting and code folding via katepart
\feature Code completion works for variables
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
*/
diff --git a/languages/bash/bashsupport_part.cpp b/languages/bash/bashsupport_part.cpp
index a36761a8..7bcd879f 100644
--- a/languages/bash/bashsupport_part.cpp
+++ b/languages/bash/bashsupport_part.cpp
@@ -36,8 +36,8 @@ typedef KDevGenericFactory<BashSupportPart> BashSupportFactory;
static const KDevPluginInfo data("kdevbashsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevbashsupport, BashSupportFactory( data ) )
-BashSupportPart::BashSupportPart(TQObject *parent, const char *name, const TQStringList& )
-: KDevLanguageSupport (&data, parent, name ? name : "BashSupportPart" )
+BashSupportPart::BashSupportPart(TQObject *tqparent, const char *name, const TQStringList& )
+: KDevLanguageSupport (&data, tqparent, name ? name : "BashSupportPart" )
{
setInstance(BashSupportFactory::instance());
setXMLFile("kdevbashsupport.rc");
@@ -172,7 +172,7 @@ void BashSupportPart::savedFile(const KURL &fileName)
{
kdDebug(9014) << "savedFile()" << endl;
- if (project()->allFiles().contains(fileName.path().mid ( project()->projectDirectory().length() + 1 )))
+ if (project()->allFiles().tqcontains(fileName.path().mid ( project()->projectDirectory().length() + 1 )))
{
parse(fileName.path());
emit addedSourceInfo( fileName.path() );
@@ -418,7 +418,7 @@ void BashCodeCompletion::completionBoxHidden()
m_cursorInterface->cursorPositionReal(&line, &col);
TQString lineStr = m_editInterface->textLine(line);
- start = lineStr.findRev(TQRegExp("[$][\\d\\w]*\\b$"));
+ start = lineStr.tqfindRev(TQRegExp("[$][\\d\\w]*\\b$"));
m_editInterface->removeText ( start, col, line, col );
*/
}
diff --git a/languages/bash/bashsupport_part.h b/languages/bash/bashsupport_part.h
index 4b3219fa..b083a32a 100644
--- a/languages/bash/bashsupport_part.h
+++ b/languages/bash/bashsupport_part.h
@@ -22,9 +22,10 @@
//class BashSupportWidget;
-class BashCodeCompletion : QObject
+class BashCodeCompletion : TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
BashCodeCompletion();
~BashCodeCompletion();
@@ -49,8 +50,9 @@ class BashCodeCompletion : QObject
class BashSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- BashSupportPart(TQObject *parent, const char *name, const TQStringList &);
+ BashSupportPart(TQObject *tqparent, const char *name, const TQStringList &);
virtual ~BashSupportPart();
protected:
diff --git a/languages/cpp/KDevCppSupportIface.h b/languages/cpp/KDevCppSupportIface.h
index 8aed7e94..39ed4a43 100644
--- a/languages/cpp/KDevCppSupportIface.h
+++ b/languages/cpp/KDevCppSupportIface.h
@@ -10,6 +10,7 @@ class CppSupportPart;
class KDevCppSupportIface : public TQObject, public DCOPObject
{
Q_OBJECT
+// TQ_OBJECT
K_DCOP
public:
KDevCppSupportIface( CppSupportPart* cppSupport );
diff --git a/languages/cpp/README.dox b/languages/cpp/README.dox
index ba1fbc05..3078ec53 100644
--- a/languages/cpp/README.dox
+++ b/languages/cpp/README.dox
@@ -16,7 +16,7 @@ and if you want play with the c++ parser go to lib/cppparser/, the best is to st
\feature can do code completion
\feature has presistent class store
\feature code highlight
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug bugs in <a href="http://bugs.kde.org/buglist.cgi?product=kdevelop&component=cppsupport&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=Bug+Number">cppsupport component at Bugzilla database</a>
diff --git a/languages/cpp/addattributedialog.cpp b/languages/cpp/addattributedialog.cpp
index 42031f59..70dd27b3 100644
--- a/languages/cpp/addattributedialog.cpp
+++ b/languages/cpp/addattributedialog.cpp
@@ -41,8 +41,8 @@
#include <tqtextstream.h>
AddAttributeDialog::AddAttributeDialog( CppSupportPart* cppSupport, ClassDom klass,
- TQWidget* parent, const char* name, bool modal, WFlags fl )
-: AddAttributeDialogBase( parent, name, modal, fl ), m_cppSupport( cppSupport ), m_klass( klass ), m_count( 0 )
+ TQWidget* tqparent, const char* name, bool modal, WFlags fl )
+: AddAttributeDialogBase( tqparent, name, modal, fl ), m_cppSupport( cppSupport ), m_klass( klass ), m_count( 0 )
{
access->insertStringList( TQStringList() << "Public" << "Protected" << "Private" );
@@ -91,7 +91,7 @@ void AddAttributeDialog::accept()
m_klass->getEndPosition( &line, &column );
// compute the insertion point map
- TQMap<TQString, QPair<int, int> > points;
+ TQMap<TQString, TQPair<int, int> > points;
TQStringList accessList;
const VariableList variableList = m_klass->variableList();
@@ -100,9 +100,9 @@ void AddAttributeDialog::accept()
int varEndLine, varEndColumn;
( *it ) ->getEndPosition( &varEndLine, &varEndColumn );
TQString access = accessID( *it );
- QPair<int, int> varEndPoint = qMakePair( varEndLine, varEndColumn );
+ TQPair<int, int> varEndPoint = tqMakePair( varEndLine, varEndColumn );
- if ( !points.contains( access ) || points[ access ] < varEndPoint )
+ if ( !points.tqcontains( access ) || points[ access ] < varEndPoint )
{
accessList.remove( access );
accessList.push_back( access ); // move 'access' at the end of the list
@@ -131,20 +131,20 @@ void AddAttributeDialog::accept()
TQString str = variableDeclaration( currentItem );
- QPair<int, int> pt;
- if ( points.contains( *it ) )
+ TQPair<int, int> pt;
+ if ( points.tqcontains( *it ) )
{
pt = points[ *it ];
}
else
{
str.prepend( access + ":\n" );
- points[ *it ] = qMakePair( line - 1, 0 );
+ points[ *it ] = tqMakePair( line - 1, 0 );
pt = points[ *it ]; // end of class declaration
}
editIface->insertText( pt.first + insertedLine + 1, 0 /*pt.second*/, str );
- insertedLine += str.contains( TQChar( '\n' ) );
+ insertedLine += str.tqcontains( TQChar( '\n' ) );
}
}
@@ -194,7 +194,7 @@ void AddAttributeDialog::updateGUI()
void AddAttributeDialog::addAttribute()
{
TQListViewItem * item = new TQListViewItem( attributes, "Protected", "Normal",
- "int", TQString( "attribute_%1" ).arg( ++m_count ) );
+ "int", TQString( "attribute_%1" ).tqarg( ++m_count ) );
attributes->setCurrentItem( item );
attributes->setSelected( item, true );
@@ -236,7 +236,7 @@ TQStringList AddAttributeDialog::newAccessList( const TQStringList& accessList )
item = item->nextSibling();
TQString access = currentItem->text( 0 );
- if ( !( accessList.contains( access ) || newAccessList.contains( access ) ) )
+ if ( !( accessList.tqcontains( access ) || newAccessList.tqcontains( access ) ) )
newAccessList.push_back( access );
}
@@ -248,16 +248,16 @@ TQString AddAttributeDialog::accessID( VariableDom var ) const
switch ( var->access() )
{
case CodeModelItem::Public:
- return TQString::fromLatin1( "Public" );
+ return TQString::tqfromLatin1( "Public" );
case CodeModelItem::Protected:
- return TQString::fromLatin1( "Protected" );
+ return TQString::tqfromLatin1( "Protected" );
case CodeModelItem::Private:
- return TQString::fromLatin1( "Private" );
+ return TQString::tqfromLatin1( "Private" );
}
- return TQString::null;
+ return TQString();
}
#include "addattributedialog.moc"
diff --git a/languages/cpp/addattributedialog.h b/languages/cpp/addattributedialog.h
index 54d917b1..ffe2a92d 100644
--- a/languages/cpp/addattributedialog.h
+++ b/languages/cpp/addattributedialog.h
@@ -29,9 +29,10 @@ class CppSupportPart;
class AddAttributeDialog : public AddAttributeDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
AddAttributeDialog( CppSupportPart* cppSupport, ClassDom klass,
- TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AddAttributeDialog();
virtual void addAttribute();
diff --git a/languages/cpp/addattributedialogbase.ui b/languages/cpp/addattributedialogbase.ui
index eabd89fe..27ad6d5a 100644
--- a/languages/cpp/addattributedialogbase.ui
+++ b/languages/cpp/addattributedialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>AddAttributeDialogBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>AddAttributeDialogBase</cstring>
</property>
@@ -22,7 +22,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Access</string>
@@ -77,9 +77,9 @@
<enum>LastColumn</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -95,14 +95,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>111</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>addAttributeButton</cstring>
</property>
@@ -110,7 +110,7 @@
<string>&amp;Add Attribute</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>deleteAttributeButton</cstring>
</property>
@@ -120,7 +120,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -131,15 +131,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -150,7 +150,7 @@
<cstring>returnType</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="0">
+ <widget class="TQComboBox" row="1" column="0">
<property name="name">
<cstring>returnType</cstring>
</property>
@@ -163,7 +163,7 @@
<cstring>declarator</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -176,20 +176,20 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<property name="name">
<cstring>storage</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -200,7 +200,7 @@
<cstring>storage</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -211,7 +211,7 @@
<cstring>access</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="0">
+ <widget class="TQComboBox" row="1" column="0">
<property name="name">
<cstring>access</cstring>
</property>
@@ -220,7 +220,7 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -244,14 +244,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
@@ -268,7 +268,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
@@ -313,9 +313,9 @@
</connection>
<connection>
<sender>attributes</sender>
- <signal>selectionChanged(QListViewItem*)</signal>
+ <signal>selectionChanged(TQListViewItem*)</signal>
<receiver>AddAttributeDialogBase</receiver>
- <slot>currentChanged(QListViewItem*)</slot>
+ <slot>currentChanged(TQListViewItem*)</slot>
</connection>
<connection>
<sender>returnType</sender>
@@ -362,14 +362,14 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot access="protected">init()</slot>
<slot access="protected">destroy()</slot>
<slot>addAttribute()</slot>
<slot>deleteCurrentAttribute()</slot>
- <slot>currentChanged(QListViewItem*)</slot>
+ <slot>currentChanged(TQListViewItem*)</slot>
<slot>updateGUI()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/cpp/addmethoddialog.cpp b/languages/cpp/addmethoddialog.cpp
index ae4e1738..71f03b5d 100644
--- a/languages/cpp/addmethoddialog.cpp
+++ b/languages/cpp/addmethoddialog.cpp
@@ -44,8 +44,8 @@
#include <tqtextstream.h>
AddMethodDialog::AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
- TQWidget* parent, const char* name, bool modal, WFlags fl )
-: AddMethodDialogBase( parent, name, modal, fl ), m_cppSupport( cppSupport ), m_klass( klass ), m_count( 0 )
+ TQWidget* tqparent, const char* name, bool modal, WFlags fl )
+: AddMethodDialogBase( tqparent, name, modal, fl ), m_cppSupport( cppSupport ), m_klass( klass ), m_count( 0 )
{
TQString fileName = m_klass->fileName();
@@ -75,7 +75,7 @@ AddMethodDialog::AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
while ( it != m.end() )
{
TQString ext = TQFileInfo( it.key() ).extension();
- if ( !headers.contains( ext ) )
+ if ( !headers.tqcontains( ext ) )
sourceFile->insertItem( it.key() );
++it;
}
@@ -119,27 +119,27 @@ void AddMethodDialog::reject()
TQString AddMethodDialog::accessID( FunctionDom fun ) const
{
if ( fun->isSignal() )
- return TQString::fromLatin1( "Signals" );
+ return TQString::tqfromLatin1( "Signals" );
switch ( fun->access() )
{
case CodeModelItem::Public:
if ( fun->isSlot() )
- return TQString::fromLatin1( "Public Slots" );
- return TQString::fromLatin1( "Public" );
+ return TQString::tqfromLatin1( "Public Slots" );
+ return TQString::tqfromLatin1( "Public" );
case CodeModelItem::Protected:
if ( fun->isSlot() )
- return TQString::fromLatin1( "Protected Slots" );
- return TQString::fromLatin1( "Protected" );
+ return TQString::tqfromLatin1( "Protected Slots" );
+ return TQString::tqfromLatin1( "Protected" );
case CodeModelItem::Private:
if ( fun->isSlot() )
- return TQString::fromLatin1( "Private Slots" );
- return TQString::fromLatin1( "Private" );
+ return TQString::tqfromLatin1( "Private Slots" );
+ return TQString::tqfromLatin1( "Private" );
}
- return TQString::null;
+ return TQString();
}
void AddMethodDialog::accept()
@@ -157,7 +157,7 @@ void AddMethodDialog::accept()
m_klass->getEndPosition( &line, &column );
// compute the insertion point map
- TQMap<TQString, QPair<int, int> > points;
+ TQMap<TQString, TQPair<int, int> > points;
TQStringList accessList;
const FunctionList functionList = m_klass->functionList();
@@ -166,9 +166,9 @@ void AddMethodDialog::accept()
int funEndLine, funEndColumn;
( *it ) ->getEndPosition( &funEndLine, &funEndColumn );
TQString access = accessID( *it );
- QPair<int, int> funEndPoint = qMakePair( funEndLine, funEndColumn );
+ TQPair<int, int> funEndPoint = tqMakePair( funEndLine, funEndColumn );
- if ( !points.contains( access ) || points[ access ] < funEndPoint )
+ if ( !points.tqcontains( access ) || points[ access ] < funEndPoint )
{
accessList.remove( access );
accessList.push_back( access ); // move 'access' at the end of the list
@@ -198,20 +198,20 @@ void AddMethodDialog::accept()
bool isInline = currentItem->text( 0 ) == "True";
TQString str = isInline ? functionDefinition( currentItem ) : functionDeclaration( currentItem );
- QPair<int, int> pt;
- if ( points.contains( *it ) )
+ TQPair<int, int> pt;
+ if ( points.tqcontains( *it ) )
{
pt = points[ *it ];
}
else
{
str.prepend( access + ":\n" );
- points[ *it ] = qMakePair( line - 1, 0 );
+ points[ *it ] = tqMakePair( line - 1, 0 );
pt = points[ *it ]; // end of class declaration
}
editIface->insertText( pt.first + insertedLine + 1, 0 /*pt.second*/, str );
- insertedLine += str.contains( TQChar( '\n' ) );
+ insertedLine += str.tqcontains( TQChar( '\n' ) );
}
}
@@ -248,7 +248,7 @@ void AddMethodDialog::accept()
bool isInline = currentItem->text( 0 ) == "True";
if ( !isInline )
{
- editIface->insertLine( editIface->numLines(), TQString::fromLatin1( "" ) );
+ editIface->insertLine( editIface->numLines(), TQString::tqfromLatin1( "" ) );
editIface->insertText( editIface->numLines() - 1, 0, str );
m_cppSupport->backgroundParser() ->addFile( implementationFile );
}
@@ -293,7 +293,7 @@ void AddMethodDialog::updateGUI()
void AddMethodDialog::addMethod()
{
TQListViewItem * item = new TQListViewItem( methods, "False", "Public", "Normal",
- "void", TQString( "method_%1()" ).arg( ++m_count ),
+ "void", TQString( "method_%1()" ).tqarg( ++m_count ),
sourceFile->currentText() );
methods->setCurrentItem( item );
methods->setSelected( item, true );
@@ -363,7 +363,7 @@ TQString AddMethodDialog::functionDefinition( TQListViewItem* item ) const
if ( item->text( 1 ) == "Signals" || item->text( 2 ) == "Pure Virtual" ||
item->text( 2 ) == "Friend" )
{
- return TQString::null;
+ return TQString();
}
TQString className = m_klass->name();
@@ -387,7 +387,7 @@ TQString AddMethodDialog::functionDefinition( TQListViewItem* item ) const
<< ind << " */\n";
stream
- << ind << item->text( 3 ) << " " << ( isInline ? TQString::fromLatin1( "" ) : fullName + "::" )
+ << ind << item->text( 3 ) << " " << ( isInline ? TQString::tqfromLatin1( "" ) : fullName + "::" )
<< item->text( 4 ) << "\n"
<< ind << "{\n"
<< ind << " /// @todo implement me\n"
@@ -408,7 +408,7 @@ TQStringList AddMethodDialog::newAccessList( const TQStringList& accessList ) co
item = item->nextSibling();
TQString access = currentItem->text( 1 );
- if ( !( accessList.contains( access ) || newAccessList.contains( access ) ) )
+ if ( !( accessList.tqcontains( access ) || newAccessList.tqcontains( access ) ) )
newAccessList.push_back( access );
}
diff --git a/languages/cpp/addmethoddialog.h b/languages/cpp/addmethoddialog.h
index badfe537..70ab9958 100644
--- a/languages/cpp/addmethoddialog.h
+++ b/languages/cpp/addmethoddialog.h
@@ -29,9 +29,10 @@ class CppSupportPart;
class AddMethodDialog : public AddMethodDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
- TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AddMethodDialog();
virtual void addMethod();
diff --git a/languages/cpp/addmethoddialogbase.ui b/languages/cpp/addmethoddialogbase.ui
index 5ab3f769..3518b3a0 100644
--- a/languages/cpp/addmethoddialogbase.ui
+++ b/languages/cpp/addmethoddialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>AddMethodDialogBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>AddMethodDialogBase</cstring>
</property>
@@ -22,7 +22,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Inline</string>
@@ -88,9 +88,9 @@
<enum>LastColumn</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -106,14 +106,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>111</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>addMethodButton</cstring>
</property>
@@ -121,7 +121,7 @@
<string>&amp;Add Method</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>deleteMethodButton</cstring>
</property>
@@ -131,7 +131,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -142,15 +142,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -161,7 +161,7 @@
<cstring>returnType</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="0">
+ <widget class="TQComboBox" row="1" column="0">
<property name="name">
<cstring>returnType</cstring>
</property>
@@ -174,7 +174,7 @@
<cstring>declarator</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -187,20 +187,20 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<property name="name">
<cstring>storage</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -211,7 +211,7 @@
<cstring>storage</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="2">
+ <widget class="TQCheckBox" row="1" column="2">
<property name="name">
<cstring>isInline</cstring>
</property>
@@ -219,7 +219,7 @@
<string>&amp;Inline</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -230,7 +230,7 @@
<cstring>access</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="0">
+ <widget class="TQComboBox" row="1" column="0">
<property name="name">
<cstring>access</cstring>
</property>
@@ -239,7 +239,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -250,7 +250,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<property name="name">
<cstring>sourceFile</cstring>
</property>
@@ -266,7 +266,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>browseButton</cstring>
</property>
@@ -279,7 +279,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -300,14 +300,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
@@ -324,7 +324,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
@@ -369,9 +369,9 @@
</connection>
<connection>
<sender>methods</sender>
- <signal>selectionChanged(QListViewItem*)</signal>
+ <signal>selectionChanged(TQListViewItem*)</signal>
<receiver>AddMethodDialogBase</receiver>
- <slot>currentChanged(QListViewItem*)</slot>
+ <slot>currentChanged(TQListViewItem*)</slot>
</connection>
<connection>
<sender>returnType</sender>
@@ -445,15 +445,15 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot access="protected">init()</slot>
<slot access="protected">destroy()</slot>
<slot>addMethod()</slot>
<slot>deleteCurrentMethod()</slot>
- <slot>currentChanged(QListViewItem*)</slot>
+ <slot>currentChanged(TQListViewItem*)</slot>
<slot>updateGUI()</slot>
<slot>browseImplementationFile()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate b/languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate
index cd3783f7..5240b2ee 100644
--- a/languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate
+++ b/languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate
@@ -51,11 +51,11 @@ Comment[ja]=共有ライブラリのテンプレートを作成します。同�
Comment[nds]=Stellt en Vörlaag för en deelt Bibliotheek mit en Testprogramm in C op. Dat Kompileren bruukt ansteed vun de "automake/autoconf/libtool"-Kombinatschoon "CMake" in de Verschoon 2.1 (ut dat cmake-CVS) oder 2.2 (de tokamen Utgaav).
Comment[ne]=C मा परीक्षण अनुप्रयोग सहितको साझेदारी टेम्प्लेट उत्पन्न गर्दछ । यसले automake/autoconf/libtool संयोजनको सट्टामा CMake निर्माण उपकरण प्रयोग गरेर कम्पाइल गर्दछ । यसका लागि cmake 2.1 (cmake cvs बाट उपलब्ध हुन्छ) वा अब आउने cmake 2.2 उत्पादन आवश्यक पर्दछ ।
Comment[nl]=Genereert een gedeelde-bibliotheek-sjabloon inclusief een testtoepassing in C. Het compileert met behulp van de CMake build tool in plaats van de combinatie automake/autoconf/libtool. Het vereist cmake 2.1 (beschikbaar in het cvs van cmake) of de aankomende cmake 2.2-uitgave.
-Comment[pl]=Generuje szablon współdzielonej biblioteki zawierający także program testowy w języku C. Kompilacja odbywa sie za pomocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake 2.1 (dostępnego z cvs-u cmake) lub nadchodzącej wersji 2.2.
+Comment[pl]=Generuje szablon współdzielonej biblioteki zawierający także program testowy w języku C. Kompilacja odbywa sie za potqmocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake 2.1 (dostępnego z cvs-u cmake) lub nadchodzącej wersji 2.2.
Comment[pt]=Gera um modelo de uma biblioteca dinâmica, que inclui uma aplicação de testes em C. Ele é compilado com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2.
Comment[pt_BR]=Gera um modelo de uma biblioteca dinâmica, que inclui uma aplicação de testes em C. Ele é compilado com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2.
Comment[ru]=Создание шаблона разделяемой библиотеки, включая тестовую программу на C. Для сборки потребуется CMake вместо комбинации automake/autoconf/libtool. Потребуется cmake 2.1 (из CVS cmake) или релиз cmake 2.2.
-Comment[sk]=Vygeneruje šablónu pre zdieľanú knižnicu vrátane testovacej aplikácie v C.Kompiluje sa pomocou nástroja CMake namiesto kombinácie automake/autoconf/libtool.Vyžaduje cmake 2.1 (dostupné v cmake cvs) alebo nadchádzajúci cmake 2.2 release.
+Comment[sk]=Vygeneruje šablónu pre zdieľanú knižnicu vrátane testovacej aplikácie v C.Kompiluje sa potqmocou nástroja CMake namiesto kombinácie automake/autoconf/libtool.Vyžaduje cmake 2.1 (dostupné v cmake cvs) alebo nadchádzajúci cmake 2.2 release.
Comment[sl]=Ustvari predlogo za deljeno knjižnico in testni program v C. Za prevajanje se namesto kombinacije automake/autoconf/libtool uporabi orodje za gradnjo CMake. Potreben je CMake 2.1 ali CMake 2.2.
Comment[sr]=Прави шаблон дељене библиотеке, укључујући и пробни програм у C-у. Преводи се помоћу алата CMake уместо комбинације Automake/Autoconf/Libtool. Захтева CMake 2.1 (доступан у CVS-у CMake-а) или надолазеће издање CMake 2.2.
Comment[sr@Latn]=Pravi šablon deljene biblioteke, uključujući i probni program u C-u. Prevodi se pomoću alata CMake umesto kombinacije Automake/Autoconf/Libtool. Zahteva CMake 2.1 (dostupan u CVS-u CMake-a) ili nadolazeće izdanje CMake 2.2.
diff --git a/languages/cpp/app_templates/cmakelibcpp/cmakelibcpp.kdevtemplate b/languages/cpp/app_templates/cmakelibcpp/cmakelibcpp.kdevtemplate
index e6e6ac44..8f3d0cf9 100644
--- a/languages/cpp/app_templates/cmakelibcpp/cmakelibcpp.kdevtemplate
+++ b/languages/cpp/app_templates/cmakelibcpp/cmakelibcpp.kdevtemplate
@@ -51,11 +51,11 @@ Comment[ja]=共有ライブラリのテンプレートを作成します。同�
Comment[nds]=Stellt en Vörlaag för en deelt Bibliotheek mit en Testprogramm in C++ op. Dat Kompileren bruukt ansteed vun de "automake/autoconf/libtool"-Kombinatschoon "CMake" in de Verschoon 2.1 (ut dat cmake-CVS) oder 2.2 (de tokamen Utgaav).
Comment[ne]=C++ मा परीक्षण अनुप्रयोग सहितको साझेदारी टेम्प्लेट उत्पन्न गर्दछ । यसले automake/autoconf/libtool संयोजनको सट्टामा CMake निर्माण उपकरण प्रयोग गरेर कम्पाइल गर्दछ । यसका लागि cmake 2.1 (cmake cvs बाट उपलब्ध हुन्छ) वा अब आउने cmake 2.2 उत्पादन आवश्यक पर्दछ ।
Comment[nl]=Genereert een gedeelde-bibliotheek-sjabloon inclusief een testtoepassing in C++. Het compileert met behulp van de CMake build tool in plaats van de combinatie automake/autoconf/libtool. Het vereist cmake 2.1 (uit het cvs van cmake) of de aankomende cmake 2.2-uitgave.
-Comment[pl]=Generuje szablon współdzielonej biblioteki zawierający także program testowy w języku C++. Kompilacja odbywa sie za pomocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake 2.1 (dostępnego z cvs-u cmake) lub nadchodzącej wersji 2.2.
+Comment[pl]=Generuje szablon współdzielonej biblioteki zawierający także program testowy w języku C++. Kompilacja odbywa sie za potqmocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake 2.1 (dostępnego z cvs-u cmake) lub nadchodzącej wersji 2.2.
Comment[pt]=Gera um modelo de uma biblioteca dinâmica, que inclui uma aplicação de testes em C++. Ele é compilado com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2.
Comment[pt_BR]=Gera um modelo de uma biblioteca dinâmica, que inclui uma aplicação de testes em C++. Ele é compilado com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2.
Comment[ru]=Создание шаблона разделяемой библиотеки, включая тестовую программу на C++. Для сборки потребуется CMake вместо комбинации automake/autoconf/libtool. Потребуется cmake 2.1 (из CVS cmake) или релиз cmake 2.2.
-Comment[sk]=Vygeneruje šablónu zdieľanej knižnice vrátane testovacej aplikácie v C++.Kompiluje sa pomocou nástroja CMake namiesto kombinácie automake/autoconf/libtool.Vyžaduje cmake 2.1 (dostupné v cmake cvs) alebo nadchádzajúci cmake 2.2 release.
+Comment[sk]=Vygeneruje šablónu zdieľanej knižnice vrátane testovacej aplikácie v C++.Kompiluje sa potqmocou nástroja CMake namiesto kombinácie automake/autoconf/libtool.Vyžaduje cmake 2.1 (dostupné v cmake cvs) alebo nadchádzajúci cmake 2.2 release.
Comment[sl]=Ustvari predlogo za deljeno knjižnico in testni program v C++. Za prevajanje se namesto kombinacije automake/autoconf/libtool uporabi orodje za gradnjo CMake. Potreben je CMake 2.1 ali CMake 2.2.
Comment[sr]=Прави шаблон дељене библиотеке укључујући и пробни програм у C++-у. Преводи се помоћу алата CMake уместо комбинације Automake/Autoconf/Libtool. Захтева CMake 2.1 (доступан у CVS-у CMake-а) или надолазеће издање CMake 2.2.
Comment[sr@Latn]=Pravi šablon deljene biblioteke uključujući i probni program u C++-u. Prevodi se pomoću alata CMake umesto kombinacije Automake/Autoconf/Libtool. Zahteva CMake 2.1 (dostupan u CVS-u CMake-a) ili nadolazeće izdanje CMake 2.2.
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
index f3c5f7f2..4b78645a 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
@@ -11,7 +11,7 @@
#include <tqtextedit.h>
#include <tqfile.h>
#include <tqfiledialog.h>
-#include <tqstatusbar.h>
+#include <statusbar.h>
#include <tqmessagebox.h>
#include <tqprinter.h>
#include <tqapplication.h>
@@ -36,17 +36,17 @@
openIcon = TQPixmap( fileopen );
TQToolButton * fileOpen
- = new TQToolButton( openIcon, tr("Open File"), TQString::null,
+ = new TQToolButton( openIcon, tr("Open File"), TQString(),
this, TQT_SLOT(choose()), fileTools, "open file" );
saveIcon = TQPixmap( filesave );
TQToolButton * fileSave
- = new TQToolButton( saveIcon, tr("Save File"), TQString::null,
+ = new TQToolButton( saveIcon, tr("Save File"), TQString(),
this, TQT_SLOT(save()), fileTools, "save file" );
printIcon = TQPixmap( fileprint );
TQToolButton * filePrint
- = new TQToolButton( printIcon, tr("Print File"), TQString::null,
+ = new TQToolButton( printIcon, tr("Print File"), TQString(),
this, TQT_SLOT(print()), fileTools, "print file" );
@@ -103,7 +103,7 @@
file->insertItem( tr("&Close"), this, TQT_SLOT(close()), CTRL+Key_W );
- file->insertItem( tr("&Quit"), qApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( tr("&Quit"), tqApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
@@ -111,7 +111,7 @@
menuBar()->insertItem( tr("&Help"), help );
help->insertItem( tr("&About"), this, TQT_SLOT(about()), Key_F1 );
- help->insertItem( tr("About &Qt"), this, TQT_SLOT(aboutQt()) );
+ help->insertItem( tr("About &TQt"), this, TQT_SLOT(aboutTQt()) );
help->insertSeparator();
help->insertItem( tr("What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
@@ -134,13 +134,13 @@
void %{APPNAME}::newDoc()
{
%{APPNAME} *ed = new %{APPNAME};
- ed->setCaption(tr("Qt Example - Application"));
+ ed->setCaption(tr("TQt Example - Application"));
ed->show();
}
void %{APPNAME}::choose()
{
- TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null,
+ TQString fn = TQFileDialog::getOpenFileName( TQString(), TQString(),
this);
if ( !fn.isEmpty() )
load( fn );
@@ -159,7 +159,7 @@ void %{APPNAME}::load( const TQString &fileName )
e->setText( ts.read() );
e->setModified( FALSE );
setCaption( fileName );
- statusBar()->message( tr("Loaded document %1").arg(fileName), 2000 );
+ statusBar()->message( tr("Loaded document %1").tqarg(fileName), 2000 );
}
@@ -173,7 +173,7 @@ void %{APPNAME}::save()
TQString text = e->text();
TQFile f( filename );
if ( !f.open( IO_WriteOnly ) ) {
- statusBar()->message( tr("Could not write to %1").arg(filename),
+ statusBar()->message( tr("Could not write to %1").tqarg(filename),
2000 );
return;
}
@@ -186,13 +186,13 @@ void %{APPNAME}::save()
setCaption( filename );
- statusBar()->message( tr( "File %1 saved" ).arg( filename ), 2000 );
+ statusBar()->message( tr( "File %1 saved" ).tqarg( filename ), 2000 );
}
void %{APPNAME}::saveAs()
{
- TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null,
+ TQString fn = TQFileDialog::getSaveFileName( TQString(), TQString(),
this );
if ( !fn.isEmpty() ) {
filename = fn;
@@ -249,7 +249,7 @@ void %{APPNAME}::closeEvent( TQCloseEvent* ce )
return;
}
- switch( TQMessageBox::information( this, tr("Qt Application Example"),
+ switch( TQMessageBox::information( this, tr("TQt Application Example"),
tr("Do you want to save the changes"
" to the document?"),
tr("Yes"), tr("No"), tr("Cancel"),
@@ -271,13 +271,13 @@ void %{APPNAME}::closeEvent( TQCloseEvent* ce )
void %{APPNAME}::about()
{
- TQMessageBox::about( this, tr("Qt Application Example"),
+ TQMessageBox::about( this, tr("TQt Application Example"),
tr("This example demonstrates simple use of "
- "TQMainWindow,\nQMenuBar and TQToolBar."));
+ "TQMainWindow,\nTQMenuBar and TQToolBar."));
}
-void %{APPNAME}::aboutQt()
+void %{APPNAME}::aboutTQt()
{
- TQMessageBox::aboutQt( this, tr("Qt Application Example") );
+ TQMessageBox::aboutTQt( this, tr("TQt Application Example") );
}
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
index af12e1eb..bc8a2b93 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
@@ -7,9 +7,10 @@
class TQTextEdit;
-class %{APPNAME}: public QMainWindow
+class %{APPNAME}: public TQMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}();
@@ -27,7 +28,7 @@ private slots:
void print();
void about();
- void aboutQt();
+ void aboutTQt();
private:
TQPrinter *printer;
diff --git a/languages/cpp/app_templates/cmakesimple/cmakesimple.kdevtemplate b/languages/cpp/app_templates/cmakesimple/cmakesimple.kdevtemplate
index 2e6032e8..a80c8079 100644
--- a/languages/cpp/app_templates/cmakesimple/cmakesimple.kdevtemplate
+++ b/languages/cpp/app_templates/cmakesimple/cmakesimple.kdevtemplate
@@ -44,7 +44,7 @@ Comment[it]=Genera un semplice programma di "Hello world" in C++ che usa CMake i
Comment[ja]=ビルドに automake/autoconf/libtool ではなく CMake を使った簡単な Hello World プログラムを C++ で作成します。CMake 2.1 または 2.2 が必要です。
Comment[nds]=Stellt en eenfach "Moin Welt"-Programm in C++ op, mit "CMake" ansteed vun de "automake/autoconf/libtool"-Reeg. Nödig is Verschoon 2.1 oder 2.2 vun CMake.
Comment[nl]=Genereert een eenvoudig Hello World-programma in C++ met behulp van de CMake build tool in plaats van de combinatie automake/autoconf/libtool. Het vereist cmake 2.1 of cmake 2.2.
-Comment[pl]=Generuje prosty program 'Witaj świecie' w języku C++. Kompilacja odbywa sie za pomocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake w wersji 2.1 lub 2.2.
+Comment[pl]=Generuje prosty program 'Witaj świecie' w języku C++. Kompilacja odbywa sie za potqmocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake w wersji 2.1 lub 2.2.
Comment[pt]=Gera um programa simples Olá Mundo em C++, com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 ou do cmake 2.2.
Comment[pt_BR]=Gera um programa simples Olá Mundo em C++, com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 ou do cmake 2.2.
Comment[ru]=Создание простого приложения Hello world на C++. Для сборки потребуется CMake вместо комбинации automake/autoconf/libtool. Потребуется cmake версии 2.1 или 2.2.
diff --git a/languages/cpp/app_templates/cmakesimplec/cmakesimplec.kdevtemplate b/languages/cpp/app_templates/cmakesimplec/cmakesimplec.kdevtemplate
index 3fc09047..3068fdd3 100644
--- a/languages/cpp/app_templates/cmakesimplec/cmakesimplec.kdevtemplate
+++ b/languages/cpp/app_templates/cmakesimplec/cmakesimplec.kdevtemplate
@@ -49,7 +49,7 @@ Comment[ja]=ビルドに automake/autoconf/libtool ではなく CMake を使っ�
Comment[nds]=Stellt en eenfach "Moin Welt"-Programm in C op mit "CMake" in de Verschoon 2.1 (ut dat cmake-CVS) oder 2.2 (de tokamen Utgaav) ansteed vun de "automake/autoconf/libtool"-Kombinatschoon.
Comment[ne]= automake/autoconf/libtool संयोजनको सट्टामा CMake निर्माण उपकरण प्रयोग गरेर C मा साधारण हेल्लो वोल्ड कार्यक्रम उत्पन्न गर्दछ । यसलाई cmake 2.1 (cmake cvs बाट उपलब्ध हुन्छ) वा आउदै गरेको cmake 2.2 उत्पादन आवश्यक हुन्छ ।
Comment[nl]=Genereert een eenvoudig Hello World-programma in C met behulp van de CMake build tool in plaats van de combinatie automake/autoconf/libtool. Het vereist cmake 2.1 (uit het cvs van cmake) of de aankomende cmake 2.2-uitgave.
-Comment[pl]=Generuje prosty program 'Witaj świecie' w języku C. Kompilacja odbywa sie za pomocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake 2.1 (dostępnego z cvs-u cmake) lub nadchodzącej wersji 2.2.
+Comment[pl]=Generuje prosty program 'Witaj świecie' w języku C. Kompilacja odbywa sie za potqmocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake 2.1 (dostępnego z cvs-u cmake) lub nadchodzącej wersji 2.2.
Comment[pt]=Gera um programa simples Olá Mundo em C, com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2.
Comment[pt_BR]=Gera um programa simples Olá Mundo em C, com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2.
Comment[ru]=Создание простого приложения Hello world на C. Для сборки потребуется CMake вместо комбинации automake/autoconf/libtool. Потребуется cmake 2.1 (из CVS cmake) или релиз cmake 2.2.
diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.cpp b/languages/cpp/app_templates/dcopservice/dcopservice.cpp
index 32f32c65..2f569f3c 100644
--- a/languages/cpp/app_templates/dcopservice/dcopservice.cpp
+++ b/languages/cpp/app_templates/dcopservice/dcopservice.cpp
@@ -33,7 +33,7 @@ void %{APPNAME}::add(TQString arg)
bool %{APPNAME}::remove(TQString arg)
{
- TQStringList::Iterator it = m_List.find(arg);
+ TQStringList::Iterator it = m_List.tqfind(arg);
if (it != m_List.end())
{
m_List.remove(it);
diff --git a/languages/cpp/app_templates/generichello/generichello.kdevtemplate b/languages/cpp/app_templates/generichello/generichello.kdevtemplate
index 787140ff..2c71b0ad 100644
--- a/languages/cpp/app_templates/generichello/generichello.kdevtemplate
+++ b/languages/cpp/app_templates/generichello/generichello.kdevtemplate
@@ -18,7 +18,7 @@ Name[ja]=C++ プログラム (シェルスクリプトベースのビルドシ�
Name[nds]=C++-Programm (Konsoolskript-Opstellsystem)
Name[ne]=C++ कार्यक्रम (शेल स्क्रिप्ट निर्माण प्रणाली)
Name[nl]=C++-programma (shellscript build system)
-Name[pl]=Program w C++ (system budowania za pomocą skryptów powłoki)
+Name[pl]=Program w C++ (system budowania za potqmocą skryptów powłoki)
Name[pt]=Programa em C++ (sistema de compilação em 'shell script')
Name[pt_BR]=Programa em C++ (sistema de compilação em 'shell script')
Name[ru]=Приложение C++ (сборка на скриптах командной оболочки)
diff --git a/languages/cpp/app_templates/gnome2mmapp/main_window.hh b/languages/cpp/app_templates/gnome2mmapp/main_window.hh
index ae93336b..7b356a27 100644
--- a/languages/cpp/app_templates/gnome2mmapp/main_window.hh
+++ b/languages/cpp/app_templates/gnome2mmapp/main_window.hh
@@ -2,7 +2,7 @@
// newer (non customized) versions of this file go to main_window.hh_new
-// you might replace
+// you might tqreplace
// class foo : public foo_glade { ... };
// by
// typedef foo_glade foo;
diff --git a/languages/cpp/app_templates/gtk2mmapp/main_window.hh b/languages/cpp/app_templates/gtk2mmapp/main_window.hh
index 640e1461..6f9405d0 100644
--- a/languages/cpp/app_templates/gtk2mmapp/main_window.hh
+++ b/languages/cpp/app_templates/gtk2mmapp/main_window.hh
@@ -2,7 +2,7 @@
// newer (non customized) versions of this file go to main_window.hh_new
-// you might replace
+// you might tqreplace
// class foo : public foo_glade { ... };
// by
// typedef foo_glade foo;
diff --git a/languages/cpp/app_templates/kapp/app.cpp b/languages/cpp/app_templates/kapp/app.cpp
index 6388f452..10046641 100644
--- a/languages/cpp/app_templates/kapp/app.cpp
+++ b/languages/cpp/app_templates/kapp/app.cpp
@@ -141,7 +141,7 @@ void %{APPNAME}::dragEnterEvent(TQDragEnterEvent *event)
void %{APPNAME}::dropEvent(TQDropEvent *event)
{
// this is a very simplistic implementation of a drop event. we
- // will only accept a dropped URL. the Qt dnd code can do *much*
+ // will only accept a dropped URL. the TQt dnd code can do *much*
// much more, so please read the docs there
KURL::List urls;
@@ -173,10 +173,10 @@ void %{APPNAME}::fileOpen()
// button is clicked
/*
// this brings up the generic open dialog
- KURL url = KURLRequesterDlg::getURL(TQString::null, this, i18n("Open Location") );
+ KURL url = KURLRequesterDlg::getURL(TQString(), this, i18n("Open Location") );
*/
// standard filedialog
- KURL url = KFileDialog::getOpenURL(TQString::null, TQString::null, this, i18n("Open Location"));
+ KURL url = KFileDialog::getOpenURL(TQString(), TQString(), this, i18n("Open Location"));
if (!url.isEmpty())
m_view->openURL(url);
}
@@ -208,7 +208,7 @@ void %{APPNAME}::filePrint()
if (!m_printer) m_printer = new KPrinter;
if (m_printer->setup(this))
{
- // setup the printer. with Qt, you always "print" to a
+ // setup the printer. with TQt, you always "print" to a
// TQPainter.. whether the output medium is a pixmap, a screen,
// or paper
TQPainter p;
diff --git a/languages/cpp/app_templates/kapp/app.h b/languages/cpp/app_templates/kapp/app.h
index 1c92feb8..762d8791 100644
--- a/languages/cpp/app_templates/kapp/app.h
+++ b/languages/cpp/app_templates/kapp/app.h
@@ -26,6 +26,7 @@ class KURL;
class %{APPNAME} : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
@@ -44,7 +45,7 @@ public:
protected:
/**
- * Overridden virtuals for Qt drag 'n drop (XDND)
+ * Overridden virtuals for TQt drag 'n drop (XDND)
*/
virtual void dragEnterEvent(TQDragEnterEvent *event);
virtual void dropEvent(TQDropEvent *event);
diff --git a/languages/cpp/app_templates/kapp/appview.cpp b/languages/cpp/app_templates/kapp/appview.cpp
index 32afca2e..5b42a36a 100644
--- a/languages/cpp/app_templates/kapp/appview.cpp
+++ b/languages/cpp/app_templates/kapp/appview.cpp
@@ -13,11 +13,11 @@
#include <krun.h>
#include <klocale.h>
-%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
- : TQWidget(parent),
+%{APPNAME}View::%{APPNAME}View(TQWidget *tqparent)
+ : TQWidget(tqparent),
DCOPObject("%{APPNAME}Iface")
{
- // setup our layout manager to automatically add our widgets
+ // setup our tqlayout manager to automatically add our widgets
TQHBoxLayout *top_layout = new TQHBoxLayout(this);
top_layout->setAutoAdd(true);
diff --git a/languages/cpp/app_templates/kapp/appview.h b/languages/cpp/app_templates/kapp/appview.h
index a4f0b2e6..2eab2322 100644
--- a/languages/cpp/app_templates/kapp/appview.h
+++ b/languages/cpp/app_templates/kapp/appview.h
@@ -24,11 +24,12 @@ class KURL;
class %{APPNAME}View : public TQWidget, public %{APPNAME}Iface
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}View(TQWidget *parent);
+ %{APPNAME}View(TQWidget *tqparent);
/**
* Destructor
diff --git a/languages/cpp/app_templates/kapp/pref.cpp b/languages/cpp/app_templates/kapp/pref.cpp
index ff83190f..3d720a65 100644
--- a/languages/cpp/app_templates/kapp/pref.cpp
+++ b/languages/cpp/app_templates/kapp/pref.cpp
@@ -22,20 +22,20 @@
m_pageTwo = new %{APPNAME}PrefPageTwo(frame);
}
-%{APPNAME}PrefPageOne::%{APPNAME}PrefPageOne(TQWidget *parent)
- : TQFrame(parent)
+%{APPNAME}PrefPageOne::%{APPNAME}PrefPageOne(TQWidget *tqparent)
+ : TQFrame(tqparent)
{
- TQHBoxLayout *layout = new TQHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
new TQLabel(i18n("Add something here"), this);
}
-%{APPNAME}PrefPageTwo::%{APPNAME}PrefPageTwo(TQWidget *parent)
- : TQFrame(parent)
+%{APPNAME}PrefPageTwo::%{APPNAME}PrefPageTwo(TQWidget *tqparent)
+ : TQFrame(tqparent)
{
- TQHBoxLayout *layout = new TQHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
new TQLabel(i18n("Add something here"), this);
}
diff --git a/languages/cpp/app_templates/kapp/pref.h b/languages/cpp/app_templates/kapp/pref.h
index 93859cfd..23798000 100644
--- a/languages/cpp/app_templates/kapp/pref.h
+++ b/languages/cpp/app_templates/kapp/pref.h
@@ -12,6 +12,7 @@ class %{APPNAME}PrefPageTwo;
class %{APPNAME}Preferences : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}Preferences();
@@ -20,18 +21,20 @@ private:
%{APPNAME}PrefPageTwo *m_pageTwo;
};
-class %{APPNAME}PrefPageOne : public QFrame
+class %{APPNAME}PrefPageOne : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}PrefPageOne(TQWidget *parent = 0);
+ %{APPNAME}PrefPageOne(TQWidget *tqparent = 0);
};
-class %{APPNAME}PrefPageTwo : public QFrame
+class %{APPNAME}PrefPageTwo : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}PrefPageTwo(TQWidget *parent = 0);
+ %{APPNAME}PrefPageTwo(TQWidget *tqparent = 0);
};
#endif // _%{APPNAMEUC}PREF_H_
diff --git a/languages/cpp/app_templates/kapp/src-Makefile.am b/languages/cpp/app_templates/kapp/src-Makefile.am
index 51cb1973..f118ee10 100644
--- a/languages/cpp/app_templates/kapp/src-Makefile.am
+++ b/languages/cpp/app_templates/kapp/src-Makefile.am
@@ -25,11 +25,11 @@ noinst_HEADERS = %{APPNAMELC}.h %{APPNAMELC}view.h pref.h
%{APPNAMELC}_client_LDADD = $(LIB_KDECORE)
%{APPNAMELC}_client_SOURCES = %{APPNAMELC}_client.cpp
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
KDE_ICON = AUTO
diff --git a/languages/cpp/app_templates/kateplugin/plugin_app.cpp b/languages/cpp/app_templates/kateplugin/plugin_app.cpp
index 1a40df32..8c729f72 100644
--- a/languages/cpp/app_templates/kateplugin/plugin_app.cpp
+++ b/languages/cpp/app_templates/kateplugin/plugin_app.cpp
@@ -33,15 +33,15 @@ KatePluginFactory::~KatePluginFactory()
delete s_instance;
}
-TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
+TQObject* KatePluginFactory::createObject( TQObject* tqparent, const char* name, const char*, const TQStringList & )
{
- return new KatePlugin%{APPNAME}( parent, name );
+ return new KatePlugin%{APPNAME}( tqparent, name );
}
KInstance* KatePluginFactory::s_instance = 0L;
-KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* parent, const char* name )
- : Kate::Plugin ( (Kate::Application*)parent, name )
+KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* tqparent, const char* name )
+ : Kate::Plugin ( (Kate::Application*)tqparent, name )
{
}
diff --git a/languages/cpp/app_templates/kateplugin/plugin_app.h b/languages/cpp/app_templates/kateplugin/plugin_app.h
index 879ff967..2183e88e 100644
--- a/languages/cpp/app_templates/kateplugin/plugin_app.h
+++ b/languages/cpp/app_templates/kateplugin/plugin_app.h
@@ -17,12 +17,13 @@
class KatePluginFactory : public KLibFactory
{
Q_OBJECT
+ TQ_OBJECT
public:
KatePluginFactory();
virtual ~KatePluginFactory();
- virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
+ virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0, const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() );
private:
static KInstance* s_instance;
@@ -31,9 +32,10 @@ class KatePluginFactory : public KLibFactory
class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface
{
Q_OBJECT
+ TQ_OBJECT
public:
- KatePlugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
+ KatePlugin%{APPNAME}( TQObject* tqparent = 0, const char* name = 0 );
virtual ~KatePlugin%{APPNAME}();
void addView (Kate::MainWindow *win);
diff --git a/languages/cpp/app_templates/kateplugin/src-Makefile.am b/languages/cpp/app_templates/kateplugin/src-Makefile.am
index 88ba33a8..42a3cec8 100644
--- a/languages/cpp/app_templates/kateplugin/src-Makefile.am
+++ b/languages/cpp/app_templates/kateplugin/src-Makefile.am
@@ -16,5 +16,5 @@ plugins_DATA = plugin_%{APPNAMELC}.rc
kde_services_DATA = %{APPNAMELC}.desktop
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
index 18595d10..9ee7b8b5 100644
--- a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
+++ b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
@@ -37,15 +37,15 @@ KatePluginFactory::~KatePluginFactory()
delete s_instance;
}
-TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
+TQObject* KatePluginFactory::createObject( TQObject* tqparent, const char* name, const char*, const TQStringList & )
{
- return new KatePlugin%{APPNAME}( parent, name );
+ return new KatePlugin%{APPNAME}( tqparent, name );
}
KInstance* KatePluginFactory::s_instance = 0L;
-KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* parent, const char* name )
- : Kate::Plugin ( (Kate::Application*)parent, name )
+KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* tqparent, const char* name )
+ : Kate::Plugin ( (Kate::Application*)tqparent, name )
{
}
@@ -114,8 +114,8 @@ void KatePlugin%{APPNAME}::slotApplyConfig( %{APPNAME}ConfigPage* p )
/**
* %{APPNAME}ConfigPage
*/
-%{APPNAME}ConfigPage::%{APPNAME}ConfigPage (TQObject* parent /*= 0L*/, TQWidget *parentWidget /*= 0L*/)
- : Kate::PluginConfigPage( parentWidget )
+%{APPNAME}ConfigPage::%{APPNAME}ConfigPage (TQObject* tqparent /*= 0L*/, TQWidget *tqparentWidget /*= 0L*/)
+ : Kate::PluginConfigPage( tqparentWidget )
{
TQVBoxLayout* lo = new TQVBoxLayout( this, 0, 0, "config_page_layout" );
lo->setSpacing(KDialogBase::spacingHint());
diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.h b/languages/cpp/app_templates/kateplugin2/plugin_app.h
index 6ad068d4..3082884e 100644
--- a/languages/cpp/app_templates/kateplugin2/plugin_app.h
+++ b/languages/cpp/app_templates/kateplugin2/plugin_app.h
@@ -21,12 +21,13 @@ class %{APPNAME}ConfigPage;
class KatePluginFactory : public KLibFactory
{
Q_OBJECT
+ TQ_OBJECT
public:
KatePluginFactory();
virtual ~KatePluginFactory();
- virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
+ virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0, const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() );
private:
static KInstance* s_instance;
@@ -35,9 +36,10 @@ private:
class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface, Kate::PluginConfigInterfaceExtension
{
Q_OBJECT
+ TQ_OBJECT
public:
- KatePlugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
+ KatePlugin%{APPNAME}( TQObject* tqparent = 0, const char* name = 0 );
virtual ~KatePlugin%{APPNAME}();
void addView (Kate::MainWindow *win);
@@ -65,10 +67,11 @@ private:
class %{APPNAME}ConfigPage : public Kate::PluginConfigPage
{
Q_OBJECT
+ TQ_OBJECT
friend class KatePlugin%{APPNAME};
public:
- %{APPNAME}ConfigPage (TQObject* parent = 0L, TQWidget *parentWidget = 0L);
+ %{APPNAME}ConfigPage (TQObject* tqparent = 0L, TQWidget *tqparentWidget = 0L);
~%{APPNAME}ConfigPage ();
/** Reimplemented from Kate::PluginConfigPage; just emits configPageApplyRequest( this ). */
diff --git a/languages/cpp/app_templates/kateplugin2/src-Makefile.am b/languages/cpp/app_templates/kateplugin2/src-Makefile.am
index 2dbd9367..14a5dd2a 100644
--- a/languages/cpp/app_templates/kateplugin2/src-Makefile.am
+++ b/languages/cpp/app_templates/kateplugin2/src-Makefile.am
@@ -16,6 +16,6 @@ plugins_DATA = plugin_%{APPNAMELC}.rc
kde_services_DATA = %{APPNAMELC}.desktop
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/kcmodule/module.cpp b/languages/cpp/app_templates/kcmodule/module.cpp
index bb15b923..4e9d3ca5 100644
--- a/languages/cpp/app_templates/kcmodule/module.cpp
+++ b/languages/cpp/app_templates/kcmodule/module.cpp
@@ -11,8 +11,8 @@
typedef KGenericFactory<%{APPNAME}, TQWidget> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY( kcm_%{APPNAME}, %{APPNAME}Factory("kcm%{APPNAMELC}"))
-%{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name, const TQStringList&)
- : KCModule(parent, name), myAboutData(0)
+%{APPNAME}::%{APPNAME}(TQWidget *tqparent, const char *name, const TQStringList&)
+ : KCModule(tqparent, name), myAboutData(0)
{
// place widgets here
load();
diff --git a/languages/cpp/app_templates/kcmodule/module.h b/languages/cpp/app_templates/kcmodule/module.h
index 7f539c60..57542aae 100644
--- a/languages/cpp/app_templates/kcmodule/module.h
+++ b/languages/cpp/app_templates/kcmodule/module.h
@@ -9,9 +9,10 @@
class %{APPNAME}: public KCModule
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() );
+ %{APPNAME}( TQWidget *tqparent=0, const char *name=0, const TQStringList& = TQStringList() );
~%{APPNAME}();
virtual void load();
diff --git a/languages/cpp/app_templates/kcmodule/src-Makefile.am b/languages/cpp/app_templates/kcmodule/src-Makefile.am
index e5d30776..6efe685a 100644
--- a/languages/cpp/app_templates/kcmodule/src-Makefile.am
+++ b/languages/cpp/app_templates/kcmodule/src-Makefile.am
@@ -13,5 +13,5 @@ xdg_apps_DATA = %{APPNAMELC}.desktop
messages: rc.cpp
- $(EXTRACTRC) `find -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kcm%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/kconfig35/app.h b/languages/cpp/app_templates/kconfig35/app.h
index 0174aa1b..b8ec3f1e 100644
--- a/languages/cpp/app_templates/kconfig35/app.h
+++ b/languages/cpp/app_templates/kconfig35/app.h
@@ -26,6 +26,7 @@ class KURL;
class %{APPNAMELC} : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/kconfig35/appview.cpp b/languages/cpp/app_templates/kconfig35/appview.cpp
index 30d627fe..0c82dd25 100644
--- a/languages/cpp/app_templates/kconfig35/appview.cpp
+++ b/languages/cpp/app_templates/kconfig35/appview.cpp
@@ -6,8 +6,8 @@
#include <klocale.h>
#include <tqlabel.h>
-%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent)
- : %{APPNAMELC}view_base(parent)
+%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *tqparent)
+ : %{APPNAMELC}view_base(tqparent)
{
settingsChanged();
}
@@ -33,7 +33,7 @@ void %{APPNAMELC}View::settingsChanged()
sillyLabel->setPaletteForegroundColor( Settings::col_foreground() );
// i18n : internationalization
- sillyLabel->setText( i18n("This project is %1 days old").arg(Settings::val_time()) );
+ sillyLabel->setText( i18n("This project is %1 days old").tqarg(Settings::val_time()) );
emit signalChangeStatusbar( i18n("Settings changed") );
}
diff --git a/languages/cpp/app_templates/kconfig35/appview.h b/languages/cpp/app_templates/kconfig35/appview.h
index e0738ebe..897072a6 100644
--- a/languages/cpp/app_templates/kconfig35/appview.h
+++ b/languages/cpp/app_templates/kconfig35/appview.h
@@ -22,11 +22,12 @@ class KURL;
class %{APPNAMELC}View : public %{APPNAMELC}view_base
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAMELC}View(TQWidget *parent);
+ %{APPNAMELC}View(TQWidget *tqparent);
/**
* Destructor
diff --git a/languages/cpp/app_templates/kconfig35/appview_base.ui b/languages/cpp/app_templates/kconfig35/appview_base.ui
index 626d95df..5852f806 100644
--- a/languages/cpp/app_templates/kconfig35/appview_base.ui
+++ b/languages/cpp/app_templates/kconfig35/appview_base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>%{APPNAMELC}view_base</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAMELC}view_base</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
-<widget class="QLabel" row="0" column="0">
+<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>sillyLabel</cstring>
</property>
@@ -29,5 +29,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kconfig35/prefs-base.ui b/languages/cpp/app_templates/kconfig35/prefs-base.ui
index 5c0fc860..8c8b9012 100644
--- a/languages/cpp/app_templates/kconfig35/prefs-base.ui
+++ b/languages/cpp/app_templates/kconfig35/prefs-base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>Prefs_base</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Prefs_base</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -32,7 +32,7 @@
<string></string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -40,7 +40,7 @@
<string>Project age:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -66,7 +66,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -83,14 +83,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QSpinBox" row="2" column="1">
+ <widget class="TQSpinBox" row="2" column="1">
<property name="name">
<cstring>kcfg_val_time</cstring>
</property>
@@ -111,7 +111,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -120,7 +120,7 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
</includehints>
diff --git a/languages/cpp/app_templates/kconfig35/src-Makefile.am b/languages/cpp/app_templates/kconfig35/src-Makefile.am
index 5f7936da..2a04da7e 100644
--- a/languages/cpp/app_templates/kconfig35/src-Makefile.am
+++ b/languages/cpp/app_templates/kconfig35/src-Makefile.am
@@ -7,7 +7,7 @@ bin_PROGRAMS = %{APPNAMELC}
# set the include path for X, qt and KDE
INCLUDES = $(all_includes)
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
# the library search path.
@@ -27,7 +27,7 @@ kde_kcfg_DATA = %{APPNAMELC}.kcfg
noinst_HEADERS = %{APPNAMELC}.h %{APPNAMELC}view.h prefs.h
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
KDE_ICON = AUTO
diff --git a/languages/cpp/app_templates/kde4app/kapp4.cpp b/languages/cpp/app_templates/kde4app/kapp4.cpp
index b73c02cb..bb91d42e 100644
--- a/languages/cpp/app_templates/kde4app/kapp4.cpp
+++ b/languages/cpp/app_templates/kde4app/kapp4.cpp
@@ -4,8 +4,8 @@
#include "%{APPNAMELC}view.h"
#include "settings.h"
-#include <QtGui/TQDropEvent>
-#include <QtGui/TQPainter>
+#include <TQtGui/TQDropEvent>
+#include <TQtGui/TQPainter>
#include <kconfigdialog.h>
#include <kstatusbar.h>
@@ -48,13 +48,13 @@
void %{APPNAME}::setupActions()
{
KStandardAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
- KStandardAction::quit(qApp, TQT_SLOT(quit()), actionCollection());
+ KStandardAction::quit(tqApp, TQT_SLOT(quit()), actionCollection());
KStandardAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAME}View
KAction *custom = new KAction(KIcon("colorize"), i18n("Swi&tch Colors"), this);
- actionCollection()->addAction( QLatin1String("switch_action"), custom );
+ actionCollection()->addAction( TQLatin1String("switch_action"), custom );
connect(custom, TQT_SIGNAL(triggered(bool)), m_view, TQT_SLOT(switchColors()));
}
@@ -83,7 +83,7 @@ void %{APPNAME}::optionsPreferences()
ui_prefs_base.setupUi(generalSettingsDlg);
dialog->addPage(generalSettingsDlg, i18n("General"), "package_setting");
connect(dialog, TQT_SIGNAL(settingsChanged(TQString)), m_view, TQT_SLOT(settingsChanged()));
- dialog->setAttribute( Qt::WA_DeleteOnClose );
+ dialog->setAttribute( TQt::WA_DeleteOnClose );
dialog->show();
}
diff --git a/languages/cpp/app_templates/kde4app/kapp4.h b/languages/cpp/app_templates/kde4app/kapp4.h
index fb059fde..1a15a7c7 100644
--- a/languages/cpp/app_templates/kde4app/kapp4.h
+++ b/languages/cpp/app_templates/kde4app/kapp4.h
@@ -23,6 +23,7 @@ class KUrl;
class %{APPNAME} : public KXmlGuiWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/kde4app/kapp4view.cpp b/languages/cpp/app_templates/kde4app/kapp4view.cpp
index 785a6858..9d9e482a 100644
--- a/languages/cpp/app_templates/kde4app/kapp4view.cpp
+++ b/languages/cpp/app_templates/kde4app/kapp4view.cpp
@@ -3,7 +3,7 @@
#include "settings.h"
#include <klocale.h>
-#include <QtGui/TQLabel>
+#include <TQtGui/TQLabel>
%{APPNAME}View::%{APPNAME}View(TQWidget *)
{
diff --git a/languages/cpp/app_templates/kde4app/kapp4view.h b/languages/cpp/app_templates/kde4app/kapp4view.h
index 40749696..c4ce6517 100644
--- a/languages/cpp/app_templates/kde4app/kapp4view.h
+++ b/languages/cpp/app_templates/kde4app/kapp4view.h
@@ -2,7 +2,7 @@
#ifndef %{APPNAMELC}VIEW_H
#define %{APPNAMELC}VIEW_H
-#include <QtGui/TQWidget>
+#include <TQtGui/TQWidget>
#include "ui_%{APPNAMELC}view_base.h"
@@ -22,11 +22,12 @@ class KUrl;
class %{APPNAME}View : public TQWidget, public Ui::%{APPNAMELC}view_base
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}View(TQWidget *parent);
+ %{APPNAME}View(TQWidget *tqparent);
/**
* Destructor
diff --git a/languages/cpp/app_templates/kde4app/kapp4view_base.ui b/languages/cpp/app_templates/kde4app/kapp4view_base.ui
index eb6a254a..92a83f43 100644
--- a/languages/cpp/app_templates/kde4app/kapp4view_base.ui
+++ b/languages/cpp/app_templates/kde4app/kapp4view_base.ui
@@ -1,6 +1,6 @@
<ui version="4.0" >
<class>%{APPNAMELC}view_base</class>
-<widget class="QWidget" name="%{APPNAMELC}view_base" >
+<widget class="TQWidget" name="%{APPNAMELC}view_base" >
<property name="geometry" >
<rect>
<x>0</x>
@@ -15,7 +15,7 @@
<property name="autoFillBackground" >
<bool>true</bool>
</property>
- <layout class="QGridLayout" >
+ <tqlayout class="TQGridLayout" >
<property name="leftMargin" >
<number>11</number>
</property>
@@ -35,7 +35,7 @@
<number>6</number>
</property>
<item row="0" column="0" >
- <widget class="QLabel" name="kcfg_sillyLabel" >
+ <widget class="TQLabel" name="kcfg_sillyLabel" >
<property name="palette" >
<palette>
<active>
@@ -196,7 +196,7 @@
<property name="scaledContents" >
<bool>true</bool>
</property>
- <property name="alignment" >
+ <property name="tqalignment" >
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap" >
@@ -204,9 +204,9 @@
</property>
</widget>
</item>
- </layout>
+ </tqlayout>
</widget>
- <layoutdefault spacing="6" margin="11" />
+ <tqlayoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<resources/>
<connections/>
diff --git a/languages/cpp/app_templates/kde4app/kde4app-CMakeLists.txt b/languages/cpp/app_templates/kde4app/kde4app-CMakeLists.txt
index 2544a271..c29d33da 100644
--- a/languages/cpp/app_templates/kde4app/kde4app-CMakeLists.txt
+++ b/languages/cpp/app_templates/kde4app/kde4app-CMakeLists.txt
@@ -9,7 +9,7 @@ set(%{APPNAMELC}_SRCS
%{APPNAMELC}view.cpp
)
-#kde4_automoc(${%{APPNAMELC}_SRCS})
+#kde4_autotqmoc(${%{APPNAMELC}_SRCS})
kde4_add_ui_files(%{APPNAMELC}_SRCS %{APPNAMELC}view_base.ui prefs_base.ui)
diff --git a/languages/cpp/app_templates/kde4app/prefs_base.ui b/languages/cpp/app_templates/kde4app/prefs_base.ui
index ea400f02..98bf5f19 100644
--- a/languages/cpp/app_templates/kde4app/prefs_base.ui
+++ b/languages/cpp/app_templates/kde4app/prefs_base.ui
@@ -1,6 +1,6 @@
<ui version="4.0" >
<class>prefs_base</class>
- <widget class="QWidget" name="prefs_base" >
+ <widget class="TQWidget" name="prefs_base" >
<property name="geometry" >
<rect>
<x>0</x>
@@ -9,9 +9,9 @@
<height>156</height>
</rect>
</property>
- <layout class="QGridLayout" >
+ <tqlayout class="TQGridLayout" >
<item row="0" column="0" >
- <widget class="QLabel" name="textLabel2_2" >
+ <widget class="TQLabel" name="textLabel2_2" >
<property name="text" >
<string>Background color:</string>
</property>
@@ -37,7 +37,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="2" column="0" >
- <widget class="QLabel" name="textLabel1" >
+ <widget class="TQLabel" name="textLabel1" >
<property name="text" >
<string>Project age:</string>
</property>
@@ -47,7 +47,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="1" column="0" >
- <widget class="QLabel" name="textLabel2" >
+ <widget class="TQLabel" name="textLabel2" >
<property name="text" >
<string>Foreground color:</string>
</property>
@@ -80,7 +80,7 @@ p, li { white-space: pre-wrap; }
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
- <property name="sizeHint" >
+ <property name="tqsizeHint" >
<size>
<width>41</width>
<height>20</height>
@@ -96,7 +96,7 @@ p, li { white-space: pre-wrap; }
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
- <property name="sizeHint" >
+ <property name="tqsizeHint" >
<size>
<width>41</width>
<height>20</height>
@@ -105,7 +105,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item row="2" column="1" >
- <widget class="QSpinBox" name="kcfg_val_time" >
+ <widget class="TQSpinBox" name="kcfg_val_time" >
<property name="toolTip" >
<string>Set the project age (in days)</string>
</property>
@@ -128,7 +128,7 @@ p, li { white-space: pre-wrap; }
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
- <property name="sizeHint" >
+ <property name="tqsizeHint" >
<size>
<width>41</width>
<height>20</height>
@@ -136,9 +136,9 @@ p, li { white-space: pre-wrap; }
</property>
</spacer>
</item>
- </layout>
+ </tqlayout>
</widget>
- <layoutdefault spacing="6" margin="11" />
+ <tqlayoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<customwidgets>
<customwidget>
diff --git a/languages/cpp/app_templates/kdedcop/app.h b/languages/cpp/app_templates/kdedcop/app.h
index b908b62c..77914d1c 100644
--- a/languages/cpp/app_templates/kdedcop/app.h
+++ b/languages/cpp/app_templates/kdedcop/app.h
@@ -19,6 +19,7 @@
class %{APPNAME} : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/kdedcop/src-Makefile.am b/languages/cpp/app_templates/kdedcop/src-Makefile.am
index dc26ec93..9b32fb8f 100644
--- a/languages/cpp/app_templates/kdedcop/src-Makefile.am
+++ b/languages/cpp/app_templates/kdedcop/src-Makefile.am
@@ -6,11 +6,11 @@ INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = %{APPNAMELC}.h
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
# this is the program that gets installed. it's name is used for all
diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
index 364ec0d7..e6b82e21 100644
--- a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
+++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
@@ -21,8 +21,8 @@ typedef KGenericFactory<%{APPNAME}Part> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( "kdev%{APPNAMELC}" ) );
static const KDevPluginInfo data("kdev%{APPNAMELC}");
-%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList& )
-: KDevLanguageSupport(&data, parent, name ? name : "%{APPNAME}Part" )
+%{APPNAME}Part::%{APPNAME}Part(TQObject *tqparent, const char *name, const TQStringList& )
+: KDevLanguageSupport(&data, tqparent, name ? name : "%{APPNAME}Part" )
{
setInstance(%{APPNAME}Factory::instance());
setXMLFile("kdevlang_%{APPNAMELC}.rc");
@@ -91,7 +91,7 @@ void %{APPNAME}Part::savedFile(const KURL &fileName)
{
- if (project()->allFiles().contains(fileName.path().mid ( project()->projectDirectory().length() + 1 )))
+ if (project()->allFiles().tqcontains(fileName.path().mid ( project()->projectDirectory().length() + 1 )))
{
kdDebug(9014) << "parse file " << fileName.path() << endl;
emit addedSourceInfo( fileName.path() );
diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.h b/languages/cpp/app_templates/kdevlang/kdevlang_part.h
index d6d92ff6..234107bb 100644
--- a/languages/cpp/app_templates/kdevlang/kdevlang_part.h
+++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.h
@@ -18,8 +18,9 @@ class KAction;
class %{APPNAME}Part : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &);
+ %{APPNAME}Part(TQObject *tqparent, const char *name, const TQStringList &);
~%{APPNAME}Part();
protected:
virtual Features features();
diff --git a/languages/cpp/app_templates/kdevpart/globalconfig.cpp b/languages/cpp/app_templates/kdevpart/globalconfig.cpp
index cddf3e7e..54e56426 100644
--- a/languages/cpp/app_templates/kdevpart/globalconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart/globalconfig.cpp
@@ -3,8 +3,8 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
- : %{APPNAME}GlobalConfigBase(parent, name), m_part(part)
+%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *tqparent, const char *name)
+ : %{APPNAME}GlobalConfigBase(tqparent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/globalconfig.h b/languages/cpp/app_templates/kdevpart/globalconfig.h
index aea1cbea..f08bd1bd 100644
--- a/languages/cpp/app_templates/kdevpart/globalconfig.h
+++ b/languages/cpp/app_templates/kdevpart/globalconfig.h
@@ -9,8 +9,9 @@ class %{APPNAME}Part;
class %{APPNAME}GlobalConfig: public %{APPNAME}GlobalConfigBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
+ %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *tqparent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart/globalconfigbase.ui b/languages/cpp/app_templates/kdevpart/globalconfigbase.ui
index c16bd90d..7cba9a36 100644
--- a/languages/cpp/app_templates/kdevpart/globalconfigbase.ui
+++ b/languages/cpp/app_templates/kdevpart/globalconfigbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>%{APPNAME}GlobalConfigBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAME}GlobalConfigBase</cstring>
</property>
@@ -16,5 +16,5 @@
<string>%{APPNAME}</string>
</property>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
index 082549c4..96ddb6ca 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
@@ -28,8 +28,8 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
-%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &/*args*/)
- : KDevPlugin(&data, parent, name ? name : "%{APPNAME}Part")
+%{APPNAME}Part::%{APPNAME}Part(TQObject *tqparent, const char *name, const TQStringList &/*args*/)
+ : KDevPlugin(&data, tqparent, name ? name : "%{APPNAME}Part")
{
setInstance(%{APPNAME}Factory::instance());
setXMLFile("kdev%{APPNAMELC}.rc");
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.h b/languages/cpp/app_templates/kdevpart/kdevpart_part.h
index b73e61da..ddedde17 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_part.h
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.h
@@ -19,8 +19,9 @@ Please read the README.dox file for more info about this part
class %{APPNAME}Part: public KDevPlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &args);
+ %{APPNAME}Part(TQObject *tqparent, const char *name, const TQStringList &args);
~%{APPNAME}Part();
private slots:
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_widget.h b/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
index 308c3e7e..f7c0290f 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
@@ -8,9 +8,10 @@
class KDevProject;
class %{APPNAME}Part;
-class %{APPNAME}Widget: public QWidget
+class %{APPNAME}Widget: public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}Widget(%{APPNAME}Part *part);
~%{APPNAME}Widget();
diff --git a/languages/cpp/app_templates/kdevpart/projectconfig.cpp b/languages/cpp/app_templates/kdevpart/projectconfig.cpp
index 42a9f3e7..a3bc8b8c 100644
--- a/languages/cpp/app_templates/kdevpart/projectconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart/projectconfig.cpp
@@ -3,8 +3,8 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
- : %{APPNAME}ProjectConfigBase(parent, name), m_part(part)
+%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *tqparent, const char *name)
+ : %{APPNAME}ProjectConfigBase(tqparent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/projectconfig.h b/languages/cpp/app_templates/kdevpart/projectconfig.h
index 0ab0cb35..2d13ce14 100644
--- a/languages/cpp/app_templates/kdevpart/projectconfig.h
+++ b/languages/cpp/app_templates/kdevpart/projectconfig.h
@@ -9,8 +9,9 @@ class %{APPNAME}Part;
class %{APPNAME}ProjectConfig: public %{APPNAME}ProjectConfigBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
+ %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *tqparent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart/projectconfigbase.ui b/languages/cpp/app_templates/kdevpart/projectconfigbase.ui
index c733a774..140e8df4 100644
--- a/languages/cpp/app_templates/kdevpart/projectconfigbase.ui
+++ b/languages/cpp/app_templates/kdevpart/projectconfigbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>%{APPNAME}ProjectConfigBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAME}ProjectConfigBase</cstring>
</property>
@@ -16,5 +16,5 @@
<string>%{APPNAME}</string>
</property>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kdevpart2/globalconfig.cpp b/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
index cddf3e7e..54e56426 100644
--- a/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
@@ -3,8 +3,8 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
- : %{APPNAME}GlobalConfigBase(parent, name), m_part(part)
+%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *tqparent, const char *name)
+ : %{APPNAME}GlobalConfigBase(tqparent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/globalconfig.h b/languages/cpp/app_templates/kdevpart2/globalconfig.h
index aea1cbea..f08bd1bd 100644
--- a/languages/cpp/app_templates/kdevpart2/globalconfig.h
+++ b/languages/cpp/app_templates/kdevpart2/globalconfig.h
@@ -9,8 +9,9 @@ class %{APPNAME}Part;
class %{APPNAME}GlobalConfig: public %{APPNAME}GlobalConfigBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
+ %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *tqparent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart2/globalconfigbase.ui b/languages/cpp/app_templates/kdevpart2/globalconfigbase.ui
index c16bd90d..7cba9a36 100644
--- a/languages/cpp/app_templates/kdevpart2/globalconfigbase.ui
+++ b/languages/cpp/app_templates/kdevpart2/globalconfigbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>%{APPNAME}GlobalConfigBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAME}GlobalConfigBase</cstring>
</property>
@@ -16,5 +16,5 @@
<string>%{APPNAME}</string>
</property>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
index 082549c4..96ddb6ca 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
@@ -28,8 +28,8 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
-%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &/*args*/)
- : KDevPlugin(&data, parent, name ? name : "%{APPNAME}Part")
+%{APPNAME}Part::%{APPNAME}Part(TQObject *tqparent, const char *name, const TQStringList &/*args*/)
+ : KDevPlugin(&data, tqparent, name ? name : "%{APPNAME}Part")
{
setInstance(%{APPNAME}Factory::instance());
setXMLFile("kdev%{APPNAMELC}.rc");
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
index b73e61da..ddedde17 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
@@ -19,8 +19,9 @@ Please read the README.dox file for more info about this part
class %{APPNAME}Part: public KDevPlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &args);
+ %{APPNAME}Part(TQObject *tqparent, const char *name, const TQStringList &args);
~%{APPNAME}Part();
private slots:
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
index 308c3e7e..f7c0290f 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
@@ -8,9 +8,10 @@
class KDevProject;
class %{APPNAME}Part;
-class %{APPNAME}Widget: public QWidget
+class %{APPNAME}Widget: public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}Widget(%{APPNAME}Part *part);
~%{APPNAME}Widget();
diff --git a/languages/cpp/app_templates/kdevpart2/projectconfig.cpp b/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
index 42a9f3e7..a3bc8b8c 100644
--- a/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
@@ -3,8 +3,8 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
- : %{APPNAME}ProjectConfigBase(parent, name), m_part(part)
+%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *tqparent, const char *name)
+ : %{APPNAME}ProjectConfigBase(tqparent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/projectconfig.h b/languages/cpp/app_templates/kdevpart2/projectconfig.h
index 0ab0cb35..2d13ce14 100644
--- a/languages/cpp/app_templates/kdevpart2/projectconfig.h
+++ b/languages/cpp/app_templates/kdevpart2/projectconfig.h
@@ -9,8 +9,9 @@ class %{APPNAME}Part;
class %{APPNAME}ProjectConfig: public %{APPNAME}ProjectConfigBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
+ %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *tqparent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart2/projectconfigbase.ui b/languages/cpp/app_templates/kdevpart2/projectconfigbase.ui
index c733a774..140e8df4 100644
--- a/languages/cpp/app_templates/kdevpart2/projectconfigbase.ui
+++ b/languages/cpp/app_templates/kdevpart2/projectconfigbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>%{APPNAME}ProjectConfigBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAME}ProjectConfigBase</cstring>
</property>
@@ -16,5 +16,5 @@
<string>%{APPNAME}</string>
</property>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
index db259cb3..5ccbec50 100644
--- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
+++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
@@ -13,9 +13,9 @@ typedef KGenericFactory<%{APPNAME}Plugin> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAMELC}" ))
-%{APPNAME}Plugin::%{APPNAME}Plugin(TQObject *parent, const char *name,
+%{APPNAME}Plugin::%{APPNAME}Plugin(TQObject *tqparent, const char *name,
const TQStringList &args)
- : KFilePlugin(parent, name, args)
+ : KFilePlugin(tqparent, name, args)
{
//add the mimetype here - example:
//KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" );
diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
index 94776938..93303359 100644
--- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
+++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
@@ -13,9 +13,10 @@ class TQStringList;
class %{APPNAME}Plugin: public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Plugin( TQObject *parent, const char *name, const TQStringList& args );
+ %{APPNAME}Plugin( TQObject *tqparent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};
diff --git a/languages/cpp/app_templates/kfileplugin/src-Makefile.am b/languages/cpp/app_templates/kfileplugin/src-Makefile.am
index 48ac1c66..4bfee32a 100644
--- a/languages/cpp/app_templates/kfileplugin/src-Makefile.am
+++ b/languages/cpp/app_templates/kfileplugin/src-Makefile.am
@@ -11,12 +11,12 @@ kfile_%{APPNAMELC}_la_SOURCES = kfile_%{APPNAMELC}.cpp
kfile_%{APPNAMELC}_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
kfile_%{APPNAMELC}_la_LIBADD = $(LIB_KIO)
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
services_DATA = kfile_%{APPNAMELC}.desktop
servicesdir = $(kde_servicesdir)
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kfile_%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/khello/app.h b/languages/cpp/app_templates/khello/app.h
index 678df7a3..fd0ca00b 100644
--- a/languages/cpp/app_templates/khello/app.h
+++ b/languages/cpp/app_templates/khello/app.h
@@ -17,6 +17,7 @@
class %{APPNAME} : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/khello/src-Makefile.am b/languages/cpp/app_templates/khello/src-Makefile.am
index d9ac7c7a..820f292a 100644
--- a/languages/cpp/app_templates/khello/src-Makefile.am
+++ b/languages/cpp/app_templates/khello/src-Makefile.am
@@ -4,11 +4,11 @@ INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = %{APPNAMELC}.h
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
KDE_ICON = AUTO
diff --git a/languages/cpp/app_templates/khello2/app.h b/languages/cpp/app_templates/khello2/app.h
index 678df7a3..fd0ca00b 100644
--- a/languages/cpp/app_templates/khello2/app.h
+++ b/languages/cpp/app_templates/khello2/app.h
@@ -17,6 +17,7 @@
class %{APPNAME} : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/khello2/src-Makefile.am b/languages/cpp/app_templates/khello2/src-Makefile.am
index 4664fe84..7f9d7125 100644
--- a/languages/cpp/app_templates/khello2/src-Makefile.am
+++ b/languages/cpp/app_templates/khello2/src-Makefile.am
@@ -4,11 +4,11 @@ INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = %{APPNAMELC}.h
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
KDE_ICON = AUTO
diff --git a/languages/cpp/app_templates/khello2/widget.cpp b/languages/cpp/app_templates/khello2/widget.cpp
index 266e894f..40e2d2bb 100644
--- a/languages/cpp/app_templates/khello2/widget.cpp
+++ b/languages/cpp/app_templates/khello2/widget.cpp
@@ -4,8 +4,8 @@
#include "%{APPNAMELC}widget.h"
-%{APPNAME}Widget::%{APPNAME}Widget(TQWidget* parent, const char* name, WFlags fl)
- : %{APPNAME}WidgetBase(parent,name,fl)
+%{APPNAME}Widget::%{APPNAME}Widget(TQWidget* tqparent, const char* name, WFlags fl)
+ : %{APPNAME}WidgetBase(tqparent,name,fl)
{}
%{APPNAME}Widget::~%{APPNAME}Widget()
diff --git a/languages/cpp/app_templates/khello2/widget.h b/languages/cpp/app_templates/khello2/widget.h
index 50d7a721..3773456b 100644
--- a/languages/cpp/app_templates/khello2/widget.h
+++ b/languages/cpp/app_templates/khello2/widget.h
@@ -8,9 +8,10 @@
class %{APPNAME}Widget : public %{APPNAME}WidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Widget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}Widget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}Widget();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/app_templates/khello2/widgetbase.ui b/languages/cpp/app_templates/khello2/widgetbase.ui
index e6f5be3d..4540c922 100644
--- a/languages/cpp/app_templates/khello2/widgetbase.ui
+++ b/languages/cpp/app_templates/khello2/widgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>%{APPNAME}WidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAMELC}widgetbase</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton" row="1" column="0">
+ <widget class="TQPushButton" row="1" column="0">
<property name="name">
<cstring>button</cstring>
</property>
@@ -27,7 +27,7 @@
<string>Click Me!</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>label</cstring>
</property>
@@ -45,8 +45,8 @@
<slot>button_clicked()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>button_clicked()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kicker/applet.cpp b/languages/cpp/app_templates/kicker/applet.cpp
index 29ec3d1d..d609fa26 100644
--- a/languages/cpp/app_templates/kicker/applet.cpp
+++ b/languages/cpp/app_templates/kicker/applet.cpp
@@ -10,8 +10,8 @@
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name)
- : KPanelApplet(configFile, type, actions, parent, name)
+%{APPNAME}::%{APPNAME}(const TQString& configFile, Type type, int actions, TQWidget *tqparent, const char *name)
+ : KPanelApplet(configFile, type, actions, tqparent, name)
{
// Get the current application configuration handle
ksConfig = config();
@@ -62,11 +62,11 @@ void %{APPNAME}::resizeEvent(TQResizeEvent *e)
extern "C"
{
- KPanelApplet* init( TQWidget *parent, const TQString& configFile)
+ KPanelApplet* init( TQWidget *tqparent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}(configFile, KPanelApplet::Normal,
KPanelApplet::About | KPanelApplet::Help | KPanelApplet::Preferences,
- parent, "%{APPNAMELC}");
+ tqparent, "%{APPNAMELC}");
}
}
diff --git a/languages/cpp/app_templates/kicker/applet.h b/languages/cpp/app_templates/kicker/applet.h
index ba4d6cd4..b11b1aa9 100644
--- a/languages/cpp/app_templates/kicker/applet.h
+++ b/languages/cpp/app_templates/kicker/applet.h
@@ -15,6 +15,7 @@
class %{APPNAME} : public KPanelApplet
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -23,11 +24,11 @@ public:
* @param configFile The configFile handed over in the factory function.
* @param Type The applet @ref type().
* @param actions Standard RMB menu actions supported by the applet (see @ref action() ).
- * @param parent The pointer to the parent widget handed over in the factory function.
- * @param name A Qt object name for your applet.
+ * @param tqparent The pointer to the tqparent widget handed over in the factory function.
+ * @param name A TQt object name for your applet.
**/
%{APPNAME}(const TQString& configFile, Type t = Normal, int actions = 0,
- TQWidget *parent = 0, const char *name = 0);
+ TQWidget *tqparent = 0, const char *name = 0);
/** destructor */
~%{APPNAME}();
diff --git a/languages/cpp/app_templates/kicker/src-Makefile.am b/languages/cpp/app_templates/kicker/src-Makefile.am
index 424062d1..8a46f24d 100644
--- a/languages/cpp/app_templates/kicker/src-Makefile.am
+++ b/languages/cpp/app_templates/kicker/src-Makefile.am
@@ -11,5 +11,5 @@ kde_module_LTLIBRARIES = %{APPNAMELC}_panelapplet.la
%{APPNAMELC}dir = $(kde_datadir)/kicker/applets
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/kioslave/slave.cpp b/languages/cpp/app_templates/kioslave/slave.cpp
index c8dc5d81..ad5d7991 100644
--- a/languages/cpp/app_templates/kioslave/slave.cpp
+++ b/languages/cpp/app_templates/kioslave/slave.cpp
@@ -48,7 +48,7 @@ void kio_%{APPNAMELC}Protocol::get(const KURL& url )
int remotePort = url.port();
kdDebug() << "myURL: " << url.prettyURL() << endl;
- infoMessage(i18n("Looking for %1...").arg( remoteServer ) );
+ infoMessage(i18n("Looking for %1...").tqarg( remoteServer ) );
// Send the mimeType as soon as it is known
mimeType("text/plain");
// Send the data
diff --git a/languages/cpp/app_templates/kioslave/src-Makefile.am b/languages/cpp/app_templates/kioslave/src-Makefile.am
index 957ec330..b73354f1 100644
--- a/languages/cpp/app_templates/kioslave/src-Makefile.am
+++ b/languages/cpp/app_templates/kioslave/src-Makefile.am
@@ -10,5 +10,5 @@ protocol_DATA = %{APPNAMELC}.protocol
protocoldir = $(kde_servicesdir)
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kio_%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/kmake/mainview.ui b/languages/cpp/app_templates/kmake/mainview.ui
index fea02def..2aefef82 100644
--- a/languages/cpp/app_templates/kmake/mainview.ui
+++ b/languages/cpp/app_templates/kmake/mainview.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>MainView</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -35,7 +35,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>helloLabel</cstring>
</property>
@@ -45,7 +45,7 @@
<property name="scaledContents">
<bool>true</bool>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
@@ -69,8 +69,8 @@
<slot>slotHelloButtonClicked()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>slotHelloButtonClicked()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kmake/mainviewimp.cpp b/languages/cpp/app_templates/kmake/mainviewimp.cpp
index 8a0de706..5e953b0d 100644
--- a/languages/cpp/app_templates/kmake/mainviewimp.cpp
+++ b/languages/cpp/app_templates/kmake/mainviewimp.cpp
@@ -3,8 +3,8 @@
#include <tqlabel.h>
#include <klocale.h>
-MainViewImp::MainViewImp(TQWidget* parent, const char* name, WFlags fl)
-: MainView(parent,name,fl)
+MainViewImp::MainViewImp(TQWidget* tqparent, const char* name, WFlags fl)
+: MainView(tqparent,name,fl)
{
}
diff --git a/languages/cpp/app_templates/kmake/mainviewimp.h b/languages/cpp/app_templates/kmake/mainviewimp.h
index 190a26e3..1a8af0b8 100644
--- a/languages/cpp/app_templates/kmake/mainviewimp.h
+++ b/languages/cpp/app_templates/kmake/mainviewimp.h
@@ -6,9 +6,10 @@
class MainViewImp : public MainView
{
Q_OBJECT
+ TQ_OBJECT
public:
- MainViewImp(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ MainViewImp(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~MainViewImp();
public slots:
diff --git a/languages/cpp/app_templates/kofficepart/kopart_factory.cpp b/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
index 86287a3f..034e2fb3 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
@@ -23,8 +23,8 @@ extern "C"
KInstance* %{APPNAME}Factory::s_global = 0L;
KAboutData* %{APPNAME}Factory::s_aboutData = 0L;
-%{APPNAME}Factory::%{APPNAME}Factory( TQObject* parent, const char* name )
- : KoFactory( parent, name )
+%{APPNAME}Factory::%{APPNAME}Factory( TQObject* tqparent, const char* name )
+ : KoFactory( tqparent, name )
{
global();
}
@@ -37,14 +37,14 @@ KAboutData* %{APPNAME}Factory::s_aboutData = 0L;
s_global = 0L;
}
-KParts::Part* %{APPNAME}Factory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, const char* classname, const TQStringList & )
+KParts::Part* %{APPNAME}Factory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, TQObject* tqparent, const char* name, const char* classname, const TQStringList & )
{
// If classname is "KoDocument", our host is a koffice application
// otherwise, the host wants us as a simple part, so switch to readonly and single view.
bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 );
- // parentWidget and widgetName are used by KoDocument for the "readonly+singleView" case.
- %{APPNAME}Part *part = new %{APPNAME}Part( parentWidget, widgetName, parent, name, !bWantKoDocument );
+ // tqparentWidget and widgetName are used by KoDocument for the "readonly+singleView" case.
+ %{APPNAME}Part *part = new %{APPNAME}Part( tqparentWidget, widgetName, tqparent, name, !bWantKoDocument );
if ( !bWantKoDocument )
part->setReadWrite( false );
diff --git a/languages/cpp/app_templates/kofficepart/kopart_factory.h b/languages/cpp/app_templates/kofficepart/kopart_factory.h
index 58061af3..149b4b50 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_factory.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_factory.h
@@ -14,11 +14,12 @@ class KAboutData;
class %{APPNAME}Factory : public KoFactory
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Factory( TQObject* parent = 0, const char* name = 0 );
+ %{APPNAME}Factory( TQObject* tqparent = 0, const char* name = 0 );
~%{APPNAME}Factory();
- virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() );
+ virtual KParts::Part *createPartObject( TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject *tqparent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() );
static KInstance* global();
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.cpp b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
index c12b5fd7..389fb431 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
@@ -8,20 +8,20 @@
#include <tqpainter.h>
-%{APPNAME}Part::%{APPNAME}Part( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, bool singleViewMode )
- : KoDocument( parentWidget, widgetName, parent, name, singleViewMode )
+%{APPNAME}Part::%{APPNAME}Part( TQWidget *tqparentWidget, const char *widgetName, TQObject* tqparent, const char* name, bool singleViewMode )
+ : KoDocument( tqparentWidget, widgetName, tqparent, name, singleViewMode )
{
}
-bool %{APPNAME}Part::initDoc( InitDocFlags flags, TQWidget* parentWidget )
+bool %{APPNAME}Part::initDoc( InitDocFlags flags, TQWidget* tqparentWidget )
{
// If nothing is loaded, do initialize here
return TRUE;
}
-KoView* %{APPNAME}Part::createViewInstance( TQWidget* parent, const char* name )
+KoView* %{APPNAME}Part::createViewInstance( TQWidget* tqparent, const char* name )
{
- return new %{APPNAME}View( this, parent, name );
+ return new %{APPNAME}View( this, tqparent, name );
}
bool %{APPNAME}Part::loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles, const TQDomDocument & settings, KoStore* store )
@@ -32,13 +32,13 @@ bool %{APPNAME}Part::loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisS
bool %{APPNAME}Part::loadXML( TQIODevice *, const TQDomDocument & )
{
- /// @todo load the document from the QDomDocument
+ /// @todo load the document from the TQDomDocument
return true;
}
TQDomDocument %{APPNAME}Part::saveXML()
{
- /// @todo save the document into a QDomDocument
+ /// @todo save the document into a TQDomDocument
return TQDomDocument();
}
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.h b/languages/cpp/app_templates/kofficepart/kopart_part.h
index 95ebb3f6..0ec011ae 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.h
@@ -11,12 +11,13 @@
class %{APPNAME}Part : public KoDocument
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Part( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false );
+ %{APPNAME}Part( TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject* tqparent = 0, const char* name = 0, bool singleViewMode = false );
virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 );
- virtual bool initDoc( InitDocFlags flags, TQWidget* parentWidget = 0 );
+ virtual bool initDoc( InitDocFlags flags, TQWidget* tqparentWidget = 0 );
virtual bool loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles, const TQDomDocument & settings, KoStore* store );
virtual bool loadXML( TQIODevice *, const TQDomDocument & );
@@ -24,7 +25,7 @@ public:
virtual bool saveOasis( KoStore* store, KoXmlWriter* manifestWriter );
protected:
- virtual KoView* createViewInstance( TQWidget* parent, const char* name );
+ virtual KoView* createViewInstance( TQWidget* tqparent, const char* name );
};
#endif
diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.cpp b/languages/cpp/app_templates/kofficepart/kopart_view.cpp
index f32707a8..240251f9 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_view.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_view.cpp
@@ -13,8 +13,8 @@
#include <klocale.h>
#include <kdebug.h>
-%{APPNAME}View::%{APPNAME}View( %{APPNAME}Part* part, TQWidget* parent, const char* name )
- : KoView( part, parent, name )
+%{APPNAME}View::%{APPNAME}View( %{APPNAME}Part* part, TQWidget* tqparent, const char* name )
+ : KoView( part, tqparent, name )
{
setInstance( %{APPNAME}Factory::global() );
setXMLFile( "%{APPNAMELC}.rc" );
diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.h b/languages/cpp/app_templates/kofficepart/kopart_view.h
index 63f5127b..bcaac2e1 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_view.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_view.h
@@ -16,8 +16,9 @@ class %{APPNAME}Part;
class %{APPNAME}View : public KoView
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}View( %{APPNAME}Part* part, TQWidget* parent = 0, const char* name = 0 );
+ %{APPNAME}View( %{APPNAME}Part* part, TQWidget* tqparent = 0, const char* name = 0 );
protected slots:
void cut();
diff --git a/languages/cpp/app_templates/kofficepart/src-Makefile.am b/languages/cpp/app_templates/kofficepart/src-Makefile.am
index 19d38267..a0f702f6 100644
--- a/languages/cpp/app_templates/kofficepart/src-Makefile.am
+++ b/languages/cpp/app_templates/kofficepart/src-Makefile.am
@@ -37,5 +37,5 @@ rc_DATA = %{APPNAMELC}.rc
rcdir = $(kde_datadir)/%{APPNAMELC}
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp %{APPNAMELC}_aboutdata.h -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
index ae9a85a6..4f0d7557 100644
--- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
+++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
@@ -7,8 +7,8 @@
#include "%{APPNAMELC}.h"
#include "%{APPNAMELC}.moc"
-%{APPNAME}::%{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name):
- KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name)
+%{APPNAME}::%{APPNAME}(KInstance *inst,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName, const char* name):
+ KonqSidebarPlugin(inst,tqparent,widgetParent,desktopName,name)
{
widget=new TQLabel("Init Value",widgetParent);
}
diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
index 9599b530..b219619b 100644
--- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
+++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
@@ -14,18 +14,19 @@
class %{APPNAME} : public KonqSidebarPlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Construct a @ref KonqSidebarPlugin.
*
* @param inst The sidebar's kinstance class.
- * @param parent The sidebar internal button info class responsible for this plugin.
+ * @param tqparent The sidebar internal button info class responsible for this plugin.
* @param widgetParent The container which will contain the plugins widget.
* @param desktopName The filename of the configuration file.
- * @param name A Qt object name for your plugin.
+ * @param name A TQt object name for your plugin.
**/
- %{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name=0);
+ %{APPNAME}(KInstance *inst,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName, const char* name=0);
/** destructor */
~%{APPNAME}();
diff --git a/languages/cpp/app_templates/kpartapp/app.cpp b/languages/cpp/app_templates/kpartapp/app.cpp
index 3a8a2274..39bb7108 100644
--- a/languages/cpp/app_templates/kpartapp/app.cpp
+++ b/languages/cpp/app_templates/kpartapp/app.cpp
@@ -183,7 +183,7 @@ void %{APPNAME}::fileOpen()
// the Open shortcut is pressed (usually CTRL+O) or the Open toolbar
// button is clicked
KURL url =
- KFileDialog::getOpenURL( TQString::null, TQString::null, this );
+ KFileDialog::getOpenURL( TQString(), TQString(), this );
if (url.isEmpty() == false)
{
diff --git a/languages/cpp/app_templates/kpartapp/app.h b/languages/cpp/app_templates/kpartapp/app.h
index 25cd63bf..9bc577cb 100644
--- a/languages/cpp/app_templates/kpartapp/app.h
+++ b/languages/cpp/app_templates/kpartapp/app.h
@@ -22,6 +22,7 @@ class KToggleAction;
class %{APPNAME} : public KParts::MainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp
index 809d642a..45a8116a 100644
--- a/languages/cpp/app_templates/kpartapp/app_part.cpp
+++ b/languages/cpp/app_templates/kpartapp/app_part.cpp
@@ -12,15 +12,15 @@
#include <tqtextstream.h>
#include <tqmultilineedit.h>
-%{APPNAME}Part::%{APPNAME}Part( TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name )
- : KParts::ReadWritePart(parent, name)
+%{APPNAME}Part::%{APPNAME}Part( TQWidget *tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name )
+ : KParts::ReadWritePart(tqparent, name)
{
// we need an instance
setInstance( %{APPNAME}PartFactory::instance() );
// this should be your custom internal widget
- m_widget = new TQMultiLineEdit( parentWidget, widgetName );
+ m_widget = new TQMultiLineEdit( tqparentWidget, widgetName );
// notify the part that this is our internal widget
setWidget(m_widget);
@@ -74,7 +74,7 @@ void %{APPNAME}Part::setModified(bool modified)
else
save->setEnabled(false);
- // in any event, we want our parent to do it's thing
+ // in any event, we want our tqparent to do it's thing
ReadWritePart::setModified(modified);
}
@@ -86,7 +86,7 @@ bool %{APPNAME}Part::openFile()
return false;
// our example widget is text-based, so we use TQTextStream instead
- // of a raw QDataStream
+ // of a raw TQDataStream
TQTextStream stream(&file);
TQString str;
while (!stream.eof())
@@ -109,7 +109,7 @@ bool %{APPNAME}Part::saveFile()
if (isReadWrite() == false)
return false;
- // m_file is always local, so we use QFile
+ // m_file is always local, so we use TQFile
TQFile file(m_file);
if (file.open(IO_WriteOnly) == false)
return false;
@@ -164,12 +164,12 @@ KAboutData* %{APPNAME}PartFactory::s_about = 0L;
s_instance = 0L;
}
-KParts::Part* %{APPNAME}PartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name,
+KParts::Part* %{APPNAME}PartFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name,
const char *classname, const TQStringList &args )
{
// Create an instance of our Part
- %{APPNAME}Part* obj = new %{APPNAME}Part( parentWidget, widgetName, parent, name );
+ %{APPNAME}Part* obj = new %{APPNAME}Part( tqparentWidget, widgetName, tqparent, name );
// See if we are to be read-write or not
if (TQCString(classname) == "KParts::ReadOnlyPart")
diff --git a/languages/cpp/app_templates/kpartapp/app_part.h b/languages/cpp/app_templates/kpartapp/app_part.h
index 1ebc7825..8d5417ad 100644
--- a/languages/cpp/app_templates/kpartapp/app_part.h
+++ b/languages/cpp/app_templates/kpartapp/app_part.h
@@ -21,12 +21,13 @@ class TQMultiLineEdit;
class %{APPNAME}Part : public KParts::ReadWritePart
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}Part(TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name);
+ %{APPNAME}Part(TQWidget *tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name);
/**
* Destructor
@@ -70,11 +71,12 @@ class KAboutData;
class %{APPNAME}PartFactory : public KParts::Factory
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}PartFactory();
virtual ~%{APPNAME}PartFactory();
- virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name,
+ virtual KParts::Part* createPartObject( TQWidget *tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name,
const char *classname, const TQStringList &args );
static KInstance* instance();
diff --git a/languages/cpp/app_templates/kpartapp/src-Makefile.am b/languages/cpp/app_templates/kpartapp/src-Makefile.am
index 357e2d0b..9b1a14b4 100644
--- a/languages/cpp/app_templates/kpartapp/src-Makefile.am
+++ b/languages/cpp/app_templates/kpartapp/src-Makefile.am
@@ -4,11 +4,11 @@ INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = %{APPNAMELC}.h %{APPNAMELC}_part.h
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
KDE_ICON = AUTO
diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
index 61e3ca0e..dac6dc20 100644
--- a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
+++ b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
@@ -8,8 +8,8 @@
#include <klocale.h>
#include <kglobal.h>
-Plugin%{APPNAME}::Plugin%{APPNAME}( TQObject* parent, const char* name )
- : Plugin( parent, name )
+Plugin%{APPNAME}::Plugin%{APPNAME}( TQObject* tqparent, const char* name )
+ : Plugin( tqparent, name )
{
// Instantiate all of your actions here. These will appear in
// Konqueror's menu and toolbars.
@@ -27,7 +27,7 @@ void Plugin%{APPNAME}::slotAction()
// This plugin assumes KHTMLPart. If your plugin can handle more
// than this or a different Part than this, simply delete or
// change the following block.
- if ( !parent()->inherits("KHTMLPart") )
+ if ( !tqparent()->inherits("KHTMLPart") )
{
TQString title( i18n( "Cannot Translate Source" ) );
TQString text( i18n( "You cannot translate anything except web pages "
@@ -37,9 +37,9 @@ void Plugin%{APPNAME}::slotAction()
return;
}
- // Get a handle on our parent so we may get the necessary data for
+ // Get a handle on our tqparent so we may get the necessary data for
// processing
- KHTMLPart *part = dynamic_cast<KHTMLPart *>(parent());
+ KHTMLPart *part = dynamic_cast<KHTMLPart *>(tqparent());
// This plugin only uses the URL. You may use whatever data you
// need.
@@ -83,9 +83,9 @@ void Plugin%{APPNAME}::slotAction()
s_instance = 0;
}
-TQObject* %{APPNAME}Factory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
+TQObject* %{APPNAME}Factory::createObject( TQObject* tqparent, const char* name, const char*, const TQStringList & )
{
- return new Plugin%{APPNAME}( parent, name );
+ return new Plugin%{APPNAME}( tqparent, name );
}
KInstance *%{APPNAME}Factory::instance()
diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.h b/languages/cpp/app_templates/kpartplugin/plugin_app.h
index 7c7bfc0c..3d637d1b 100644
--- a/languages/cpp/app_templates/kpartplugin/plugin_app.h
+++ b/languages/cpp/app_templates/kpartplugin/plugin_app.h
@@ -8,8 +8,9 @@
class Plugin%{APPNAME} : public KParts::Plugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- Plugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
+ Plugin%{APPNAME}( TQObject* tqparent = 0, const char* name = 0 );
virtual ~Plugin%{APPNAME}();
public slots:
@@ -19,11 +20,12 @@ public slots:
class %{APPNAME}Factory : public KLibFactory
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}Factory();
virtual ~%{APPNAME}Factory();
- virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
+ virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0, const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() );
static KInstance* instance();
diff --git a/languages/cpp/app_templates/kpartplugin/src-Makefile.am b/languages/cpp/app_templates/kpartplugin/src-Makefile.am
index 52e29c09..81242777 100644
--- a/languages/cpp/app_templates/kpartplugin/src-Makefile.am
+++ b/languages/cpp/app_templates/kpartplugin/src-Makefile.am
@@ -18,5 +18,5 @@ pluginsdir = $(kde_datadir)/khtml/kpartplugins
plugins_DATA = plugin_%{APPNAMELC}.rc
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/kscons_kmdi/QUICKSTART b/languages/cpp/app_templates/kscons_kmdi/QUICKSTART
index ceaf1bda..0ba306bb 100644
--- a/languages/cpp/app_templates/kscons_kmdi/QUICKSTART
+++ b/languages/cpp/app_templates/kscons_kmdi/QUICKSTART
@@ -12,7 +12,7 @@ http://freehackers.org/~tnagy/bksys_manual.html
CONFIGURING AND COMPILING THE PROJECT(S)
SCONS TIPS
-MOC PROCESSING
+TQMOC PROCESSING
SCONS MINIMUM DISTRIBUTION
MORE TIPS
@@ -61,20 +61,20 @@ checkinstall --fstrans=no --nodoc scons install
To make scons run (much) faster, consult ./addons/README in bksys
------------------------------------------
-MOC PROCESSING
+TQMOC PROCESSING
In qt programs, when a header 'foo.h' contains a class that has
-signals and slots, then 'foo.h' must contain the macro Q_OBJECT
-in order to compile. foo_moc.cpp is usually generated, and is
-used to produce foo_moc.o which is linked with the
+Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT
+in order to compile. foo_tqmoc.cpp is usually generated, and is
+used to produce foo_tqmoc.o which is linked with the
program or the library.
-In kde programs, 'foo.moc' is generated instead of foo_moc.cpp,
+In kde programs, 'foo.tqmoc' is generated instead of foo_tqmoc.cpp,
and it must be included at the very end of foo.cpp
(add #include "foo.moc" : this increases the speed of
compilation a *lot* and makes less object files.
-Both modes are provided though, see test6-mocfiesta/
+Both modes are provided though, see test6-tqmocfiesta/
------------------------------------------
MINIMUM SCONS DISTRIBUTION
@@ -127,7 +127,7 @@ remember that libtool is broken on many systems (invalid flags
among others), so when you can work without libtool
(small projects especially), just do it.
-** moc processing **
+** tqmoc processing **
As stated above, you should always add #include "foo.moc"
for your qt classes (Q_OBJECT) to save precious compilation time.
diff --git a/languages/cpp/app_templates/kscons_kmdi/SConscript-src b/languages/cpp/app_templates/kscons_kmdi/SConscript-src
index 746cdf98..9850e2ae 100644
--- a/languages/cpp/app_templates/kscons_kmdi/SConscript-src
+++ b/languages/cpp/app_templates/kscons_kmdi/SConscript-src
@@ -1,6 +1,6 @@
#! /usr/bin/env python
## This script is a quick test to demonstrate (and test)
-## the bksys moc handling '#include "file.moc"' can be added .. or not
+## the bksys tqmoc handling '#include "file.moc"' can be added .. or not
##
## Thomas Nagy, 2005
## This file can be reused freely for any project (see COPYING)
diff --git a/languages/cpp/app_templates/kscons_kmdi/SConstruct b/languages/cpp/app_templates/kscons_kmdi/SConstruct
index b82de4e1..238a05b8 100644
--- a/languages/cpp/app_templates/kscons_kmdi/SConstruct
+++ b/languages/cpp/app_templates/kscons_kmdi/SConstruct
@@ -73,20 +73,20 @@ if 'dist' in COMMAND_LINE_TARGETS:
shutil.copytree(startdir, FOLDER)
## remove our object files first
- os.popen("find "+FOLDER+" -name \"*cache*\" | xargs rm -rf")
- os.popen("find "+FOLDER+" -name \"*.pyc\" | xargs rm -f")
+ os.popen("tqfind "+FOLDER+" -name \"*cache*\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \"*.pyc\" | xargs rm -f")
#os.popen("pushd %s && scons -c " % FOLDER) # TODO
## CVS cleanup
- os.popen("find "+FOLDER+" -name \"CVS\" | xargs rm -rf")
- os.popen("find "+FOLDER+" -name \".cvsignore\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \"CVS\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \".cvsignore\" | xargs rm -rf")
## Subversion cleanup
- os.popen("find %s -name .svn -type d | xargs rm -rf" % FOLDER)
+ os.popen("tqfind %s -name .svn -type d | xargs rm -rf" % FOLDER)
## GNU Arch cleanup
- os.popen("find "+FOLDER+" -name \"{arch}\" | xargs rm -rf")
- os.popen("find "+FOLDER+" -name \".arch-i*\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \"{arch}\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \".arch-i*\" | xargs rm -rf")
## Create the tarball (coloured output)
print "\033[92m"+"Writing archive "+ARCHIVE+"\033[0m"
@@ -105,7 +105,7 @@ if 'distclean' in COMMAND_LINE_TARGETS:
import os, shutil
if os.path.isdir(env['CACHEDIR']):
shutil.rmtree(env['CACHEDIR'])
- os.popen("find . -name \"*.pyc\" | xargs rm -rf")
+ os.popen("tqfind . -name \"*.pyc\" | xargs rm -rf")
env.Default(None)
env.Exit(0)
diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.cpp b/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
index a851f02a..1f27cee4 100644
--- a/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
@@ -17,15 +17,15 @@
typedef KParts::GenericFactory<%{APPNAMELC}Part> %{APPNAMELC}PartFactory;
K_EXPORT_COMPONENT_FACTORY( lib%{APPNAMELC}part, %{APPNAMELC}PartFactory );
-%{APPNAMELC}Part::%{APPNAMELC}Part( TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name, const TQStringList & /*args*/)
- : KParts::ReadWritePart(parent)
+%{APPNAMELC}Part::%{APPNAMELC}Part( TQWidget *tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name, const TQStringList & /*args*/)
+ : KParts::ReadWritePart(tqparent)
{
// we need an instance
setInstance( %{APPNAMELC}PartFactory::instance() );
// this should be your custom internal widget
- m_widget = new TQMultiLineEdit( parentWidget, widgetName );
+ m_widget = new TQMultiLineEdit( tqparentWidget, widgetName );
// notify the part that this is our internal widget
setWidget(m_widget);
@@ -88,7 +88,7 @@ void %{APPNAMELC}Part::setModified(bool modified)
else
save->setEnabled(false);
- // in any event, we want our parent to do it's thing
+ // in any event, we want our tqparent to do it's thing
ReadWritePart::setModified(modified);
}
@@ -100,7 +100,7 @@ bool %{APPNAMELC}Part::openFile()
return false;
// our example widget is text-based, so we use TQTextStream instead
- // of a raw QDataStream
+ // of a raw TQDataStream
TQTextStream stream(&file);
TQString str;
while (!stream.eof())
@@ -123,7 +123,7 @@ bool %{APPNAMELC}Part::saveFile()
if (isReadWrite() == false)
return false;
- // m_file is always local, so we use QFile
+ // m_file is always local, so we use TQFile
TQFile file(m_file);
if (file.open(IO_WriteOnly) == false)
return false;
diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.h b/languages/cpp/app_templates/kscons_kmdi/app_part.h
index 3fa9beb5..39509adf 100644
--- a/languages/cpp/app_templates/kscons_kmdi/app_part.h
+++ b/languages/cpp/app_templates/kscons_kmdi/app_part.h
@@ -23,12 +23,13 @@ class KAboutData;
class %{APPNAMELC}Part : public KParts::ReadWritePart
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAMELC}Part(TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name, const TQStringList & /*args*/);
+ %{APPNAMELC}Part(TQWidget *tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name, const TQStringList & /*args*/);
/**
* Destructor
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
index 4286053a..efb41c1d 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
@@ -4,7 +4,7 @@
#include <tqpainter.h>
#include <tqpaintdevicemetrics.h>
#include <tqdragobject.h>
-#include <tqstatusbar.h>
+#include <statusbar.h>
#include <tqtoolbutton.h>
#include <kdebug.h>
@@ -146,7 +146,7 @@ void %{APPNAMELC}kmdi::setupActions()
void %{APPNAMELC}kmdi::showTip()
{
- KTipDialog::showTip(this,TQString::null,true);
+ KTipDialog::showTip(this,TQString(),true);
}
void %{APPNAMELC}kmdi::showTipOnStart()
@@ -204,7 +204,7 @@ void %{APPNAMELC}kmdi::currentChanged( KMdiChildView *current )
}
// switch to the corresponding document
- if ( m_views.contains( (%{APPNAMELC}kmdiView*) current ) )
+ if ( m_views.tqcontains( (%{APPNAMELC}kmdiView*) current ) )
{
%{APPNAMELC}kmdiView *view = (%{APPNAMELC}kmdiView*) current;
//view->updateCaption();
@@ -243,7 +243,7 @@ bool %{APPNAMELC}kmdi::requestClose(KMdiChildView* v)
}
%{APPNAMELC}kmdiView *view = (%{APPNAMELC}kmdiView*) v;
- if ( m_views.contains( view ) )
+ if ( m_views.tqcontains( view ) )
{
m_views.remove( view );
if ( view->part()->queryClose() )
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h b/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
index 8e80ab29..ca78c895 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
@@ -28,6 +28,7 @@ class MiscProperties;
class %{APPNAMELC}kmdi : public KMdiMainFrm
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAMELC}kmdi( KMdi::MdiMode mode );
virtual ~%{APPNAMELC}kmdi();
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
index d7c00001..232d6b44 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
@@ -13,8 +13,8 @@
#include "%{APPNAMELC}kmdiView.h"
- %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( TQWidget *parentWidget, const char *name )
-: KMdiChildView( parentWidget, name )
+ %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( TQWidget *tqparentWidget, const char *name )
+: KMdiChildView( tqparentWidget, name )
{
m_part = NULL;
@@ -35,9 +35,9 @@
part()->widget()->setFocus();
setFocusProxy(part()->widget());
- TQBoxLayout* layout = new TQHBoxLayout(this, 0, -1, "kdissertviewlayout" );
+ TQBoxLayout* tqlayout = new TQHBoxLayout(this, 0, -1, "kdissertviewtqlayout" );
part()->widget()->reparent( this, TQPoint(0, 0) );
- layout->addWidget( part()->widget() );
+ tqlayout->addWidget( part()->widget() );
// connect( m_part, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(updateCaption()) );
}
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
index af05df48..31167035 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
@@ -15,8 +15,9 @@
class %{APPNAMELC}kmdiView : public KMdiChildView
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAMELC}kmdiView( TQWidget *parentWidget=0L, const char *name=0L );
+ %{APPNAMELC}kmdiView( TQWidget *tqparentWidget=0L, const char *name=0L );
virtual ~%{APPNAMELC}kmdiView();
KParts::ReadWritePart *part() { return m_part; }
diff --git a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
index 5bd6b949..d0c856ec 100644
--- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
@@ -12,7 +12,7 @@
#include "kmdikonsole.h"
-kmdikonsole::kmdikonsole(TQWidget *parent, const char *name) : TQVBox(parent, name)
+kmdikonsole::kmdikonsole(TQWidget *tqparent, const char *name) : TQVBox(tqparent, name)
{
m_haskonsole = false;
respawn();
diff --git a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
index ef5a2c1e..e97175c1 100644
--- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
+++ b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
@@ -5,12 +5,13 @@
#include <tqvbox.h>
-class kmdikonsole : public QVBox
+class kmdikonsole : public TQVBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- kmdikonsole( TQWidget* parent, const char* name=0);
+ kmdikonsole( TQWidget* tqparent, const char* name=0);
~kmdikonsole();
public slots:
diff --git a/languages/cpp/app_templates/kscons_kmdi/messages.sh b/languages/cpp/app_templates/kscons_kmdi/messages.sh
index a36f5c93..7df00263 100755
--- a/languages/cpp/app_templates/kscons_kmdi/messages.sh
+++ b/languages/cpp/app_templates/kscons_kmdi/messages.sh
@@ -34,14 +34,14 @@ fi
echo "extracting the strings"
# process the .ui and .rc files
-$EXTRACTRC `find $SRCDIR -iname *.rc` >> rc.cpp
-$EXTRACTRC `find $SRCDIR -iname *.ui` >> rc.cpp
+$EXTRACTRC `tqfind $SRCDIR -iname *.rc` >> rc.cpp
+$EXTRACTRC `tqfind $SRCDIR -iname *.ui` >> rc.cpp
echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > $SRCDIR/_translatorinfo.cpp
# process the tips - $SRCDIR is supposed to be where the tips are living
pushd $TIPSDIR; preparetips >tips.cpp; popd
-$XGETTEXT `find $SRCDIR -name "*.cpp"` -o kdissert.pot
+$XGETTEXT `tqfind $SRCDIR -name "*.cpp"` -o kdissert.pot
# remove the intermediate files
rm -f $TIPSDIR/tips.cpp
diff --git a/languages/cpp/app_templates/kscons_kmdi/prefs.ui b/languages/cpp/app_templates/kscons_kmdi/prefs.ui
index 5de638ef..8b3346de 100644
--- a/languages/cpp/app_templates/kscons_kmdi/prefs.ui
+++ b/languages/cpp/app_templates/kscons_kmdi/prefs.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>prefs</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>prefs</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
-<widget class="QCheckBox" row="0" column="0">
+<widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>kcfg_showCloseTabsButton</cstring>
</property>
@@ -26,5 +26,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kscons_kxt/QUICKSTART b/languages/cpp/app_templates/kscons_kxt/QUICKSTART
index ceaf1bda..0ba306bb 100644
--- a/languages/cpp/app_templates/kscons_kxt/QUICKSTART
+++ b/languages/cpp/app_templates/kscons_kxt/QUICKSTART
@@ -12,7 +12,7 @@ http://freehackers.org/~tnagy/bksys_manual.html
CONFIGURING AND COMPILING THE PROJECT(S)
SCONS TIPS
-MOC PROCESSING
+TQMOC PROCESSING
SCONS MINIMUM DISTRIBUTION
MORE TIPS
@@ -61,20 +61,20 @@ checkinstall --fstrans=no --nodoc scons install
To make scons run (much) faster, consult ./addons/README in bksys
------------------------------------------
-MOC PROCESSING
+TQMOC PROCESSING
In qt programs, when a header 'foo.h' contains a class that has
-signals and slots, then 'foo.h' must contain the macro Q_OBJECT
-in order to compile. foo_moc.cpp is usually generated, and is
-used to produce foo_moc.o which is linked with the
+Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT
+in order to compile. foo_tqmoc.cpp is usually generated, and is
+used to produce foo_tqmoc.o which is linked with the
program or the library.
-In kde programs, 'foo.moc' is generated instead of foo_moc.cpp,
+In kde programs, 'foo.tqmoc' is generated instead of foo_tqmoc.cpp,
and it must be included at the very end of foo.cpp
(add #include "foo.moc" : this increases the speed of
compilation a *lot* and makes less object files.
-Both modes are provided though, see test6-mocfiesta/
+Both modes are provided though, see test6-tqmocfiesta/
------------------------------------------
MINIMUM SCONS DISTRIBUTION
@@ -127,7 +127,7 @@ remember that libtool is broken on many systems (invalid flags
among others), so when you can work without libtool
(small projects especially), just do it.
-** moc processing **
+** tqmoc processing **
As stated above, you should always add #include "foo.moc"
for your qt classes (Q_OBJECT) to save precious compilation time.
diff --git a/languages/cpp/app_templates/kscons_kxt/SConscript-src b/languages/cpp/app_templates/kscons_kxt/SConscript-src
index 02432be5..bc91cc0b 100644
--- a/languages/cpp/app_templates/kscons_kxt/SConscript-src
+++ b/languages/cpp/app_templates/kscons_kxt/SConscript-src
@@ -33,7 +33,7 @@ myenv.KDEprogram( "%{APPNAMELC}", %{APPNAMELC}_sources )
## Customization
## Additional include paths for compiling the source files
-## Always add '../' (top-level directory) because moc makes code that needs it
+## Always add '../' (top-level directory) because tqmoc makes code that needs it
myenv.KDEaddpaths_includes( "./ ../" )
## Necessary libraries to link against
diff --git a/languages/cpp/app_templates/kscons_kxt/SConstruct b/languages/cpp/app_templates/kscons_kxt/SConstruct
index b82de4e1..238a05b8 100644
--- a/languages/cpp/app_templates/kscons_kxt/SConstruct
+++ b/languages/cpp/app_templates/kscons_kxt/SConstruct
@@ -73,20 +73,20 @@ if 'dist' in COMMAND_LINE_TARGETS:
shutil.copytree(startdir, FOLDER)
## remove our object files first
- os.popen("find "+FOLDER+" -name \"*cache*\" | xargs rm -rf")
- os.popen("find "+FOLDER+" -name \"*.pyc\" | xargs rm -f")
+ os.popen("tqfind "+FOLDER+" -name \"*cache*\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \"*.pyc\" | xargs rm -f")
#os.popen("pushd %s && scons -c " % FOLDER) # TODO
## CVS cleanup
- os.popen("find "+FOLDER+" -name \"CVS\" | xargs rm -rf")
- os.popen("find "+FOLDER+" -name \".cvsignore\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \"CVS\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \".cvsignore\" | xargs rm -rf")
## Subversion cleanup
- os.popen("find %s -name .svn -type d | xargs rm -rf" % FOLDER)
+ os.popen("tqfind %s -name .svn -type d | xargs rm -rf" % FOLDER)
## GNU Arch cleanup
- os.popen("find "+FOLDER+" -name \"{arch}\" | xargs rm -rf")
- os.popen("find "+FOLDER+" -name \".arch-i*\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \"{arch}\" | xargs rm -rf")
+ os.popen("tqfind "+FOLDER+" -name \".arch-i*\" | xargs rm -rf")
## Create the tarball (coloured output)
print "\033[92m"+"Writing archive "+ARCHIVE+"\033[0m"
@@ -105,7 +105,7 @@ if 'distclean' in COMMAND_LINE_TARGETS:
import os, shutil
if os.path.isdir(env['CACHEDIR']):
shutil.rmtree(env['CACHEDIR'])
- os.popen("find . -name \"*.pyc\" | xargs rm -rf")
+ os.popen("tqfind . -name \"*.pyc\" | xargs rm -rf")
env.Default(None)
env.Exit(0)
diff --git a/languages/cpp/app_templates/kscons_kxt/app.cpp b/languages/cpp/app_templates/kscons_kxt/app.cpp
index 2a696ea0..ec892c11 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.cpp
+++ b/languages/cpp/app_templates/kscons_kxt/app.cpp
@@ -158,7 +158,7 @@ void %{APPNAME}::changeCaption(const TQString& text)
void %{APPNAME}::showTip()
{
- KTipDialog::showTip(this,TQString::null,true);
+ KTipDialog::showTip(this,TQString(),true);
}
void %{APPNAME}::showTipOnStart()
diff --git a/languages/cpp/app_templates/kscons_kxt/app.h b/languages/cpp/app_templates/kscons_kxt/app.h
index e812716d..afc6d642 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.h
+++ b/languages/cpp/app_templates/kscons_kxt/app.h
@@ -29,6 +29,7 @@ class %{APPNAME} : public KMainWindow, public DCOPObject
{
K_DCOP
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.cpp b/languages/cpp/app_templates/kscons_kxt/appview.cpp
index 2bcc9c6a..a474e605 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.cpp
+++ b/languages/cpp/app_templates/kscons_kxt/appview.cpp
@@ -6,8 +6,8 @@
#include <klocale.h>
#include <tqlabel.h>
-%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
- : %{APPNAME}view_base(parent)
+%{APPNAME}View::%{APPNAME}View(TQWidget *tqparent)
+ : %{APPNAME}view_base(tqparent)
{
settingsChanged();
}
@@ -33,7 +33,7 @@ void %{APPNAME}View::settingsChanged()
sillyLabel->setPaletteForegroundColor( Settings::col_foreground() );
// i18n : internationalization
- sillyLabel->setText( i18n("This project is %1 days old").arg(Settings::val_time()) );
+ sillyLabel->setText( i18n("This project is %1 days old").tqarg(Settings::val_time()) );
emit signalChangeStatusbar( i18n("Settings changed") );
}
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.h b/languages/cpp/app_templates/kscons_kxt/appview.h
index 8cd02bef..8d4517bd 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.h
+++ b/languages/cpp/app_templates/kscons_kxt/appview.h
@@ -22,11 +22,12 @@ class KURL;
class %{APPNAME}View : public %{APPNAME}view_base
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}View(TQWidget *parent);
+ %{APPNAME}View(TQWidget *tqparent);
/**
* Destructor
diff --git a/languages/cpp/app_templates/kscons_kxt/appview_base.ui b/languages/cpp/app_templates/kscons_kxt/appview_base.ui
index 6cd36d2c..4604ca4b 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview_base.ui
+++ b/languages/cpp/app_templates/kscons_kxt/appview_base.ui
@@ -2,7 +2,7 @@
<class>%{APPNAME}view_base</class>
<comment>%{CPP_TEMPLATE}</comment>
<author>%{AUTHOR} &lt;%{EMAIL}&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAME}view_base</cstring>
</property>
@@ -21,7 +21,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>sillyLabel</cstring>
</property>
@@ -31,5 +31,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kscons_kxt/messages.sh b/languages/cpp/app_templates/kscons_kxt/messages.sh
index a36f5c93..7df00263 100755
--- a/languages/cpp/app_templates/kscons_kxt/messages.sh
+++ b/languages/cpp/app_templates/kscons_kxt/messages.sh
@@ -34,14 +34,14 @@ fi
echo "extracting the strings"
# process the .ui and .rc files
-$EXTRACTRC `find $SRCDIR -iname *.rc` >> rc.cpp
-$EXTRACTRC `find $SRCDIR -iname *.ui` >> rc.cpp
+$EXTRACTRC `tqfind $SRCDIR -iname *.rc` >> rc.cpp
+$EXTRACTRC `tqfind $SRCDIR -iname *.ui` >> rc.cpp
echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > $SRCDIR/_translatorinfo.cpp
# process the tips - $SRCDIR is supposed to be where the tips are living
pushd $TIPSDIR; preparetips >tips.cpp; popd
-$XGETTEXT `find $SRCDIR -name "*.cpp"` -o kdissert.pot
+$XGETTEXT `tqfind $SRCDIR -name "*.cpp"` -o kdissert.pot
# remove the intermediate files
rm -f $TIPSDIR/tips.cpp
diff --git a/languages/cpp/app_templates/kscons_kxt/prefs-base.ui b/languages/cpp/app_templates/kscons_kxt/prefs-base.ui
index 43ef8a5f..59403c40 100644
--- a/languages/cpp/app_templates/kscons_kxt/prefs-base.ui
+++ b/languages/cpp/app_templates/kscons_kxt/prefs-base.ui
@@ -2,7 +2,7 @@
<class>Prefs_base</class>
<comment>%{CPP_TEMPLATE}</comment>
<author>%{AUTHOR} &lt;%{EMAIL}&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Prefs_base</cstring>
</property>
@@ -18,7 +18,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -34,7 +34,7 @@
<string></string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -42,7 +42,7 @@
<string>Project age:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -68,7 +68,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -85,14 +85,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QSpinBox" row="2" column="1">
+ <widget class="TQSpinBox" row="2" column="1">
<property name="name">
<cstring>kcfg_val_time</cstring>
</property>
@@ -113,7 +113,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -122,7 +122,7 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
</includehints>
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
index efdbf40b..855fb657 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
@@ -33,8 +33,8 @@ extern "C"
//-----------------------------------------------------------------------------
//! dialog to setup screen saver parameters
-%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name )
- : %{APPNAME}UI( parent, name, TRUE )
+%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *tqparent, const char *name )
+ : %{APPNAME}UI( tqparent, name, TRUE )
{
/// @todo
//Connect your signals and slots here to configure the screen saver.
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.h b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
index a5d252a5..c8511d34 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.h
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
@@ -9,6 +9,7 @@
class %{APPNAME} : public KScreenSaver
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}( WId drawable );
virtual ~%{APPNAME}();
@@ -20,8 +21,9 @@ private:
class %{APPNAME}Setup : public %{APPNAME}UI
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL );
+ %{APPNAME}Setup( TQWidget *tqparent = NULL, const char *name = NULL );
private slots:
void slotOkPressed();
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui b/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui
index c4a843d0..da84ab28 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui
@@ -2,7 +2,7 @@
<class>%{APPNAME}UI</class>
<comment>This is the main UI for setting up your screen saver.</comment>
<author>Ian Reinhart Geiser</author>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>%{APPNAMELC}cfg</cstring>
</property>
@@ -17,7 +17,7 @@
<property name="caption">
<string>Screen Saver Config</string>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout2</cstring>
</property>
@@ -33,7 +33,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>CheckBox1</cstring>
</property>
@@ -41,7 +41,7 @@
<string>Set some setting</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -50,7 +50,7 @@
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>OkayPushButton</cstring>
</property>
@@ -58,7 +58,7 @@
<string>&amp;OK</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>CancelPushButton</cstring>
</property>
@@ -74,6 +74,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/cpp/app_templates/kscreensaver/src-Makefile.am b/languages/cpp/app_templates/kscreensaver/src-Makefile.am
index e19ffb77..e11ec0dc 100644
--- a/languages/cpp/app_templates/kscreensaver/src-Makefile.am
+++ b/languages/cpp/app_templates/kscreensaver/src-Makefile.am
@@ -20,5 +20,5 @@ desktopdir = $(kde_appsdir)/System/ScreenSavers
EXTRA_DIST = $(desktop_DATA)
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/kxt/app.h b/languages/cpp/app_templates/kxt/app.h
index 09f031c4..6ed2ab3d 100644
--- a/languages/cpp/app_templates/kxt/app.h
+++ b/languages/cpp/app_templates/kxt/app.h
@@ -27,6 +27,7 @@ class KURL;
class %{APPNAMELC} : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
diff --git a/languages/cpp/app_templates/kxt/appview.cpp b/languages/cpp/app_templates/kxt/appview.cpp
index 30d627fe..0c82dd25 100644
--- a/languages/cpp/app_templates/kxt/appview.cpp
+++ b/languages/cpp/app_templates/kxt/appview.cpp
@@ -6,8 +6,8 @@
#include <klocale.h>
#include <tqlabel.h>
-%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent)
- : %{APPNAMELC}view_base(parent)
+%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *tqparent)
+ : %{APPNAMELC}view_base(tqparent)
{
settingsChanged();
}
@@ -33,7 +33,7 @@ void %{APPNAMELC}View::settingsChanged()
sillyLabel->setPaletteForegroundColor( Settings::col_foreground() );
// i18n : internationalization
- sillyLabel->setText( i18n("This project is %1 days old").arg(Settings::val_time()) );
+ sillyLabel->setText( i18n("This project is %1 days old").tqarg(Settings::val_time()) );
emit signalChangeStatusbar( i18n("Settings changed") );
}
diff --git a/languages/cpp/app_templates/kxt/appview.h b/languages/cpp/app_templates/kxt/appview.h
index e0738ebe..897072a6 100644
--- a/languages/cpp/app_templates/kxt/appview.h
+++ b/languages/cpp/app_templates/kxt/appview.h
@@ -22,11 +22,12 @@ class KURL;
class %{APPNAMELC}View : public %{APPNAMELC}view_base
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAMELC}View(TQWidget *parent);
+ %{APPNAMELC}View(TQWidget *tqparent);
/**
* Destructor
diff --git a/languages/cpp/app_templates/kxt/appview_base.ui b/languages/cpp/app_templates/kxt/appview_base.ui
index 626d95df..5852f806 100644
--- a/languages/cpp/app_templates/kxt/appview_base.ui
+++ b/languages/cpp/app_templates/kxt/appview_base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>%{APPNAMELC}view_base</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAMELC}view_base</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
-<widget class="QLabel" row="0" column="0">
+<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>sillyLabel</cstring>
</property>
@@ -29,5 +29,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/kxt/prefs-base.ui b/languages/cpp/app_templates/kxt/prefs-base.ui
index 5c0fc860..8c8b9012 100644
--- a/languages/cpp/app_templates/kxt/prefs-base.ui
+++ b/languages/cpp/app_templates/kxt/prefs-base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>Prefs_base</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Prefs_base</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -32,7 +32,7 @@
<string></string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -40,7 +40,7 @@
<string>Project age:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -66,7 +66,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -83,14 +83,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QSpinBox" row="2" column="1">
+ <widget class="TQSpinBox" row="2" column="1">
<property name="name">
<cstring>kcfg_val_time</cstring>
</property>
@@ -111,7 +111,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -120,7 +120,7 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
</includehints>
diff --git a/languages/cpp/app_templates/kxt/src-Makefile.am b/languages/cpp/app_templates/kxt/src-Makefile.am
index 5f7936da..2a04da7e 100644
--- a/languages/cpp/app_templates/kxt/src-Makefile.am
+++ b/languages/cpp/app_templates/kxt/src-Makefile.am
@@ -7,7 +7,7 @@ bin_PROGRAMS = %{APPNAMELC}
# set the include path for X, qt and KDE
INCLUDES = $(all_includes)
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
# the library search path.
@@ -27,7 +27,7 @@ kde_kcfg_DATA = %{APPNAMELC}.kcfg
noinst_HEADERS = %{APPNAMELC}.h %{APPNAMELC}view.h prefs.h
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot
KDE_ICON = AUTO
diff --git a/languages/cpp/app_templates/noatunui/plugin_impl.cpp b/languages/cpp/app_templates/noatunui/plugin_impl.cpp
index 7f4cda15..508f7cc9 100644
--- a/languages/cpp/app_templates/noatunui/plugin_impl.cpp
+++ b/languages/cpp/app_templates/noatunui/plugin_impl.cpp
@@ -74,9 +74,9 @@
connect(mPopup, TQT_SIGNAL(clicked()), TQT_SLOT(popup()));
- mVolume=new L33tSlider(0,100,10,0, Horizontal, this);
+ mVolume=new L33tSlider(0,100,10,0,Qt::Horizontal, this);
mVolume->setValue(napp->player()->volume());
- mSeeker=new L33tSlider(0,1000,10,0, Horizontal, this);
+ mSeeker=new L33tSlider(0,1000,10,0,Qt::Horizontal, this);
mStatusBar=new KStatusBar(this);
@@ -86,7 +86,7 @@
l->addWidget(mStop,0,1);
l->addWidget(mPlay,0,2);
l->addWidget(mForward,0,3);
- l->addWidget(mPlaylist,0,4, Qt::AlignLeft);
+ l->addWidget(mPlaylist,0,4, TQt::AlignLeft);
l->addWidget(mLoop,0,5);
l->addWidget(mPopup,0,6);
l->addColSpacing(4, buttonSize+8);
@@ -124,7 +124,7 @@
connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(playlistHidden()));
// Event Filter for the RMB
- for (TQPtrListIterator<TQObject> i(*children()); i.current(); ++i)
+ for (TQPtrListIterator<TQObject> i(*tqchildren()); i.current(); ++i)
(*i)->installEventFilter(this);
setCaption("Noatun");
@@ -132,7 +132,7 @@
show();
// What it is now, stay.
- setFixedSize(minimumSize());
+ setFixedSize(tqminimumSize());
}
%{APPNAME}UI::~%{APPNAME}UI()
@@ -189,7 +189,7 @@ void %{APPNAME}UI::changeCaption(const TQString& text)
void %{APPNAME}UI::popup()
{
NoatunStdAction::ContextMenu::showContextMenu(
- mapToGlobal(mPopup->geometry().bottomLeft()) );
+ mapToGlobal(mPopup->tqgeometry().bottomLeft()) );
}
void %{APPNAME}UI::slotPlaying()
diff --git a/languages/cpp/app_templates/noatunui/plugin_impl.h b/languages/cpp/app_templates/noatunui/plugin_impl.h
index 476530f2..498864c6 100644
--- a/languages/cpp/app_templates/noatunui/plugin_impl.h
+++ b/languages/cpp/app_templates/noatunui/plugin_impl.h
@@ -26,6 +26,7 @@ class KStatusBar;
class %{APPNAME}UI : public TQWidget, public UserInterface
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}UI();
virtual ~%{APPNAME}UI();
diff --git a/languages/cpp/app_templates/noatunui/src-Makefile.am b/languages/cpp/app_templates/noatunui/src-Makefile.am
index 95506569..f7c7b349 100644
--- a/languages/cpp/app_templates/noatunui/src-Makefile.am
+++ b/languages/cpp/app_templates/noatunui/src-Makefile.am
@@ -20,5 +20,5 @@ plugins_DATA = %{APPNAMELC}.plugin
# kde_services_DATA = %{APPNAMELC}.desktop
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp *.h -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp b/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp
index a25f1fd2..f84a4fd3 100644
--- a/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp
+++ b/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp
@@ -117,7 +117,7 @@ void Bitmap<Type>::fadeStar()
d++;
x++;
}
- repaint();
+ tqrepaint();
}
}
@@ -211,7 +211,7 @@ void %{APPNAME}View::checkInput()
}
break;
- case SDL_QUIT:
+ case SDL_TQUIT:
exit(0);
break;
}
@@ -220,7 +220,7 @@ void %{APPNAME}View::checkInput()
#define output2 ((unsigned char*)outputBmp.data)
-void %{APPNAME}View::repaint()
+void %{APPNAME}View::tqrepaint()
{
SDL_LockSurface(surface);
TEST();
diff --git a/languages/cpp/app_templates/noatunvisual/plugin_impl.h b/languages/cpp/app_templates/noatunvisual/plugin_impl.h
index 2a7de7b1..a95845c9 100644
--- a/languages/cpp/app_templates/noatunvisual/plugin_impl.h
+++ b/languages/cpp/app_templates/noatunvisual/plugin_impl.h
@@ -58,7 +58,7 @@ protected:
void setupPalette(double dummy=0.0);
/** Draw everything. */
- void repaint();
+ void tqrepaint();
private:
/** used for pipelining */
diff --git a/languages/cpp/app_templates/noatunvisual/src-Makefile.am b/languages/cpp/app_templates/noatunvisual/src-Makefile.am
index 207fd8a8..8f649499 100644
--- a/languages/cpp/app_templates/noatunvisual/src-Makefile.am
+++ b/languages/cpp/app_templates/noatunvisual/src-Makefile.am
@@ -15,5 +15,5 @@ plugins_DATA = %{APPNAMELC}.plugin
# kde_services_DATA = %{APPNAMELC}.desktop
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp *.h -o $(podir)/%{APPNAMELC}.pot
diff --git a/languages/cpp/app_templates/opieapp/app.pro b/languages/cpp/app_templates/opieapp/app.pro
index f4111696..74323c7c 100644
--- a/languages/cpp/app_templates/opieapp/app.pro
+++ b/languages/cpp/app_templates/opieapp/app.pro
@@ -9,8 +9,8 @@ QMAKE_LIBDIR = $(OPIEDIR)/lib
OPIE-SPEC=6
QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
-contains( TEMPLATE, quick-template ){
- contains( QUICK_SPEC_FOO, quick-app-lib ){
+tqcontains( TEMPLATE, quick-template ){
+ tqcontains( QUICK_SPEC_FOO, quick-app-lib ){
message( "foo" )
system( rm $$TARGET )
system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET)
diff --git a/languages/cpp/app_templates/opieapp/example.cpp b/languages/cpp/app_templates/opieapp/example.cpp
index ebb4233c..6636116e 100644
--- a/languages/cpp/app_templates/opieapp/example.cpp
+++ b/languages/cpp/app_templates/opieapp/example.cpp
@@ -6,11 +6,11 @@ typedef OApplicationFactory<%{APPNAME}> %{APPNAME}Factory;
OPIE_EXPORT_APP( %{APPNAME}Factory )
/*
- * Constructs a %{APPNAME} which is a child of 'parent', with the
+ * Constructs a %{APPNAME} which is a child of 'tqparent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( TQWidget* parent, const char* name, WFlags fl )
- : %{APPNAME}Base( parent, name, fl )
+%{APPNAME}::%{APPNAME}( TQWidget* tqparent, const char* name, WFlags fl )
+ : %{APPNAME}Base( tqparent, name, fl )
{
connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
@@ -20,7 +20,7 @@ OPIE_EXPORT_APP( %{APPNAME}Factory )
*/
%{APPNAME}::~%{APPNAME}()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
/*
diff --git a/languages/cpp/app_templates/opieapp/example.h b/languages/cpp/app_templates/opieapp/example.h
index 2a9c9efa..0a8320c9 100644
--- a/languages/cpp/app_templates/opieapp/example.h
+++ b/languages/cpp/app_templates/opieapp/example.h
@@ -5,12 +5,13 @@
class %{APPNAME} : public %{APPNAME}Base
{
Q_OBJECT
+ TQ_OBJECT
public:
static TQString appName() {
- return TQString::fromLatin1("%{APPNAMELC}" );
+ return TQString::tqfromLatin1("%{APPNAMELC}" );
}
- %{APPNAME}( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}();
private slots:
diff --git a/languages/cpp/app_templates/opieapp/examplebase.ui b/languages/cpp/app_templates/opieapp/examplebase.ui
index b6b81b11..1243c341 100644
--- a/languages/cpp/app_templates/opieapp/examplebase.ui
+++ b/languages/cpp/app_templates/opieapp/examplebase.ui
@@ -7,7 +7,7 @@
<cstring>%{APPNAME}Base</cstring>
</property>
<property stdset="1">
- <name>geometry</name>
+ <name>tqgeometry</name>
<rect>
<x>0</x>
<y>0</y>
@@ -45,5 +45,5 @@
</widget>
</vbox>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/opieapplet/app.pro b/languages/cpp/app_templates/opieapplet/app.pro
index e1cc1e3b..696082d0 100644
--- a/languages/cpp/app_templates/opieapplet/app.pro
+++ b/languages/cpp/app_templates/opieapplet/app.pro
@@ -6,8 +6,8 @@ TARGET = %{APPNAMELC}
QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
-contains( TEMPLATE, quick-template ){
- contains( QUICK_SPEC_FOO, quick-app-lib ){
+tqcontains( TEMPLATE, quick-template ){
+ tqcontains( QUICK_SPEC_FOO, quick-app-lib ){
message( "foo" )
system( rm $$TARGET )
system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET)
diff --git a/languages/cpp/app_templates/opieapplet/simpleimpl.cpp b/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
index 3264314c..cc2a6a17 100644
--- a/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
@@ -2,14 +2,14 @@
#include <tqpainter.h>
#include <tqmessagebox.h>
-#include <qpe/applnk.h> // for AppLnk
-#include <qpe/resource.h> // for Resource loading
+#include <tqpe/applnk.h> // for AppLnk
+#include <tqpe/resource.h> // for Resource loading
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(TQWidget *parent)
- : TQWidget( parent, "%{APPNAME} Applet" ) {
+%{APPNAME}::%{APPNAME}(TQWidget *tqparent)
+ : TQWidget( tqparent, "%{APPNAME} Applet" ) {
/*
* we will load an Image, scale it for the right usage
* remember your applet might be used by different
@@ -79,7 +79,7 @@ void %{APPNAME}::paintEvent( TQPaintEvent* ) {
%{APPNAME}Impl::~%{APPNAME}Impl() {
/*
* we will delete our applets as well
- * setAUtoDelete makes the QList free
+ * setAUtoDelete makes the TQList free
* the objects behind the pointers
*/
m_applets.setAutoDelete( true );
@@ -89,12 +89,12 @@ void %{APPNAME}::paintEvent( TQPaintEvent* ) {
/*
* For the taskbar interface return a Widget
*/
-TQWidget* %{APPNAME}Impl::applet( TQWidget* parent ) {
+TQWidget* %{APPNAME}Impl::applet( TQWidget* tqparent ) {
/*
* There are problems with ownership. So we add
* our ownlist and clear this;
*/
- %{APPNAME}* ap = new %{APPNAME}( parent );
+ %{APPNAME}* ap = new %{APPNAME}( tqparent );
m_applets.append( ap );
return ap;
@@ -109,12 +109,12 @@ int %{APPNAME}Impl::position()const {
/*
- * Now the important QUnkownInterface method without
+ * Now the important TQUnkownInterface method without
* this one your applet won't load
* @param uuid The uuid of the interface
* @param iface The pointer to the interface ptr
*/
-QRESULT %{APPNAME}Impl::queryInterface( const QUuid& uuid, QUnknownInterface** iface) {
+TQRESULT %{APPNAME}Impl::queryInterface( const TQUuid& uuid, TQUnknownInterface** iface) {
/* set the pointer to the interface to 0 */
*iface = 0;
@@ -128,24 +128,24 @@ QRESULT %{APPNAME}Impl::queryInterface( const QUuid& uuid, QUnknownInterface** i
* Now the caller knows that the Interface Pointer
* is valid and the interface supported
*/
- if ( uuid == IID_QUnknown )
+ if ( uuid == IID_TQUnknown )
*iface = this;
else if ( uuid == IID_TaskbarApplet )
*iface = this;
else
- return QS_FALSE;
+ return TQS_FALSE;
if ( *iface )
(*iface)->addRef();
- return QS_OK;
+ return TQS_OK;
}
/*
* Finally we need to export the Interface.
* CREATE_INSTANCE creates a interface and calls
- * queryInterface for the QUnknownInterface once
+ * queryInterface for the TQUnknownInterface once
* With out this function the applet can't be loaded.
*
* NOTE: If your applet does not load it's likely you've an
@@ -156,7 +156,7 @@ QRESULT %{APPNAME}Impl::queryInterface( const QUuid& uuid, QUnknownInterface** i
* The main(int argc, char* argv[] ) does not need to be
* included in a library so it's ok that the linker complains
*/
-Q_EXPORT_INTERFACE() {
- Q_CREATE_INSTANCE( %{APPNAME}Impl )
+TQ_EXPORT_INTERFACE() {
+ TQ_CREATE_INSTANCE( %{APPNAME}Impl )
}
diff --git a/languages/cpp/app_templates/opieapplet/simpleimpl.h b/languages/cpp/app_templates/opieapplet/simpleimpl.h
index 7cca8ee7..855aed57 100644
--- a/languages/cpp/app_templates/opieapplet/simpleimpl.h
+++ b/languages/cpp/app_templates/opieapplet/simpleimpl.h
@@ -3,18 +3,18 @@
/**
- * Opie and Qtopia uses a component system called QCOM
- * which was first part of the Qt 3.0 API but was made
- * prviate during the betas. Opie and Qtopia still use it
+ * Opie and TQtopia uses a component system called TQCOM
+ * which was first part of the TQt 3.0 API but was made
+ * prviate during the betas. Opie and TQtopia still use it
* and we're happy with it.
- * Every starts with the QUnknownInterface. It supports functions
+ * Every starts with the TQUnknownInterface. It supports functions
* for reference counting and the most important one
- * is for a query. Every QCOM interface got a global unique id ( GUID,UUID )
+ * is for a query. Every TQCOM interface got a global unique id ( GUID,UUID )
* query is used to see if a interface is supported by
* a dynamic shared object ( dso / plugin )
* For tasks like loading Applications, InputMethods, Today, MenuButton,
* Taskbar, Style, Email Client there are specefic Interfaces you
- * need to implement. The interfaces inherits from QUnknownInterface and
+ * need to implement. The interfaces inherits from TQUnknownInterface and
* you'll need inherit from the interface.
* As example we will use the Taskbar interface
*/
@@ -22,26 +22,27 @@
/*
* The taskbar applet interfaces wants us to implement position() and applet()
- * additionally we need to implement add(), release() and queryInterface for QUnknownInterface
+ * additionally we need to implement add(), release() and queryInterface for TQUnknownInterface
* luckiy there is a macro for the reference counting
* We provide an Implementation of the interface.
*/
#include <tqwidget.h>
#include <tqptrlist.h>
-#include <qpe/taskbarappletinterface.h>
+#include <tqpe/taskbarappletinterface.h>
/*
* Because we only draw an Icon in a fixed width and height
- * we declare and define %{APPNAME} here and you could use QLabel
+ * we declare and define %{APPNAME} here and you could use TQLabel
* setPixmap or use TQWidget and draw yourself.
* You might also want to reimplement mouse*Event to use some simple actions
*/
class %{APPNAME} : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}(TQWidget *parent);
+ %{APPNAME}(TQWidget *tqparent);
~%{APPNAME}();
private:
void mousePressEvent( TQMouseEvent* );
@@ -55,9 +56,9 @@ public:
%{APPNAME}Impl();
virtual ~%{APPNAME}Impl();
- QRESULT queryInterface( const QUuid&, QUnknownInterface** );
+ TQRESULT queryInterface( const TQUuid&, TQUnknownInterface** );
- TQWidget *applet( TQWidget* parent );
+ TQWidget *applet( TQWidget* tqparent );
int position()const;
/*
@@ -65,10 +66,10 @@ public:
* if reference drops to zero
* delete this is called
*/
- Q_REFCOUNT
+ TQ_REFCOUNT
private:
- QList<%{APPNAME}> m_applets;
+ TQList<%{APPNAME}> m_applets;
};
diff --git a/languages/cpp/app_templates/opieinput/app.pro b/languages/cpp/app_templates/opieinput/app.pro
index 1711c78f..5a3a7a40 100644
--- a/languages/cpp/app_templates/opieinput/app.pro
+++ b/languages/cpp/app_templates/opieinput/app.pro
@@ -6,8 +6,8 @@ TARGET = %{APPNAMELC}
QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
-contains( TEMPLATE, quick-template ){
- contains( QUICK_SPEC_FOO, quick-app-lib ){
+tqcontains( TEMPLATE, quick-template ){
+ tqcontains( QUICK_SPEC_FOO, quick-app-lib ){
message( "foo" )
system( rm $$TARGET )
system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET)
diff --git a/languages/cpp/app_templates/opieinput/simpleimpl.cpp b/languages/cpp/app_templates/opieinput/simpleimpl.cpp
index db2e4285..ea178e59 100644
--- a/languages/cpp/app_templates/opieinput/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opieinput/simpleimpl.cpp
@@ -3,7 +3,7 @@
#include <tqlabel.h>
#include <tqsignalmapper.h>
#include <tqpushbutton.h>
-#include <qpe/resource.h>
+#include <tqpe/resource.h>
#include "%{APPNAMELC}.h"
@@ -58,7 +58,7 @@ void %{APPNAME}::slotKey(int _ke){
/*
* Send the key
- * ke is the unicode
+ * ke is the tqunicode
* _ke + 0x41 is the keycode
* m_state Normally the state
* down/up
@@ -102,10 +102,10 @@ void %{APPNAME}::slotCtrl(bool b){
delete m_icn;
}
-TQWidget *%{APPNAME}Impl::inputMethod( TQWidget *parent, Qt::WFlags f )
+TQWidget *%{APPNAME}Impl::inputMethod( TQWidget *tqparent, TQt::WFlags f )
{
if ( !m_pickboard )
- m_pickboard = new %{APPNAME}( parent, f );
+ m_pickboard = new %{APPNAME}( tqparent, f );
return m_pickboard;
}
@@ -133,25 +133,25 @@ void %{APPNAME}Impl::onKeyPress( TQObject *receiver, const char *slot )
TQObject::connect( m_pickboard, TQT_SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
}
-#ifndef QT_NO_COMPONENT
-QRESULT %{APPNAME}Impl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
+#ifndef TQT_NO_COMPONENT
+TQRESULT %{APPNAME}Impl::queryInterface( const TQUuid &uuid, TQUnknownInterface **iface )
{
*iface = 0;
- if ( uuid == IID_QUnknown )
+ if ( uuid == IID_TQUnknown )
*iface = this;
else if ( uuid == IID_InputMethod )
*iface = this;
else
- return QS_FALSE;
+ return TQS_FALSE;
if ( *iface )
(*iface)->addRef();
- return QS_OK;
+ return TQS_OK;
}
-Q_EXPORT_INTERFACE()
+TQ_EXPORT_INTERFACE()
{
- Q_CREATE_INSTANCE( %{APPNAME}Impl )
+ TQ_CREATE_INSTANCE( %{APPNAME}Impl )
}
#endif
diff --git a/languages/cpp/app_templates/opieinput/simpleimpl.h b/languages/cpp/app_templates/opieinput/simpleimpl.h
index 6d7033f0..76af8138 100644
--- a/languages/cpp/app_templates/opieinput/simpleimpl.h
+++ b/languages/cpp/app_templates/opieinput/simpleimpl.h
@@ -3,12 +3,13 @@
#include <tqhbox.h>
-#include <qpe/inputmethodinterface.h>
+#include <tqpe/inputmethodinterface.h>
class TQPixmap;
class TQCheckBox;
class %{APPNAME} : public TQHBox {
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}( TQWidget *par, WFlags f );
~%{APPNAME}();
@@ -31,12 +32,12 @@ public:
%{APPNAME}Impl();
virtual ~%{APPNAME}Impl();
-#ifndef QT_NO_COMPONENT
- QRESULT queryInterface( const QUuid&, QUnknownInterface** );
- Q_REFCOUNT
+#ifndef TQT_NO_COMPONENT
+ TQRESULT queryInterface( const TQUuid&, TQUnknownInterface** );
+ TQ_REFCOUNT
#endif
- virtual TQWidget *inputMethod( TQWidget *parent, Qt::WFlags f );
+ virtual TQWidget *inputMethod( TQWidget *tqparent, TQt::WFlags f );
virtual void resetState();
virtual TQPixmap *icon();
virtual TQString name();
diff --git a/languages/cpp/app_templates/opiemenu/app.pro b/languages/cpp/app_templates/opiemenu/app.pro
index 71bc208c..f9600bf4 100644
--- a/languages/cpp/app_templates/opiemenu/app.pro
+++ b/languages/cpp/app_templates/opiemenu/app.pro
@@ -6,8 +6,8 @@ TARGET = %{APPNAMELC}
QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
-contains( TEMPLATE, quick-template ){
- contains( QUICK_SPEC_FOO, quick-app-lib ){
+tqcontains( TEMPLATE, quick-template ){
+ tqcontains( QUICK_SPEC_FOO, quick-app-lib ){
message( "foo" )
system( rm $$TARGET )
system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET)
diff --git a/languages/cpp/app_templates/opiemenu/simpleimpl.cpp b/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
index 17b59a3e..9d953663 100644
--- a/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
@@ -1,7 +1,7 @@
#include "%{APPNAMELC}.h"
-#include <qpe/applnk.h>
-#include <qpe/resource.h>
+#include <tqpe/applnk.h>
+#include <tqpe/resource.h>
/* QT */
#include <tqiconset.h>
@@ -57,22 +57,22 @@ void %{APPNAME}::activated()
}
-QRESULT %{APPNAME}::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
+TQRESULT %{APPNAME}::queryInterface( const TQUuid &uuid, TQUnknownInterface **iface )
{
*iface = 0;
- if ( uuid == IID_QUnknown )
+ if ( uuid == IID_TQUnknown )
*iface = this;
else if ( uuid == IID_MenuApplet )
*iface = this;
else
- return QS_FALSE;
+ return TQS_FALSE;
if ( *iface )
(*iface)->addRef();
- return QS_OK;
+ return TQS_OK;
}
-Q_EXPORT_INTERFACE()
+TQ_EXPORT_INTERFACE()
{
- Q_CREATE_INSTANCE( %{APPNAME} )
+ TQ_CREATE_INSTANCE( %{APPNAME} )
}
diff --git a/languages/cpp/app_templates/opiemenu/simpleimpl.h b/languages/cpp/app_templates/opiemenu/simpleimpl.h
index b384ee2d..61c3cc5b 100644
--- a/languages/cpp/app_templates/opiemenu/simpleimpl.h
+++ b/languages/cpp/app_templates/opiemenu/simpleimpl.h
@@ -1,7 +1,7 @@
#ifndef %{APPNAME}_MENU_APPLET_H
#define %{APPNAME}_MENU_APPLET_H
-#include <qpe/menuappletinterface.h>
+#include <tqpe/menuappletinterface.h>
#include <tqobject.h>
@@ -9,13 +9,14 @@ class %{APPNAME} : public TQObject, public MenuAppletInterface
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME} ( );
virtual ~%{APPNAME} ( );
- QRESULT queryInterface( const QUuid&, QUnknownInterface** );
- Q_REFCOUNT
+ TQRESULT queryInterface( const TQUuid&, TQUnknownInterface** );
+ TQ_REFCOUNT
virtual int position() const;
@@ -25,7 +26,7 @@ public:
/* virtual TQString tr( const char* ) const;
virtual TQString tr( const char*, const char* ) const;
*/
- virtual TQPopupMenu *popup ( TQWidget *parent ) const;
+ virtual TQPopupMenu *popup ( TQWidget *tqparent ) const;
virtual void activated ( );
};
diff --git a/languages/cpp/app_templates/opienet/app.pro b/languages/cpp/app_templates/opienet/app.pro
index 53fb6eea..df87650c 100644
--- a/languages/cpp/app_templates/opienet/app.pro
+++ b/languages/cpp/app_templates/opienet/app.pro
@@ -7,8 +7,8 @@ LIBS += -linterfaces
QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
-contains( TEMPLATE, quick-template ){
- contains( QUICK_SPEC_FOO, quick-app-lib ){
+tqcontains( TEMPLATE, quick-template ){
+ tqcontains( QUICK_SPEC_FOO, quick-app-lib ){
message( "foo" )
system( rm $$TARGET )
system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET)
diff --git a/languages/cpp/app_templates/opienet/simmplemodule.h b/languages/cpp/app_templates/opienet/simmplemodule.h
index 7a8882b4..5c928ec9 100644
--- a/languages/cpp/app_templates/opienet/simmplemodule.h
+++ b/languages/cpp/app_templates/opienet/simmplemodule.h
@@ -12,19 +12,19 @@ public:
VirtualModule();
~VirtualModule();
- const TQString type() {return TQString::fromLatin1("vpn" );}
+ const TQString type() {return TQString::tqfromLatin1("vpn" );}
void setProfile( const TQString& ) {}
bool isOwner( Interface* );
TQWidget *configure( Interface* );
TQWidget *information( Interface* );
- QList<Interface> getInterfaces();
+ TQList<Interface> getInterfaces();
void possibleNewInterfaces( TQMap<TQString, TQString>& );
Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ TQString getPixmapName( Interface* ) {return TQString::tqfromLatin1("Tux"); }
void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
- QList<Interface> m_interfaces;
+ TQList<Interface> m_interfaces;
};
extern "C" {
diff --git a/languages/cpp/app_templates/opienet/simpleiface.cpp b/languages/cpp/app_templates/opienet/simpleiface.cpp
index bbabcbda..9b38bc77 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.cpp
+++ b/languages/cpp/app_templates/opienet/simpleiface.cpp
@@ -1,9 +1,9 @@
#include "%{APPNAMELC}iface.h"
-%{APPNAME}Interface::%{APPNAME}Interface( TQObject* parent,
+%{APPNAME}Interface::%{APPNAME}Interface( TQObject* tqparent,
const char* name,
bool status )
- : Interface(parent, name, status )
+ : Interface(tqparent, name, status )
{
}
@@ -31,13 +31,13 @@ bool %{APPNAME}Interface::refresh() {
void %{APPNAME}Interface::start() {
// call pptp
- setStatus(true);
+ settqStatus(true);
refresh();
emit updateMessage("VPN started");
}
void %{APPNAME}Interface::stop() {
- setStatus(false );
+ settqStatus(false );
refresh();
emit updateMessage("VPN halted");
}
diff --git a/languages/cpp/app_templates/opienet/simpleiface.h b/languages/cpp/app_templates/opienet/simpleiface.h
index ef514697..c38d884f 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.h
+++ b/languages/cpp/app_templates/opienet/simpleiface.h
@@ -5,9 +5,10 @@
class %{APPNAME}Interface : public Interface {
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Interface(TQObject* parent, const char* name = "vpn", bool up = false );
+ %{APPNAME}Interface(TQObject* tqparent, const char* name = "vpn", bool up = false );
~%{APPNAME}Interface();
public slots:
diff --git a/languages/cpp/app_templates/opienet/simplemodule.cpp b/languages/cpp/app_templates/opienet/simplemodule.cpp
index 0a96c844..f8e963bd 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.cpp
+++ b/languages/cpp/app_templates/opienet/simplemodule.cpp
@@ -29,7 +29,7 @@
*/
bool %{APPNAME}Module::isOwner( Interface* iface ) {
/* check if it is our device */
- return m_interfaces.find( iface ) != -1;
+ return m_interfaces.tqfind( iface ) != -1;
}
TQWidget* %{APPNAME}Module::configure( Interface* ) {
@@ -41,7 +41,7 @@ TQWidget* %{APPNAME}Module::information( Interface* iface ) {
return new InterfaceInformationImp(0, "Interface info", iface );
}
-QList<Interface> %{APPNAME}Module::getInterfaces() {
+TQList<Interface> %{APPNAME}Module::getInterfaces() {
return m_interfaces;
}
diff --git a/languages/cpp/app_templates/opienet/simplemodule.h b/languages/cpp/app_templates/opienet/simplemodule.h
index 4120d811..327c1d43 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.h
+++ b/languages/cpp/app_templates/opienet/simplemodule.h
@@ -12,19 +12,19 @@ public:
%{APPNAME}Module();
~%{APPNAME}Module();
- const TQString type() {return TQString::fromLatin1("vpn" );}
+ const TQString type() {return TQString::tqfromLatin1("vpn" );}
void setProfile( const TQString& ) {}
bool isOwner( Interface* );
TQWidget *configure( Interface* );
TQWidget *information( Interface* );
- QList<Interface> getInterfaces();
+ TQList<Interface> getInterfaces();
void possibleNewInterfaces( TQMap<TQString, TQString>& );
Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ TQString getPixmapName( Interface* ) {return TQString::tqfromLatin1("Tux"); }
void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
- QList<Interface> m_interfaces;
+ TQList<Interface> m_interfaces;
};
extern "C" {
diff --git a/languages/cpp/app_templates/opietoday/app.pro b/languages/cpp/app_templates/opietoday/app.pro
index 152dc6f6..73e03efb 100644
--- a/languages/cpp/app_templates/opietoday/app.pro
+++ b/languages/cpp/app_templates/opietoday/app.pro
@@ -6,8 +6,8 @@ TARGET = %{APPNAMELC}
QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
-contains( TEMPLATE, quick-template ){
- contains( QUICK_SPEC_FOO, quick-app-lib ){
+tqcontains( TEMPLATE, quick-template ){
+ tqcontains( QUICK_SPEC_FOO, quick-app-lib ){
message( "foo" )
system( rm $$TARGET )
system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET)
diff --git a/languages/cpp/app_templates/opietoday/exampleplugin.cpp b/languages/cpp/app_templates/opietoday/exampleplugin.cpp
index c7df8069..d3dc37ab 100644
--- a/languages/cpp/app_templates/opietoday/exampleplugin.cpp
+++ b/languages/cpp/app_templates/opietoday/exampleplugin.cpp
@@ -19,7 +19,7 @@ double %{APPNAME}::versionNumber() const {
// this sets the image that will be shown on the left side of the plugin
TQString %{APPNAME}::pixmapNameWidget() const {
- return TQString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}");
+ return TQString::tqfromLatin1("%{APPNAMELC}/%{APPNAMELC}");
}
TQWidget* %{APPNAME}::widget( TQWidget * wid ) {
@@ -36,13 +36,13 @@ TQString %{APPNAME}::pixmapNameConfig() const {
}
// No config widget yet, look at the datebook plugin for an example of that
-TodayConfigWidget* %{APPNAME}::configWidget( TQWidget* /*parent*/ ) {
+TodayConfigWidget* %{APPNAME}::configWidget( TQWidget* /*tqparent*/ ) {
return 0l;
}
// add the binary name of the app to launch here
TQString %{APPNAME}::appName() const {
- return TQString::null;
+ return TQString();
}
// if the plugin should be excluded form the refresh cycles that can be set in the today app
diff --git a/languages/cpp/app_templates/opietoday/examplepluginimpl.cpp b/languages/cpp/app_templates/opietoday/examplepluginimpl.cpp
index 3a9481f1..a4896308 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginimpl.cpp
+++ b/languages/cpp/app_templates/opietoday/examplepluginimpl.cpp
@@ -14,17 +14,17 @@ TodayPluginObject* %{APPNAME}Impl::guiPart() {
return examplePlugin;
}
-QRESULT %{APPNAME}Impl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
+TQRESULT %{APPNAME}Impl::queryInterface( const TQUuid & uuid, TQUnknownInterface **iface ) {
*iface = 0;
- if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
+ if ( ( uuid == IID_TQUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
*iface = this, (*iface)->addRef();
}else
- return QS_FALSE;
+ return TQS_FALSE;
- return QS_OK;
+ return TQS_OK;
}
-Q_EXPORT_INTERFACE() {
- Q_CREATE_INSTANCE( %{APPNAME}Impl );
+TQ_EXPORT_INTERFACE() {
+ TQ_CREATE_INSTANCE( %{APPNAME}Impl );
}
diff --git a/languages/cpp/app_templates/opietoday/examplepluginimpl.h b/languages/cpp/app_templates/opietoday/examplepluginimpl.h
index ccb7c3b3..ddc63bc2 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginimpl.h
+++ b/languages/cpp/app_templates/opietoday/examplepluginimpl.h
@@ -11,8 +11,8 @@ public:
%{APPNAME}Impl();
virtual ~%{APPNAME}Impl();
- QRESULT queryInterface( const QUuid &, QUnknownInterface** );
- Q_REFCOUNT
+ TQRESULT queryInterface( const TQUuid &, TQUnknownInterface** );
+ TQ_REFCOUNT
virtual TodayPluginObject *guiPart();
diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
index a80dad81..98b19f9a 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
+++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
@@ -1,10 +1,10 @@
-#include <qpe/config.h>
-#include <qpe/qcopenvelope_qws.h>
+#include <tqpe/config.h>
+#include <tqpe/tqcopenvelope_qws.h>
#include "%{APPNAMELC}widget.h"
-%{APPNAME}Widget::%{APPNAME}Widget( TQWidget *parent, const char* name)
- : TQWidget(parent, name ) {
+%{APPNAME}Widget::%{APPNAME}Widget( TQWidget *tqparent, const char* name)
+ : TQWidget(tqparent, name ) {
m_exampleLabel = 0l;
m_layout = 0l;
diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.h b/languages/cpp/app_templates/opietoday/examplepluginwidget.h
index 53a67b18..f5e35d4e 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginwidget.h
+++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.h
@@ -8,9 +8,10 @@
class %{APPNAME}Widget : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Widget( TQWidget *parent, const char *name );
+ %{APPNAME}Widget( TQWidget *tqparent, const char *name );
~%{APPNAME}Widget();
void refresh();
diff --git a/languages/cpp/app_templates/prc-tool/palmhello.c b/languages/cpp/app_templates/prc-tool/palmhello.c
index 0a34b6c4..e0317932 100644
--- a/languages/cpp/app_templates/prc-tool/palmhello.c
+++ b/languages/cpp/app_templates/prc-tool/palmhello.c
@@ -22,7 +22,7 @@ static Boolean MainFormHandleEvent (EventPtr e)
break;
case menuEvent:
- MenuEraseStatus(NULL);
+ MenuErasetqStatus(NULL);
switch(e->data.menu.itemID) {
}
diff --git a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
index f3c5f7f2..4b78645a 100644
--- a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
+++ b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
@@ -11,7 +11,7 @@
#include <tqtextedit.h>
#include <tqfile.h>
#include <tqfiledialog.h>
-#include <tqstatusbar.h>
+#include <statusbar.h>
#include <tqmessagebox.h>
#include <tqprinter.h>
#include <tqapplication.h>
@@ -36,17 +36,17 @@
openIcon = TQPixmap( fileopen );
TQToolButton * fileOpen
- = new TQToolButton( openIcon, tr("Open File"), TQString::null,
+ = new TQToolButton( openIcon, tr("Open File"), TQString(),
this, TQT_SLOT(choose()), fileTools, "open file" );
saveIcon = TQPixmap( filesave );
TQToolButton * fileSave
- = new TQToolButton( saveIcon, tr("Save File"), TQString::null,
+ = new TQToolButton( saveIcon, tr("Save File"), TQString(),
this, TQT_SLOT(save()), fileTools, "save file" );
printIcon = TQPixmap( fileprint );
TQToolButton * filePrint
- = new TQToolButton( printIcon, tr("Print File"), TQString::null,
+ = new TQToolButton( printIcon, tr("Print File"), TQString(),
this, TQT_SLOT(print()), fileTools, "print file" );
@@ -103,7 +103,7 @@
file->insertItem( tr("&Close"), this, TQT_SLOT(close()), CTRL+Key_W );
- file->insertItem( tr("&Quit"), qApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( tr("&Quit"), tqApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
@@ -111,7 +111,7 @@
menuBar()->insertItem( tr("&Help"), help );
help->insertItem( tr("&About"), this, TQT_SLOT(about()), Key_F1 );
- help->insertItem( tr("About &Qt"), this, TQT_SLOT(aboutQt()) );
+ help->insertItem( tr("About &TQt"), this, TQT_SLOT(aboutTQt()) );
help->insertSeparator();
help->insertItem( tr("What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
@@ -134,13 +134,13 @@
void %{APPNAME}::newDoc()
{
%{APPNAME} *ed = new %{APPNAME};
- ed->setCaption(tr("Qt Example - Application"));
+ ed->setCaption(tr("TQt Example - Application"));
ed->show();
}
void %{APPNAME}::choose()
{
- TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null,
+ TQString fn = TQFileDialog::getOpenFileName( TQString(), TQString(),
this);
if ( !fn.isEmpty() )
load( fn );
@@ -159,7 +159,7 @@ void %{APPNAME}::load( const TQString &fileName )
e->setText( ts.read() );
e->setModified( FALSE );
setCaption( fileName );
- statusBar()->message( tr("Loaded document %1").arg(fileName), 2000 );
+ statusBar()->message( tr("Loaded document %1").tqarg(fileName), 2000 );
}
@@ -173,7 +173,7 @@ void %{APPNAME}::save()
TQString text = e->text();
TQFile f( filename );
if ( !f.open( IO_WriteOnly ) ) {
- statusBar()->message( tr("Could not write to %1").arg(filename),
+ statusBar()->message( tr("Could not write to %1").tqarg(filename),
2000 );
return;
}
@@ -186,13 +186,13 @@ void %{APPNAME}::save()
setCaption( filename );
- statusBar()->message( tr( "File %1 saved" ).arg( filename ), 2000 );
+ statusBar()->message( tr( "File %1 saved" ).tqarg( filename ), 2000 );
}
void %{APPNAME}::saveAs()
{
- TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null,
+ TQString fn = TQFileDialog::getSaveFileName( TQString(), TQString(),
this );
if ( !fn.isEmpty() ) {
filename = fn;
@@ -249,7 +249,7 @@ void %{APPNAME}::closeEvent( TQCloseEvent* ce )
return;
}
- switch( TQMessageBox::information( this, tr("Qt Application Example"),
+ switch( TQMessageBox::information( this, tr("TQt Application Example"),
tr("Do you want to save the changes"
" to the document?"),
tr("Yes"), tr("No"), tr("Cancel"),
@@ -271,13 +271,13 @@ void %{APPNAME}::closeEvent( TQCloseEvent* ce )
void %{APPNAME}::about()
{
- TQMessageBox::about( this, tr("Qt Application Example"),
+ TQMessageBox::about( this, tr("TQt Application Example"),
tr("This example demonstrates simple use of "
- "TQMainWindow,\nQMenuBar and TQToolBar."));
+ "TQMainWindow,\nTQMenuBar and TQToolBar."));
}
-void %{APPNAME}::aboutQt()
+void %{APPNAME}::aboutTQt()
{
- TQMessageBox::aboutQt( this, tr("Qt Application Example") );
+ TQMessageBox::aboutTQt( this, tr("TQt Application Example") );
}
diff --git a/languages/cpp/app_templates/qmakeapp/qmakeapp.h b/languages/cpp/app_templates/qmakeapp/qmakeapp.h
index af12e1eb..bc8a2b93 100644
--- a/languages/cpp/app_templates/qmakeapp/qmakeapp.h
+++ b/languages/cpp/app_templates/qmakeapp/qmakeapp.h
@@ -7,9 +7,10 @@
class TQTextEdit;
-class %{APPNAME}: public QMainWindow
+class %{APPNAME}: public TQMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}();
@@ -27,7 +28,7 @@ private slots:
void print();
void about();
- void aboutQt();
+ void aboutTQt();
private:
TQPrinter *printer;
diff --git a/languages/cpp/app_templates/qt4hello/main.cpp b/languages/cpp/app_templates/qt4hello/main.cpp
index cbff1d3c..59ee17d7 100644
--- a/languages/cpp/app_templates/qt4hello/main.cpp
+++ b/languages/cpp/app_templates/qt4hello/main.cpp
@@ -1,11 +1,11 @@
%{CPP_TEMPLATE}
-#include <QCoreApplication>
+#include <TQCoreApplication>
int main(int argc, char *argv[])
{
- QCoreApplication app(argc, argv);
- qDebug("Hello from Qt 4!");
+ TQCoreApplication app(argc, argv);
+ qDebug("Hello from TQt 4!");
return 0;
}
diff --git a/languages/cpp/app_templates/qt4makeapp/main.cpp b/languages/cpp/app_templates/qt4makeapp/main.cpp
index 4f6295a2..55f24795 100644
--- a/languages/cpp/app_templates/qt4makeapp/main.cpp
+++ b/languages/cpp/app_templates/qt4makeapp/main.cpp
@@ -5,7 +5,7 @@
int main(int argc, char *argv[])
{
- Q_INIT_RESOURCE(application);
+ TQ_INIT_RESOURCE(application);
TQApplication app(argc, argv);
%{APPNAME} * mw = new %{APPNAME}();
mw->show();
diff --git a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
index cdf18174..f2178d9d 100644
--- a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
+++ b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
@@ -1,6 +1,6 @@
%{CPP_TEMPLATE}
-#include <QtGui>
+#include <TQtGui>
#include "%{APPNAMELC}.h"
#include <TQTextEdit>
@@ -75,7 +75,7 @@ void %{APPNAME}::about()
{
TQMessageBox::about(this, tr("About Application"),
tr("The <b>Application</b> example demonstrates how to "
- "write modern GUI applications using Qt, with a menu bar, "
+ "write modern GUI applications using TQt, with a menu bar, "
"toolbars, and a status bar."));
}
@@ -86,17 +86,17 @@ void %{APPNAME}::documentWasModified()
void %{APPNAME}::createActions()
{
- newAct = new TQAction(QIcon(":/filenew.xpm"), tr("&New"), this);
+ newAct = new TQAction(TQIcon(":/filenew.xpm"), tr("&New"), this);
newAct->setShortcut(tr("Ctrl+N"));
newAct->setStatusTip(tr("Create a new file"));
connect(newAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(newFile()));
- openAct = new TQAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this);
+ openAct = new TQAction(TQIcon(":/fileopen.xpm"), tr("&Open..."), this);
openAct->setShortcut(tr("Ctrl+O"));
openAct->setStatusTip(tr("Open an existing file"));
connect(openAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(open()));
- saveAct = new TQAction(QIcon(":/filesave.xpm"), tr("&Save"), this);
+ saveAct = new TQAction(TQIcon(":/filesave.xpm"), tr("&Save"), this);
saveAct->setShortcut(tr("Ctrl+S"));
saveAct->setStatusTip(tr("Save the document to disk"));
connect(saveAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(save()));
@@ -110,19 +110,19 @@ void %{APPNAME}::createActions()
exitAct->setStatusTip(tr("Exit the application"));
connect(exitAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(close()));
- cutAct = new TQAction(QIcon(":/editcut.xpm"), tr("Cu&t"), this);
+ cutAct = new TQAction(TQIcon(":/editcut.xpm"), tr("Cu&t"), this);
cutAct->setShortcut(tr("Ctrl+X"));
cutAct->setStatusTip(tr("Cut the current selection's contents to the "
"clipboard"));
connect(cutAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(cut()));
- copyAct = new TQAction(QIcon(":/editcopy.xpm"), tr("&Copy"), this);
+ copyAct = new TQAction(TQIcon(":/editcopy.xpm"), tr("&Copy"), this);
copyAct->setShortcut(tr("Ctrl+C"));
copyAct->setStatusTip(tr("Copy the current selection's contents to the "
"clipboard"));
connect(copyAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(copy()));
- pasteAct = new TQAction(QIcon(":/editpaste.xpm"), tr("&Paste"), this);
+ pasteAct = new TQAction(TQIcon(":/editpaste.xpm"), tr("&Paste"), this);
pasteAct->setShortcut(tr("Ctrl+V"));
pasteAct->setStatusTip(tr("Paste the clipboard's contents into the current "
"selection"));
@@ -132,9 +132,9 @@ void %{APPNAME}::createActions()
aboutAct->setStatusTip(tr("Show the application's About box"));
connect(aboutAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(about()));
- aboutQtAct = new TQAction(tr("About &Qt"), this);
- aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
- connect(aboutQtAct, TQT_SIGNAL(triggered()), qApp, TQT_SLOT(aboutQt()));
+ aboutTQtAct = new TQAction(tr("About &TQt"), this);
+ aboutTQtAct->setStatusTip(tr("Show the TQt library's About box"));
+ connect(aboutTQtAct, TQT_SIGNAL(triggered()), tqApp, TQT_SLOT(aboutTQt()));
cutAct->setEnabled(false);
copyAct->setEnabled(false);
@@ -163,7 +163,7 @@ void %{APPNAME}::createMenus()
helpMenu = menuBar()->addMenu(tr("&Help"));
helpMenu->addAction(aboutAct);
- helpMenu->addAction(aboutQtAct);
+ helpMenu->addAction(aboutTQtAct);
}
void %{APPNAME}::createToolBars()
@@ -223,13 +223,13 @@ void %{APPNAME}::loadFile(const TQString &fileName)
if (!file.open(TQFile::ReadOnly | TQFile::Text)) {
TQMessageBox::warning(this, tr("Application"),
tr("Cannot read file %1:\n%2.")
- .arg(fileName)
- .arg(file.errorString()));
+ .tqarg(fileName)
+ .tqarg(file.errorString()));
return;
}
TQTextStream in(&file);
- TQApplication::setOverrideCursor(Qt::WaitCursor);
+ TQApplication::setOverrideCursor(TQt::WaitCursor);
textEdit->setPlainText(in.readAll());
TQApplication::restoreOverrideCursor();
@@ -243,13 +243,13 @@ bool %{APPNAME}::saveFile(const TQString &fileName)
if (!file.open(TQFile::WriteOnly | TQFile::Text)) {
TQMessageBox::warning(this, tr("Application"),
tr("Cannot write file %1:\n%2.")
- .arg(fileName)
- .arg(file.errorString()));
+ .tqarg(fileName)
+ .tqarg(file.errorString()));
return false;
}
TQTextStream out(&file);
- TQApplication::setOverrideCursor(Qt::WaitCursor);
+ TQApplication::setOverrideCursor(TQt::WaitCursor);
out << textEdit->toPlainText();
TQApplication::restoreOverrideCursor();
@@ -270,7 +270,7 @@ void %{APPNAME}::setCurrentFile(const TQString &fileName)
else
shownName = strippedName(curFile);
- setWindowTitle(tr("%1[*] - %2").arg(shownName).arg(tr("Application")));
+ setWindowTitle(tr("%1[*] - %2").tqarg(shownName).tqarg(tr("Application")));
}
TQString %{APPNAME}::strippedName(const TQString &fullFileName)
diff --git a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
index 14a40d99..65402c85 100644
--- a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
+++ b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
@@ -7,12 +7,13 @@
#include <TQCloseEvent>
class TQAction;
-class QMenu;
+class TQMenu;
class TQTextEdit;
-class %{APPNAME}:public QMainWindow
+class %{APPNAME}:public TQMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}();
@@ -45,9 +46,9 @@ private:
TQTextEdit *textEdit;
TQString curFile;
- QMenu *fileMenu;
- QMenu *editMenu;
- QMenu *helpMenu;
+ TQMenu *fileMenu;
+ TQMenu *editMenu;
+ TQMenu *helpMenu;
TQToolBar *fileToolBar;
TQToolBar *editToolBar;
TQAction *newAct;
@@ -59,7 +60,7 @@ private:
TQAction *copyAct;
TQAction *pasteAct;
TQAction *aboutAct;
- TQAction *aboutQtAct;
+ TQAction *aboutTQtAct;
};
#endif
diff --git a/languages/cpp/app_templates/qtopia4app/example.cpp b/languages/cpp/app_templates/qtopia4app/example.cpp
index 45331649..12c3f634 100644
--- a/languages/cpp/app_templates/qtopia4app/example.cpp
+++ b/languages/cpp/app_templates/qtopia4app/example.cpp
@@ -2,8 +2,8 @@
#include "%{APPNAMELC}.h"
#include <tqpushbutton.h>
-%{APPNAME}Base::%{APPNAME}Base( TQWidget *parent, Qt::WFlags f )
- : TQWidget( parent, f )
+%{APPNAME}Base::%{APPNAME}Base( TQWidget *tqparent, TQt::WFlags f )
+ : TQWidget( tqparent, f )
{
setupUi( this );
}
@@ -13,11 +13,11 @@
}
/*
- * Constructs a %{APPNAME} which is a child of 'parent', with the
+ * Constructs a %{APPNAME} which is a child of 'tqparent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( TQWidget *parent, Qt::WFlags f )
- : %{APPNAME}Base( parent, f )
+%{APPNAME}::%{APPNAME}( TQWidget *tqparent, TQt::WFlags f )
+ : %{APPNAME}Base( tqparent, f )
{
connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
@@ -27,7 +27,7 @@
*/
%{APPNAME}::~%{APPNAME}()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
/*
diff --git a/languages/cpp/app_templates/qtopia4app/example.h b/languages/cpp/app_templates/qtopia4app/example.h
index 5bfc69ba..e4c44a8f 100644
--- a/languages/cpp/app_templates/qtopia4app/example.h
+++ b/languages/cpp/app_templates/qtopia4app/example.h
@@ -6,15 +6,16 @@
class %{APPNAME}Base : public TQWidget, public Ui_%{APPNAME}Base
{
public:
- %{APPNAME}Base( TQWidget *parent = 0, Qt::WFlags f = 0 );
+ %{APPNAME}Base( TQWidget *tqparent = 0, TQt::WFlags f = 0 );
virtual ~%{APPNAME}Base();
};
class %{APPNAME} : public %{APPNAME}Base
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}( TQWidget *parent = 0, Qt::WFlags f = 0 );
+ %{APPNAME}( TQWidget *tqparent = 0, TQt::WFlags f = 0 );
virtual ~%{APPNAME}();
private slots:
diff --git a/languages/cpp/app_templates/qtopia4app/example.html b/languages/cpp/app_templates/qtopia4app/example.html
index 279a6106..9bcae99d 100644
--- a/languages/cpp/app_templates/qtopia4app/example.html
+++ b/languages/cpp/app_templates/qtopia4app/example.html
@@ -6,10 +6,10 @@
<p>To user this application:
<ol>
- <li>Press the <img width=12 height=12 src=%{APPNAME}.png> icon in the Qtopia launcher.
+ <li>Press the <img width=12 height=12 src=%{APPNAME}.png> icon in the TQtopia launcher.
<li>Read the label.
<li>Press the button.
<li>Read the source code provided.
</ol>
-Now you know how to make a Qtopia application!
+Now you know how to make a TQtopia application!
diff --git a/languages/cpp/app_templates/qtopia4app/examplebase.ui b/languages/cpp/app_templates/qtopia4app/examplebase.ui
index 17d6bc20..76e7d49f 100644
--- a/languages/cpp/app_templates/qtopia4app/examplebase.ui
+++ b/languages/cpp/app_templates/qtopia4app/examplebase.ui
@@ -3,7 +3,7 @@
<comment></comment>
<exportmacro></exportmacro>
<class>%{APPNAME}Base</class>
- <widget class="QWidget" name="%{APPNAME}Base" >
+ <widget class="TQWidget" name="%{APPNAME}Base" >
<property name="geometry" >
<rect>
<x>0</x>
@@ -15,7 +15,7 @@
<property name="windowTitle" >
<string>%{APPNAME}</string>
</property>
- <layout class="QVBoxLayout" >
+ <tqlayout class="TQVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
@@ -23,7 +23,7 @@
<number>6</number>
</property>
<item>
- <widget class="QLabel" name="TextLabel1" >
+ <widget class="TQLabel" name="TextLabel1" >
<property name="text" >
<string>This is just an %{APPNAME}. It doesn't do anything interesting at all.</string>
</property>
@@ -33,12 +33,12 @@
</widget>
</item>
<item>
- <widget class="QPushButton" name="quit" >
+ <widget class="TQPushButton" name="quit" >
<property name="text" >
<string>Quit</string>
</property>
</widget>
</item>
- </layout>
+ </tqlayout>
</widget>
</ui>
diff --git a/languages/cpp/app_templates/qtopia4app/main.cpp b/languages/cpp/app_templates/qtopia4app/main.cpp
index 43dbb4ac..b4ccc5ca 100644
--- a/languages/cpp/app_templates/qtopia4app/main.cpp
+++ b/languages/cpp/app_templates/qtopia4app/main.cpp
@@ -1,7 +1,7 @@
#include "%{APPNAMELC}.h"
-#include <qtopia/qtopiaapplication.h>
+#include <tqtopia/tqtopiaapplication.h>
-QTOPIA_ADD_APPLICATION("%{APPNAMELC}", %{APPNAME})
-QTOPIA_MAIN
+TQTOPIA_ADD_APPLICATION("%{APPNAMELC}", %{APPNAME})
+TQTOPIA_MAIN
diff --git a/languages/cpp/app_templates/qtopiaapp/example.control b/languages/cpp/app_templates/qtopiaapp/example.control
index d04f87ec..666968a3 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.control
+++ b/languages/cpp/app_templates/qtopiaapp/example.control
@@ -7,5 +7,5 @@ Arch: $DEVICE_ARCH
Version: 1.0.0
License: Public Domain
Description: %{APPNAME} program
- An %{APPNAMELC} program for the Qtopia environment.
+ An %{APPNAMELC} program for the TQtopia environment.
Does nothing interesting.
diff --git a/languages/cpp/app_templates/qtopiaapp/example.cpp b/languages/cpp/app_templates/qtopiaapp/example.cpp
index a849977d..85082508 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.cpp
+++ b/languages/cpp/app_templates/qtopiaapp/example.cpp
@@ -3,11 +3,11 @@
#include <tqpushbutton.h>
/*
- * Constructs a %{APPNAME} which is a child of 'parent', with the
+ * Constructs a %{APPNAME} which is a child of 'tqparent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( TQWidget* parent, const char* name, WFlags fl )
- : %{APPNAME}Base( parent, name, fl )
+%{APPNAME}::%{APPNAME}( TQWidget* tqparent, const char* name, WFlags fl )
+ : %{APPNAME}Base( tqparent, name, fl )
{
connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
@@ -17,7 +17,7 @@
*/
%{APPNAME}::~%{APPNAME}()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
/*
diff --git a/languages/cpp/app_templates/qtopiaapp/example.h b/languages/cpp/app_templates/qtopiaapp/example.h
index 42dfc2dd..64abf97c 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.h
+++ b/languages/cpp/app_templates/qtopiaapp/example.h
@@ -6,9 +6,10 @@
class %{APPNAME} : public %{APPNAME}Base
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}();
private slots:
diff --git a/languages/cpp/app_templates/qtopiaapp/example.html b/languages/cpp/app_templates/qtopiaapp/example.html
index 279a6106..9bcae99d 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.html
+++ b/languages/cpp/app_templates/qtopiaapp/example.html
@@ -6,10 +6,10 @@
<p>To user this application:
<ol>
- <li>Press the <img width=12 height=12 src=%{APPNAME}.png> icon in the Qtopia launcher.
+ <li>Press the <img width=12 height=12 src=%{APPNAME}.png> icon in the TQtopia launcher.
<li>Read the label.
<li>Press the button.
<li>Read the source code provided.
</ol>
-Now you know how to make a Qtopia application!
+Now you know how to make a TQtopia application!
diff --git a/languages/cpp/app_templates/qtopiaapp/examplebase.ui b/languages/cpp/app_templates/qtopiaapp/examplebase.ui
index b6b81b11..1243c341 100644
--- a/languages/cpp/app_templates/qtopiaapp/examplebase.ui
+++ b/languages/cpp/app_templates/qtopiaapp/examplebase.ui
@@ -7,7 +7,7 @@
<cstring>%{APPNAME}Base</cstring>
</property>
<property stdset="1">
- <name>geometry</name>
+ <name>tqgeometry</name>
<rect>
<x>0</x>
<y>0</y>
@@ -45,5 +45,5 @@
</widget>
</vbox>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/app_templates/qtopiaapp/main.cpp b/languages/cpp/app_templates/qtopiaapp/main.cpp
index 0311a32e..ce7161b1 100644
--- a/languages/cpp/app_templates/qtopiaapp/main.cpp
+++ b/languages/cpp/app_templates/qtopiaapp/main.cpp
@@ -1,10 +1,10 @@
#include "%{APPNAMELC}.h"
-#include <qpe/qpeapplication.h>
+#include <tqpe/tqpeapplication.h>
int main( int argc, char ** argv )
{
- QPEApplication a( argc, argv );
+ TQPEApplication a( argc, argv );
%{APPNAME} mw;
a.showMainWidget( &mw );
diff --git a/languages/cpp/ast_utils.cpp b/languages/cpp/ast_utils.cpp
index a6ef1a2b..4c9d63d1 100644
--- a/languages/cpp/ast_utils.cpp
+++ b/languages/cpp/ast_utils.cpp
@@ -40,8 +40,8 @@ AST* findNodeAt( AST* node, int line, int column )
( line < endLine || ( line == endLine && column < endColumn ) ) )
{
- TQPtrList<AST> children = node->children();
- TQPtrListIterator<AST> it( children );
+ TQPtrList<AST> tqchildren = node->tqchildren();
+ TQPtrListIterator<AST> it( tqchildren );
while ( it.current() )
{
AST * a = it.current();
@@ -63,8 +63,8 @@ void scopeOfNode( AST* ast, TQStringList& scope )
if ( !ast )
return ;
- if ( ast->parent() )
- scopeOfNode( ast->parent(), scope );
+ if ( ast->tqparent() )
+ scopeOfNode( ast->tqparent(), scope );
TQString s;
switch ( ast->nodeType() )
@@ -73,7 +73,7 @@ void scopeOfNode( AST* ast, TQStringList& scope )
if ( ( ( ClassSpecifierAST* ) ast ) ->name() )
{
s = ( ( ClassSpecifierAST* ) ast ) ->name() ->text();
- s = s.isEmpty() ? TQString::fromLatin1( "<unnamed>" ) : s;
+ s = s.isEmpty() ? TQString::tqfromLatin1( "<unnamed>" ) : s;
scope.push_back( s );
}
break;
@@ -81,7 +81,7 @@ void scopeOfNode( AST* ast, TQStringList& scope )
case NodeType_Namespace:
{
AST* namespaceName = ( ( NamespaceAST* ) ast ) ->namespaceName();
- s = namespaceName ? namespaceName->text() : TQString::fromLatin1( "<unnamed>" );
+ s = namespaceName ? namespaceName->text() : TQString::tqfromLatin1( "<unnamed>" );
scope.push_back( s );
}
break;
@@ -116,15 +116,15 @@ void scopeOfNode( AST* ast, TQStringList& scope )
TQString typeSpecToString( TypeSpecifierAST* typeSpec ) /// @todo remove
{
if ( !typeSpec )
- return TQString::null;
+ return TQString();
- return typeSpec->text().replace( TQRegExp( " :: " ), "::" );
+ return typeSpec->text().tqreplace( TQRegExp( " :: " ), "::" );
}
TQString declaratorToString( DeclaratorAST* declarator, const TQString& scope, bool skipPtrOp )
{
if ( !declarator )
- return TQString::null;
+ return TQString();
TQString text;
@@ -141,7 +141,7 @@ TQString declaratorToString( DeclaratorAST* declarator, const TQString& scope, b
text += scope;
if ( declarator->subDeclarator() )
- text += TQString::fromLatin1( "(" ) + declaratorToString( declarator->subDeclarator() ) + TQString::fromLatin1( ")" );
+ text += TQString::tqfromLatin1( "(" ) + declaratorToString( declarator->subDeclarator() ) + TQString::tqfromLatin1( ")" );
if ( declarator->declaratorId() )
text += declarator->declaratorId() ->text();
@@ -185,6 +185,6 @@ TQString declaratorToString( DeclaratorAST* declarator, const TQString& scope, b
text += " const";
}
- return text.replace( TQRegExp( " :: " ), "::" ).simplifyWhiteSpace();
+ return text.tqreplace( TQRegExp( " :: " ), "::" ).simplifyWhiteSpace();
}
//kate: indent-mode csands; tab-width 4; space-indent off;
diff --git a/languages/cpp/ast_utils.h b/languages/cpp/ast_utils.h
index 7e6d44e3..a960abad 100644
--- a/languages/cpp/ast_utils.h
+++ b/languages/cpp/ast_utils.h
@@ -27,7 +27,7 @@ namespace KTextEditor
AST* findNodeAt( AST* unit, int line, int column );
void scopeOfNode( AST* ast, TQStringList& );
TQString typeSpecToString( TypeSpecifierAST* typeSpec );
-TQString declaratorToString( DeclaratorAST* declarator, const TQString& scope = TQString::null, bool skipPtrOp = false );
+TQString declaratorToString( DeclaratorAST* declarator, const TQString& scope = TQString(), bool skipPtrOp = false );
#endif // __ast_utils_h
// kate: indent-mode csands; tab-width 4;
diff --git a/languages/cpp/backgroundparser.cpp b/languages/cpp/backgroundparser.cpp
index d3f9c2ee..4e22dcc7 100644
--- a/languages/cpp/backgroundparser.cpp
+++ b/languages/cpp/backgroundparser.cpp
@@ -53,7 +53,7 @@ private:
class KDevSourceProvider: public SourceProvider
{
public:
- //Deadlock is a mutex that is locked when KDevSourceProvider::contents(..) is used, and that should be unlocked before TQApplication is locked(that way a deadlock where the thread that holds the QApplication-mutex and tries to lock the given mutex, while the thread that calls contents(..) and holds the given mutex and tries to lock the QApplication-mutex, cannot happen)
+ //Deadlock is a mutex that is locked when KDevSourceProvider::contents(..) is used, and that should be unlocked before TQApplication is locked(that way a deadlock where the thread that holds the TQApplication-mutex and tries to lock the given mutex, while the thread that calls contents(..) and holds the given mutex and tries to lock the TQApplication-mutex, cannot happen)
KDevSourceProvider( CppSupportPart* cppSupport, TQMutex& deadlock )
: m_cppSupport( cppSupport ),
m_readFromDisk( false ),
@@ -71,7 +71,7 @@ public:
virtual TQString contents( const TQString& fileName )
{
- TQString contents = TQString::null;
+ TQString contents = TQString();
if ( !m_readFromDisk )
{
@@ -105,7 +105,7 @@ public:
//kdDebug(9007) << "-------> kapp unlocked" << endl;
}
- if( m_readFromDisk || contents == TQString::null )
+ if( m_readFromDisk || contents == TQString() )
{
TQFile f( fileName );
if ( f.open( IO_ReadOnly ) )
@@ -149,7 +149,7 @@ typedef std::string SafeString;
class SynchronizedFileList
{
- typedef std::list< QPair<SafeString, bool> > ListType;
+ typedef std::list< TQPair<SafeString, bool> > ListType;
public:
SynchronizedFileList()
{}
@@ -166,7 +166,7 @@ public:
return m_fileList.size();
}
- QPair<SafeString, bool> front() const
+ TQPair<SafeString, bool> front() const
{
TQMutexLocker locker( &m_mutex );
return m_fileList.front();
@@ -182,14 +182,14 @@ public:
{
SafeString s( fileName.ascii() );
TQMutexLocker locker( &m_mutex );
- m_fileList.push_front( qMakePair( s, readFromDisk ) );
+ m_fileList.push_front( tqMakePair( s, readFromDisk ) );
}
void push_back( const TQString& fileName, bool readFromDisk = false )
{
SafeString s( fileName.ascii() );
TQMutexLocker locker( &m_mutex );
- m_fileList.push_back( qMakePair( s, readFromDisk ) );
+ m_fileList.push_back( tqMakePair( s, readFromDisk ) );
}
void pop_front()
@@ -212,15 +212,15 @@ public:
return c;
}
- QPair<SafeString, bool> takeFront()
+ TQPair<SafeString, bool> takeFront()
{
TQMutexLocker locker( &m_mutex );
- QPair<SafeString, bool> ret = m_fileList.front();
+ TQPair<SafeString, bool> ret = m_fileList.front();
m_fileList.pop_front();
return ret;
}
- bool contains( const TQString& fileName ) const
+ bool tqcontains( const TQString& fileName ) const
{
TQMutexLocker locker( &m_mutex );
ListType::const_iterator it = m_fileList.begin();
@@ -283,7 +283,7 @@ void BackgroundParser::addFile( const TQString& fileName, bool readFromDisk )
TQString fn = deepCopy( fileName );
//bool added = false;
- /*if ( !m_fileList->contains( fn ) )
+ /*if ( !m_fileList->tqcontains( fn ) )
{
m_fileList->push_back( fn, readFromDisk );
added = true;
@@ -299,7 +299,7 @@ void BackgroundParser::addFileFront( const TQString& fileName, bool readFromDisk
TQString fn = deepCopy( fileName );
bool added = false;
- /*if ( m_fileList->contains( fn ) )
+ /*if ( m_fileList->tqcontains( fn ) )
m_fileList->remove( fn );*/
m_fileList->push_front( fn, readFromDisk );
@@ -387,15 +387,15 @@ void BackgroundParser::fileParsed( ParsedFile& file ) {
ParsedFilePointer translationUnitUnsafe = m_driver->takeTranslationUnit( file.fileName() );
//now file and translationUnitUnsafe are the same
ParsedFilePointer translationUnit;
- //Since the lexer-cache keeps many QStrings like macro-names used in the background, everything must be copied here. The safest solution is just
+ //Since the lexer-cache keeps many TQStrings like macro-names used in the background, everything must be copied here. The safest solution is just
//serializing and deserializing the whole thing(the serialization does not respect the AST, but that can be copied later because that's safe)
TQMemArray<char> data;
{
- TQDataStream stream( data, IO_WriteOnly );
+ TQDataStream stream( TQByteArray(data), IO_WriteOnly );
translationUnitUnsafe->write( stream );
}
{
- TQDataStream stream( data, IO_ReadOnly );
+ TQDataStream stream( TQByteArray(data), IO_ReadOnly );
translationUnit = new ParsedFile( stream );
}
@@ -410,7 +410,7 @@ void BackgroundParser::fileParsed( ParsedFile& file ) {
static_cast<KDevSourceProvider*>( m_driver->sourceProvider() ) ->setReadFromDisk( false );
- if ( m_unitDict.find( file.fileName() ) != m_unitDict.end() )
+ if ( m_unitDict.tqfind( file.fileName() ) != m_unitDict.end() )
{
Unit * u = m_unitDict[ file.fileName() ];
m_unitDict.remove( file.fileName() );
@@ -422,7 +422,7 @@ void BackgroundParser::fileParsed( ParsedFile& file ) {
KApplication::postEvent( m_cppSupport, new FileParsedEvent( file.fileName(), unit->problems, m_readFromDisk ) );
- m_currentFile = TQString::null;
+ m_currentFile = TQString();
if ( m_fileList->isEmpty() )
m_isEmpty.wakeAll();
@@ -430,12 +430,12 @@ void BackgroundParser::fileParsed( ParsedFile& file ) {
Unit* BackgroundParser::findUnit( const TQString& fileName )
{
- TQMap<TQString, Unit*>::Iterator it = m_unitDict.find( fileName );
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.tqfind( fileName );
return it != m_unitDict.end() ? *it : 0;
}
bool BackgroundParser::hasTranslationUnit( const TQString& fileName ) {
- TQMap<TQString, Unit*>::Iterator it = m_unitDict.find( fileName );
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.tqfind( fileName );
return it != m_unitDict.end();
}
@@ -526,7 +526,7 @@ void BackgroundParser::run()
if ( m_close )
break;
- QPair<SafeString, bool> entry = m_fileList->takeFront();
+ TQPair<SafeString, bool> entry = m_fileList->takeFront();
TQString fileName = entry.first.c_str();
bool readFromDisk = entry.second;
m_currentFile = deepCopy(fileName);
@@ -534,7 +534,7 @@ void BackgroundParser::run()
( void ) parseFile( fileName, readFromDisk, true );
- m_currentFile = TQString::null;
+ m_currentFile = TQString();
}
kdDebug( 9007 ) << "!!!!!!!!!!!!!!!!!! BG PARSER DESTROYED !!!!!!!!!!!!" << endl;
diff --git a/languages/cpp/backgroundparser.h b/languages/cpp/backgroundparser.h
index 6bbec3fc..f3cd86fd 100644
--- a/languages/cpp/backgroundparser.h
+++ b/languages/cpp/backgroundparser.h
@@ -44,7 +44,7 @@ protected:
void operator = ( const Unit& source );
};
-class BackgroundParser: public QThread
+class BackgroundParser: public TQThread
{
public:
BackgroundParser( CppSupportPart*, TQWaitCondition* consumed );
diff --git a/languages/cpp/ccconfigwidget.cpp b/languages/cpp/ccconfigwidget.cpp
index 44ce91c2..f3400a28 100644
--- a/languages/cpp/ccconfigwidget.cpp
+++ b/languages/cpp/ccconfigwidget.cpp
@@ -60,8 +60,8 @@
using namespace std;
-CCConfigWidget::CCConfigWidget( CppSupportPart* part, TQWidget* parent, const char* name )
- : CCConfigWidgetBase( parent, name )
+CCConfigWidget::CCConfigWidget( CppSupportPart* part, TQWidget* tqparent, const char* name )
+ : CCConfigWidgetBase( tqparent, name )
{
m_pPart = part;
connect( m_pPart->codeRepository(), TQT_SIGNAL( catalogRegistered( Catalog* ) ),
@@ -70,12 +70,12 @@ CCConfigWidget::CCConfigWidget( CppSupportPart* part, TQWidget* parent, const ch
this, TQT_SLOT( catalogUnregistered( Catalog* ) ) );
connect( m_qtDir, TQT_SIGNAL(urlSelected(const TQString &)),
- this, TQT_SLOT(isValidQtDir(const TQString &)));
+ this, TQT_SLOT(isValidTQtDir(const TQString &)));
connect( m_qtDir, TQT_SIGNAL(textChanged(const TQString &)),
- this, TQT_SLOT(isValidQtDir(const TQString &)));
+ this, TQT_SLOT(isValidTQtDir(const TQString &)));
initGeneralTab( );
- initQtTab();
+ initTQtTab();
initCodeCompletionTab( );
initGetterSetterTab( );
initSplitTab();
@@ -104,7 +104,7 @@ CCConfigWidget::~CCConfigWidget( )
void CCConfigWidget::accept( )
{
saveFileTemplatesTab();
- saveQtTab();
+ saveTQtTab();
saveCodeCompletionTab();
saveGetterSetterTab();
saveSplitTab();
@@ -230,7 +230,7 @@ void CCConfigWidget::slotRemovePCS()
return ;
TQString db = advancedOptions->selectedItem() ->text( 0 );
- TQString question = i18n( "Are you sure you want to delete the \"%1\" database?" ).arg( db );
+ TQString question = i18n( "Are you sure you want to delete the \"%1\" database?" ).tqarg( db );
KStandardDirs *dirs = m_pPart->instance() ->dirs();
TQString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + KURL::encode_string_no_slash( db ) + ".db";
@@ -314,7 +314,7 @@ void CCConfigWidget::slotGetterSetterValuesChanged( )
m_edtExampleSet->setPaletteForegroundColor( TQColor( "black" ) );
}
- TQStringList prefixes = TQStringList::split( ",", m_edtRemovePrefix->text().replace( " ", "" ) );
+ TQStringList prefixes = TQStringList::split( ",", m_edtRemovePrefix->text().tqreplace( " ", "" ) );
unsigned int len = 0;
TQStringList::ConstIterator theend = prefixes.end();
for ( TQStringList::ConstIterator ci = prefixes.begin(); ci != theend; ++ci )
@@ -355,7 +355,7 @@ void CCConfigWidget::saveGetterSetterTab( )
config->setPrefixGet( m_edtGet->text() );
config->setPrefixSet( m_edtSet->text() );
- config->setPrefixVariable( TQStringList::split( ",", m_edtRemovePrefix->text().replace( " ", "" ) ) );
+ config->setPrefixVariable( TQStringList::split( ",", m_edtRemovePrefix->text().tqreplace( " ", "" ) ) );
config->setParameterName( m_edtParameterName->text() );
config->store();
}
@@ -393,11 +393,11 @@ void CCConfigWidget::saveSplitTab( )
config->store();
}
-void CCConfigWidget::initQtTab()
+void CCConfigWidget::initTQtTab()
{
m_qtDir->setMode(KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly);
- QtBuildConfig* c = m_pPart->qtBuildConfig();
+ TQtBuildConfig* c = m_pPart->qtBuildConfig();
c->init();
m_qtUsed->setChecked( c->isUsed() );
@@ -435,7 +435,7 @@ void CCConfigWidget::initQtTab()
m_qtStyleVersion3->setChecked( true );
}
m_qtDir->setURL( c->root() );
- isValidQtDir(m_qtDir->url());
+ isValidTQtDir(m_qtDir->url());
m_qmakePath->setURL( c->qmakePath() );
isExecutable( m_qmakePath->url() );
m_designerPath->setURL( c->designerPath() );
@@ -460,7 +460,7 @@ bool CCConfigWidget::isExecutable( const TQString& path )
return ( fi.exists() && fi.isExecutable() );
}
-void CCConfigWidget::isQMakeExecutable( const TQString& path )
+void CCConfigWidget::isTQMakeExecutable( const TQString& path )
{
if( !isExecutable( path ) )
{
@@ -482,9 +482,9 @@ void CCConfigWidget::isDesignerExecutable( const TQString& path )
}
}
-void CCConfigWidget::saveQtTab()
+void CCConfigWidget::saveTQtTab()
{
- QtBuildConfig* c = m_pPart->qtBuildConfig();
+ TQtBuildConfig* c = m_pPart->qtBuildConfig();
c->setUsed( m_qtUsed->isChecked() );
if( m_versionQt4->isChecked() )
@@ -503,7 +503,7 @@ void CCConfigWidget::saveQtTab()
c->setIncludeStyle( 3 );
}
c->setRoot( m_qtDir->url() );
- c->setQMakePath( m_qmakePath->url() );
+ c->setTQMakePath( m_qmakePath->url() );
c->setDesignerPath( m_designerPath->url() );
if( m_kdevembedded->isChecked() )
{
@@ -519,7 +519,7 @@ void CCConfigWidget::saveQtTab()
c->store();
}
-void CCConfigWidget::isValidQtDir( const TQString &dir )
+void CCConfigWidget::isValidTQtDir( const TQString &dir )
{
TQFileInfo inc( dir + TQString( TQChar( TQDir::separator() ) )+
"include"+TQString( TQChar( TQDir::separator() ) )+
@@ -533,7 +533,7 @@ void CCConfigWidget::isValidQtDir( const TQString &dir )
}
}
-void CCConfigWidget::toggleQtVersion( bool )
+void CCConfigWidget::toggleTQtVersion( bool )
{
if ( m_versionQt3->isChecked() )
{
@@ -551,17 +551,17 @@ void CCConfigWidget::toggleQtVersion( bool )
m_kdevexternal->setEnabled( false );
pluginPaths->setEnabled( true );
}
- isValidQtDir( m_qtDir->url() );
- isQMakeExecutable( m_qmakePath->url() );
+ isValidTQtDir( m_qtDir->url() );
+ isTQMakeExecutable( m_qmakePath->url() );
isDesignerExecutable( m_designerPath->url() );
}
void CCConfigWidget::openPluginPaths()
{
kdDebug(9024) << "Plugin paths opened" << endl;
- QtBuildConfig* c = m_pPart->qtBuildConfig();
+ TQtBuildConfig* c = m_pPart->qtBuildConfig();
KDialog d( this );
- TQVBoxLayout* mainlayout = new TQVBoxLayout( &d );
+ TQVBoxLayout* maintqlayout = new TQVBoxLayout( &d );
KPushButton* ok = new KPushButton( KStdGuiItem::ok(), &d );
connect( ok, TQT_SIGNAL(clicked()), &d, TQT_SLOT(accept()));
KPushButton* cancel = new KPushButton( KStdGuiItem::cancel(), &d );
@@ -571,13 +571,13 @@ void CCConfigWidget::openPluginPaths()
btns->addWidget(ok);
btns->addWidget(cancel);
- d.setCaption( i18n( "Edit Qt4 Designer Plugin Paths" ) );
+ d.setCaption( i18n( "Edit TQt4 Designer Plugin Paths" ) );
KURLRequester * req = new KURLRequester( &d );
req->setMode( KFile::Directory );
KEditListBox* p = new KEditListBox( i18n( "Plugin Paths" ), req->customEditor(), &d );
p->insertStringList( c->designerPluginPaths() );
- mainlayout->addWidget( p );
- mainlayout->addLayout( btns );
+ maintqlayout->addWidget( p );
+ maintqlayout->addLayout( btns );
d.resize( 450, 250 );
if( d.exec() == TQDialog::Accepted)
{
diff --git a/languages/cpp/ccconfigwidget.h b/languages/cpp/ccconfigwidget.h
index ea6c6d4a..3cf2f89b 100644
--- a/languages/cpp/ccconfigwidget.h
+++ b/languages/cpp/ccconfigwidget.h
@@ -23,9 +23,10 @@ class KEditListBox;
class CCConfigWidget : public CCConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- CCConfigWidget( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0 );
+ CCConfigWidget( CppSupportPart* part, TQWidget* tqparent = 0, const char* name = 0 );
virtual ~CCConfigWidget( );
public slots:
@@ -39,10 +40,10 @@ protected slots:
private slots:
void catalogRegistered( Catalog* c );
void catalogUnregistered( Catalog* c );
- void isValidQtDir( const TQString & );
+ void isValidTQtDir( const TQString & );
void isDesignerExecutable( const TQString& );
- void isQMakeExecutable( const TQString& );
- void toggleQtVersion( bool );
+ void isTQMakeExecutable( const TQString& );
+ void toggleTQtVersion( bool );
void openPluginPaths( );
private:
@@ -51,8 +52,8 @@ private:
void initGeneralTab();
void saveFileTemplatesTab();
- void initQtTab();
- void saveQtTab();
+ void initTQtTab();
+ void saveTQtTab();
void initCodeCompletionTab();
void saveCodeCompletionTab();
diff --git a/languages/cpp/ccconfigwidgetbase.ui b/languages/cpp/ccconfigwidgetbase.ui
index b7efc7d0..5b7e5aa5 100644
--- a/languages/cpp/ccconfigwidgetbase.ui
+++ b/languages/cpp/ccconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>CCConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>CCConfigWidgetBase</cstring>
</property>
@@ -19,11 +19,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>cpp_options</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>codeCompletionPage</cstring>
</property>
@@ -34,15 +34,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox4</cstring>
</property>
@@ -53,7 +53,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>checkAutomaticCodeCompletion</cstring>
</property>
@@ -75,9 +75,9 @@
<string>Offer options to complete what you are typing.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout13</cstring>
+ <cstring>tqlayout13</cstring>
</property>
<hbox>
<property name="name">
@@ -93,7 +93,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>30</width>
<height>20</height>
@@ -116,7 +116,7 @@
<string>How long after a key press to offer suggestions</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -134,7 +134,7 @@
</widget>
</hbox>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>checkListGlobalItems</cstring>
</property>
@@ -161,7 +161,7 @@ This may bloat the completion-list
and create a significant delay.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>checkCompleteReturnType</cstring>
</property>
@@ -183,7 +183,7 @@ of member-functions) in the
completion-box.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>checkCompleteArgumentType</cstring>
</property>
@@ -203,7 +203,7 @@ completion-box.</string>
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox8_2</cstring>
</property>
@@ -214,7 +214,7 @@ completion-box.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>checkAutomaticArgumentsHint</cstring>
</property>
@@ -225,9 +225,9 @@ completion-box.</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout14</cstring>
+ <cstring>tqlayout14</cstring>
</property>
<hbox>
<property name="name">
@@ -243,7 +243,7 @@ completion-box.</string>
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>30</width>
<height>20</height>
@@ -263,7 +263,7 @@ completion-box.</string>
</sizepolicy>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -281,7 +281,7 @@ completion-box.</string>
</widget>
</hbox>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>checkShowCommentInArgumentHint</cstring>
</property>
@@ -297,15 +297,15 @@ argument hint</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout12</cstring>
+ <cstring>tqlayout12</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>buttonGroup6</cstring>
</property>
@@ -316,7 +316,7 @@ argument hint</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>radioButton13</cstring>
</property>
@@ -327,7 +327,7 @@ argument hint</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>checkParseMissingHeaders</cstring>
</property>
@@ -341,7 +341,7 @@ into a special completion-database. To reparse the headers delete
the database and reopen the project.</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>checkPreprocessIncludedHeaders</cstring>
</property>
@@ -359,7 +359,7 @@ Note: Parsing may become very slow when this is enabled
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox5</cstring>
</property>
@@ -373,7 +373,7 @@ Note: Parsing may become very slow when this is enabled
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Column 1</string>
@@ -395,9 +395,9 @@ Note: Parsing may become very slow when this is enabled
<enum>LastColumn</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
@@ -413,14 +413,14 @@ Note: Parsing may become very slow when this is enabled
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>31</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>newPCSButton</cstring>
</property>
@@ -431,7 +431,7 @@ Note: Parsing may become very slow when this is enabled
<string>Click to start the Code Completion database creation wizard.</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>removePCSButton</cstring>
</property>
@@ -449,7 +449,7 @@ Note: Parsing may become very slow when this is enabled
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>31</height>
@@ -462,7 +462,7 @@ Note: Parsing may become very slow when this is enabled
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox9_2</cstring>
</property>
@@ -473,7 +473,7 @@ Note: Parsing may become very slow when this is enabled
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>checkResolveIncludePaths</cstring>
</property>
@@ -496,7 +496,7 @@ This also works with cmake, and maybe some other build-systems that build on mak
The project needs to be compiled or at least configured before this system may work.</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>checkShowTypeEvaluationInStatusBar</cstring>
</property>
@@ -530,7 +530,7 @@ example: "std&lt;&lt;_GLIBCXX_STD;NewNamespaceName=OldNamespaceName; &lt;&lt; So
if they were one("a=b" is equivalent to "a&lt;&lt;b;b&lt;&lt;a")</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_6</cstring>
</property>
@@ -538,7 +538,7 @@ if they were one("a=b" is equivalent to "a&lt;&lt;b;b&lt;&lt;a")</string>
<string>Custom include paths:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -558,7 +558,7 @@ if they were one("a=b" is equivalent to "a&lt;&lt;b;b&lt;&lt;a")</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -567,7 +567,7 @@ if they were one("a=b" is equivalent to "a&lt;&lt;b;b&lt;&lt;a")</string>
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>navigationTab</cstring>
</property>
@@ -578,7 +578,7 @@ if they were one("a=b" is equivalent to "a&lt;&lt;b;b&lt;&lt;a")</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox12</cstring>
</property>
@@ -589,7 +589,7 @@ if they were one("a=b" is equivalent to "a&lt;&lt;b;b&lt;&lt;a")</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_splitEnable</cstring>
</property>
@@ -603,15 +603,15 @@ if they were one("a=b" is equivalent to "a&lt;&lt;b;b&lt;&lt;a")</string>
<string>Check to have header and source appear in the same page.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_splitSync</cstring>
</property>
@@ -632,7 +632,7 @@ navigate the header and vice versa</string>
</widget>
</vbox>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>m_splitOrientationBox</cstring>
</property>
@@ -640,7 +640,7 @@ navigate the header and vice versa</string>
<bool>false</bool>
</property>
<property name="title">
- <string>Orientation</string>
+ <string>Qt::Orientation</string>
</property>
<property name="exclusive">
<bool>true</bool>
@@ -652,7 +652,7 @@ navigate the header and vice versa</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_splitVertical</cstring>
</property>
@@ -666,7 +666,7 @@ navigate the header and vice versa</string>
<string>Select this if your project is using Qt version 3.x.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_splitHorizontal</cstring>
</property>
@@ -691,14 +691,14 @@ navigate the header and vice versa</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>400</height>
</size>
</property>
</spacer>
- <widget class="QGroupBox" row="1" column="0">
+ <widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>groupBox21</cstring>
</property>
@@ -709,7 +709,7 @@ navigate the header and vice versa</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_switchShouldMatch</cstring>
</property>
@@ -732,7 +732,7 @@ cursor with the matching declaration/definition.
</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_showContextMenuExplosion</cstring>
</property>
@@ -754,7 +754,7 @@ for the current file and its matching
header/implementation file.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>checkBox18</cstring>
</property>
@@ -776,7 +776,7 @@ plugin enabled to have use all options.</string>
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>classWizardPage</cstring>
</property>
@@ -787,7 +787,7 @@ plugin enabled to have use all options.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="2" column="0">
+ <widget class="TQGroupBox" row="2" column="0">
<property name="name">
<cstring>options</cstring>
</property>
@@ -819,7 +819,7 @@ plugin enabled to have use all options.</string>
<cstring>implementation_suffix</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -830,7 +830,7 @@ plugin enabled to have use all options.</string>
<cstring>interface_suffix</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
@@ -853,7 +853,7 @@ plugin enabled to have use all options.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>337</height>
@@ -862,7 +862,7 @@ plugin enabled to have use all options.</string>
</spacer>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>qtPage</cstring>
</property>
@@ -873,7 +873,7 @@ plugin enabled to have use all options.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_qtUsed</cstring>
</property>
@@ -881,7 +881,7 @@ plugin enabled to have use all options.</string>
<string>Enable Qt opt&amp;ions</string>
</property>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>m_qtVersionDirectoryBox</cstring>
</property>
@@ -903,15 +903,15 @@ This option only applies to QMake projects.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_versionQt3</cstring>
</property>
@@ -928,7 +928,7 @@ This option only applies to QMake projects.</string>
<string>Select this if your project is using Qt version 3.x.&lt;br&gt;When this is changed the project needs to be closed and re-opened.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_versionQt4</cstring>
</property>
@@ -942,14 +942,14 @@ This option only applies to QMake projects.</string>
<string>Select this if your project is using Qt version 4.x.&lt;br&gt;When this is changed the project needs to be closed and re-opened.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_5</cstring>
</property>
<property name="text">
<string>(After changing the project needs to be re-opened)</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
@@ -963,7 +963,7 @@ This option only applies to QMake projects.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>470</width>
<height>20</height>
@@ -972,15 +972,15 @@ This option only applies to QMake projects.</string>
</spacer>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_txtQtDir</cstring>
</property>
@@ -1004,15 +1004,15 @@ This option only applies to QMake projects.</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_txtQMake</cstring>
</property>
@@ -1032,7 +1032,7 @@ This option only applies to QMake projects.</string>
</widget>
</vbox>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>m_qtStyleBox</cstring>
</property>
@@ -1052,7 +1052,7 @@ This option only applies to QMake projects.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_qtStyleVersion3</cstring>
</property>
@@ -1069,7 +1069,7 @@ This option only applies to QMake projects.</string>
<string>Select this if your project is using include style as known from Qt version 3.x.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_qtStyleVersion4</cstring>
</property>
@@ -1085,7 +1085,7 @@ This option only applies to QMake projects.</string>
</widget>
</vbox>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>m_designerBox</cstring>
</property>
@@ -1105,7 +1105,7 @@ This option only applies to QMake projects.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_kdevembedded</cstring>
</property>
@@ -1119,7 +1119,7 @@ This option only applies to QMake projects.</string>
<string>KDevelop comes with its own UI designer that can either be embedded or be run as a separate program. Check this button if you wish to integrate the UI designer into KDevelop.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_kdevexternal</cstring>
</property>
@@ -1133,7 +1133,7 @@ This option only applies to QMake projects.</string>
<string>KDevelop comes with its own UI designer that can either be embedded or be run as a separate program. Check this button if you wish to run KDevelop's UI designer as a separate program.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_qtdesigner</cstring>
</property>
@@ -1147,15 +1147,15 @@ This option only applies to QMake projects.</string>
<string>Check this button if you wish to use Qt Designer rather than KDevelop's integrated designer.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_txtDesigner</cstring>
</property>
@@ -1176,15 +1176,15 @@ This option only applies to QMake projects.</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_4</cstring>
</property>
@@ -1217,7 +1217,7 @@ This option only applies to QMake projects.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>70</height>
@@ -1226,7 +1226,7 @@ This option only applies to QMake projects.</string>
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>accessorPage</cstring>
</property>
@@ -1237,7 +1237,7 @@ This option only applies to QMake projects.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="1" column="0">
+ <widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>groupBox8</cstring>
</property>
@@ -1248,15 +1248,15 @@ This option only applies to QMake projects.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
- <cstring>layout5_2</cstring>
+ <cstring>tqlayout5_2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_lblVariableName</cstring>
</property>
@@ -1282,7 +1282,7 @@ This option only applies to QMake projects.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>61</width>
<height>20</height>
@@ -1313,7 +1313,7 @@ This option only applies to QMake projects.</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel7</cstring>
</property>
@@ -1321,7 +1321,7 @@ This option only applies to QMake projects.</string>
<string>Get method:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
@@ -1331,7 +1331,7 @@ This option only applies to QMake projects.</string>
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox9</cstring>
</property>
@@ -1367,7 +1367,7 @@ right mouse button context menu only when
you right click on a variable in a header file.</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>m_lblGet</cstring>
</property>
@@ -1393,7 +1393,7 @@ right mouse button context menu only when
you right click on a variable in a header file.</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="2" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>m_lblSet</cstring>
</property>
@@ -1409,7 +1409,7 @@ you right click on a variable in a header file.</string>
<string>m_</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>m_lblRemovePrefix</cstring>
</property>
@@ -1435,14 +1435,14 @@ you right click on a variable in a header file.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>87</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="2" column="2" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="2" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>m_lblParameterName</cstring>
</property>
@@ -1460,7 +1460,7 @@ you right click on a variable in a header file.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>87</width>
<height>20</height>
@@ -1477,7 +1477,7 @@ you right click on a variable in a header file.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>92</width>
<height>20</height>
@@ -1494,7 +1494,7 @@ you right click on a variable in a header file.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>92</width>
<height>20</height>
@@ -1513,7 +1513,7 @@ you right click on a variable in a header file.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>91</height>
@@ -1758,7 +1758,7 @@ you right click on a variable in a header file.</string>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot access="protected">implementationFile()</slot>
<slot access="protected">interfaceFile()</slot>
<slot access="protected">slotAddPPPath()</slot>
@@ -1779,9 +1779,9 @@ you right click on a variable in a header file.</string>
<slot>isQMakeExecutable(const QString&amp;)</slot>
<slot>isValidQtDir(const QString&amp;)</slot>
<slot>openPluginPaths()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>knuminput.h</includehint>
<includehint>knuminput.h</includehint>
diff --git a/languages/cpp/classgeneratorconfig.cpp b/languages/cpp/classgeneratorconfig.cpp
index 70ad5d10..963faa71 100644
--- a/languages/cpp/classgeneratorconfig.cpp
+++ b/languages/cpp/classgeneratorconfig.cpp
@@ -21,8 +21,8 @@
#include "cppsupportfactory.h"
#include "classgeneratorconfig.h"
-ClassGeneratorConfig::ClassGeneratorConfig( TQWidget* parent, const char* name, WFlags fl )
- : ClassGeneratorConfigBase( parent, name, fl )
+ClassGeneratorConfig::ClassGeneratorConfig( TQWidget* tqparent, const char* name, WFlags fl )
+ : ClassGeneratorConfigBase( tqparent, name, fl )
{
readConfig();
currTemplate = &cppHeaderText;
@@ -34,8 +34,8 @@ ClassGeneratorConfig::ClassGeneratorConfig( TQString v_cppHeaderText, TQString v
TQString v_gtkHeaderText, TQString v_gtkSourceText,
NameCase v_fileCase, NameCase v_defCase, NameCase v_superCase,
bool v_showAuthor, bool v_genDoc, bool v_reformat,
- TQWidget* parent, const char* name, WFlags fl )
- : ClassGeneratorConfigBase( parent, name, fl ),
+ TQWidget* tqparent, const char* name, WFlags fl )
+ : ClassGeneratorConfigBase( tqparent, name, fl ),
cppHeaderText( v_cppHeaderText ), cppSourceText( v_cppSourceText ),
objcHeaderText( v_objcHeaderText ), objcSourceText( v_objcSourceText ),
gtkHeaderText( v_gtkHeaderText ), gtkSourceText( v_gtkSourceText )
diff --git a/languages/cpp/classgeneratorconfig.h b/languages/cpp/classgeneratorconfig.h
index 783934d4..f9a82752 100644
--- a/languages/cpp/classgeneratorconfig.h
+++ b/languages/cpp/classgeneratorconfig.h
@@ -17,18 +17,19 @@
class ClassGeneratorConfig : public ClassGeneratorConfigBase
{
Q_OBJECT
+ TQ_OBJECT
public:
enum NameCase { LowerCase, UpperCase, SameAsClassCase, SameAsFileCase };
- ClassGeneratorConfig( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ ClassGeneratorConfig( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
ClassGeneratorConfig( TQString v_cppHeaderText, TQString v_cppSourceText,
TQString v_objcHeaderText, TQString v_objcSourceText,
TQString v_gtkHeaderText, TQString v_gtkSourceText,
NameCase v_fileCase, NameCase v_defCase, NameCase v_superCase,
bool v_showAuthor, bool v_genDoc, bool v_reformat,
- TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~ClassGeneratorConfig();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/classgeneratorconfigbase.ui b/languages/cpp/classgeneratorconfigbase.ui
index 566e9eb2..1bb25fe6 100644
--- a/languages/cpp/classgeneratorconfigbase.ui
+++ b/languages/cpp/classgeneratorconfigbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>ClassGeneratorConfigBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ClassGeneratorConfigBase</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox7_2</cstring>
</property>
@@ -30,7 +30,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox" row="0" column="0">
+ <widget class="TQComboBox" row="0" column="0">
<item>
<property name="text">
<string>Cpp Header</string>
@@ -65,14 +65,14 @@
<cstring>templatename_box</cstring>
</property>
</widget>
- <widget class="QTextEdit" row="1" column="0">
+ <widget class="TQTextEdit" row="1" column="0">
<property name="name">
<cstring>template_edit</cstring>
</property>
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="1" column="0">
+ <widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>groupBox10</cstring>
</property>
@@ -91,7 +91,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>textLabel3_2</cstring>
</property>
@@ -102,7 +102,7 @@
<cstring>defcase_box</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -113,7 +113,7 @@
<cstring>filecase_box</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="0">
+ <widget class="TQComboBox" row="1" column="0">
<item>
<property name="text">
<string>Lowercase</string>
@@ -133,7 +133,7 @@
<cstring>filecase_box</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>Lowercase</string>
@@ -161,7 +161,7 @@
<number>1</number>
</property>
</widget>
- <widget class="QComboBox" row="1" column="2">
+ <widget class="TQComboBox" row="1" column="2">
<item>
<property name="text">
<string>Lowercase</string>
@@ -181,7 +181,7 @@
<cstring>supercase_box</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel3_3</cstring>
</property>
@@ -194,7 +194,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="2" column="0">
+ <widget class="TQGroupBox" row="2" column="0">
<property name="name">
<cstring>groupBox9</cstring>
</property>
@@ -205,7 +205,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>author_box</cstring>
</property>
@@ -213,7 +213,7 @@
<string>Include &amp;author name in class documentation</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>doc_box</cstring>
</property>
@@ -223,7 +223,7 @@
</widget>
</grid>
</widget>
- <widget class="QCheckBox" row="3" column="0">
+ <widget class="TQCheckBox" row="3" column="0">
<property name="name">
<cstring>reformat_box</cstring>
</property>
@@ -253,9 +253,9 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot access="protected">templateTypeChanged(int type)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/cpp/codeinformationrepository.cpp b/languages/cpp/codeinformationrepository.cpp
index e71f3a66..3533dd73 100644
--- a/languages/cpp/codeinformationrepository.cpp
+++ b/languages/cpp/codeinformationrepository.cpp
@@ -30,7 +30,7 @@ my_unique( const TQValueList<KTextEditor::CompletionEntry>& entryList )
e.text + " " +
e.prefix + " " +
e.postfix + " ";
- if ( map.find( key ) == map.end() )
+ if ( map.tqfind( key ) == map.end() )
{
map[ key ] = TRUE;
l << e;
@@ -265,7 +265,7 @@ KTextEditor::CompletionEntry CodeInformationRepository::toEntry( Tag & tag, CppC
{
TQString argName = argumentNames[ i ];
if ( !argName.isEmpty() )
- signature += TQString::fromLatin1( " " ) + argName;
+ signature += TQString::tqfromLatin1( " " ) + argName;
}
@@ -286,12 +286,12 @@ KTextEditor::CompletionEntry CodeInformationRepository::toEntry( Tag & tag, CppC
if ( completionMode == CppCodeCompletion::VirtualDeclCompletion )
{
entry.text += entry.postfix + ";";
- entry.postfix = TQString::null;
+ entry.postfix = TQString();
}
else if ( completionMode != CppCodeCompletion::NormalCompletion )
{
entry.text += entry.postfix;
- entry.postfix = TQString::null;
+ entry.postfix = TQString();
}
TQString comment = tag.attribute( "description" ).toString();
diff --git a/languages/cpp/codeinformationrepository.h b/languages/cpp/codeinformationrepository.h
index 2c5f4cb2..e7e2c649 100644
--- a/languages/cpp/codeinformationrepository.h
+++ b/languages/cpp/codeinformationrepository.h
@@ -20,7 +20,7 @@
struct TypeProcessor {
virtual TQString processType( const TQString& type ) = 0;
- virtual TQString parentType() = 0;
+ virtual TQString tqparentType() = 0;
};
class KDevCodeRepository;
diff --git a/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp b/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp
index 8f632d69..3d7ff152 100644
--- a/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp
+++ b/languages/cpp/compiler/gccoptions/gccoptionsplugin.cpp
@@ -26,10 +26,10 @@
K_EXPORT_COMPONENT_FACTORY( libkdevgccoptions, KGenericFactory<GccOptionsPlugin>( "kdevgccoptions" ) )
-class GeneralTab : public QWidget
+class GeneralTab : public TQWidget
{
public:
- GeneralTab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
+ GeneralTab( GccOptionsPlugin::Type type, TQWidget *tqparent = 0, const char *name = 0 );
~GeneralTab();
void readFlags( TQStringList *str );
@@ -40,10 +40,10 @@ private:
};
-class OptimizationTab : public QWidget
+class OptimizationTab : public TQWidget
{
public:
- OptimizationTab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
+ OptimizationTab( GccOptionsPlugin::Type type, TQWidget *tqparent = 0, const char *name = 0 );
~OptimizationTab();
void readFlags( TQStringList *str );
@@ -55,10 +55,10 @@ private:
};
-class G77Tab : public QWidget
+class G77Tab : public TQWidget
{
public:
- G77Tab( TQWidget *parent = 0, const char *name = 0 );
+ G77Tab( TQWidget *tqparent = 0, const char *name = 0 );
~G77Tab();
void readFlags( TQStringList *str );
@@ -69,10 +69,10 @@ private:
};
-class Warnings1Tab : public QWidget
+class Warnings1Tab : public TQWidget
{
public:
- Warnings1Tab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
+ Warnings1Tab( GccOptionsPlugin::Type type, TQWidget *tqparent = 0, const char *name = 0 );
~Warnings1Tab();
void readFlags( TQStringList *str );
@@ -84,10 +84,10 @@ private:
};
-class Warnings2Tab : public QWidget
+class Warnings2Tab : public TQWidget
{
public:
- Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *parent = 0, const char *name = 0 );
+ Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *tqparent = 0, const char *name = 0 );
~Warnings2Tab();
void readFlags( TQStringList *str );
@@ -98,12 +98,12 @@ private:
};
-GeneralTab::GeneralTab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
- : TQWidget( parent, name ), controller( new FlagCheckBoxController )
+GeneralTab::GeneralTab( GccOptionsPlugin::Type type, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), controller( new FlagCheckBoxController )
{
- TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- layout->setAutoAdd( true );
- layout->addSpacing( 10 );
+ TQBoxLayout * tqlayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ tqlayout->setAutoAdd( true );
+ tqlayout->addSpacing( 10 );
TQVButtonGroup *output_group = new TQVButtonGroup( i18n( "Output" ), this );
new FlagCheckBox( output_group, controller,
@@ -114,7 +114,7 @@ GeneralTab::GeneralTab( GccOptionsPlugin::Type type, TQWidget *parent, const cha
"-save-temps", i18n( "Do not delete intermediate output like assembler files" ) );
TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
- layout->addSpacing( 10 );
+ tqlayout->addSpacing( 10 );
TQVButtonGroup *codegen_group = new TQVButtonGroup( i18n( "Code Generation" ), this );
if ( type != GccOptionsPlugin::GPP )
@@ -142,7 +142,7 @@ GeneralTab::GeneralTab( GccOptionsPlugin::Type type, TQWidget *parent, const cha
"-short-double", i18n( "Make 'double' the same as 'float'" ) );
TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
- layout->addStretch();
+ tqlayout->addStretch();
}
@@ -164,11 +164,11 @@ void GeneralTab::writeFlags( TQStringList *list )
}
-OptimizationTab::OptimizationTab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
- : TQWidget( parent, name )
+OptimizationTab::OptimizationTab( GccOptionsPlugin::Type type, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
{
- TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- layout->setAutoAdd( true );
+ TQBoxLayout * tqlayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ tqlayout->setAutoAdd( true );
TQVButtonGroup *group = new TQVButtonGroup( i18n( "Optimization Level" ), this );
Odefault = new TQRadioButton( i18n( "Default" ), group );
@@ -211,7 +211,7 @@ OptimizationTab::OptimizationTab( GccOptionsPlugin::Type type, TQWidget *parent,
}
TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
- layout->addStretch();
+ tqlayout->addStretch();
}
@@ -224,21 +224,21 @@ void OptimizationTab::readFlags( TQStringList *list )
optBox->readFlags( list );
TQStringList::Iterator sli;
- sli = list->find( "-O0" );
+ sli = list->tqfind( "-O0" );
if ( sli != list->end() )
{
O0->setChecked( true );
list->remove
( sli );
}
- sli = list->find( "-O1" );
+ sli = list->tqfind( "-O1" );
if ( sli != list->end() )
{
O1->setChecked( true );
list->remove
( sli );
}
- sli = list->find( "-O2" );
+ sli = list->tqfind( "-O2" );
if ( sli != list->end() )
{
O2->setChecked( true );
@@ -261,12 +261,12 @@ void OptimizationTab::writeFlags( TQStringList *list )
}
-G77Tab::G77Tab( TQWidget *parent, const char *name )
- : TQWidget( parent, name ), controller( new FlagCheckBoxController )
+G77Tab::G77Tab( TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), controller( new FlagCheckBoxController )
{
- TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- layout->setAutoAdd( true );
- layout->addSpacing( 10 );
+ TQBoxLayout * tqlayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ tqlayout->setAutoAdd( true );
+ tqlayout->addSpacing( 10 );
TQVButtonGroup *dialect_group = new TQVButtonGroup( i18n( "Dialect" ), this );
new FlagCheckBox( dialect_group, controller,
@@ -283,7 +283,7 @@ G77Tab::G77Tab( TQWidget *parent, const char *name )
"-fonetrip", i18n( "DO loops are executed at least once" ) );
TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
- layout->addSpacing( 10 );
+ tqlayout->addSpacing( 10 );
TQVButtonGroup *codegen_group = new TQVButtonGroup( i18n( "Code Generation" ), this );
new FlagCheckBox( codegen_group, controller,
@@ -294,7 +294,7 @@ G77Tab::G77Tab( TQWidget *parent, const char *name )
"-fbounds-check", i18n( "Generate run-time checks for array subscripts" ) );
TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
- layout->addStretch();
+ tqlayout->addStretch();
}
@@ -316,11 +316,11 @@ void G77Tab::writeFlags( TQStringList *list )
}
-Warnings1Tab::Warnings1Tab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
- : TQWidget( parent, name ), controller( new FlagCheckBoxController )
+Warnings1Tab::Warnings1Tab( GccOptionsPlugin::Type type, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), controller( new FlagCheckBoxController )
{
- TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- layout->setAutoAdd( true );
+ TQBoxLayout * tqlayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ tqlayout->setAutoAdd( true );
new FlagCheckBox( this, controller,
"-w", i18n( "Inhibit all warnings" ) );
@@ -366,7 +366,7 @@ Warnings1Tab::Warnings1Tab( GccOptionsPlugin::Type type, TQWidget *parent, const
new FlagListItem( wallBox,
"-Wmissing-braces", i18n( "<qt>Warn if an aggregate or union initializer is not fully bracketed</qt>" ) );
new FlagListItem( wallBox,
- "-Wparentheses", i18n( "<qt>Warn when parentheses are omitted in certain contexts</qt>" ) );
+ "-Wtqparentheses", i18n( "<qt>Warn when tqparentheses are omitted in certain contexts</qt>" ) );
new FlagListItem( wallBox,
"-Wsequence-point", i18n( "<qt>Warn about code that may have undefined semantics because of\n"
"violations of sequence point rules in the C standard</qt>" ) );
@@ -414,11 +414,11 @@ void Warnings1Tab::writeFlags( TQStringList *list )
}
-Warnings2Tab::Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
- : TQWidget( parent, name )
+Warnings2Tab::Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
{
- TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- layout->setAutoAdd( true );
+ TQBoxLayout * tqlayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ tqlayout->setAutoAdd( true );
wrestBox = new FlagListBox( this );
@@ -438,7 +438,7 @@ Warnings2Tab::Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *parent, const
"qualifier from the target type</qt>" ) );
new FlagListItem( wrestBox,
"-Wcast-align", i18n( "<qt>Warn whenever a pointer is cast such that the required\n"
- "alignment of the target is increased</qt>" ) );
+ "tqalignment of the target is increased</qt>" ) );
new FlagListItem( wrestBox,
"-Wwrite-strings", i18n( "<qt>Warn when the address of a string constant is cast\n"
"into a non-const <i>char *</i> pointer</qt>" ) );
@@ -463,7 +463,7 @@ Warnings2Tab::Warnings2Tab( GccOptionsPlugin::Type type, TQWidget *parent, const
"deprecated by using the 'deprecated' attribute</qt>" ) );
new FlagListItem( wrestBox,
"-Wpacked", i18n( "<qt>Warn if a structure is given the packed attribute, but the packed\n"
- "attribute has no effect on the layout or size of the structure</qt>" ) );
+ "attribute has no effect on the tqlayout or size of the structure</qt>" ) );
new FlagListItem( wrestBox,
"-Wpadded", i18n( "<qt>Warn if padding is included in a structure, either to align an\n"
"element of the structure or to align the whole structure</qt>" ) );
@@ -572,8 +572,8 @@ void Warnings2Tab::writeFlags( TQStringList *list )
// Last but not least... :-)
-GccOptionsDialog::GccOptionsDialog( GccOptionsPlugin::Type type, TQWidget *parent, const char *name )
- : KDialogBase( Tabbed, GccOptionsPlugin::captionForType( type ), Ok | Cancel, Ok, parent, name, true )
+GccOptionsDialog::GccOptionsDialog( GccOptionsPlugin::Type type, TQWidget *tqparent, const char *name )
+ : KDialogBase( Tabbed, GccOptionsPlugin::captionForType( type ), Ok | Cancel, Ok, tqparent, name, true )
{
TQVBox * vbox;
@@ -649,8 +649,8 @@ TQString GccOptionsDialog::flags() const
}
-GccOptionsPlugin::GccOptionsPlugin( TQObject *parent, const char *name, const TQStringList &args )
- : KDevCompilerOptions( parent, name )
+GccOptionsPlugin::GccOptionsPlugin( TQObject *tqparent, const char *name, const TQStringList &args )
+ : KDevCompilerOptions( tqparent, name )
{
gcctype = Unknown;
@@ -683,16 +683,16 @@ TQString GccOptionsPlugin::captionForType( Type type )
case G77:
return i18n( "GNU Fortran 77 Compiler Options" );
default:
- return TQString::null;
+ return TQString();
}
}
-TQString GccOptionsPlugin::exec( TQWidget *parent, const TQString &flags )
+TQString GccOptionsPlugin::exec( TQWidget *tqparent, const TQString &flags )
{
if ( gcctype == Unknown )
- return TQString::null;
- GccOptionsDialog *dlg = new GccOptionsDialog( gcctype, parent, "gcc options dialog" );
+ return TQString();
+ GccOptionsDialog *dlg = new GccOptionsDialog( gcctype, tqparent, "gcc options dialog" );
TQString newFlags = flags;
dlg->setFlags( flags );
if ( dlg->exec() == TQDialog::Accepted )
diff --git a/languages/cpp/compiler/gccoptions/gccoptionsplugin.h b/languages/cpp/compiler/gccoptions/gccoptionsplugin.h
index e5144e01..0ac93c23 100644
--- a/languages/cpp/compiler/gccoptions/gccoptionsplugin.h
+++ b/languages/cpp/compiler/gccoptions/gccoptionsplugin.h
@@ -27,15 +27,16 @@ class Warnings2Tab;
class GccOptionsPlugin : public KDevCompilerOptions
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Type { GCC, GPP, G77, Unknown };
- GccOptionsPlugin( TQObject *parent, const char *name, const TQStringList &args );
+ GccOptionsPlugin( TQObject *tqparent, const char *name, const TQStringList &args );
~GccOptionsPlugin();
static TQString captionForType(Type type);
- virtual TQString exec(TQWidget *parent, const TQString &flags);
+ virtual TQString exec(TQWidget *tqparent, const TQString &flags);
private:
Type gcctype;
@@ -45,7 +46,7 @@ private:
class GccOptionsDialog : public KDialogBase
{
public:
- GccOptionsDialog( GccOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
+ GccOptionsDialog( GccOptionsPlugin::Type type, TQWidget *tqparent=0, const char *name=0 );
~GccOptionsDialog();
void setFlags(const TQString &flags);
diff --git a/languages/cpp/computerecoverypoints.h b/languages/cpp/computerecoverypoints.h
index 4e2056d5..a7cfaea5 100644
--- a/languages/cpp/computerecoverypoints.h
+++ b/languages/cpp/computerecoverypoints.h
@@ -31,7 +31,7 @@
static TQString toSimpleName( NameAST* name )
{
if ( !name )
- return TQString::null;
+ return TQString();
TQString s;
TQPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
diff --git a/languages/cpp/configproblemreporter.ui b/languages/cpp/configproblemreporter.ui
index 164d6693..6a2ab252 100644
--- a/languages/cpp/configproblemreporter.ui
+++ b/languages/cpp/configproblemreporter.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConfigureProblemReporter</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ConfigureProblemReporter</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3_2</cstring>
</property>
@@ -31,7 +31,7 @@ They will be displayed in the 'Problems' output view and as markers in the edito
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>problemReporterCheckbox</cstring>
</property>
@@ -41,7 +41,7 @@ They will be displayed in the 'Problems' output view and as markers in the edito
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -60,15 +60,15 @@ If disabled, the parser will typically only run when the file is saved.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>bgParserCheckbox</cstring>
</property>
@@ -76,7 +76,7 @@ If disabled, the parser will typically only run when the file is saved.</string>
<string>Enable &amp;background parsing</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>delayLabel</cstring>
</property>
@@ -91,13 +91,13 @@ If disabled, the parser will typically only run when the file is saved.</string>
<property name="text">
<string>msec</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignLeft</set>
</property>
</widget>
</hbox>
</widget>
- <widget class="QSlider">
+ <widget class="TQSlider">
<property name="name">
<cstring>delaySlider</cstring>
</property>
@@ -125,7 +125,7 @@ If disabled, the parser will typically only run when the file is saved.</string>
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -139,7 +139,7 @@ If disabled, the parser will typically only run when the file is saved.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTextEdit">
+ <widget class="TQTextEdit">
<property name="name">
<cstring>specialHeader</cstring>
</property>
@@ -176,14 +176,14 @@ If disabled, the parser will typically only run when the file is saved.</string>
<variables>
<variable>CppSupportPart* m_part;</variable>
</variables>
-<slots>
+<Q_SLOTS>
<slot>init()</slot>
<slot>destroy()</slot>
<slot>setPart( CppSupportPart * part )</slot>
<slot>accept()</slot>
<slot>bgParserCheckbox_toggled( bool b )</slot>
<slot access="protected">setDelayLabel( int delay )</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/cpp/configproblemreporter.ui.h b/languages/cpp/configproblemreporter.ui.h
index 842e0c69..1931c66f 100644
--- a/languages/cpp/configproblemreporter.ui.h
+++ b/languages/cpp/configproblemreporter.ui.h
@@ -1,7 +1,7 @@
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
-** If you wish to add, delete or rename slots use Qt Designer which will
+** If you wish to add, delete or rename slots use TQt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/
@@ -92,7 +92,7 @@ void ConfigureProblemReporter::bgParserCheckbox_toggled( bool b )
void ConfigureProblemReporter::setDelayLabel( int delay )
{
- delayLabel->setText( i18n( "delay: %1 msec" ).arg( delay ) );
+ delayLabel->setText( i18n( "delay: %1 msec" ).tqarg( delay ) );
}
// kate: indent-mode csands; tab-width 4;
diff --git a/languages/cpp/cpp_tags.h b/languages/cpp/cpp_tags.h
index a82ac758..12a0199f 100644
--- a/languages/cpp/cpp_tags.h
+++ b/languages/cpp/cpp_tags.h
@@ -46,7 +46,7 @@ public:
static TQString format( const Tag& tag )
{
- return TQString::null;
+ return TQString();
}
int access() const
@@ -137,7 +137,7 @@ public:
static TQString format( const Tag& tag )
{
- return TQString::null;
+ return TQString();
}
int access() const
@@ -241,7 +241,7 @@ public:
static TQString format( const Tag& tag )
{
- return TQString::null;
+ return TQString();
}
int access() const
diff --git a/languages/cpp/cppcodecompletion.cpp b/languages/cpp/cppcodecompletion.cpp
index 266c3878..08f6aa1e 100644
--- a/languages/cpp/cppcodecompletion.cpp
+++ b/languages/cpp/cppcodecompletion.cpp
@@ -134,7 +134,7 @@ CppCodeCompletion* cppCompletionInstance = 0;
//file global functions, must be before any "using namespace"
TQString cleanForMenu( TQString txt ) {
- return txt.replace( "&", "&&" ).replace( " ", " " );
+ return txt.tqreplace( "&", "&&" ).tqreplace( " ", " " );
}
TQString buildSignature( TypePointer currType ) {
@@ -254,7 +254,7 @@ static TQValueList<ItemType> unique( const TQValueList<ItemType>& entryList ) {
e.prefix + " " +
e.text + " " +
e.postfix + " " ).simplifyWhiteSpace().stripWhiteSpace();
- if ( map.find( key ) == map.end() ) {
+ if ( map.tqfind( key ) == map.end() ) {
map[ key ] = TRUE;
l << e;
}
@@ -269,7 +269,7 @@ static TQStringList unique( const TQStringList& entryList ) {
TQStringList::ConstIterator it = entryList.begin();
while ( it != entryList.end() ) {
TQString e = *it++;
- if ( map.find( e ) == map.end() ) {
+ if ( map.tqfind( e ) == map.end() ) {
map[ e ] = TRUE;
l << e;
}
@@ -285,7 +285,7 @@ static TQStringList unique( const TQValueList<TQStringList>& entryList ) {
while ( it != entryList.end() ) {
TQStringList li = ( *it++ );
TQString e = li.join( "\n" );
- if ( map.find( e ) == map.end() ) {
+ if ( map.tqfind( e ) == map.end() ) {
map[ e ] = TRUE;
l += li;
}
@@ -348,7 +348,7 @@ struct PopupFillerHelpStruct {
TQMap<TQString, TQPopupMenu*> m_namespacePopupCache;
- void insertItem( TQPopupMenu* parent, SimpleTypeImpl::MemberInfo d , TQString prefix ) {
+ void insertItem( TQPopupMenu* tqparent, SimpleTypeImpl::MemberInfo d , TQString prefix ) {
Q_UNUSED(prefix);
TQString memType = d.memberTypeToString();
@@ -356,13 +356,13 @@ struct PopupFillerHelpStruct {
if ( d.memberType == SimpleTypeImpl::MemberInfo::Typedef && d.type->fullName() == "const int" )
memType = "enum";
- TQString txt = i18n( "Jump to %1 %2" ).arg( memType ).arg( cleanForMenu( d.name ) );
- int id = parent->insertItem( txt, receiver, TQT_SLOT( popupAction( int ) ) );
+ TQString txt = i18n( "Jump to %1 %2" ).tqarg( memType ).tqarg( cleanForMenu( d.name ) );
+ int id = tqparent->insertItem( txt, receiver, TQT_SLOT( popupAction( int ) ) );
receiver->m_popupActions.insert( id, d.decl );
}
- void insertItem ( TQPopupMenu* parent, TypeDesc d , TQString prefix ) {
+ void insertItem ( TQPopupMenu* tqparent, TypeDesc d , TQString prefix ) {
Debug dbg( "#insert# ", 10 );
TQString txt1, txt2;
@@ -374,14 +374,14 @@ struct PopupFillerHelpStruct {
for ( SimpleTypeNamespace::SlaveList::iterator it = slaves.begin(); it != slaves.end(); ++it ) {
SimpleTypeCodeModel* cm = dynamic_cast<SimpleTypeCodeModel*>( ( *it ).first.first.resolved().data() );
if ( cm && cm->item() ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
TQString scope = cm->scope().join("::");
- TQMap< TQString, TQPopupMenu* >::iterator it = m_namespacePopupCache.find( scope );
+ TQMap< TQString, TQPopupMenu* >::iterator it = m_namespacePopupCache.tqfind( scope );
if( it != m_namespacePopupCache.end() ) {
- parent->insertItem( "Imported Namespace " + scope, *it );
+ tqparent->insertItem( "Imported Namespace " + scope, *it );
delete m;
} else {
- parent->insertItem( "Imported Namespace " + scope, m );
+ tqparent->insertItem( "Imported Namespace " + scope, m );
insertItem( m, ( new SimpleTypeCachedCodeModel( cm->item() ) ) ->desc(), prefix );
m_namespacePopupCache.insert( scope, m );
@@ -390,7 +390,7 @@ struct PopupFillerHelpStruct {
SimpleTypeNamespace* cn = dynamic_cast<SimpleTypeNamespace*>( ( *it ).first.first.resolved().data() );
if( cn ) {
TypePointer t = new SimpleTypeNamespace( cn ); //To avoid endless recursion, this needs to be done(the dynamic-cast above fails)
- insertItem( parent, t->desc(), prefix );
+ insertItem( tqparent, t->desc(), prefix );
}
}
}
@@ -423,7 +423,7 @@ struct PopupFillerHelpStruct {
int sLine, sCol, eLine, eCol;
i->getStartPosition( &sLine, &sCol );
i->getEndPosition( &eLine, &eCol );
- insertItem( parent, (new SimpleTypeCodeModel( i ))->desc(), prefix + " " + (*it)->name() + TQString(" (%1 Lines): ").arg( eLine - sLine ) ); ///SimpleTypeCodeModel is used instead of SimpleTypeCachedNodeModel, so the detection at (1) does not trigger, this avoids endless recursion.
+ insertItem( tqparent, (new SimpleTypeCodeModel( i ))->desc(), prefix + " " + (*it)->name() + TQString(" (%1 Lines): ").tqarg( eLine - sLine ) ); ///SimpleTypeCodeModel is used instead of SimpleTypeCachedNodeModel, so the detection at (1) does not trigger, this avoids endless recursion.
}
}
@@ -434,10 +434,10 @@ struct PopupFillerHelpStruct {
if ( d.resolved() ) {
if ( d.resolved() ->asFunction() ) {
- txt1 = prefix + i18n( "Jump to declaration of %1(...)" ).arg( d.resolved() ->scope().join( "::" ) );
- txt2 = prefix + i18n( "Jump to definition of %1(...)" ).arg( d.resolved() ->scope().join( "::" ) );
+ txt1 = prefix + i18n( "Jump to declaration of %1(...)" ).tqarg( d.resolved() ->scope().join( "::" ) );
+ txt2 = prefix + i18n( "Jump to definition of %1(...)" ).tqarg( d.resolved() ->scope().join( "::" ) );
} else {
- txt1 = prefix + i18n( "Jump to %1" ).arg( cleanForMenu( d.resolved() ->scope().join( "::" ) ) );
+ txt1 = prefix + i18n( "Jump to %1" ).tqarg( cleanForMenu( d.resolved() ->scope().join( "::" ) ) );
}
} else {
if( !BuiltinTypes::isBuiltin( d ) ) {
@@ -447,12 +447,12 @@ struct PopupFillerHelpStruct {
}
}
- int id = parent->insertItem( txt1, receiver, TQT_SLOT( popupAction( int ) ) );
+ int id = tqparent->insertItem( txt1, receiver, TQT_SLOT( popupAction( int ) ) );
if ( d.resolved() )
receiver->m_popupActions.insert( id, d.resolved() ->getDeclarationInfo() );
if ( !txt2.isEmpty() ) {
- int id2 = parent->insertItem( txt2, receiver, TQT_SLOT( popupDefinitionAction( int ) ) );
+ int id2 = tqparent->insertItem( txt2, receiver, TQT_SLOT( popupDefinitionAction( int ) ) );
if ( d.resolved() )
receiver->m_popupDefinitionActions.insert( id2, d.resolved() ->getDeclarationInfo() );
}
@@ -523,7 +523,7 @@ struct PopupClassViewFillerHelpStruct {
return false;
}
- void insertItem( TQPopupMenu* parent, SimpleTypeImpl::MemberInfo d , TQString prefix ) {
+ void insertItem( TQPopupMenu* tqparent, SimpleTypeImpl::MemberInfo d , TQString prefix ) {
Q_UNUSED(prefix);
FileDom f = receiver->m_pSupport->codeModel() ->fileByName( d.decl.file );
if ( !f )
@@ -536,13 +536,13 @@ struct PopupClassViewFillerHelpStruct {
if ( d.memberType == SimpleTypeImpl::MemberInfo::Typedef && d.type->fullName() == "const int" )
memType = "enum";
- TQString txt = i18n( "Show %1 %2" ).arg( memType ).arg( cleanForMenu( d.name ) );
- int id = parent->insertItem( txt, receiver, TQT_SLOT( popupClassViewAction( int ) ) );
+ TQString txt = i18n( "Show %1 %2" ).tqarg( memType ).tqarg( cleanForMenu( d.name ) );
+ int id = tqparent->insertItem( txt, receiver, TQT_SLOT( popupClassViewAction( int ) ) );
receiver->m_popupClassViewActions.insert( id, dom );
}
- void insertItem ( TQPopupMenu* parent, TypeDesc d , TQString prefix ) {
+ void insertItem ( TQPopupMenu* tqparent, TypeDesc d , TQString prefix ) {
Debug dbg( "#insert# ", 10 );
TQString txt;
@@ -565,12 +565,12 @@ struct PopupClassViewFillerHelpStruct {
for ( SimpleTypeNamespace::SlaveList::iterator it = slaves.begin(); it != slaves.end(); ++it ) {
SimpleTypeCodeModel* cm = dynamic_cast<SimpleTypeCodeModel*>( ( *it ).first.first.resolved().data() );
if ( cm && cm->item() ) {
- insertItem( parent, ( new SimpleTypeCachedCodeModel( cm->item() ) ) ->desc(), prefix );
+ insertItem( tqparent, ( new SimpleTypeCachedCodeModel( cm->item() ) ) ->desc(), prefix );
} else {
SimpleTypeNamespace* cn = dynamic_cast<SimpleTypeNamespace*>( ( *it ).first.first.resolved().data() );
if( cn ) {
TypePointer t = new SimpleTypeNamespace( cn ); //to avoid endless recursion (caching would be better)
- insertItem( parent, t->desc(), prefix );
+ insertItem( tqparent, t->desc(), prefix );
}
}
}
@@ -583,7 +583,7 @@ struct PopupClassViewFillerHelpStruct {
if ( d.resolved() ->asFunction() ) {
n = buildSignature( d.resolved() );
}
- txt = prefix + i18n( "Show %1" ).arg( cleanForMenu( n ) );
+ txt = prefix + i18n( "Show %1" ).tqarg( cleanForMenu( n ) );
} else {
txt = prefix + d.name() + " not in code-model";
}
@@ -596,7 +596,7 @@ struct PopupClassViewFillerHelpStruct {
}
}
- int id = parent->insertItem( txt, receiver, TQT_SLOT( popupClassViewAction( int ) ) );
+ int id = tqparent->insertItem( txt, receiver, TQT_SLOT( popupClassViewAction( int ) ) );
if ( dom )
receiver->m_popupClassViewActions.insert( id, dom );
@@ -612,13 +612,13 @@ class PopupFiller {
PopupFiller( HelpStruct str , TQString dAdd, int maxCount = 100 ) : struk( str ), depthAdd( dAdd ), s( maxCount ) {}
- void fillIncludes( const DeclarationInfo& decl, TQPopupMenu* parent, bool& needSeparator ) {
+ void fillIncludes( const DeclarationInfo& decl, TQPopupMenu* tqparent, bool& needSeparator ) {
if( !struk.receiver->getIncludeFiles()[ HashedString( decl.file ) ] ) {
TQString file = decl.file;
//The include-file seems to be missing
if( needSeparator ) {
needSeparator = false;
- parent->insertSeparator();
+ tqparent->insertSeparator();
}
TQString includeFile = file;
@@ -644,7 +644,7 @@ class PopupFiller {
//kdDebug( 9007 ) << "found include-file \"" << includeFile << "\"" << endl;
}
- int id = parent->insertItem( i18n( "#include \"%1\" ( defines %2 )" ).arg ( includeFile ).arg( decl.name ), struk.receiver, TQT_SLOT( popupAction( int ) ) );
+ int id = tqparent->insertItem( i18n( "#include \"%1\" ( defines %2 )" ).tqarg ( includeFile ).tqarg( decl.name ), struk.receiver, TQT_SLOT( popupAction( int ) ) );
DeclarationInfo fakeDec;
fakeDec.name = decl.name;
fakeDec.file = includeFile;
@@ -653,7 +653,7 @@ class PopupFiller {
}
}
- void fill( TQPopupMenu * parent, LocateResult d, TQString prefix = "", const DeclarationInfo & sourceVariable = DeclarationInfo() ) {
+ void fill( TQPopupMenu * tqparent, LocateResult d, TQString prefix = "", const DeclarationInfo & sourceVariable = DeclarationInfo() ) {
Debug dbg( "#fl# ", 10 )
;
@@ -670,32 +670,32 @@ class PopupFiller {
f.type = d.desc();
f.memberType = SimpleTypeImpl::MemberInfo::Variable;
- /*int id = m->insertItem( i18n("jump to variable-declaration \"%1\"").arg( type.sourceVariable.name ) , this, TQT_SLOT( popupAction( int ) ) );
+ /*int id = m->insertItem( i18n("jump to variable-declaration \"%1\"").tqarg( type.sourceVariable.name ) , this, TQT_SLOT( popupAction( int ) ) );
m_popupActions.insert( id, type.sourceVariable );*/
- struk.insertItem( parent, f, prefix );
+ struk.insertItem( tqparent, f, prefix );
- parent->insertSeparator();
+ tqparent->insertSeparator();
if ( !sourceVariable.comment.isEmpty() ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Comment on %1" ).arg( sourceVariable.name ), m );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Comment on %1" ).tqarg( sourceVariable.name ), m );
TQStringList ls = prepareTextForMenu( sourceVariable.comment, 15, 100 );
for ( TQStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
m->insertItem( *it, 0, TQT_SLOT( popupClassViewAction( int ) ) );
}
- parent->insertSeparator();
+ tqparent->insertSeparator();
}
}
- struk.insertItem( parent, d, prefix );
+ struk.insertItem( tqparent, d, prefix );
if( d->resolved() && !d->resolved()->specialization().isEmpty() ) {
- SimpleType p = d->resolved()->parent();
+ SimpleType p = d->resolved()->tqparent();
LocateResult r = p->locateDecType( d->name() );
if( r ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Specialized from \"%1\"" ).arg( cleanForMenu( r->fullNameChain() ) ), m );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Specialized from \"%1\"" ).tqarg( cleanForMenu( r->fullNameChain() ) ), m );
fill( m, r );
}
}
@@ -703,11 +703,11 @@ class PopupFiller {
TypeDesc::TemplateParams p = d->templateParams();
for ( TypeDesc::TemplateParams::iterator it = p.begin(); it != p.end(); ++it ) {
//if( (*it)->resolved() ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Template-param \"%1\"" ).arg( cleanForMenu( ( *it ) ->fullNameChain() ) ), m );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Template-param \"%1\"" ).tqarg( cleanForMenu( ( *it ) ->fullNameChain() ) ), m );
fill( m, **it );
/*} else {
- fill( parent, **it, prefix + depthAdd );
+ fill( tqparent, **it, prefix + depthAdd );
}*/
}
@@ -715,16 +715,16 @@ class PopupFiller {
if ( d->resolved() ->asFunction() ) {
LocateResult rt = d->resolved() ->locateDecType( d->resolved() ->asFunction() ->getReturnType() );
if ( rt ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Return-type \"%1\"" ).arg( cleanForMenu( rt->fullNameChain() ) ), m );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Return-type \"%1\"" ).tqarg( cleanForMenu( rt->fullNameChain() ) ), m );
fill( m, rt );
}
TQValueList<TypeDesc> args = d->resolved() ->asFunction() ->getArgumentTypes();
TQStringList argNames = d->resolved() ->asFunction() ->getArgumentNames();
if ( !args.isEmpty() ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Argument-types" ), m );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Argument-types" ), m );
TQStringList::iterator it2 = argNames.begin();
for ( TQValueList<TypeDesc>::iterator it = args.begin(); it != args.end(); ++it ) {
LocateResult at = d->resolved() ->locateDecType( *it );
@@ -734,7 +734,7 @@ class PopupFiller {
++it2;
}
TQPopupMenu * mo = PopupTracker::createPopup( m );
- m->insertItem( i18n( "Argument \"%1\"" ).arg( cleanForMenu( at->fullNameChain() + " " + name ) ), mo );
+ m->insertItem( i18n( "Argument \"%1\"" ).tqarg( cleanForMenu( at->fullNameChain() + " " + name ) ), mo );
fill( mo, at );
}
@@ -743,17 +743,17 @@ class PopupFiller {
}
#ifndef DISABLE_TRACING
if ( d.trace() ) {
- TQValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
+ TQValueList<TQPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
if ( !trace.isEmpty() ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Trace" ), m );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Trace" ), m );
- for ( TQValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> >::iterator it = trace.begin(); it != trace.end(); ++it ) {
+ for ( TQValueList<TQPair<SimpleTypeImpl::MemberInfo, TypeDesc> >::iterator it = trace.begin(); it != trace.end(); ++it ) {
TQPopupMenu * mo = PopupTracker::createPopup( m );
TQString tail = ( *it ).second.fullNameChain();
if ( !tail.isEmpty() )
tail = "::" + tail;
- m->insertItem( i18n( "%1 -> %2" ).arg( cleanForMenu( ( *it ).first.name + tail ) ).arg( cleanForMenu( ( *it ).first.type->fullNameChain() + tail ) ), mo );
+ m->insertItem( i18n( "%1 -> %2" ).tqarg( cleanForMenu( ( *it ).first.name + tail ) ).tqarg( cleanForMenu( ( *it ).first.type->fullNameChain() + tail ) ), mo );
struk.insertItem( mo, ( *it ).first, prefix );
@@ -778,21 +778,21 @@ class PopupFiller {
if ( d->resolved() ) {
TQValueList<LocateResult> bases = d->resolved() ->getBases();
for ( TQValueList<LocateResult>::iterator it = bases.begin(); it != bases.end(); ++it ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Base-class \"%1\"" ).arg( cleanForMenu( ( *it ) ->fullNameChain() ) ), m );
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Base-class \"%1\"" ).tqarg( cleanForMenu( ( *it ) ->fullNameChain() ) ), m );
fill( m, *it );
}
- if ( d->resolved() ->parent() && d->resolved() ->parent() ->desc() ) {
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Nested in \"%1\"" ).arg( cleanForMenu( d->resolved() ->parent() ->fullTypeResolved() ) ), m );
- fill( m, d->resolved() ->parent() ->desc() );
+ if ( d->resolved() ->tqparent() && d->resolved() ->tqparent() ->desc() ) {
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Nested in \"%1\"" ).tqarg( cleanForMenu( d->resolved() ->tqparent() ->fullTypeResolved() ) ), m );
+ fill( m, d->resolved() ->tqparent() ->desc() );
}
if ( !d->resolved() ->comment().isEmpty() ) {
- parent->insertSeparator();
- TQPopupMenu * m = PopupTracker::createPopup( parent );
- parent->insertItem( i18n( "Comment on %1" ).arg( cleanForMenu( d->name() ) ), m );
+ tqparent->insertSeparator();
+ TQPopupMenu * m = PopupTracker::createPopup( tqparent );
+ tqparent->insertItem( i18n( "Comment on %1" ).tqarg( cleanForMenu( d->name() ) ), m );
TQStringList ls = prepareTextForMenu( d->resolved() ->comment(), 15, 100 );
for ( TQStringList::iterator it = ls.begin(); it != ls.end(); ++it ) {
m->insertItem( *it, 0, TQT_SLOT( popupClassViewAction( int ) ) );
@@ -805,18 +805,18 @@ class PopupFiller {
bool needSeparator = true;
//Show the include-files for the whole trace, because usually the first in the trace should be the one to include
if ( d.trace() ) {
- TQValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
+ TQValueList<TQPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = d.trace() ->trace();
if ( !trace.isEmpty() ) {
- for ( TQValueList<QPair<SimpleTypeImpl::MemberInfo, TypeDesc> >::iterator it = trace.begin(); it != trace.end(); ++it ) {
+ for ( TQValueList<TQPair<SimpleTypeImpl::MemberInfo, TypeDesc> >::iterator it = trace.begin(); it != trace.end(); ++it ) {
if( struk.shouldShowIncludeMenu() && struk.receiver->cppSupport()->codeCompletionConfig()->preProcessAllHeaders() && !(*it).first.decl.file.operator TQString().isEmpty() )
- fillIncludes( (*it).first.decl, parent, needSeparator );
+ fillIncludes( (*it).first.decl, tqparent, needSeparator );
}
}
}
//Show the include-file for the item itself
if( d->resolved() && !d->resolved()->isNamespace() && struk.receiver->cppSupport() ) {
- fillIncludes( d->resolved()->getDeclarationInfo(), parent, needSeparator );
+ fillIncludes( d->resolved()->getDeclarationInfo(), tqparent, needSeparator );
}
}
}
@@ -828,7 +828,7 @@ struct CompTypeProcessor : public TypeProcessor {
CompTypeProcessor( SimpleType scope, bool processArguments ) : m_scope( scope ), m_processArguments( processArguments ) {}
- virtual TQString parentType() {
+ virtual TQString tqparentType() {
return m_scope->fullType();
}
@@ -855,14 +855,14 @@ struct CppCodeCompletionData {
if ( recoveryPoints.count() == 0 )
return 0;
- QPair<int, int> pt = qMakePair( line, column );
+ TQPair<int, int> pt = tqMakePair( line, column );
TQPtrListIterator<RecoveryPoint> it( recoveryPoints );
RecoveryPoint* recPt = 0;
while ( it.current() ) {
- QPair<int, int> startPt = qMakePair( it.current() ->startLine, it.current() ->startColumn );
- QPair<int, int> endPt = qMakePair( it.current() ->endLine, it.current() ->endColumn );
+ TQPair<int, int> startPt = tqMakePair( it.current() ->startLine, it.current() ->startColumn );
+ TQPair<int, int> endPt = tqMakePair( it.current() ->endLine, it.current() ->endColumn );
if ( pt < startPt ) {
break;
@@ -969,7 +969,7 @@ CppCodeCompletion::~CppCodeCompletion( ) {
}
void CppCodeCompletion::addStatusText( TQString text, int timeout ) {
- m_statusTextList.append( QPair<int, TQString>( timeout, text ) );
+ m_statusTextList.append( TQPair<int, TQString>( timeout, text ) );
if ( !m_showStatusTextTimer->isActive() ) {
slotStatusTextTimeout();
}
@@ -1055,7 +1055,7 @@ void CppCodeCompletion::slotActivePartChanged( KParts::Part * part ) {
kdDebug( 9007 ) << k_funcinfo << endl;
- m_activeFileName = TQString::null;
+ m_activeFileName = TQString();
KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( part );
if ( !doc )
@@ -1121,7 +1121,7 @@ void CppCodeCompletion::slotTextChanged() {
// !!WARNING!! This is very hackish, but KTE doesn't offer a way
// to tell the completion box to _go_away_
if ( ch.simplifyWhiteSpace().isEmpty() &&
- !strCurLine.simplifyWhiteSpace().contains( "virtual" ) &&
+ !strCurLine.simplifyWhiteSpace().tqcontains( "virtual" ) &&
m_bCompletionBoxShow ) {
TQValueList<KTextEditor::CompletionEntry> entryList;
m_bCompletionBoxShow = true;
@@ -1139,7 +1139,7 @@ void CppCodeCompletion::slotTextChanged() {
// m_codeCompleteCh2Rx completes on "->" and "::"
if ( ( argsHint && ch == "(" ) ||
- ( codeComplete && strCurLine.simplifyWhiteSpace().contains( "virtual" ) ) ||
+ ( codeComplete && strCurLine.simplifyWhiteSpace().tqcontains( "virtual" ) ) ||
( codeComplete && ( m_codeCompleteChRx.search( ch ) != -1 ||
m_codeCompleteCh2Rx.search( ch2 ) != -1 ) ) ||
( headComplete && ( ch == "\"" || ch == "<" ) && m_includeRx.search( strCurLine ) != -1 ) ) {
@@ -1238,7 +1238,7 @@ TQString CppCodeCompletion::replaceCppComments( const TQString& contents ) {
after.fill( ' ', before.length() - 5 );
after.prepend( "/*" );
after.append( "*/" );
- text.replace( pos, before.length() - 1, after );
+ text.tqreplace( pos, before.length() - 1, after );
pos += after.length();
} else {
pos += m_cppCodeCommentsRx.matchedLength();
@@ -1444,12 +1444,12 @@ EvaluationResult CppCodeCompletion::evaluateExpressionAt( int line, int column ,
}
void CppCodeCompletion::popupAction( int number ) {
- PopupActions::iterator it = m_popupActions.find( number );
+ PopupActions::iterator it = m_popupActions.tqfind( number );
if ( it != m_popupActions.end() ) {
TQString fileName = ( *it ).file == "current_file" ? m_activeFileName : ( *it ).file.operator TQString();
if( (*it).startLine == -1 ) {
//startLine -1 indicates that the file should be added to the include-files
- m_activeEditor->insertLine( 0, TQString("#include \"%1\" /* defines %2 */").arg( fileName ).arg( (*it).name ) );
+ m_activeEditor->insertLine( 0, TQString("#include \"%1\" /* defines %2 */").tqarg( fileName ).tqarg( (*it).name ) );
} else {
m_pSupport->partController() ->editDocument( fileName, ( *it ).startLine );
}
@@ -1459,7 +1459,7 @@ void CppCodeCompletion::popupAction( int number ) {
}
void CppCodeCompletion::popupDefinitionAction( int number ) {
- PopupActions::iterator it = m_popupDefinitionActions.find( number );
+ PopupActions::iterator it = m_popupDefinitionActions.tqfind( number );
if ( it != m_popupDefinitionActions.end() ) {
TQString fileName = ( *it ).file == "current_file" ? m_activeFileName : ( *it ).file.operator TQString();
if ( !m_pSupport->switchHeaderImpl( fileName, ( *it ).startLine, ( *it ).startCol ) )
@@ -1481,7 +1481,7 @@ void CppCodeCompletion::selectItem( ItemDom item ) {
}
void CppCodeCompletion::popupClassViewAction( int number ) {
- PopupClassViewActions::iterator it = m_popupClassViewActions.find( number );
+ PopupClassViewActions::iterator it = m_popupClassViewActions.tqfind( number );
if ( it != m_popupClassViewActions.end() ) {
if ( ( *it ) )
selectItem( *it );
@@ -1532,11 +1532,11 @@ void CppCodeCompletion::contextEvaluationMenus ( TQPopupMenu *popup, const Conte
TQPopupMenu * m = PopupTracker::createPopup( popup );
int gid;
if ( contextMenuEntriesAtTop )
- gid = popup->insertItem( i18n( "Navigate by Macro \"%1\"" ).arg( cleanForMenu( type.macro.name() ) ), m, 5, cpos++ );
+ gid = popup->insertItem( i18n( "Navigate by Macro \"%1\"" ).tqarg( cleanForMenu( type.macro.name() ) ), m, 5, cpos++ );
else
- gid = popup->insertItem( i18n( "Navigate by Macro \"%1\"" ).arg( cleanForMenu( type.macro.name() ) ), m );
+ gid = popup->insertItem( i18n( "Navigate by Macro \"%1\"" ).tqarg( cleanForMenu( type.macro.name() ) ), m );
- int id = m->insertItem( i18n( "Jump to %1" ).arg( cleanForMenu( type.macro.name() ) ), this, TQT_SLOT( popupAction( int ) ) );
+ int id = m->insertItem( i18n( "Jump to %1" ).tqarg( cleanForMenu( type.macro.name() ) ), this, TQT_SLOT( popupAction( int ) ) );
TQPopupMenu * b = PopupTracker::createPopup( m );
m->insertItem( i18n( "Body" ), b );
@@ -1564,11 +1564,11 @@ void CppCodeCompletion::contextEvaluationMenus ( TQPopupMenu *popup, const Conte
int gid;
TQPopupMenu * m = PopupTracker::createPopup( popup );
if ( contextMenuEntriesAtTop )
- gid = popup->insertItem( i18n( "Goto Include File: %1" ).arg( cleanForMenu( includeFileName ) ), m, 5, cpos++ );
+ gid = popup->insertItem( i18n( "Goto Include File: %1" ).tqarg( cleanForMenu( includeFileName ) ), m, 5, cpos++ );
else
- gid = popup->insertItem( i18n( "Goto Include File: %1" ).arg( cleanForMenu( includeFileName ) ), m );
+ gid = popup->insertItem( i18n( "Goto Include File: %1" ).tqarg( cleanForMenu( includeFileName ) ), m );
- int id = m->insertItem( i18n( "Jump to %1" ).arg( cleanForMenu( includeFilePath ) ), this, TQT_SLOT( popupAction( int ) ) );
+ int id = m->insertItem( i18n( "Jump to %1" ).tqarg( cleanForMenu( includeFilePath ) ), this, TQT_SLOT( popupAction( int ) ) );
DeclarationInfo i;
i.file = includeFilePath;
@@ -1585,9 +1585,9 @@ void CppCodeCompletion::contextEvaluationMenus ( TQPopupMenu *popup, const Conte
} else {
///Could not find include-file
if ( contextMenuEntriesAtTop )
- popup->insertItem( i18n( "Not Found: \"%1\"" ).arg( includeFileName ), 5, cpos++ );
+ popup->insertItem( i18n( "Not Found: \"%1\"" ).tqarg( includeFileName ), 5, cpos++ );
else
- popup->insertItem( i18n( "Not Found: \"%1\"" ).arg( includeFileName ) );
+ popup->insertItem( i18n( "Not Found: \"%1\"" ).tqarg( includeFileName ) );
}
}
@@ -1609,14 +1609,14 @@ void CppCodeCompletion::contextEvaluationMenus ( TQPopupMenu *popup, const Conte
TQPopupMenu * m = PopupTracker::createPopup( popup );
int gid;
if ( contextMenuEntriesAtTop )
- gid = popup->insertItem( i18n( "Navigate by \"%1\"" ).arg( cleanForMenu( name ) ), m, 5, cpos++ );
+ gid = popup->insertItem( i18n( "Navigate by \"%1\"" ).tqarg( cleanForMenu( name ) ), m, 5, cpos++ );
else
- gid = popup->insertItem( i18n( "Navigate by \"%1\"" ).arg( cleanForMenu( name ) ), m );
+ gid = popup->insertItem( i18n( "Navigate by \"%1\"" ).tqarg( cleanForMenu( name ) ), m );
- popup->setWhatsThis( gid, i18n( "<b>Navigation</b><p>Provides a menu to navigate to positions of items that are involved in this expression" ) );
+ popup->tqsetWhatsThis( gid, i18n( "<b>Navigation</b><p>Provides a menu to navigate to positions of items that are involved in this expression" ) );
/*if( type.sourceVariable && type.sourceVariable.name != "this" ) {
- int id = m->insertItem( i18n("jump to variable-declaration \"%1\"").arg( type.sourceVariable.name ) , this, TQT_SLOT( popupAction( int ) ) );
+ int id = m->insertItem( i18n("jump to variable-declaration \"%1\"").tqarg( type.sourceVariable.name ) , this, TQT_SLOT( popupAction( int ) ) );
m_popupActions.insert( id, type.sourceVariable );
}*/
@@ -1629,11 +1629,11 @@ void CppCodeCompletion::contextEvaluationMenus ( TQPopupMenu *popup, const Conte
TQPopupMenu * m = PopupTracker::createPopup( popup );
int gid;
if ( contextMenuEntriesAtTop )
- gid = popup->insertItem( i18n( "Navigate Class-View by \"%1\"" ).arg( cleanForMenu( name ) ), m, 6, cpos++ );
+ gid = popup->insertItem( i18n( "Navigate Class-View by \"%1\"" ).tqarg( cleanForMenu( name ) ), m, 6, cpos++ );
else
- gid = popup->insertItem( i18n( "Navigate Class-View by \"%1\"" ).arg( cleanForMenu( name ) ), m );
+ gid = popup->insertItem( i18n( "Navigate Class-View by \"%1\"" ).tqarg( cleanForMenu( name ) ), m );
- popup->setWhatsThis( gid, i18n( "<b>Navigation</b><p>Provides a menu to show involved items in the class-view " ) );
+ popup->tqsetWhatsThis( gid, i18n( "<b>Navigation</b><p>Provides a menu to show involved items in the class-view " ) );
PopupClassViewFillerHelpStruct h( this );
PopupFiller<PopupClassViewFillerHelpStruct> filler( h, "" );
@@ -1691,7 +1691,7 @@ void CppCodeCompletion::slotTextHint( int line, int column, TQString &text ) {
}
text += "type: \"" + type.resultType->fullTypeResolved() + "\"";
}
- if( type.resultType->parent()) text += "\nnested in: \"" + type.resultType->parent()->fullTypeResolvedWithScope() + "\"";
+ if( type.resultType->tqparent()) text += "\nnested in: \"" + type.resultType->tqparent()->fullTypeResolvedWithScope() + "\"";
DeclarationInfo i = type.resultType->getDeclarationInfo();
if( i ) text += "\n" + i.locationToText();
@@ -1703,27 +1703,27 @@ void CppCodeCompletion::slotTextHint( int line, int column, TQString &text ) {
const int timeout = 2000;
if ( type->resolved() ) {
- addStatusText( i18n( "Type of \"%1\" is \"%2\"" ).arg( type.expr.expr() ).arg( type->fullNameChain() ), timeout );
+ addStatusText( i18n( "Type of \"%1\" is \"%2\"" ).tqarg( type.expr.expr() ).tqarg( type->fullNameChain() ), timeout );
if ( type.sourceVariable && !type.sourceVariable.comment.isEmpty() ) {
- addStatusText( i18n( "Comment on variable \"%1\": \"%2\"" ).arg( type.sourceVariable.name ).arg( type.sourceVariable.comment ) , 10000 );
+ addStatusText( i18n( "Comment on variable \"%1\": \"%2\"" ).tqarg( type.sourceVariable.name ).tqarg( type.sourceVariable.comment ) , 10000 );
}
if ( !type->resolved() ->comment().isEmpty() ) {
- addStatusText( i18n( "Comment on \"%1\": \"%2\"" ).arg( type->name() ).arg( type->resolved() ->comment() ) , 10000 );
+ addStatusText( i18n( "Comment on \"%1\": \"%2\"" ).tqarg( type->name() ).tqarg( type->resolved() ->comment() ) , 10000 );
}
if ( type->resolved() ->comment().isEmpty() ) {
- addStatusText( i18n( "\"%1\" has no comment" ).arg( type->name() ) , timeout );
+ addStatusText( i18n( "\"%1\" has no comment" ).tqarg( type->name() ) , timeout );
}
} else {
if ( type ) {
if( !BuiltinTypes::isBuiltin( type.resultType ) ) {
- addStatusText( i18n( "Type of \"%1\" is unresolved, name: \"%2\"" ).arg( type.expr.expr() ).arg( type->fullNameChain() ), 2 * timeout );
+ addStatusText( i18n( "Type of \"%1\" is unresolved, name: \"%2\"" ).tqarg( type.expr.expr() ).tqarg( type->fullNameChain() ), 2 * timeout );
} else {
- addStatusText( i18n( "\"%1\" is of builtin type \"%2\", a %3" ).arg( type.expr.expr() ).arg( type->fullNameChain() ).arg(BuiltinTypes::comment( type.resultType )), 2 * timeout );
+ addStatusText( i18n( "\"%1\" is of builtin type \"%2\", a %3" ).tqarg( type.expr.expr() ).tqarg( type->fullNameChain() ).tqarg(BuiltinTypes::comment( type.resultType )), 2 * timeout );
}
} else {
- addStatusText( i18n( "Type of \"%1\" could not be evaluated: tried to evaluate expression as \"%2\"" ).arg( type.expr.expr() ).arg( type.expr.typeAsString() ), 2 * timeout );
+ addStatusText( i18n( "Type of \"%1\" could not be evaluated: tried to evaluate expression as \"%2\"" ).tqarg( type.expr.expr() ).tqarg( type.expr.typeAsString() ), 2 * timeout );
}
}
@@ -1744,7 +1744,7 @@ bool CppCodeCompletion::isTypeExpression( const TQString& expr ) {
bool CppCodeCompletion::mayBeTypeTail( int line, int column, TQString& append, bool inFunction ) {
TQString tail = clearComments( m_activeEditor->text( line, column + 1, line + 10 > ( int ) m_activeEditor->numLines() ? ( int ) m_activeEditor->numLines() : line + 10, 0 ) );
- tail.replace( "\n", " " );
+ tail.tqreplace( "\n", " " );
SafetyCounter s ( 100 );
bool hadSpace = false;
while ( !tail.isEmpty() && s ) {
@@ -1830,7 +1830,7 @@ ExpressionInfo CppCodeCompletion::findExpressionAt( int line, int column, int st
//make this a regexp
TQString e = ret.expr();
- if ( e.contains( "." ) || e.contains( "->" ) || e.contains( "(" ) || e.contains( ")" ) || e.contains( "=" ) || e.contains( "-" ) )
+ if ( e.tqcontains( "." ) || e.tqcontains( "->" ) || e.tqcontains( "(" ) || e.tqcontains( ")" ) || e.tqcontains( "=" ) || e.tqcontains( "-" ) )
mayBeType = false;
if ( mayBeType ) {
@@ -1904,26 +1904,26 @@ SimpleContext* CppCodeCompletion::computeFunctionContext( FunctionDom f, int lin
if ( !scope.isEmpty() ) {
- SimpleType parentType;
+ SimpleType tqparentType;
/* if( !m_cachedFromContext ) {
TypePointer t = SimpleType(TQStringList())->locateDecType( scope.join("") ).desc().resolved();;
if( t )
- parentType = SimpleType( t.data() );
+ tqparentType = SimpleType( t.data() );
else
- parentType = SimpleType( scope );
+ tqparentType = SimpleType( scope );
} else {*/
- parentType = SimpleType( scope, getIncludeFiles() );
+ tqparentType = SimpleType( scope, getIncludeFiles() );
//}
- parentType->descForEdit().setTotalPointerDepth( 1 );
- ctx->setContainer( parentType );
+ tqparentType->descForEdit().setTotalPointerDepth( 1 );
+ ctx->setContainer( tqparentType );
}
SimpleType global = ctx->global();
if( dynamic_cast<SimpleTypeNamespace*>( &(*global) ) ) {
SimpleTypeNamespace* globalNs = static_cast <SimpleTypeNamespace*>( &(*global) );
- TQValueList<QPair<TQString, TQString> > localImports = ctx->imports();
- for( TQValueList<QPair<TQString, TQString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
+ TQValueList<TQPair<TQString, TQString> > localImports = ctx->imports();
+ for( TQValueList<TQPair<TQString, TQString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
globalNs->addAliasMap( (*it).first, (*it).second );
}
@@ -1988,8 +1988,8 @@ bool CppCodeCompletion::functionContains( FunctionDom f , int line, int col ) {
if ( t.isEmpty() )
return false;
- //int i = t.find( '{' );
- int i = t.find( '(' ); //This now includes the argument-list
+ //int i = t.tqfind( '{' );
+ int i = t.tqfind( '(' ); //This now includes the argument-list
if ( i == -1 )
return false;
int lineCols = 0;
@@ -2017,7 +2017,7 @@ void CppCodeCompletion::getFunctionBody( FunctionDom f , int& line, int& col ) {
if ( t.isEmpty() )
return;
- int i = t.find( '{' );
+ int i = t.tqfind( '{' );
if ( i == -1 )
return;
i++;
@@ -2059,14 +2059,14 @@ void CppCodeCompletion::needRecoveryPoints() {
if ( !ast ) {
kdDebug( 9007 ) << "background-parser is missing the translation-unit. The file needs to be reparsed." << endl;
m_pSupport->parseFileAndDependencies( m_activeFileName, true );
-// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Background-parser is missing the necessary translation-unit. It will be computed, but this completion will fail." ).arg( m_activeFileName ), 2000 );
+// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Background-parser is missing the necessary translation-unit. It will be computed, but this completion will fail." ).tqarg( m_activeFileName ), 2000 );
return;
} else {
computeRecoveryPointsLocked();
}
if ( this->d->recoveryPoints.isEmpty() ) {
kdDebug( 9007 ) << "Failed to compute recovery-points for " << m_activeFileName << endl;
-// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Failed to compute recovery-points for %1" ).arg( m_activeFileName ), 1000 );
+// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Failed to compute recovery-points for %1" ).tqarg( m_activeFileName ), 1000 );
} else {
kdDebug( 9007 ) << "successfully computed recovery-points for " << m_activeFileName << endl;
}
@@ -2080,7 +2080,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
FileDom file = m_pSupport->codeModel() ->fileByName( m_activeFileName );
if ( !file ) {
-// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "File %1 does not exist in the code-model" ).arg( m_activeFileName ), 1000 );
+// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "File %1 does not exist in the code-model" ).tqarg( m_activeFileName ), 1000 );
kdDebug( 9007 ) << "Error: file " << m_activeFileName << " could not be located in the code-model, code-completion stopped\n";
return SimpleType();
}
@@ -2113,7 +2113,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
c = strCurLine[ --pos ];
if ( !( c.isLetterOrNumber() || c == '_' || c == ')' || c == ']' || c == '>' ) ) {
- conf.invalidate();
+ conf.tqinvalidate();
return SimpleType();
}
}
@@ -2280,7 +2280,7 @@ EvaluationResult CppCodeCompletion::evaluateExpressionType( int line, int column
CppCodeCompletionConfig * cfg = m_pSupport->codeCompletionConfig();
if( cfg->usePermanentCaching() && contextItem ) {
- conf.invalidate();
+ conf.tqinvalidate();
m_cachedFromContext = contextItem;
}
@@ -2323,7 +2323,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
FileDom file = m_pSupport->codeModel() ->fileByName( m_activeFileName );
if ( !file ) {
-// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "File %1 does not exist in the code-model" ).arg( m_activeFileName ), 1000 );
+// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "File %1 does not exist in the code-model" ).tqarg( m_activeFileName ), 1000 );
kdDebug( 9007 ) << "Error: file " << m_activeFileName << " could not be located in the code-model, code-completion stopped\n";
return ;
}
@@ -2508,7 +2508,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
--end_expr;
if ( contents[ end_expr ] != ',' ) {
- expr = TQString::null;
+ expr = TQString();
} else {
start_expr = expressionAt( contents, end_expr );
expr = contents.mid( start_expr, end_expr - start_expr ).stripWhiteSpace();
@@ -2555,8 +2555,8 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
}
if( dynamic_cast<SimpleTypeNamespace*>( SimpleType::globalNamespace().data() ) ) {
SimpleTypeNamespace* globalNs = static_cast <SimpleTypeNamespace*>( SimpleType::globalNamespace().data() );
- TQValueList<QPair<TQString, TQString> > localImports = ctx->imports();
- for( TQValueList<QPair<TQString, TQString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
+ TQValueList<TQPair<TQString, TQString> > localImports = ctx->imports();
+ for( TQValueList<TQPair<TQString, TQString> >::const_iterator it = localImports.begin(); it != localImports.end(); ++it )
globalNs->addAliasMap( (*it).first, (*it).second );
}
} else {
@@ -2564,7 +2564,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
}
if ( !scope.isEmpty() ) {
- SimpleType parentType;
+ SimpleType tqparentType;
/*if( !m_cachedFromContext ) {
TypePointer t = createGlobalNamespace();
@@ -2584,14 +2584,14 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
d.setIncludeFiles( getIncludeFiles() );
SimpleTypeImpl * i = SimpleType( TQStringList(), getIncludeFiles() ) ->locateDecType( d ).desc().resolved().data();
if ( i ) {
- parentType = i;
+ tqparentType = i;
} else {
- parentType = SimpleType( scope, getIncludeFiles() );
+ tqparentType = SimpleType( scope, getIncludeFiles() );
}
} else {
- parentType = SimpleType( scope, getIncludeFiles() );
+ tqparentType = SimpleType( scope, getIncludeFiles() );
}
- this_type = parentType;
+ this_type = tqparentType;
this_type->descForEdit().setTotalPointerDepth( 1 );
ctx->setContainer( this_type );
}
@@ -2673,7 +2673,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
kdDebug(9007) << "------> found virtual keyword for class specifier '"
<< clazz->text() << "'" << endl;
}*/
- } else if ( TQString( "virtual" ).find( keyword ) != -1 )
+ } else if ( TQString( "virtual" ).tqfind( keyword ) != -1 )
m_blockForKeyword = true;
else
m_blockForKeyword = false;
@@ -2713,7 +2713,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
--end_expr;
if ( contents[ end_expr ] != ',' ) {
- expr = TQString::null;
+ expr = TQString();
} else {
start_expr = expressionAt( contents, end_expr );
expr = contents.mid( start_expr, end_expr - start_expr ).stripWhiteSpace();
@@ -2756,7 +2756,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
if ( ch2 == "::" ) {
TQString str = clearComments( expr );
- if ( !str.contains( '.' ) && !str.contains( "->" ) ) ///Necessary, because the expression may also be like user->BaseUser::
+ if ( !str.tqcontains( '.' ) && !str.tqcontains( "->" ) ) ///Necessary, because the expression may also be like user->BaseUser::
isInstance = false;
}
@@ -2790,7 +2790,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
}
if( !t->isNamespace() || invokedOnDemand || alwaysIncludeNamespaces )
computeCompletionEntryList( t, entryList, t->scope(), false, depth );
- t = t->parent();
+ t = t->tqparent();
depth++;
}
}
@@ -2807,7 +2807,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
}
if ( ( (t->isNamespace() && invokedOnDemand) || alwaysIncludeNamespaces ) || ( first && isInstance ) )
computeCompletionEntryList( t, entryList, t->scope(), t->isNamespace() ? true : isInstance, depth );
- t = t->parent();
+ t = t->tqparent();
depth++;
first = false;
}
@@ -2890,7 +2890,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
if ( method )
signatureList += computeSignatureList( method );
if ( t )
- t = t->parent();
+ t = t->tqparent();
} while ( !ready && s );
if ( !signatureList.isEmpty() ) {
@@ -2905,7 +2905,7 @@ void CppCodeCompletion::completeText( bool invokedOnDemand /*= false*/ ) {
ctx = 0;
if ( cfg->usePermanentCaching() ) {
- conf.invalidate();
+ conf.tqinvalidate();
m_cachedFromContext = contextItem;
}
}
@@ -2972,7 +2972,7 @@ void CppCodeCompletion::slotCodeModelUpdated( const TQString& fileName ) {
if ( fileName != m_activeFileName || !m_pSupport || !m_activeEditor )
return ;
-// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Current file updated %1" ).arg( m_activeFileName ), 1000 );
+// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Current file updated %1" ).tqarg( m_activeFileName ), 1000 );
computeRecoveryPointsLocked();
}
@@ -2981,7 +2981,7 @@ void CppCodeCompletion::slotFileParsed( const TQString& fileName ) {
if ( fileName != m_activeFileName || !m_pSupport || !m_activeEditor )
return ;
-// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Current file parsed %1 (cache emptied)" ).arg( m_activeFileName ), 1000 );
+// m_pSupport->mainWindow() ->statusBar() ->message( i18n( "Current file parsed %1 (cache emptied)" ).tqarg( m_activeFileName ), 1000 );
emptyCache(); ///The cache has to be emptied, because the code-model changed. @todo Better: Only refresh the code-model(tell all code-model-types to refresh themselves on demand)
@@ -3016,7 +3016,7 @@ SimpleContext* CppCodeCompletion::computeContext( FunctionDefinitionAST * ast, i
var.ptrList = ptrList;
var.type = param->typeSpec() ->text() + ptrList.join( "" );
- var.name = declaratorToString( param->declarator(), TQString::null, true );
+ var.name = declaratorToString( param->declarator(), TQString(), true );
var.comment = param->comment();
param->getStartPosition( &var.startLine, &var.startCol );
param->getEndPosition( &var.endLine, &var.endCol );
@@ -3173,7 +3173,7 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, DeclarationStatemen
name = usingDecl->name()->text();
if( !name.isNull() )
- ctx->addImport( QPair<TQString, TQString>( "", name ) );
+ ctx->addImport( TQPair<TQString, TQString>( "", name ) );
}
}
@@ -3182,7 +3182,7 @@ void CppCodeCompletion::computeContext( SimpleContext*& ctx, DeclarationStatemen
TQString name;
if( namespaceAlias ->namespaceName() && namespaceAlias->aliasName() ) {
- ctx->addImport( QPair<TQString, TQString>( namespaceAlias->namespaceName()->text(), namespaceAlias->aliasName()->text() ) );
+ ctx->addImport( TQPair<TQString, TQString>( namespaceAlias->namespaceName()->text(), namespaceAlias->aliasName()->text() ) );
}
}
@@ -3293,7 +3293,7 @@ FunctionDefinitionAST * CppCodeCompletion::functionDefinition( AST* node ) {
while ( node ) {
if ( node->nodeType() == NodeType_FunctionDefinition )
return static_cast<FunctionDefinitionAST*>( node );
- node = node->parent();
+ node = node->tqparent();
}
return 0;
}
@@ -3360,7 +3360,7 @@ TQString codeModelAccessToString( CodeModelItem::Access access ) {
#define MAXCOMMENTCOLUMNS 45
-TQString CppCodeCompletion::commentFromItem( const SimpleType& parent, const ItemDom& item ) {
+TQString CppCodeCompletion::commentFromItem( const SimpleType& tqparent, const ItemDom& item ) {
--m_maxComments;
static TQString maxReached = " ";
if( m_maxComments < 0 ) {
@@ -3371,8 +3371,8 @@ TQString CppCodeCompletion::commentFromItem( const SimpleType& parent, const Ite
item->getStartPosition( &line, &col );
- if ( !parent->scope().isEmpty() ) {
- ret += "Container: " + parent->fullTypeResolvedWithScope();
+ if ( !tqparent->scope().isEmpty() ) {
+ ret += "Container: " + tqparent->fullTypeResolvedWithScope();
}
if ( item->isEnum() ) {
@@ -3451,7 +3451,7 @@ TQString CppCodeCompletion::commentFromItem( const SimpleType& parent, const Ite
ret += "\nKind: Typedef";
if ( t ) {
ret += "\nType: " + t->type();
- LocateResult r = parent->locateDecType( t->type() );
+ LocateResult r = tqparent->locateDecType( t->type() );
if ( r.desc().resolved() )
ret += "\nResolved type: " + r.desc().resolved() ->fullTypeResolvedWithScope();
else
@@ -3463,13 +3463,13 @@ TQString CppCodeCompletion::commentFromItem( const SimpleType& parent, const Ite
ret += "\nKind: Class";
}
- ret += TQString( "\nFile: %1\nLine: %2 Column: %3" ).arg( prepareTextForMenu( item->fileName(), 3, MAXCOMMENTCOLUMNS ).join( "\n" ) ).arg( line ).arg( col );
+ ret += TQString( "\nFile: %1\nLine: %2 Column: %3" ).tqarg( prepareTextForMenu( item->fileName(), 3, MAXCOMMENTCOLUMNS ).join( "\n" ) ).tqarg( line ).tqarg( col );
if ( !item->comment().isEmpty() )
ret += "\n\n" + prepareTextForMenu( item->comment(), 3, MAXCOMMENTCOLUMNS ).join( "\n" );
return ret;
}
-TQString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag ) {
+TQString CppCodeCompletion::commentFromTag( const SimpleType& tqparent, Tag& tag ) {
--m_maxComments;
static TQString maxReached = " ";
if( m_maxComments < 0 ) {
@@ -3480,8 +3480,8 @@ TQString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag )
tag.getStartPosition( &line, &col );
TQString ret; // = tag.comment();
- if ( !parent->scope().isEmpty() ) {
- ret += "Container: " + parent->fullTypeResolvedWithScope();
+ if ( !tqparent->scope().isEmpty() ) {
+ ret += "Container: " + tqparent->fullTypeResolvedWithScope();
}
/*
if( tag.kind() == Tag::Kind_Enum ) {
@@ -3571,7 +3571,7 @@ TQString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag )
if ( tag.kind() == Tag::Kind_Typedef ) {
ret += "\nKind: Typedef";
ret += "\nType: " + tagType( tag );
- LocateResult r = parent->locateDecType( tagType( tag ) );
+ LocateResult r = tqparent->locateDecType( tagType( tag ) );
if ( r.desc().resolved() )
ret += "\nResolved type: " + r.desc().resolved() ->fullTypeResolvedWithScope();
else
@@ -3585,7 +3585,7 @@ TQString CppCodeCompletion::commentFromTag( const SimpleType& parent, Tag& tag )
ret += "\nKind: Struct";
}
- ret += TQString( "\nFile: %1\nLine: %2 Column: %3" ).arg( prepareTextForMenu( tag.fileName(), 3, MAXCOMMENTCOLUMNS ).join( "\n" ) ).arg( line ).arg( col );
+ ret += TQString( "\nFile: %1\nLine: %2 Column: %3" ).tqarg( prepareTextForMenu( tag.fileName(), 3, MAXCOMMENTCOLUMNS ).join( "\n" ) ).tqarg( line ).tqarg( col );
if ( !tag.comment().isEmpty() ) {
ret += "\n\n" + prepareTextForMenu( tag.comment(), 20, MAXCOMMENTCOLUMNS ).join( "\n" );
}
@@ -3687,8 +3687,8 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType typeR, TQValueLis
args << Catalog::QueryArgument( "name", fullname );
- TQValueList<LocateResult> parents = typeR->getBases( );
- for ( TQValueList<LocateResult>::Iterator it = parents.begin(); it != parents.end(); ++it ) {
+ TQValueList<LocateResult> tqparents = typeR->getBases( );
+ for ( TQValueList<LocateResult>::Iterator it = tqparents.begin(); it != tqparents.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
SimpleType tp = SimpleType( ( *it ) ->resolved() );
@@ -3807,14 +3807,14 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList
break;
}
- e.userdata = TQString( "%1%2%3%4%5" ).arg( num ).arg( depth ).arg( className ).arg( sortPosition ).arg( subSorting );
+ e.userdata = TQString( "%1%2%3%4%5" ).tqarg( num ).tqarg( depth ).tqarg( className ).tqarg( sortPosition ).tqarg( subSorting );
if ( m_completionMode != SignalCompletion ) {
if ( !type->isNamespace() ) {
if ( num == 1 )
- e.postfix += "; (protected)"; // in " + proc.parentType() + ")";
+ e.postfix += "; (protected)"; // in " + proc.tqparentType() + ")";
if ( num == 2 )
- e.postfix += "; (private)"; // in " + proc.parentType() + ")";
+ e.postfix += "; (private)"; // in " + proc.tqparentType() + ")";
}
}
@@ -3930,9 +3930,9 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList
computeCompletionEntryList( klass->name(), type, entryList, klass->typeAliasList(), isInstance, depth );
}
- TQValueList<LocateResult> parents = type->getBases( );
+ TQValueList<LocateResult> tqparents = type->getBases( );
- for ( TQValueList<LocateResult>::Iterator it = parents.begin(); it != parents.end(); ++it ) {
+ for ( TQValueList<LocateResult>::Iterator it = tqparents.begin(); it != tqparents.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
@@ -3962,7 +3962,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList
computeCompletionEntryList( type, entryList, scope->namespaceList(), isInstance, depth );
}
-void CppCodeCompletion::computeCompletionEntryList( TQString parent, SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const ClassList & lst, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( TQString tqparent, SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const ClassList & lst, bool isInstance, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
@@ -3981,7 +3981,7 @@ void CppCodeCompletion::computeCompletionEntryList( TQString parent, SimpleType
if ( isInstance )
continue;
- entry.userdata = TQString( "%1%2%3%4%5" ).arg( CodeModelItem::Public ).arg( depth ).arg( parent ).arg( 6 );
+ entry.userdata = TQString( "%1%2%3%4%5" ).tqarg( CodeModelItem::Public ).tqarg( depth ).tqarg( tqparent ).tqarg( 6 );
entryList << entry;
@@ -3993,7 +3993,7 @@ void CppCodeCompletion::computeCompletionEntryList( TQString parent, SimpleType
}
}
-void CppCodeCompletion::computeCompletionEntryList( TQString parent, SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const TypeAliasList & lst, bool isInstance, int depth ) {
+void CppCodeCompletion::computeCompletionEntryList( TQString tqparent, SimpleType type, TQValueList< CodeCompletionEntry > & entryList, const TypeAliasList & lst, bool isInstance, int depth ) {
Debug d( "#cel#" );
if ( !safetyCounter || !d )
return ;
@@ -4015,7 +4015,7 @@ void CppCodeCompletion::computeCompletionEntryList( TQString parent, SimpleType
entry.prefix = stringMult( depth, " " ) + entry.prefix.stripWhiteSpace();
entry.text = klass->name();
entry.comment = commentFromItem( type, klass.data() );
- entry.userdata = TQString( "%1%2%3%4%5" ).arg( CodeModelItem::Public ).arg( depth ).arg( parent ).arg( 5 );
+ entry.userdata = TQString( "%1%2%3%4%5" ).tqarg( CodeModelItem::Public ).tqarg( depth ).tqarg( tqparent ).tqarg( 5 );
entryList << entry;
}
}
@@ -4136,7 +4136,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList
if ( meth->isStatic() )
subSorting = 5;
- entry.userdata += TQString( "%1%2%3%4%5" ).arg( meth->access() ).arg( depth ).arg( className ).arg( 1 ).arg( subSorting );
+ entry.userdata += TQString( "%1%2%3%4%5" ).tqarg( meth->access() ).tqarg( depth ).tqarg( className ).tqarg( 1 ).tqarg( subSorting );
if ( m_completionMode == VirtualDeclCompletion )
entry.text += text + ";";
@@ -4187,7 +4187,7 @@ void CppCodeCompletion::computeCompletionEntryList( SimpleType type, TQValueList
CodeCompletionEntry entry;
entry.text = attr->name();
entry.comment = commentFromItem( type, model_cast<ItemDom>( attr ) );
- entry.userdata += TQString( "%1%2%3%4" ).arg( attr->access() ).arg( depth ).arg( className ).arg( 2 );
+ entry.userdata += TQString( "%1%2%3%4" ).tqarg( attr->access() ).tqarg( depth ).tqarg( className ).tqarg( 2 );
if ( !attr->isEnumeratorVariable() ) {
@@ -4261,7 +4261,7 @@ EvaluationResult CppCodeCompletion::evaluateExpression( ExpressionInfo expr, Sim
}
}
- addStatusText( i18n( "Type of \"%1\" is \"%2\", %3" ).arg( expr.expr() ).arg( res->fullNameChain() ).arg( resolutionType ), 5000 );
+ addStatusText( i18n( "Type of \"%1\" is \"%2\", %3" ).tqarg( expr.expr() ).tqarg( res->fullNameChain() ).tqarg( resolutionType ), 5000 );
return res;
}
@@ -4386,7 +4386,7 @@ void CppCodeCompletion::jumpCursorContext( FunctionType f )
}
// Unresolved, maybe its a named enumeration?
else if ( type && type.trace() ) {
- TQValueList< QPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = type.trace()->trace();
+ TQValueList< TQPair<SimpleTypeImpl::MemberInfo, TypeDesc> > trace = type.trace()->trace();
if ( !trace.isEmpty() ) {
if ( trace.begin() != trace.end() ) {
d = ( *trace.begin() ).first.decl;
@@ -4417,7 +4417,7 @@ TQString CppCodeCompletion::createTypeInfoString( int line, int column )
if ( type->resolved() )
{
TQString scope = type->resolved()->scope().join("::");
- int pos = scope.findRev("::");
+ int pos = scope.tqfindRev("::");
if ( scope.isEmpty() || pos == -1 )
{
scope = "::";
@@ -4467,7 +4467,7 @@ bool CppCodeCompletion::getIncludeInfo( int line, TQString& includeFileName, TQS
//It is an include-directive. The regular expression captures the string, and the closing sign('"' or '>').
isIncludeDirective = true;
usedProjectFiles = false;
- TQStringList captured = includeRx.capturedTexts();
+ TQStringList captured = includeRx.tqcapturedTexts();
if( captured.size() == 3 ) {
Dependence d;
d.first = captured[1];
diff --git a/languages/cpp/cppcodecompletion.h b/languages/cpp/cppcodecompletion.h
index 67f7b10b..4b619984 100644
--- a/languages/cpp/cppcodecompletion.h
+++ b/languages/cpp/cppcodecompletion.h
@@ -46,14 +46,15 @@
#include <tqpopupmenu.h>
class PopupTracker : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
static PopupTracker* pt;
static uint pendingPopups;
- static TQPopupMenu* createPopup( TQWidget* parent ) {
+ static TQPopupMenu* createPopup( TQWidget* tqparent ) {
if( !pt ) pt = new PopupTracker();
- TQPopupMenu* m = new TQPopupMenu( parent );
+ TQPopupMenu* m = new TQPopupMenu( tqparent );
++pendingPopups;
connect( m, TQT_SIGNAL(destroyed()), pt, TQT_SLOT(destroyedPopup()) );
return m;
@@ -91,9 +92,10 @@ struct ExpressionInfo;
typedef KSharedPtr<SimpleTypeImpl> TypePointer;
-class CppCodeCompletion : public QObject
+class CppCodeCompletion : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
friend class SimpleType;
enum CompletionMode
@@ -187,8 +189,8 @@ private:
bool functionContains( FunctionDom f , int line, int col );
void getFunctionBody( FunctionDom f , int& line, int& col );
void selectItem( ItemDom item );
- void addTypePopups( TQPopupMenu* parent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
- void addTypeClassPopups( TQPopupMenu* parent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
+ void addTypePopups( TQPopupMenu* tqparent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
+ void addTypeClassPopups( TQPopupMenu* tqparent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
TQValueList<TQStringList> computeSignatureList( CppEvaluation::EvaluationResult function );
void integratePart( KParts::Part* part );
void setupCodeInformationRepository();
@@ -233,8 +235,8 @@ private:
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, NamespaceDom scope, bool isInstance, int depth );
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const FunctionList& methods, bool isInstance, int depth );
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const VariableList& attributes, bool isInstance, int depth );
- void computeCompletionEntryList( TQString parent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const ClassList& lst, bool isInstance, int depth );
- void computeCompletionEntryList( TQString parent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const TypeAliasList& lst, bool isInstance, int depth );
+ void computeCompletionEntryList( TQString tqparent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const ClassList& lst, bool isInstance, int depth );
+ void computeCompletionEntryList( TQString tqparent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const TypeAliasList& lst, bool isInstance, int depth );
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const NamespaceList& lst, bool isInstance, int depth );
SimpleContext* computeContext( FunctionDefinitionAST* ast, int line, int col, int lineOffset, int colOffset );
@@ -266,7 +268,7 @@ private:
TQGuardedPtr<CppSupportPart> m_pSupport;
TQTimer* m_ccTimer;
TQTimer* m_showStatusTextTimer;
- TQValueList<QPair<int, TQString> > m_statusTextList;
+ TQValueList<TQPair<int, TQString> > m_statusTextList;
void fitContextItem( int nLine, int nColumn );
void needRecoveryPoints();
@@ -296,8 +298,8 @@ private:
//If more then the given count of comments were requested, all following ones will be blank.(Performance-reasons)
void setMaxComments( int count );
- TQString commentFromItem( const SimpleType& parent, const ItemDom& item );
- TQString commentFromTag( const SimpleType& parent, Tag& tag );
+ TQString commentFromItem( const SimpleType& tqparent, const ItemDom& item );
+ TQString commentFromTag( const SimpleType& tqparent, Tag& tag );
ItemDom m_cachedFromContext; ///Can be a function or a class, representing the position from where the last completion was started. Necessary as long as all imports are put into the global namespace.
diff --git a/languages/cpp/cppcodecompletionconfig.cpp b/languages/cpp/cppcodecompletionconfig.cpp
index 9ecca5f4..104f422c 100644
--- a/languages/cpp/cppcodecompletionconfig.cpp
+++ b/languages/cpp/cppcodecompletionconfig.cpp
@@ -18,7 +18,7 @@
#include <kdebug.h>
#include <tqdom.h>
-TQString CppCodeCompletionConfig::defaultPath = TQString::fromLatin1( "/kdevcppsupport/codecompletion" );
+TQString CppCodeCompletionConfig::defaultPath = TQString::tqfromLatin1( "/kdevcppsupport/codecompletion" );
CppCodeCompletionConfig::CppCodeCompletionConfig( CppSupportPart * part, TQDomDocument* dom )
: TQObject( part ), m_part( part ), m_dom( dom )
diff --git a/languages/cpp/cppcodecompletionconfig.h b/languages/cpp/cppcodecompletionconfig.h
index 75f0d570..924f674d 100644
--- a/languages/cpp/cppcodecompletionconfig.h
+++ b/languages/cpp/cppcodecompletionconfig.h
@@ -22,9 +22,10 @@ class TQDomDocument;
/**
@author Roberto Raggi
*/
-class CppCodeCompletionConfig : public QObject
+class CppCodeCompletionConfig : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
CppCodeCompletionConfig( CppSupportPart* part, TQDomDocument* dom );
virtual ~CppCodeCompletionConfig();
diff --git a/languages/cpp/cppevaluation.cpp b/languages/cpp/cppevaluation.cpp
index b84185f5..a20c2339 100644
--- a/languages/cpp/cppevaluation.cpp
+++ b/languages/cpp/cppevaluation.cpp
@@ -102,7 +102,7 @@ OperatorIdentification UnaryOperator::identify( TQString& str ) {
EvaluationResult UnaryOperator::apply( TQValueList<EvaluationResult> params, TQValueList<EvaluationResult> innerParams ) {
if( !checkParams( params ) ) {
- log( TQString("parameter-check failed: %1 params: ").arg( params.size() ) + printTypeList( params ) );
+ log( TQString("parameter-check failed: %1 params: ").tqarg( params.size() ) + printTypeList( params ) );
return EvaluationResult();
} else {
EvaluationResult t = unaryApply( params.front(), innerParams );
@@ -433,7 +433,7 @@ EvaluationResult ExpressionEvaluation::evaluateAtomicExpression( TypeDesc expr,
}
depth++;
- if( !ready ) current = current->parent();
+ if( !ready ) current = current->tqparent();
}
}
/*
@@ -455,7 +455,7 @@ EvaluationResult ExpressionEvaluation::evaluateAtomicExpression( TypeDesc expr,
if( !bestRet ||
/** Did we find a constructor within a class? */
- (type->resolved() && ( bestRet->resolved() && type->resolved()->desc() == bestRet->resolved()->parent()->desc() && bestRet->resolved()->asFunction() ) ) ) {
+ (type->resolved() && ( bestRet->resolved() && type->resolved()->desc() == bestRet->resolved()->tqparent()->desc() && bestRet->resolved()->asFunction() ) ) ) {
/*if ( type && type->resolved() )
{*/
EvaluationResult ret = type;
diff --git a/languages/cpp/cppimplementationwidget.cpp b/languages/cpp/cppimplementationwidget.cpp
index 7b2d98cd..b67597e6 100644
--- a/languages/cpp/cppimplementationwidget.cpp
+++ b/languages/cpp/cppimplementationwidget.cpp
@@ -37,27 +37,27 @@
#include <filetemplate.h>
CppImplementationWidget::CppImplementationWidget( KDevLanguageSupport *part,
- TQWidget *parent, const char *name, bool modal )
- : ImplementationWidget( part, parent, name, modal )
+ TQWidget *tqparent, const char *name, bool modal )
+ : ImplementationWidget( part, tqparent, name, modal )
{}
TQStringList CppImplementationWidget::createClassFiles()
{
- TQString template_h = "#ifndef $DEFTEXT$_H\n#define $DEFTEXT$_H\n\n#include \"$BASEINCLUDE$\"\n\nclass $CLASSNAME$: public $BASECLASSNAME$ {\nQ_OBJECT\npublic:\n $CLASSNAME$(TQWidget *parent = 0, const char *name = 0);\n};\n\n#endif\n";
- TQString template_cpp = "#include \"$CLASSINCLUDE$\"\n\n$CLASSNAME$::$CLASSNAME$(TQWidget *parent, const char *name)\n :$BASECLASSNAME$(parent, name)\n{\n}\n";
+ TQString template_h = "#ifndef $DEFTEXT$_H\n#define $DEFTEXT$_H\n\n#include \"$BASEINCLUDE$\"\n\nclass $CLASSNAME$: public $BASECLASSNAME$ {\nTQ_OBJECT\npublic:\n $CLASSNAME$(TQWidget *tqparent = 0, const char *name = 0);\n};\n\n#endif\n";
+ TQString template_cpp = "#include \"$CLASSINCLUDE$\"\n\n$CLASSNAME$::$CLASSNAME$(TQWidget *tqparent, const char *name)\n :$BASECLASSNAME$(tqparent, name)\n{\n}\n";
if ( m_part->project() ->options() == KDevProject::UsesAutotoolsBuildSystem )
- template_cpp += "\n#include \"$MOCINCLUDE$\"\n";
+ template_cpp += "\n#include \"$TQMOCINCLUDE$\"\n";
TQFileInfo formInfo( m_formName );
- template_h.replace( TQRegExp( "\\$BASEINCLUDE\\$" ), formInfo.baseName() + ".h" );
- template_h.replace( TQRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() );
- template_h.replace( TQRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName );
- template_h.replace( TQRegExp( "\\$DEFTEXT\\$" ), fileNameEdit->text().upper() );
+ template_h.tqreplace( TQRegExp( "\\$BASEINCLUDE\\$" ), formInfo.baseName() + ".h" );
+ template_h.tqreplace( TQRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() );
+ template_h.tqreplace( TQRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName );
+ template_h.tqreplace( TQRegExp( "\\$DEFTEXT\\$" ), fileNameEdit->text().upper() );
- template_cpp.replace( TQRegExp( "\\$CLASSINCLUDE\\$" ), fileNameEdit->text() + ".h" );
- template_cpp.replace( TQRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() );
- template_cpp.replace( TQRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName );
- template_cpp.replace( TQRegExp( "\\$MOCINCLUDE\\$" ), fileNameEdit->text() + ".moc" );
+ template_cpp.tqreplace( TQRegExp( "\\$CLASSINCLUDE\\$" ), fileNameEdit->text() + ".h" );
+ template_cpp.tqreplace( TQRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() );
+ template_cpp.tqreplace( TQRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName );
+ template_cpp.tqreplace( TQRegExp( "\\$TQMOCINCLUDE\\$" ), fileNameEdit->text() + ".tqmoc" );
template_h = FileTemplate::read( m_part, "h" ) + template_h;
template_cpp = FileTemplate::read( m_part, "cpp" ) + template_cpp;
diff --git a/languages/cpp/cppimplementationwidget.h b/languages/cpp/cppimplementationwidget.h
index b79b0aff..da1ef71b 100644
--- a/languages/cpp/cppimplementationwidget.h
+++ b/languages/cpp/cppimplementationwidget.h
@@ -30,8 +30,9 @@ class CppSupportPart;
class CppImplementationWidget : public ImplementationWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- CppImplementationWidget( KDevLanguageSupport *part, TQWidget* parent = 0, const char* name = 0, bool modal = false );
+ CppImplementationWidget( KDevLanguageSupport *part, TQWidget* tqparent = 0, const char* name = 0, bool modal = false );
protected:
virtual TQStringList createClassFiles();
diff --git a/languages/cpp/cppnewclassdlg.cpp b/languages/cpp/cppnewclassdlg.cpp
index fc338900..773f36ae 100644
--- a/languages/cpp/cppnewclassdlg.cpp
+++ b/languages/cpp/cppnewclassdlg.cpp
@@ -52,28 +52,13 @@
#include "classgeneratorconfig.h"
-TQString QRegExp_escape( const TQString& str )
+TQString TQRegExp_escape( const TQString& str )
{
-#if QT_VERSION >= 0x030100
return TQRegExp::escape( str );
-#else
- // this block is copyrighted by Trolltech AS (GPL)
- static const char meta[] = "$()*+.?[\\]^{|}";
- TQString quoted = str;
- int i = 0;
-
- while ( i < ( int ) quoted.length() )
- {
- if ( strchr( meta, quoted[ i ].latin1() ) != 0 )
- quoted.insert( i++, "\\" );
- i++;
- }
- return quoted;
-#endif
}
-CppNewClassDialog::CppNewClassDialog( CppSupportPart *part, TQWidget *parent, const char *name )
- : CppNewClassDialogBase( parent, name ), myModel( 0 )
+CppNewClassDialog::CppNewClassDialog( CppSupportPart *part, TQWidget *tqparent, const char *name )
+ : CppNewClassDialogBase( tqparent, name ), myModel( 0 )
{
headerModified = false;
baseincludeModified = false;
@@ -161,7 +146,7 @@ TQStringList& gres( TQStringList &list, const TQRegExp & rx, const TQString & af
TQStringList::Iterator it = list.begin();
while ( it != list.end() )
{
- ( *it ).replace( rx, after );
+ ( *it ).tqreplace( rx, after );
++it;
}
return list;
@@ -175,13 +160,7 @@ void CppNewClassDialog::addCompletionBasenameNamespacesRecursive( const Namespac
if ( ! namespaceParent.isEmpty() )
{
-#if QT_VERSION >= 0x030200
classList.gres( TQRegExp( "^" ), namespaceParent + "::" );
-#else
-
- gres( classList, TQRegExp( "^" ), namespaceParent + "::" );
-#endif
-
}
compBasename -> insertItems( classList );
@@ -247,13 +226,13 @@ void CppNewClassDialog::classNameChanged( const TQString &text )
default:
;
}
- header = header.replace( TQRegExp( "(template *<.*> *)?(class +)?" ), "" );
+ header = header.tqreplace( TQRegExp( "(template *<.*> *)?(class +)?" ), "" );
header_edit->setText( header );
}
if ( !implementationModified )
{
TQString implementation;
- if ( str.contains( "template" ) )
+ if ( str.tqcontains( "template" ) )
implementation = str + "_impl" + interface_suffix;
else
implementation = str + implementation_suffix;
@@ -268,7 +247,7 @@ void CppNewClassDialog::classNameChanged( const TQString &text )
default:
;
}
- implementation = implementation.replace( TQRegExp( "(template *<.*> *)?(class +)?" ), "" );
+ implementation = implementation.tqreplace( TQRegExp( "(template *<.*> *)?(class +)?" ), "" );
implementation_edit->setText( implementation );
}
}
@@ -286,7 +265,7 @@ void CppNewClassDialog::baseclassname_changed( const TQString &text )
{
TQString header = text;
- // handle Qt classes in a special way.
+ // handle TQt classes in a special way.
if( m_part->qtBuildConfig()->isUsed() && header.startsWith( "Q" ) )
{
if( m_part->qtBuildConfig()->version() == 3 )
@@ -300,9 +279,9 @@ void CppNewClassDialog::baseclassname_changed( const TQString &text )
}
else
{
- if ( header.contains( TQRegExp( "::" ) ) )
- header = header.mid( header.findRev( TQRegExp( "::" ) ) + 2 );
- header = header.replace( TQRegExp( " *<.*>" ), "" );
+ if ( header.tqcontains( TQRegExp( "::" ) ) )
+ header = header.mid( header.tqfindRev( TQRegExp( "::" ) ) + 2 );
+ header = header.tqreplace( TQRegExp( " *<.*>" ), "" );
header += interface_suffix;
switch ( gen_config->superCase() )
@@ -369,7 +348,7 @@ void CppNewClassDialog::checkObjCInheritance( int val )
objc_box->setChecked( false );
}
-void CppNewClassDialog::checkQWidgetInheritance( int val )
+void CppNewClassDialog::checkTQWidgetInheritance( int val )
{
if ( val )
{
@@ -395,11 +374,11 @@ void CppNewClassDialog::checkQWidgetInheritance( int val )
if ( baseclasses_view->childCount() == 0 )
{
addBaseClass();
- basename_edit->setText( "TQWidget" );
+ basename_edit->setText( TQWIDGET_OBJECT_NAME_STRING );
}
/* constructors_cpp_edit->append(classname_edit->text() + "::" + classname_edit->text() +
- "(TQWidget *parent, const char *name):\n TQWidget(parent, name)\n{\n}\n");
- constructors_h_edit->append(classname_edit->text() + "(TQWidget *parent, const char *name);\n");*/
+ "(TQWidget *tqparent, const char *name):\n TQWidget(tqparent, name)\n{\n}\n");
+ constructors_h_edit->append(classname_edit->text() + "(TQWidget *tqparent, const char *name);\n");*/
}
if ( val && ( baseclasses_view->childCount() > 1 ) )
@@ -417,7 +396,7 @@ void CppNewClassDialog::qobject_box_stateChanged( int val )
if ( baseclasses_view->childCount() == 0 )
{
addBaseClass();
- basename_edit->setText( "TQObject" );
+ basename_edit->setText( TQOBJECT_OBJECT_NAME_STRING );
}
@@ -482,11 +461,11 @@ void CppNewClassDialog::addBaseClass()
if ( baseclasses_view->selectedItem() )
baseclasses_view->selectedItem() ->setSelected( false );
TQListViewItem* it = new TQListViewItem( baseclasses_view, baseclasses_view->lastItem(),
- TQString::null, "public", TQString( "%1" ).arg( scope_box->currentItem() ), TQString::null, "false" );
+ TQString(), "public", TQString( "%1" ).tqarg( scope_box->currentItem() ), TQString(), "false" );
setStateOfInheritanceEditors( true );
public_button->setChecked( true );
virtual_box->setChecked( false );
- basename_edit->setText( TQString::null );
+ basename_edit->setText( TQString() );
basename_edit->setFocus();
baseclasses_view->setSelected( it, true );
}
@@ -537,23 +516,23 @@ void CppNewClassDialog::remBaseClassOnly()
void CppNewClassDialog::remClassFromAdv( TQString text )
{
// Strip off namespace qualification
- if ( text.contains( "::" ) )
- text = text.mid( text.findRev( "::" ) + 2 );
+ if ( text.tqcontains( "::" ) )
+ text = text.mid( text.tqfindRev( "::" ) + 2 );
removeTemplateParams( text );
TQListViewItem *it = 0;
- if ( ( it = access_view->findItem( text, 0 ) ) )
+ if ( ( it = access_view->tqfindItem( text, 0 ) ) )
delete it;
- if ( ( it = methods_view->findItem( text, 0 ) ) )
+ if ( ( it = methods_view->tqfindItem( text, 0 ) ) )
delete it;
- if ( ( it = constructors_view->findItem( text, 0 ) ) )
+ if ( ( it = constructors_view->tqfindItem( text, 0 ) ) )
{
/// @todo changing constructors text in constructors_cpp_edit
// and constructors_h_edit must be implemented
/* int *para = new int(1);
int *index = new int(1);
- if (constructors_cpp_edit->find(text + "(", true, false, true, para, index))
+ if (constructors_cpp_edit->tqfind(text + "(", true, false, true, para, index))
{
qWarning("%s( found", text.latin1());
if (para) constructors_cpp_edit->removeParagraph(*para);
@@ -610,7 +589,7 @@ void CppNewClassDialog::scopeboxActivated( int value )
{
if ( baseclasses_view->selectedItem() )
{
- baseclasses_view->selectedItem() ->setText( 2, TQString( "%1" ).arg( value ) );
+ baseclasses_view->selectedItem() ->setText( 2, TQString( "%1" ).tqarg( value ) );
}
}
@@ -636,19 +615,19 @@ void CppNewClassDialog::currBaseSelected( TQListViewItem *it )
basename_edit->setText( it->text( 0 ) );
baseinclude_edit->setText( it->text( 3 ) );
scope_box->setCurrentItem( it->text( 2 ).toInt() );
- if ( it->text( 1 ).contains( "private" ) )
+ if ( it->text( 1 ).tqcontains( "private" ) )
private_button->setChecked( true );
else
private_button->setChecked( false );
- if ( it->text( 1 ).contains( "protected" ) )
+ if ( it->text( 1 ).tqcontains( "protected" ) )
protected_button->setChecked( true );
else
protected_button->setChecked( false );
- if ( it->text( 1 ).contains( "public" ) )
+ if ( it->text( 1 ).tqcontains( "public" ) )
public_button->setChecked( true );
else
public_button->setChecked( false );
- if ( it->text( 1 ).contains( "virtual" ) )
+ if ( it->text( 1 ).tqcontains( "virtual" ) )
virtual_box->setChecked( true );
else
virtual_box->setChecked( false );
@@ -725,7 +704,7 @@ void CppNewClassDialog::updateConstructorsOrder()
while ( it.current() )
{
- if ( ( c_it = constructors_view->findItem( it.current() ->text( 0 ), 0 ) ) )
+ if ( ( c_it = constructors_view->tqfindItem( it.current() ->text( 0 ), 0 ) ) )
{
c_it->moveItem( fc_it );
fc_it = c_it;
@@ -776,7 +755,7 @@ void CppNewClassDialog::changeToPublic()
void CppNewClassDialog::changeToInherited()
{
if ( access_view->selectedItem() )
- access_view->selectedItem() ->setText( 2, TQString::null );
+ access_view->selectedItem() ->setText( 2, TQString() );
}
void CppNewClassDialog::newTabSelected( const TQString& /*text*/ )
@@ -817,11 +796,11 @@ void CppNewClassDialog::parseClass( TQString clName, TQString inheritance )
TQStringList clNamespace = currNamespace;
bool clFullQualified = false;
- if ( clName.contains( "::" ) )
+ if ( clName.tqcontains( "::" ) )
{
// Full qualified, override imported namespace
clFullQualified = true;
- int splitpoint = clName.findRev( "::" );
+ int splitpoint = clName.tqfindRev( "::" );
clNamespace = TQStringList::split( "::", clName.left( splitpoint ) );
clName = clName.mid( splitpoint + 2 );
}
@@ -870,10 +849,10 @@ void CppNewClassDialog::parseClass( TQString clName, TQString inheritance )
PListViewItem<ClassDom> *over = new PListViewItem<ClassDom>( *classIt, methods_view, ( *classIt ) ->name() );
over->templateAddition = templateAdd;
TQListViewItem *over_methods = new TQListViewItem( over, i18n( "Methods" ) );
- TQListViewItem *over_slots = new TQListViewItem( over, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *over_slots = new TQListViewItem( over, i18n( "Slots (TQt-specific)" ) );
PListViewItem<ClassDom> *access = new PListViewItem<ClassDom>( *classIt, access_view, ( *classIt ) ->name() );
TQListViewItem *access_methods = new TQListViewItem( access, i18n( "Methods" ) );
- TQListViewItem *access_slots = new TQListViewItem( access, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *access_slots = new TQListViewItem( access, i18n( "Slots (TQt-specific)" ) );
TQListViewItem *access_attrs = new TQListViewItem( access, i18n( "Attributes" ) );
FunctionList functionList = ( *classIt ) ->functionList();
@@ -896,13 +875,13 @@ void CppNewClassDialog::parseClass( TQString clName, TQString inheritance )
TQString inhModifier;
//protected inheritance gives protected attributes
- if ( inheritance.contains( "protected" ) )
+ if ( inheritance.tqcontains( "protected" ) )
inhModifier = "protected";
//private inheritance gives private attributes
- else if ( inheritance.contains( "private" ) )
+ else if ( inheritance.tqcontains( "private" ) )
inhModifier = "private";
//public inheritance gives protected and public attributes
- else if ( inheritance.contains( "public" ) )
+ else if ( inheritance.tqcontains( "public" ) )
inhModifier = ( *methodIt ) ->access() == CodeModelItem::Public ? "public" : "protected";
addToUpgradeList( access_slots, *methodIt, inhModifier );
}
@@ -917,13 +896,13 @@ void CppNewClassDialog::parseClass( TQString clName, TQString inheritance )
// see what modifier is given for the base class
TQString inhModifier;
//protected inheritance gives protected methods
- if ( inheritance.contains( "protected" ) )
+ if ( inheritance.tqcontains( "protected" ) )
inhModifier = "protected";
//private inheritance gives private methods
- else if ( inheritance.contains( "private" ) )
+ else if ( inheritance.tqcontains( "private" ) )
inhModifier = "private";
//public inheritance gives protected and public methods
- else if ( inheritance.contains( "public" ) )
+ else if ( inheritance.tqcontains( "public" ) )
inhModifier = ( *methodIt ) ->access() == CodeModelItem::Public ? "public" : "protected";
addToUpgradeList( access_methods, *methodIt, inhModifier );
}
@@ -938,13 +917,13 @@ void CppNewClassDialog::parseClass( TQString clName, TQString inheritance )
{
TQString inhModifier;
//protected inheritance gives protected attributes
- if ( inheritance.contains( "protected" ) )
+ if ( inheritance.tqcontains( "protected" ) )
inhModifier = "protected";
//private inheritance gives private attributes
- else if ( inheritance.contains( "private" ) )
+ else if ( inheritance.tqcontains( "private" ) )
inhModifier = "private";
//public inheritance gives protected and public attributes
- else if ( inheritance.contains( "public" ) )
+ else if ( inheritance.tqcontains( "public" ) )
inhModifier = ( *varIt ) ->access() == CodeModelItem::Public ? "public" : "protected";
addToUpgradeList( access_attrs, *varIt, inhModifier );
}
@@ -958,8 +937,8 @@ bool CppNewClassDialog::isConstructor( TQString className, const FunctionDom &me
if ( ( className == method->name() ) )
{
qWarning( "1x" );
- if ( ( method->argumentList().count() == 1 ) && ( m_part->formatModelItem( method->argumentList() [ 0 ].data() ).contains( TQRegExp( " *(const)? *" + className + " *& *" ) ) ) )
- // if ( method->asString().contains(TQRegExp(className + "\\s*\\(\\s*(const)?\\s*" + className + "\\s*&[A-Za-z_0-9\\s]*\\)", true, false)) )
+ if ( ( method->argumentList().count() == 1 ) && ( m_part->formatModelItem( method->argumentList() [ 0 ].data() ).tqcontains( TQRegExp( " *(const)? *" + className + " *& *" ) ) ) )
+ // if ( method->asString().tqcontains(TQRegExp(className + "\\s*\\(\\s*(const)?\\s*" + className + "\\s*&[A-Za-z_0-9\\s]*\\)", true, false)) )
return false;
else
return true;
@@ -973,21 +952,21 @@ void CppNewClassDialog::addToConstructorsList( TQCheckListItem *myClass, Functio
new PCheckListItem<FunctionDom>( method, myClass, m_part->formatModelItem( method.data() ), TQCheckListItem::RadioButton );
}
-void CppNewClassDialog::addToMethodsList( TQListViewItem *parent, FunctionDom method )
+void CppNewClassDialog::addToMethodsList( TQListViewItem *tqparent, FunctionDom method )
{
- PCheckListItem<FunctionDom> *it = new PCheckListItem<FunctionDom>( method, parent, m_part->formatModelItem( method.data() ), TQCheckListItem::CheckBox );
- method->isAbstract() ? it->setText( 1, i18n( "replace" ) ) : it->setText( 1, i18n( "extend" ) );
+ PCheckListItem<FunctionDom> *it = new PCheckListItem<FunctionDom>( method, tqparent, m_part->formatModelItem( method.data() ), TQCheckListItem::CheckBox );
+ method->isAbstract() ? it->setText( 1, i18n( "tqreplace" ) ) : it->setText( 1, i18n( "extend" ) );
}
-void CppNewClassDialog::addToUpgradeList( TQListViewItem *parent, FunctionDom method, TQString modifier )
+void CppNewClassDialog::addToUpgradeList( TQListViewItem *tqparent, FunctionDom method, TQString modifier )
{
- PListViewItem<FunctionDom> *it = new PListViewItem<FunctionDom>( method, parent, m_part->formatModelItem( method.data() ) );
+ PListViewItem<FunctionDom> *it = new PListViewItem<FunctionDom>( method, tqparent, m_part->formatModelItem( method.data() ) );
it->setText( 1, modifier );
}
-void CppNewClassDialog::addToUpgradeList( TQListViewItem *parent, VariableDom attr, TQString modifier )
+void CppNewClassDialog::addToUpgradeList( TQListViewItem *tqparent, VariableDom attr, TQString modifier )
{
- PListViewItem<VariableDom> *it = new PListViewItem<VariableDom>( attr, parent, m_part->formatModelItem( attr.data() ) );
+ PListViewItem<VariableDom> *it = new PListViewItem<VariableDom>( attr, tqparent, m_part->formatModelItem( attr.data() ) );
it->setText( 1, modifier );
}
@@ -998,11 +977,11 @@ void CppNewClassDialog::parsePCSClass( TQString clName, TQString inheritance )
TQStringList clNamespace = currNamespace;
bool clFullQualified = false;
- if ( clName.contains( "::" ) )
+ if ( clName.tqcontains( "::" ) )
{
// Full qualified, override imported namespace
clFullQualified = true;
- int splitpoint = clName.findRev( "::" );
+ int splitpoint = clName.tqfindRev( "::" );
clNamespace = TQStringList::split( "::", clName.left( splitpoint ) );
clName = clName.mid( splitpoint + 2 );
}
@@ -1029,10 +1008,10 @@ void CppNewClassDialog::parsePCSClass( TQString clName, TQString inheritance )
PListViewItem<ClassDom> *over = new PListViewItem<ClassDom>( *classIt, methods_view, ( *classIt ) ->name() );
over->templateAddition = templateAdd;
TQListViewItem *over_methods = new TQListViewItem( over, i18n( "Methods" ) );
- TQListViewItem *over_slots = new TQListViewItem( over, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *over_slots = new TQListViewItem( over, i18n( "Slots (TQt-specific)" ) );
PListViewItem<ClassDom> *access = new PListViewItem<ClassDom>( *classIt, access_view, ( *classIt ) ->name() );
TQListViewItem *access_methods = new TQListViewItem( access, i18n( "Methods" ) );
- TQListViewItem *access_slots = new TQListViewItem( access, i18n( "Slots (Qt-specific)" ) );
+ TQListViewItem *access_slots = new TQListViewItem( access, i18n( "Slots (TQt-specific)" ) );
TQListViewItem *access_attrs = new TQListViewItem( access, i18n( "Attributes" ) );
FunctionList functionList = ( *classIt ) ->functionList();
@@ -1055,13 +1034,13 @@ void CppNewClassDialog::parsePCSClass( TQString clName, TQString inheritance )
TQString inhModifier;
//protected inheritance gives protected attributes
- if ( inheritance.contains( "protected" ) )
+ if ( inheritance.tqcontains( "protected" ) )
inhModifier = "protected";
//private inheritance gives private attributes
- else if ( inheritance.contains( "private" ) )
+ else if ( inheritance.tqcontains( "private" ) )
inhModifier = "private";
//public inheritance gives protected and public attributes
- else if ( inheritance.contains( "public" ) )
+ else if ( inheritance.tqcontains( "public" ) )
inhModifier = ( *methodIt ) ->access() == CodeModelItem::Public ? "public" : "protected";
addToUpgradeList( access_slots, *methodIt, inhModifier );
}
@@ -1076,13 +1055,13 @@ void CppNewClassDialog::parsePCSClass( TQString clName, TQString inheritance )
//see what modifier is given for the base class
TQString inhModifier;
//protected inheritance gives protected methods
- if ( inheritance.contains( "protected" ) )
+ if ( inheritance.tqcontains( "protected" ) )
inhModifier = "protected";
//private inheritance gives private methods
- else if ( inheritance.contains( "private" ) )
+ else if ( inheritance.tqcontains( "private" ) )
inhModifier = "private";
//public inheritance gives protected and public methods
- else if ( inheritance.contains( "public" ) )
+ else if ( inheritance.tqcontains( "public" ) )
inhModifier = ( *methodIt ) ->access() == CodeModelItem::Public ? "public" : "protected";
addToUpgradeList( access_methods, *methodIt, inhModifier );
}
@@ -1097,13 +1076,13 @@ void CppNewClassDialog::parsePCSClass( TQString clName, TQString inheritance )
{
TQString inhModifier;
//protected inheritance gives protected attributes
- if ( inheritance.contains( "protected" ) )
+ if ( inheritance.tqcontains( "protected" ) )
inhModifier = "protected";
//private inheritance gives private attributes
- else if ( inheritance.contains( "private" ) )
+ else if ( inheritance.tqcontains( "private" ) )
inhModifier = "private";
//public inheritance gives protected and public attributes
- else if ( inheritance.contains( "public" ) )
+ else if ( inheritance.tqcontains( "public" ) )
inhModifier = ( *varIt ) ->access() == CodeModelItem::Public ? "public" : "protected";
addToUpgradeList( access_attrs, *varIt, inhModifier );
}
@@ -1132,7 +1111,7 @@ void CppNewClassDialog::clearConstructorsList( bool clean )
TQListViewItemIterator it( constructors_view );
while ( it.current() )
{
- if ( ! currBaseClasses.contains(it.current().text(0)) )
+ if ( ! currBaseClasses.tqcontains(it.current().text(0)) )
delete it.current();
++it;
}
@@ -1160,9 +1139,9 @@ void CppNewClassDialog::setAccessForItem( TQListViewItem *curr, TQString newAcce
if ( !curr->text( 2 ).isEmpty() )
{
if ( ( curr->text( 2 ) == "private" ) && ( ( newAccess == "public" ) || ( newAccess == "protected" ) ) )
- curr->setText( 2, TQString::null );
+ curr->setText( 2, TQString() );
if ( ( curr->text( 2 ) == "protected" ) && ( ( newAccess == "public" ) && ( isPublic ) ) )
- curr->setText( 2, TQString::null );
+ curr->setText( 2, TQString() );
}
}
@@ -1170,7 +1149,7 @@ void CppNewClassDialog::setAccessForBase( TQString baseclass, TQString newAccess
{
TQListViewItem * base;
- if ( ( base = access_view->findItem( baseclass, 0 ) ) )
+ if ( ( base = access_view->tqfindItem( baseclass, 0 ) ) )
{
TQListViewItemIterator it( base );
while ( it.current() )
@@ -1192,7 +1171,7 @@ void CppNewClassDialog::setAccessForBase( TQString baseclass, TQString newAccess
void CppNewClassDialog::access_view_mouseButtonPressed( int button, TQListViewItem * item, const TQPoint &p, int /*c*/ )
{
- if ( item && ( ( button == LeftButton ) || ( button == RightButton ) ) && ( item->depth() > 1 ) )
+ if ( item && ( ( button == Qt::LeftButton ) || ( button == Qt::RightButton ) ) && ( item->depth() > 1 ) )
{
accessMenu->setItemEnabled( 1, true );
accessMenu->setItemEnabled( 2, true );
@@ -1217,7 +1196,7 @@ void CppNewClassDialog::access_view_mouseButtonPressed( int button, TQListViewIt
void CppNewClassDialog::methods_view_mouseButtonPressed( int button , TQListViewItem * item, const TQPoint&p , int /*c*/ )
{
- if ( item && ( button == RightButton ) && ( item->depth() > 1 ) && ( ! item->text( 1 ).isEmpty() ) )
+ if ( item && ( button == Qt::RightButton ) && ( item->depth() > 1 ) && ( ! item->text( 1 ).isEmpty() ) )
{
overMenu->exec( p );
}
@@ -1232,7 +1211,7 @@ void CppNewClassDialog::extendFunctionality()
void CppNewClassDialog::replaceFunctionality()
{
if ( methods_view->selectedItem() )
- methods_view->selectedItem() ->setText( 1, i18n( "replace" ) );
+ methods_view->selectedItem() ->setText( 1, i18n( "tqreplace" ) );
}
void CppNewClassDialog::selectall_button_clicked()
@@ -1249,7 +1228,7 @@ void CppNewClassDialog::selectall_button_clicked()
void CppNewClassDialog::to_constructors_list_clicked()
{
- TQString templateAdd = templateStrFormatted().isEmpty() ? TQString::null : templateStrFormatted() + "\n";
+ TQString templateAdd = templateStrFormatted().isEmpty() ? TQString() : templateStrFormatted() + "\n";
TQString constructor_h = classNameFormatted();
TQString constructor_cpp = templateAdd + classNameFormatted() + templateParamsFormatted() + "::" + classNameFormatted();
constructor_h += "(";
@@ -1265,13 +1244,13 @@ void CppNewClassDialog::to_constructors_list_clicked()
PCheckListItem<FunctionDom> *curr;
if ( ( curr = dynamic_cast<PCheckListItem<FunctionDom>* >( it.current() ) ) )
{
- if ( curr->isOn() && curr->parent() )
+ if ( curr->isOn() && curr->tqparent() )
{
//fill the base classes list
base += base.isEmpty() ? ": " : ", ";
- base += curr->parent() ->text( 0 );
+ base += curr->tqparent() ->text( 0 );
PCheckListItem<ClassDom> *p;
- if ( ( p = dynamic_cast<PCheckListItem<ClassDom>* >( curr->parent() ) ) )
+ if ( ( p = dynamic_cast<PCheckListItem<ClassDom>* >( curr->tqparent() ) ) )
{
base += p->templateAddition;
}
@@ -1289,8 +1268,8 @@ void CppNewClassDialog::to_constructors_list_clicked()
cparams += ( *argIt ) ->type() + " ";
if ( ( *argIt ) ->name().isEmpty() )
{
- cparams += TQString( "arg%1" ).arg( unnamed );
- bparams += TQString( "arg%1" ).arg( unnamed++ );
+ cparams += TQString( "arg%1" ).tqarg( unnamed );
+ bparams += TQString( "arg%1" ).tqarg( unnamed++ );
}
else
{
@@ -1334,13 +1313,13 @@ bool CppNewClassDialog::ClassGenerator::validateInput()
{
className = dlg.classname_edit->text().simplifyWhiteSpace();
TQString temp = className;
- className.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
- templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
- templateStr.replace( TQRegExp( " *class *$" ), "" );
+ className.tqreplace( TQRegExp( "template *<.*> *(class *)?" ), "" );
+ templateStr = temp.tqreplace( TQRegExp( TQRegExp_escape( className ) ), "" );
+ templateStr.tqreplace( TQRegExp( " *class *$" ), "" );
templateParams = templateStr;
- templateParams.replace( TQRegExp( "^ *template *" ), "" );
- templateParams.replace( TQRegExp( " *class *" ), "" );
+ templateParams.tqreplace( TQRegExp( "^ *template *" ), "" );
+ templateParams.tqreplace( TQRegExp( " *class *" ), "" );
templateParams.simplifyWhiteSpace();
if ( className.isEmpty() )
@@ -1363,7 +1342,7 @@ bool CppNewClassDialog::ClassGenerator::validateInput()
}
/// \FIXME
- if ( ( header.find( '/' ) != -1 || implementation.find( '/' ) != -1 ) && !( dlg.m_part->project() ->options() & KDevProject::UsesQMakeBuildSystem) )
+ if ( ( header.tqfind( '/' ) != -1 || implementation.tqfind( '/' ) != -1 ) && !( dlg.m_part->project() ->options() & KDevProject::UsesTQMakeBuildSystem) )
{
KMessageBox::error( &dlg, i18n( "Generated files will always be added to the "
"active directory, so you must not give an "
@@ -1397,7 +1376,7 @@ bool CppNewClassDialog::ClassGenerator::generate()
return false;
}
- if( ( dlg.m_part->project() ->options() & KDevProject::UsesQMakeBuildSystem) )
+ if( ( dlg.m_part->project() ->options() & KDevProject::UsesTQMakeBuildSystem) )
{
TQDir dir( TQFileInfo( project->projectDirectory()+TQString( TQChar( TQDir::separator() ) )+project->activeDirectory() + TQString( TQChar( TQDir::separator() ) ) + header ).dirPath() );
kdDebug(9024) << "Dir for new file:" << dir.absPath() << endl;
@@ -1458,7 +1437,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
headeronly = dlg.headeronly_box->isChecked();
if ( ( dlg.baseclasses_view->childCount() == 0 ) && childClass )
- new TQListViewItem( dlg.baseclasses_view, "TQWidget", "public" );
+ new TQListViewItem( dlg.baseclasses_view, TQWIDGET_OBJECT_NAME_STRING, "public" );
if ( objc && ( dlg.baseclasses_view->childCount() == 0 ) )
new TQListViewItem( dlg.baseclasses_view, "NSObject", "public" );
@@ -1476,7 +1455,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
TQString author = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/author" );
TQString email = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/email" );
if( !email.isEmpty() )
- author += TQString( " <%1>" ).arg( email );
+ author += TQString( " <%1>" ).tqarg( email );
if ( dlg.gen_config->author_box->isChecked() )
doc.append( "\t@author " + author + "\n" );
@@ -1498,29 +1477,29 @@ void CppNewClassDialog::ClassGenerator::common_text()
//advanced constructor creation
- advConstructorsHeader = TQString::null;
- advConstructorsSource = TQString::null;
+ advConstructorsHeader = TQString();
+ advConstructorsSource = TQString();
if ( !dlg.constructors_h_edit->text().isEmpty() )
{
advConstructorsHeader = " " + dlg.constructors_h_edit->text();
- advConstructorsHeader.replace( TQRegExp( "\n" ), "\n " );
+ advConstructorsHeader.tqreplace( TQRegExp( "\n" ), "\n " );
}
if ( !dlg.constructors_cpp_edit->text().isEmpty() )
{
advConstructorsSource = dlg.constructors_cpp_edit->text();
}
- advConstructorsHeader.replace( TQRegExp( "[\\n ]*$" ), TQString::null );
- advConstructorsSource.replace( TQRegExp( "[\\n ]*$" ), TQString::null );
+ advConstructorsHeader.tqreplace( TQRegExp( "[\\n ]*$" ), TQString() );
+ advConstructorsSource.tqreplace( TQRegExp( "[\\n ]*$" ), TQString() );
//advanced method overriding
- advH_public = TQString::null;
- advH_public_slots = TQString::null;
- advH_protected = TQString::null;
- advH_protected_slots = TQString::null;
- advH_private = TQString::null;
- advH_private_slots = TQString::null;
- advCpp = TQString::null;
+ advH_public = TQString();
+ advH_public_slots = TQString();
+ advH_protected = TQString();
+ advH_protected_slots = TQString();
+ advH_private = TQString();
+ advH_private_slots = TQString();
+ advCpp = TQString();
TQListViewItemIterator it( dlg.methods_view );
while ( it.current() )
@@ -1528,7 +1507,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
PCheckListItem<FunctionDom> *curr;
if ( ( curr = dynamic_cast<PCheckListItem<FunctionDom>* >( it.current() ) ) )
{
- if ( curr->isOn() && ( curr->parent() ) && ( curr->parent() ->parent() ) )
+ if ( curr->isOn() && ( curr->tqparent() ) && ( curr->tqparent() ->tqparent() ) )
{
TQString * adv_h = 0;
if ( curr->item() ->access() == CodeModelItem::Private )
@@ -1540,9 +1519,9 @@ void CppNewClassDialog::ClassGenerator::common_text()
// if (advCpp.isEmpty()) advCpp += "\n\n";
- TQString bcName = curr->parent() ->parent() ->text( 0 );
+ TQString bcName = curr->tqparent() ->tqparent() ->text( 0 );
PListViewItem<ClassDom> *bc;
- if ( ( bc = dynamic_cast<PListViewItem<ClassDom>* >( curr->parent() ->parent() ) ) )
+ if ( ( bc = dynamic_cast<PListViewItem<ClassDom>* >( curr->tqparent() ->tqparent() ) ) )
{
bcName += bc->templateAddition;
}
@@ -1561,7 +1540,7 @@ void CppNewClassDialog::ClassGenerator::common_text()
PListViewItem<FunctionDom> *curr_m;
if ( ( curr = dynamic_cast<PListViewItem<VariableDom>* >( ita.current() ) ) )
{
- if ( ( !curr->text( 2 ).isEmpty() ) && ( curr->parent() ) && ( curr->parent() ->parent() ) )
+ if ( ( !curr->text( 2 ).isEmpty() ) && ( curr->tqparent() ) && ( curr->tqparent() ->tqparent() ) )
{
TQString * adv_h = 0;
if ( curr->text( 2 ) == "private" )
@@ -1574,12 +1553,12 @@ void CppNewClassDialog::ClassGenerator::common_text()
/* if ((*adv_h).isEmpty())
*adv_h += "\n\n";*/
if ( adv_h )
- *adv_h += TQString( " using " ) + curr->parent() ->parent() ->text( 0 ) + "::" + curr->item() ->name() + ";\n";
+ *adv_h += TQString( " using " ) + curr->tqparent() ->tqparent() ->text( 0 ) + "::" + curr->item() ->name() + ";\n";
}
}
else if ( ( curr_m = dynamic_cast<PListViewItem<FunctionDom>* >( ita.current() ) ) )
{
- if ( ( !curr_m->text( 2 ).isEmpty() ) && ( curr_m->parent() ) && ( curr_m->parent() ->parent() ) )
+ if ( ( !curr_m->text( 2 ).isEmpty() ) && ( curr_m->tqparent() ) && ( curr_m->tqparent() ->tqparent() ) )
{
TQString * adv_h = 0;
if ( curr_m->text( 2 ) == "private" )
@@ -1593,22 +1572,22 @@ void CppNewClassDialog::ClassGenerator::common_text()
*adv_h += "\n\n";*/
TQString methodName = curr_m->item() ->name();
- if ( !methodName.contains( TQRegExp( "^[a-zA-z_]" ) ) )
+ if ( !methodName.tqcontains( TQRegExp( "^[a-zA-z_]" ) ) )
methodName = "operator" + methodName;
- *adv_h += " using " + curr_m->parent() ->parent() ->text( 0 ) + "::" + methodName + ";\n";
+ *adv_h += " using " + curr_m->tqparent() ->tqparent() ->text( 0 ) + "::" + methodName + ";\n";
}
}
++ita;
}
TQRegExp e( "[\\n ]*$" );
- advH_public.replace( e, TQString::null );
- advH_public_slots.replace( e, TQString::null );
- advH_protected.replace( e, TQString::null );
- advH_protected_slots.replace( e, TQString::null );
- advH_private.replace( e, TQString::null );
- advH_private_slots.replace( e, TQString::null );
- advCpp.replace( e, TQString::null );
+ advH_public.tqreplace( e, TQString() );
+ advH_public_slots.tqreplace( e, TQString() );
+ advH_protected.tqreplace( e, TQString() );
+ advH_protected_slots.tqreplace( e, TQString() );
+ advH_private.tqreplace( e, TQString() );
+ advH_private_slots.tqreplace( e, TQString() );
+ advCpp.tqreplace( e, TQString() );
}
void CppNewClassDialog::ClassGenerator::genMethodDeclaration( FunctionDom method,
@@ -1617,7 +1596,7 @@ void CppNewClassDialog::ClassGenerator::genMethodDeclaration( FunctionDom method
/* if ((*adv_h).isEmpty())
*adv_h += "\n\n";*/
TQString methodName = method->name();
- if ( !methodName.contains( TQRegExp( "^[a-zA-z_]" ) ) )
+ if ( !methodName.tqcontains( TQRegExp( "^[a-zA-z_]" ) ) )
methodName = "operator" + methodName;
*adv_h += " " + ( method->isVirtual() ? TQString( "virtual " ) : TQString( "" ) )
+ ( method->isStatic() ? TQString( "static " ) : TQString( "" ) )
@@ -1639,8 +1618,8 @@ void CppNewClassDialog::ClassGenerator::genMethodDeclaration( FunctionDom method
cparams += ( *argIt ) ->type() + " ";
if ( ( *argIt ) ->name().isEmpty() )
{
- cparams += TQString( "arg%1" ).arg( unnamed );
- bparams += TQString( "arg%1" ).arg( unnamed++ );
+ cparams += TQString( "arg%1" ).tqarg( unnamed );
+ bparams += TQString( "arg%1" ).tqarg( unnamed++ );
}
else
{
@@ -1678,8 +1657,8 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
classImpl = FileTemplate::read( dlg.m_part, fi.extension( true ) );
}
- classImpl.replace( TQRegExp( "\\$MODULE\\$" ), module );
- classImpl.replace( TQRegExp( "\\$FILENAME\\$" ), basefilename );
+ classImpl.tqreplace( TQRegExp( "\\$MODULE\\$" ), module );
+ classImpl.tqreplace( TQRegExp( "\\$FILENAME\\$" ), basefilename );
if ( objc )
{
@@ -1710,7 +1689,7 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
}
TQString relPath;
- for ( int i = implementation.findRev( '/' ); i != -1; i = implementation.findRev( '/', --i ) )
+ for ( int i = implementation.tqfindRev( '/' ); i != -1; i = implementation.tqfindRev( '/', --i ) )
relPath += "../";
TQString constructors = ( advConstructorsSource.isEmpty() ? TQString( "$TEMPLATESTR$\n$CLASSNAME$$TEMPLATEPARAMS$::$CLASSNAME$($ARGS$)\n"
@@ -1728,26 +1707,26 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
{
- argsH = "TQWidget *parent = 0, const char *name = 0";
- argsCpp = "TQWidget *parent, const char *name";
+ argsH = "TQWidget *tqparent = 0, const char *name = 0";
+ argsCpp = "TQWidget *tqparent, const char *name";
}
else
{
- argsH = "TQWidget *parent = 0";
- argsCpp = "TQWidget *parent";
+ argsH = "TQWidget *tqparent = 0";
+ argsCpp = "TQWidget *tqparent";
}
}
else if ( qobject )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
{
- argsH = "TQObject *parent = 0, const char *name = 0";
- argsCpp = "TQObject *parent, const char *name";
+ argsH = "TQObject *tqparent = 0, const char *name = 0";
+ argsCpp = "TQObject *tqparent, const char *name";
}
else
{
- argsH = "TQObject *parent = 0";
- argsCpp = "TQObject *parent";
+ argsH = "TQObject *tqparent = 0";
+ argsCpp = "TQObject *tqparent";
}
}
else
@@ -1760,16 +1739,16 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
if ( childClass && ( dlg.baseclasses_view->childCount() == 0 ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- baseInitializer = " : TQWidget(parent, name)";
+ baseInitializer = " : TQWidget(tqparent, name)";
else
- baseInitializer = " : TQWidget(parent)";
+ baseInitializer = " : TQWidget(tqparent)";
}
else if ( qobject && ( dlg.baseclasses_view->childCount() == 0 ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- baseInitializer = " : TQObject(parent, name)";
+ baseInitializer = " : TQObject(tqparent, name)";
else
- baseInitializer = " : TQObject(parent)";
+ baseInitializer = " : TQObject(tqparent)";
}
else if ( dlg.baseclasses_view->childCount() != 0 )
{
@@ -1787,16 +1766,16 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
if ( childClass && ( baseInitializer == " : " ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- baseInitializer += it.current()->text( 0 ) + "(parent, name)";
+ baseInitializer += it.current()->text( 0 ) + "(tqparent, name)";
else
- baseInitializer += it.current()->text( 0 ) + "(parent)";
+ baseInitializer += it.current()->text( 0 ) + "(tqparent)";
}
else if ( qobject && ( baseInitializer == " : " ) )
{
if( dlg.m_part->qtBuildConfig()->version() == 3 )
- baseInitializer += it.current()->text( 0 ) + "(parent, name)";
+ baseInitializer += it.current()->text( 0 ) + "(tqparent, name)";
else
- baseInitializer += it.current()->text( 0 ) + "(parent)";
+ baseInitializer += it.current()->text( 0 ) + "(tqparent)";
}
else
{
@@ -1808,22 +1787,22 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
baseInitializer += "\n";
}
- constructors.replace( TQRegExp( "\\$BASEINITIALIZER\\$" ), baseInitializer );
- constructors.replace( TQRegExp( "\\$CLASSNAME\\$" ), className );
+ constructors.tqreplace( TQRegExp( "\\$BASEINITIALIZER\\$" ), baseInitializer );
+ constructors.tqreplace( TQRegExp( "\\$CLASSNAME\\$" ), className );
// qWarning("NEW CLASS: constructors = %s", constructors.latin1());
if ( templateStr.isEmpty() )
{
- constructors.replace( TQRegExp( "\\$TEMPLATESTR\\$\\n" ), "" );
- constructors.replace( TQRegExp( "\\$TEMPLATEPARAMS\\$" ), "" );
+ constructors.tqreplace( TQRegExp( "\\$TEMPLATESTR\\$\\n" ), "" );
+ constructors.tqreplace( TQRegExp( "\\$TEMPLATEPARAMS\\$" ), "" );
}
else
{
- constructors.replace( TQRegExp( "\\$TEMPLATESTR\\$" ), templateStr );
- constructors.replace( TQRegExp( "\\$TEMPLATEPARAMS\\$" ), templateParams );
- classImpl.replace( TQRegExp( "#include \"\\$HEADER\\$\"\\n" ), "" );
+ constructors.tqreplace( TQRegExp( "\\$TEMPLATESTR\\$" ), templateStr );
+ constructors.tqreplace( TQRegExp( "\\$TEMPLATEPARAMS\\$" ), templateParams );
+ classImpl.tqreplace( TQRegExp( "#include \"\\$HEADER\\$\"\\n" ), "" );
}
// qWarning("NEW CLASS: constructors = %s", constructors.latin1());
- constructors.replace( TQRegExp( "\\$ARGS\\$" ), argsCpp );
+ constructors.tqreplace( TQRegExp( "\\$ARGS\\$" ), argsCpp );
// qWarning("NEW CLASS: constructors = %s", constructors.latin1());
@@ -1831,19 +1810,19 @@ void CppNewClassDialog::ClassGenerator::gen_implementation()
TQString hp = relPath + header;
beautifySource( classImpl, hp, className, namespaceBeg, constructors, advCpp, namespaceEnd, implementation );
- classImpl.replace( TQRegExp( "\\$HEADER\\$" ), relPath + header );
- classImpl.replace( TQRegExp( "\\$CLASSNAME\\$" ), className );
- classImpl.replace( TQRegExp( "\\$NAMESPACEBEG\\$" ), namespaceBeg );
- classImpl.replace( TQRegExp( "\\$CONSTRUCTORDEFINITIONS\\$" ), constructors );
- classImpl.replace( TQRegExp( "\\$DEFINITIONS\\$" ), advCpp );
- classImpl.replace( TQRegExp( "\\$NAMESPACEEND\\$" ), namespaceEnd );
- classImpl.replace( TQRegExp( "\\$FILENAME\\$" ), implementation );
+ classImpl.tqreplace( TQRegExp( "\\$HEADER\\$" ), relPath + header );
+ classImpl.tqreplace( TQRegExp( "\\$CLASSNAME\\$" ), className );
+ classImpl.tqreplace( TQRegExp( "\\$NAMESPACEBEG\\$" ), namespaceBeg );
+ classImpl.tqreplace( TQRegExp( "\\$CONSTRUCTORDEFINITIONS\\$" ), constructors );
+ classImpl.tqreplace( TQRegExp( "\\$DEFINITIONS\\$" ), advCpp );
+ classImpl.tqreplace( TQRegExp( "\\$NAMESPACEEND\\$" ), namespaceEnd );
+ classImpl.tqreplace( TQRegExp( "\\$FILENAME\\$" ), implementation );
if ( ( dlg.m_part->project() ) && ( childClass || qobject ) && ( dlg.m_part->project() ->options() & KDevProject::UsesAutotoolsBuildSystem ) )
{
- TQString moc = header;
- moc.replace( TQRegExp( "\\..*" ), ".moc" );
- classImpl += "#include \"" + moc + "\"\n";
+ TQString tqmoc = header;
+ tqmoc.tqreplace( TQRegExp( "\\..*" ), ".tqmoc" );
+ classImpl += "#include \"" + tqmoc + "\"\n";
}
if ( dlg.gen_config->reformat_box->isChecked() )
@@ -1889,8 +1868,8 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
classIntf = FileTemplate::read( dlg.m_part, fi.extension( true ) );
}
- classIntf.replace( TQRegExp( "\\$MODULE\\$" ), module );
- classIntf.replace( TQRegExp( "\\$FILENAME\\$" ), basefilename );
+ classIntf.tqreplace( TQRegExp( "\\$MODULE\\$" ), module );
+ classIntf.tqreplace( TQRegExp( "\\$FILENAME\\$" ), basefilename );
if ( objc )
{
@@ -1912,16 +1891,16 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
+ namespaceBeg
+ TQString("class $CLASSNAME$$INHERITANCE$\n"
"{\n"
- "$QOBJECT$"
+ "$TQOBJECT$"
"public:\n")
+ ( advConstructorsHeader.isEmpty() ? TQString(" $CLASSNAME$($ARGS$);\n") : advConstructorsHeader )
+ TQString("\n ~$CLASSNAME$();\n")
+ advH_public
- + (advH_public_slots.isEmpty() ? TQString::fromLatin1("") : ("\n\npublic slots:" + advH_public_slots))
- + (advH_protected.isEmpty() ? TQString::fromLatin1("") : ("\n\nprotected:" + advH_protected))
- + (advH_protected_slots.isEmpty() ? TQString::fromLatin1("") : ("\n\nprotected slots:" + advH_protected_slots))
- + (advH_private.isEmpty() ? TQString::fromLatin1("") : ("\n\nprivate:" + advH_private))
- + (advH_private_slots.isEmpty() ? TQString::fromLatin1("") : ("\n\nprivate slots:" + advH_private_slots))
+ + (advH_public_slots.isEmpty() ? TQString::tqfromLatin1("") : ("\n\npublic slots:" + advH_public_slots))
+ + (advH_protected.isEmpty() ? TQString::tqfromLatin1("") : ("\n\nprotected:" + advH_protected))
+ + (advH_protected_slots.isEmpty() ? TQString::tqfromLatin1("") : ("\n\nprotected slots:" + advH_protected_slots))
+ + (advH_private.isEmpty() ? TQString::tqfromLatin1("") : ("\n\nprivate:" + advH_private))
+ + (advH_private_slots.isEmpty() ? TQString::tqfromLatin1("") : ("\n\nprivate slots:" + advH_private_slots))
+ TQString("};\n"
"\n")
+ namespaceEnd
@@ -1932,21 +1911,21 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
switch ( dlg.gen_config->defCase() )
{
case ClassGeneratorConfig::UpperCase:
- headerGuard = namespaceStr.upper() + header.mid( header.findRev( "/" )+1 ).upper();
+ headerGuard = namespaceStr.upper() + header.mid( header.tqfindRev( "/" )+1 ).upper();
break;
case ClassGeneratorConfig::LowerCase:
- headerGuard = namespaceStr.lower() + header.mid( header.findRev( "/" )+1 ).lower();
+ headerGuard = namespaceStr.lower() + header.mid( header.tqfindRev( "/" )+1 ).lower();
break;
case ClassGeneratorConfig::SameAsFileCase:
- headerGuard = dlg.header_edit->text().mid( dlg.header_edit->text().findRev( "/" )+1 );
+ headerGuard = dlg.header_edit->text().mid( dlg.header_edit->text().tqfindRev( "/" )+1 );
break;
case ClassGeneratorConfig::SameAsClassCase:
- headerGuard = namespaceStr + header.mid( header.findRev( "/" )+1 );
+ headerGuard = namespaceStr + header.mid( header.tqfindRev( "/" )+1 );
break;
}
- headerGuard.replace( TQRegExp( "\\." ), "_" );
- headerGuard.replace( TQRegExp( "::" ), "_" );
+ headerGuard.tqreplace( TQRegExp( "\\." ), "_" );
+ headerGuard.tqreplace( TQRegExp( "::" ), "_" );
TQString includeBaseHeader;
if( dlg.m_part->qtBuildConfig()->isUsed() )
{
@@ -1983,8 +1962,8 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
{
if ( !it.current() ->text( 0 ).isEmpty() )
if ( !it.current() ->text( 3 ).isEmpty() )
- // if ((!childClass) || (it.current()->text(0) != "TQWidget"))
- includeBaseHeader += ( includeBaseHeader.isEmpty() ? TQString( "" ) : TQString( "\n" ) ) + TQString::fromLatin1( "#include " ) +
+ // if ((!childClass) || (it.current()->text(0) != TQWIDGET_OBJECT_NAME_STRING))
+ includeBaseHeader += ( includeBaseHeader.isEmpty() ? TQString( "" ) : TQString( "\n" ) ) + TQString::tqfromLatin1( "#include " ) +
( it.current() ->text( 2 ).toInt() == 0 ? TQString( "<" ) : TQString( "\"" ) )
+ it.current() ->text( 3 )
+ ( it.current() ->text( 2 ).toInt() == 0 ? TQString( ">" ) : TQString( "\"" ) );
@@ -1995,7 +1974,7 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
TQString author = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/author" );
TQString email = DomUtil::readEntry( *dlg.m_part->projectDom(), "/general/email" );
if( !email.isEmpty() )
- author += TQString( " <%1>" ).arg( email );
+ author += TQString( " <%1>" ).tqarg( email );
TQString inheritance;
if ( dlg.baseclasses_view->childCount() > 0 )
@@ -2009,13 +1988,13 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
{
if ( inheritance != " : " )
inheritance += ", ";
- if ( it.current() ->text( 1 ).contains( "virtual" ) )
+ if ( it.current() ->text( 1 ).tqcontains( "virtual" ) )
inheritance += "virtual ";
- if ( it.current() ->text( 1 ).contains( "public" ) )
+ if ( it.current() ->text( 1 ).tqcontains( "public" ) )
inheritance += "public ";
- if ( it.current() ->text( 1 ).contains( "protected" ) )
+ if ( it.current() ->text( 1 ).tqcontains( "protected" ) )
inheritance += "protected ";
- if ( it.current() ->text( 1 ).contains( "private" ) )
+ if ( it.current() ->text( 1 ).tqcontains( "private" ) )
inheritance += "private ";
inheritance += it.current() ->text( 0 );
}
@@ -2029,12 +2008,12 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
TQString( " $CLASSNAME$($ARGS$);" ) : advConstructorsHeader )
+ TQString( "\n\n ~$CLASSNAME$();" );
- constructors.replace( TQRegExp( "\\$CLASSNAME\\$" ), className );
- constructors.replace( TQRegExp( "\\$ARGS\\$" ), argsH );
+ constructors.tqreplace( TQRegExp( "\\$CLASSNAME\\$" ), className );
+ constructors.tqreplace( TQRegExp( "\\$ARGS\\$" ), argsH );
TQString qobjectStr;
if ( childClass || qobject )
- qobjectStr = "Q_OBJECT";
+ qobjectStr = "TQ_OBJECT";
TQString baseclass;
@@ -2047,30 +2026,30 @@ void CppNewClassDialog::ClassGenerator::gen_interface()
advH_protected, advH_protected_slots, advH_private, advH_private_slots, namespaceEnd );
- classIntf.replace( TQRegExp( "\\$HEADERGUARD\\$" ), headerGuard );
- classIntf.replace( TQRegExp( "\\$INCLUDEBASEHEADER\\$" ), includeBaseHeader );
- classIntf.replace( TQRegExp( "\\$AUTHOR\\$" ), author );
- classIntf.replace( TQRegExp( "\\$DOC\\$" ), doc );
- classIntf.replace( TQRegExp( "\\$TEMPLATE\\$" ), templateStr );
- classIntf.replace( TQRegExp( "\\$CLASSNAME\\$" ), className );
+ classIntf.tqreplace( TQRegExp( "\\$HEADERGUARD\\$" ), headerGuard );
+ classIntf.tqreplace( TQRegExp( "\\$INCLUDEBASEHEADER\\$" ), includeBaseHeader );
+ classIntf.tqreplace( TQRegExp( "\\$AUTHOR\\$" ), author );
+ classIntf.tqreplace( TQRegExp( "\\$DOC\\$" ), doc );
+ classIntf.tqreplace( TQRegExp( "\\$TEMPLATE\\$" ), templateStr );
+ classIntf.tqreplace( TQRegExp( "\\$CLASSNAME\\$" ), className );
if ( dlg.baseclasses_view->childCount() > 0 )
- classIntf.replace( TQRegExp( "\\$BASECLASS\\$" ), dlg.baseclasses_view->firstChild() ->text( 0 ) );
- classIntf.replace( TQRegExp( "\\$INHERITANCE\\$" ), inheritance );
- classIntf.replace( TQRegExp( "\\$QOBJECT\\$" ), qobjectStr );
- classIntf.replace( TQRegExp( "\\$ARGS\\$" ), argsH );
- classIntf.replace( TQRegExp( "\\$FILENAME\\$" ), header );
- classIntf.replace( TQRegExp( "\\$NAMESPACEBEG\\$" ), namespaceBeg );
- classIntf.replace( TQRegExp( "\\$CONSTRUCTORDECLARATIONS\\$" ), constructors );
- classIntf.replace( TQRegExp( "\\$PUBLICDECLARATIONS\\$" ), advH_public );
- classIntf.replace( TQRegExp( "\\$PUBLICSLOTS\\$" ), advH_public_slots );
- classIntf.replace( TQRegExp( "\\$PROTECTEDDECLARATIONS\\$" ), TQString( "protected:\n" ) + advH_protected );
- classIntf.replace( TQRegExp( "\\$PROTECTEDSLOTS\\$" ), TQString( "protected slots:\n" ) + advH_protected_slots );
- classIntf.replace( TQRegExp( "\\$PRIVATEDECLARATIONS\\$" ), TQString( "private:\n" ) + advH_private );
- classIntf.replace( TQRegExp( "\\$PRIVATESLOTS\\$" ), TQString( "private slots:\n" ) + advH_private_slots );
- classIntf.replace( TQRegExp( "\\$NAMESPACEEND\\$" ), namespaceEnd );
+ classIntf.tqreplace( TQRegExp( "\\$BASECLASS\\$" ), dlg.baseclasses_view->firstChild() ->text( 0 ) );
+ classIntf.tqreplace( TQRegExp( "\\$INHERITANCE\\$" ), inheritance );
+ classIntf.tqreplace( TQRegExp( "\\$TQOBJECT\\$" ), qobjectStr );
+ classIntf.tqreplace( TQRegExp( "\\$ARGS\\$" ), argsH );
+ classIntf.tqreplace( TQRegExp( "\\$FILENAME\\$" ), header );
+ classIntf.tqreplace( TQRegExp( "\\$NAMESPACEBEG\\$" ), namespaceBeg );
+ classIntf.tqreplace( TQRegExp( "\\$CONSTRUCTORDECLARATIONS\\$" ), constructors );
+ classIntf.tqreplace( TQRegExp( "\\$PUBLICDECLARATIONS\\$" ), advH_public );
+ classIntf.tqreplace( TQRegExp( "\\$PUBLICSLOTS\\$" ), advH_public_slots );
+ classIntf.tqreplace( TQRegExp( "\\$PROTECTEDDECLARATIONS\\$" ), TQString( "protected:\n" ) + advH_protected );
+ classIntf.tqreplace( TQRegExp( "\\$PROTECTEDSLOTS\\$" ), TQString( "protected slots:\n" ) + advH_protected_slots );
+ classIntf.tqreplace( TQRegExp( "\\$PRIVATEDECLARATIONS\\$" ), TQString( "private:\n" ) + advH_private );
+ classIntf.tqreplace( TQRegExp( "\\$PRIVATESLOTS\\$" ), TQString( "private slots:\n" ) + advH_private_slots );
+ classIntf.tqreplace( TQRegExp( "\\$NAMESPACEEND\\$" ), namespaceEnd );
if ( !templateStr.isEmpty() && (!headeronly) )
- classIntf.replace( TQRegExp( "#endif" ), "#include \"" + dlg.implementation_edit->text() + "\"\n\n#endif" );
+ classIntf.tqreplace( TQRegExp( "#endif" ), "#include \"" + dlg.implementation_edit->text() + "\"\n\n#endif" );
if ( dlg.gen_config->reformat_box->isChecked() )
{
@@ -2102,45 +2081,45 @@ void CppNewClassDialog::ClassGenerator::beautifyHeader( TQString &templ, TQStrin
TQString &namespaceEnd )
{
if ( headerGuard.isEmpty() )
- templ.replace( TQRegExp( "\\$HEADERGUARD\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$HEADERGUARD\\$[\\n ]*" ), TQString() );
if ( includeBaseHeader.isEmpty() )
- templ.replace( TQRegExp( "\\$INCLUDEBASEHEADER\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$INCLUDEBASEHEADER\\$[\\n ]*" ), TQString() );
if ( author.isEmpty() )
- templ.replace( TQRegExp( "\\$AUTHOR\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$AUTHOR\\$[\\n ]*" ), TQString() );
if ( doc.isEmpty() )
- templ.replace( TQRegExp( "\\$DOC\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$DOC\\$[\\n ]*" ), TQString() );
if ( className.isEmpty() )
- templ.replace( TQRegExp( "\\$CLASSNAME\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$CLASSNAME\\$[\\n ]*" ), TQString() );
if ( templateStr.isEmpty() )
- templ.replace( TQRegExp( "\\$TEMPLATE\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$TEMPLATE\\$[\\n ]*" ), TQString() );
if ( baseclass.isEmpty() )
- templ.replace( TQRegExp( "\\$BASECLASS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$BASECLASS\\$[\\n ]*" ), TQString() );
if ( inheritance.isEmpty() )
- templ.replace( TQRegExp( "\\$INHERITANCE\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$INHERITANCE\\$[\\n ]*" ), TQString() );
if ( qobjectStr.isEmpty() )
- templ.replace( TQRegExp( "\\$QOBJECT\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$TQOBJECT\\$[\\n ]*" ), TQString() );
if ( args.isEmpty() )
- templ.replace( TQRegExp( "\\$ARGS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$ARGS\\$[\\n ]*" ), TQString() );
if ( header.isEmpty() )
- templ.replace( TQRegExp( "\\$FILENAME\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$FILENAME\\$[\\n ]*" ), TQString() );
if ( namespaceBeg.isEmpty() )
- templ.replace( TQRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), TQString() );
if ( constructors.isEmpty() )
- templ.replace( TQRegExp( "\\$CONSTRUCTORDECLARATIONS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$CONSTRUCTORDECLARATIONS\\$[\\n ]*" ), TQString() );
if ( advH_public.isEmpty() )
- templ.replace( TQRegExp( "\\$PUBLICDECLARATIONS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$PUBLICDECLARATIONS\\$[\\n ]*" ), TQString() );
if ( advH_public_slots.isEmpty() )
- templ.replace( TQRegExp( "\\$PUBLICSLOTS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$PUBLICSLOTS\\$[\\n ]*" ), TQString() );
if ( advH_protected.isEmpty() )
- templ.replace( TQRegExp( "\\$PROTECTEDDECLARATIONS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$PROTECTEDDECLARATIONS\\$[\\n ]*" ), TQString() );
if ( advH_protected_slots.isEmpty() )
- templ.replace( TQRegExp( "\\$PROTECTEDSLOTS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$PROTECTEDSLOTS\\$[\\n ]*" ), TQString() );
if ( advH_private.isEmpty() )
- templ.replace( TQRegExp( "\\$PRIVATEDECLARATIONS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$PRIVATEDECLARATIONS\\$[\\n ]*" ), TQString() );
if ( advH_private_slots.isEmpty() )
- templ.replace( TQRegExp( "\\$PRIVATESLOTS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$PRIVATESLOTS\\$[\\n ]*" ), TQString() );
if ( namespaceEnd.isEmpty() )
- templ.replace( TQRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), TQString() );
}
@@ -2148,19 +2127,19 @@ void CppNewClassDialog::ClassGenerator::beautifySource( TQString &templ, TQStrin
TQString &constructors, TQString &advCpp, TQString &namespaceEnd, TQString &implementation )
{
if ( header.isEmpty() )
- templ.replace( TQRegExp( "\\$HEADER\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$HEADER\\$[\\n ]*" ), TQString() );
if ( className.isEmpty() )
- templ.replace( TQRegExp( "\\$CLASSNAME\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$CLASSNAME\\$[\\n ]*" ), TQString() );
if ( namespaceBeg.isEmpty() )
- templ.replace( TQRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$NAMESPACEBEG\\$[\\n ]*" ), TQString() );
if ( constructors.isEmpty() )
- templ.replace( TQRegExp( "\\$CONSTRUCTORDEFINITIONS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$CONSTRUCTORDEFINITIONS\\$[\\n ]*" ), TQString() );
if ( advCpp.isEmpty() )
- templ.replace( TQRegExp( "\\$DEFINITIONS\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$DEFINITIONS\\$[\\n ]*" ), TQString() );
if ( namespaceEnd.isEmpty() )
- templ.replace( TQRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$NAMESPACEEND\\$[\\n ]*" ), TQString() );
if ( implementation.isEmpty() )
- templ.replace( TQRegExp( "\\$FILENAME\\$[\\n ]*" ), TQString::null );
+ templ.tqreplace( TQRegExp( "\\$FILENAME\\$[\\n ]*" ), TQString() );
}
TQString CppNewClassDialog::classNameFormatted( )
@@ -2171,7 +2150,7 @@ TQString CppNewClassDialog::classNameFormatted( )
TQString CppNewClassDialog::classNameFormatted( const TQString &name )
{
TQString temp = name.simplifyWhiteSpace();
- return temp.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
+ return temp.tqreplace( TQRegExp( "template *<.*> *(class *)?" ), "" );
}
@@ -2184,9 +2163,9 @@ TQString CppNewClassDialog::templateStrFormatted( const TQString &name )
{
TQString className = name.simplifyWhiteSpace();
TQString temp = className;
- className.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
- TQString templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
- templateStr.replace( TQRegExp( " *class *$" ), "" );
+ className.tqreplace( TQRegExp( "template *<.*> *(class *)?" ), "" );
+ TQString templateStr = temp.tqreplace( TQRegExp( TQRegExp_escape( className ) ), "" );
+ templateStr.tqreplace( TQRegExp( " *class *$" ), "" );
return templateStr;
}
@@ -2199,13 +2178,13 @@ TQString CppNewClassDialog::templateParamsFormatted( const TQString &name )
{
TQString className = name.simplifyWhiteSpace();
TQString temp = className;
- className.replace( TQRegExp( "template *<.*> *(class *)?" ), "" );
- TQString templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
- templateStr.replace( TQRegExp( " *class *$" ), "" );
+ className.tqreplace( TQRegExp( "template *<.*> *(class *)?" ), "" );
+ TQString templateStr = temp.tqreplace( TQRegExp( TQRegExp_escape( className ) ), "" );
+ templateStr.tqreplace( TQRegExp( " *class *$" ), "" );
TQString templateParams = templateStr;
- templateParams.replace( TQRegExp( "^ *template *" ), "" );
- templateParams.replace( TQRegExp( " *class *" ), "" );
+ templateParams.tqreplace( TQRegExp( "^ *template *" ), "" );
+ templateParams.tqreplace( TQRegExp( " *class *" ), "" );
templateParams.simplifyWhiteSpace();
return templateParams;
@@ -2215,19 +2194,19 @@ TQString CppNewClassDialog::templateActualParamsFormatted( const TQString & name
{
TQString className = name.simplifyWhiteSpace();
TQString temp = className;
- className.replace( TQRegExp( "<.*> *" ), "" );
- TQString templateStr = temp.replace( TQRegExp( QRegExp_escape( className ) ), "" );
+ className.tqreplace( TQRegExp( "<.*> *" ), "" );
+ TQString templateStr = temp.tqreplace( TQRegExp( TQRegExp_escape( className ) ), "" );
return templateStr;
}
void CppNewClassDialog::removeTemplateParams( TQString & name )
{
- name.replace( TQRegExp( "<.*> *" ), "" );
+ name.tqreplace( TQRegExp( "<.*> *" ), "" );
}
bool CppNewClassDialog::isDestructor( TQString className, const FunctionDom &method )
{
- if ( m_part->formatModelItem( method.data() ).contains( TQRegExp( " *~ *" + className ) ) )
+ if ( m_part->formatModelItem( method.data() ).tqcontains( TQRegExp( " *~ *" + className ) ) )
return true;
return false;
}
@@ -2239,4 +2218,4 @@ void CppNewClassDialog::headeronly_box_stateChanged(int val)
#include "cppnewclassdlg.moc"
-//kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
+//kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on
diff --git a/languages/cpp/cppnewclassdlg.h b/languages/cpp/cppnewclassdlg.h
index fcff0bd0..39e9e458 100644
--- a/languages/cpp/cppnewclassdlg.h
+++ b/languages/cpp/cppnewclassdlg.h
@@ -31,40 +31,40 @@ class CodeModel;
template <class T>
-class PCheckListItem: public QCheckListItem
+class PCheckListItem: public TQCheckListItem
{
public:
- PCheckListItem ( T item, TQCheckListItem * parent, const TQString & text, Type tt = Controller ) :
- TQCheckListItem ( parent, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQCheckListItem * tqparent, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( tqparent, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, TQCheckListItem * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
- TQCheckListItem ( parent, after, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQCheckListItem * tqparent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( tqparent, after, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, TQListViewItem * parent, const TQString & text, Type tt = Controller ) :
- TQCheckListItem ( parent, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListViewItem * tqparent, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( tqparent, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, TQListViewItem * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
- TQCheckListItem ( parent, after, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListViewItem * tqparent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( tqparent, after, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, TQListView * parent, const TQString & text, Type tt = Controller ) :
- TQCheckListItem ( parent, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListView * tqparent, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( tqparent, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, TQListView * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
- TQCheckListItem ( parent, after, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListView * tqparent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( tqparent, after, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, TQListViewItem * parent, const TQString & text, const TQPixmap & p ) :
- TQCheckListItem ( parent, text, p ), m_item( item )
+ PCheckListItem ( T item, TQListViewItem * tqparent, const TQString & text, const TQPixmap & p ) :
+ TQCheckListItem ( tqparent, text, p ), m_item( item )
{}
- PCheckListItem ( T item, TQListView * parent, const TQString & text, const TQPixmap & p ) :
- TQCheckListItem ( parent, text, p ), m_item( item )
+ PCheckListItem ( T item, TQListView * tqparent, const TQString & text, const TQPixmap & p ) :
+ TQCheckListItem ( tqparent, text, p ), m_item( item )
{}
T item()
@@ -79,24 +79,24 @@ private:
};
template <class T>
-class PListViewItem: public QListViewItem
+class PListViewItem: public TQListViewItem
{
public:
- PListViewItem ( T item, TQListViewItem * parent, TQListViewItem * after, const TQString & text ) :
- TQListViewItem ( parent, after, text ), m_item( item )
+ PListViewItem ( T item, TQListViewItem * tqparent, TQListViewItem * after, const TQString & text ) :
+ TQListViewItem ( tqparent, after, text ), m_item( item )
{}
- PListViewItem ( T item, TQListViewItem * parent, const TQString & text ) :
- TQListViewItem ( parent, text ), m_item( item )
+ PListViewItem ( T item, TQListViewItem * tqparent, const TQString & text ) :
+ TQListViewItem ( tqparent, text ), m_item( item )
{}
- PListViewItem ( T item, TQListView * parent, const TQString & text ) :
- TQListViewItem ( parent, text ), m_item( item )
+ PListViewItem ( T item, TQListView * tqparent, const TQString & text ) :
+ TQListViewItem ( tqparent, text ), m_item( item )
{}
- PListViewItem ( T item, TQListView * parent, TQListViewItem * after, const TQString & text ) :
- TQListViewItem ( parent, after, text ), m_item( item )
+ PListViewItem ( T item, TQListView * tqparent, TQListViewItem * after, const TQString & text ) :
+ TQListViewItem ( tqparent, after, text ), m_item( item )
{}
T item()
@@ -113,9 +113,10 @@ private:
class CppNewClassDialog : public CppNewClassDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- CppNewClassDialog( CppSupportPart *part, TQWidget *parent = 0, const char *name = 0 );
+ CppNewClassDialog( CppSupportPart *part, TQWidget *tqparent = 0, const char *name = 0 );
~CppNewClassDialog();
protected:
@@ -140,7 +141,7 @@ protected:
virtual void scopeboxActivated( int value );
virtual void checkObjCInheritance( int val );
- virtual void checkQWidgetInheritance( int val );
+ virtual void checkTQWidgetInheritance( int val );
virtual void upbaseclass_button_clicked();
virtual void downbaseclass_button_clicked();
@@ -167,9 +168,9 @@ protected:
void parseClass( TQString clName, TQString inheritance );
void parsePCSClass( TQString clName, TQString inheritance );
void addToConstructorsList( TQCheckListItem *myClass, FunctionDom method );
- void addToMethodsList( TQListViewItem *parent, FunctionDom method );
- void addToUpgradeList( TQListViewItem *parent, FunctionDom method, TQString modifier );
- void addToUpgradeList( TQListViewItem *parent, VariableDom attr, TQString modifier );
+ void addToMethodsList( TQListViewItem *tqparent, FunctionDom method );
+ void addToUpgradeList( TQListViewItem *tqparent, FunctionDom method, TQString modifier );
+ void addToUpgradeList( TQListViewItem *tqparent, VariableDom attr, TQString modifier );
void clearConstructorsList( bool clean = false );
void clearMethodsList( bool clean = false );
void clearUpgradeList( bool clean = false );
diff --git a/languages/cpp/cppnewclassdlgbase.ui b/languages/cpp/cppnewclassdlgbase.ui
index 4f443eaf..5d1580e4 100644
--- a/languages/cpp/cppnewclassdlgbase.ui
+++ b/languages/cpp/cppnewclassdlgbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>CppNewClassDialogBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>CppNewClassDlgBase</cstring>
</property>
@@ -22,11 +22,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>class_tabs</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab1</cstring>
</property>
@@ -47,14 +47,14 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>Layout10</cstring>
</property>
@@ -65,7 +65,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>documentation_label_</cstring>
</property>
@@ -76,7 +76,7 @@
<cstring>documentation_edit</cstring>
</property>
</widget>
- <widget class="QTextEdit">
+ <widget class="TQTextEdit">
<property name="name">
<cstring>documentation_edit</cstring>
</property>
@@ -89,7 +89,7 @@ doxygen or similar tools.</string>
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="2" column="0">
+ <widget class="TQGroupBox" row="2" column="0">
<property name="name">
<cstring>filenames_group</cstring>
</property>
@@ -100,7 +100,7 @@ doxygen or similar tools.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>header_label</cstring>
</property>
@@ -122,7 +122,7 @@ you select the classname, but you can
still edit it afterwards.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>implementation_label</cstring>
</property>
@@ -144,7 +144,7 @@ you select the classname, but you can
still edit it afterwards.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>headeronly_box</cstring>
</property>
@@ -154,7 +154,7 @@ still edit it afterwards.</string>
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>groupBox7</cstring>
</property>
@@ -165,7 +165,7 @@ still edit it afterwards.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>classname_label</cstring>
</property>
@@ -194,7 +194,7 @@ You can also define template classes by specifying
template &lt;params&gt; classname</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>namespace_label</cstring>
</property>
@@ -225,7 +225,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</widget>
</hbox>
</widget>
- <widget class="QButtonGroup" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQButtonGroup" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>inheritance_group</cstring>
</property>
@@ -236,7 +236,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton" row="2" column="0">
+ <widget class="TQPushButton" row="2" column="0">
<property name="name">
<cstring>addbaseclass_button</cstring>
</property>
@@ -255,7 +255,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="3" column="0">
+ <widget class="TQPushButton" row="3" column="0">
<property name="name">
<cstring>rembaseclass_button</cstring>
</property>
@@ -270,7 +270,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -283,7 +283,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="4" column="0">
+ <widget class="TQPushButton" row="4" column="0">
<property name="name">
<cstring>upbaseclass_button</cstring>
</property>
@@ -305,7 +305,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="5" column="0">
+ <widget class="TQPushButton" row="5" column="0">
<property name="name">
<cstring>downbaseclass_button</cstring>
</property>
@@ -320,7 +320,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -333,7 +333,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>basename_label</cstring>
</property>
@@ -352,7 +352,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<cstring>basename_edit</cstring>
</property>
</widget>
- <widget class="QListView" row="2" column="1" rowspan="4" colspan="2">
+ <widget class="TQListView" row="2" column="1" rowspan="4" colspan="2">
<column>
<property name="text">
<string>Baseclass Name</string>
@@ -403,7 +403,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>20</height>
@@ -413,7 +413,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<enum>StrongFocus</enum>
</property>
<property name="whatsThis" stdset="0">
- <string>Insert the base class which your new class will be derived from. If you have checked 'Generate QWidget child class' the new class will be derived from QWidget. If no base class is named, the new class will not have a parent class. You can also use template classes here (like BaseClass&lt;int, int&gt;)</string>
+ <string>Insert the base class which your new class will be derived from. If you have checked 'Generate QWidget child class' the new class will be derived from QWidget. If no base class is named, the new class will not have a tqparent class. You can also use template classes here (like BaseClass&lt;int, int&gt;)</string>
</property>
</widget>
<widget class="KLineEdit" row="0" column="2">
@@ -431,7 +431,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>20</height>
@@ -444,15 +444,15 @@ Namespace1::Namespace2::...::NamespaceN</string>
<string></string>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="3">
+ <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="3">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<item>
<property name="text">
<string>Global</string>
@@ -478,7 +478,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</sizepolicy>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>virtual_box</cstring>
</property>
@@ -489,7 +489,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<string>Virtual</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>public_button</cstring>
</property>
@@ -503,7 +503,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>protected_button</cstring>
</property>
@@ -514,7 +514,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<string>Protected</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>private_button</cstring>
</property>
@@ -529,7 +529,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="2" column="1">
+ <widget class="TQGroupBox" row="2" column="1">
<property name="name">
<cstring>optionsBox</cstring>
</property>
@@ -540,7 +540,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>filetemplate_box</cstring>
</property>
@@ -551,7 +551,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>qobject_box</cstring>
</property>
@@ -559,7 +559,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<string>Generate QOb&amp;ject child class</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>childclass_box</cstring>
</property>
@@ -567,7 +567,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<string>Generate Q&amp;Widget child class</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>gtk_box</cstring>
</property>
@@ -575,7 +575,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<string>Generate G&amp;TK+ class</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>objc_box</cstring>
</property>
@@ -587,7 +587,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab2</cstring>
</property>
@@ -598,11 +598,11 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>tabWidget4</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -613,7 +613,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Base Class Constructors</string>
@@ -638,15 +638,15 @@ Namespace1::Namespace2::...::NamespaceN</string>
<enum>AllColumns</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>to_constructors_list</cstring>
</property>
@@ -658,7 +658,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>125</width>
<height>0</height>
@@ -668,7 +668,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<string>C&amp;reate Constructor &gt;&gt;</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>clear_selection_button</cstring>
</property>
@@ -680,7 +680,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>125</width>
<height>0</height>
@@ -700,7 +700,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>150</width>
<height>20</height>
@@ -709,11 +709,11 @@ Namespace1::Namespace2::...::NamespaceN</string>
</spacer>
</hbox>
</widget>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>tabWidget3</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab_header</cstring>
</property>
@@ -727,7 +727,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="margin">
<number>2</number>
</property>
- <widget class="QTextEdit" row="0" column="0">
+ <widget class="TQTextEdit" row="0" column="0">
<property name="name">
<cstring>constructors_h_edit</cstring>
</property>
@@ -748,7 +748,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab_source</cstring>
</property>
@@ -762,7 +762,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="margin">
<number>2</number>
</property>
- <widget class="QTextEdit" row="0" column="0">
+ <widget class="TQTextEdit" row="0" column="0">
<property name="name">
<cstring>constructors_cpp_edit</cstring>
</property>
@@ -786,7 +786,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -797,7 +797,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Methods</string>
@@ -841,7 +841,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -852,7 +852,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Methods &amp; Attributes</string>
@@ -915,7 +915,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -937,7 +937,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
</grid>
</widget>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout3</cstring>
</property>
@@ -958,14 +958,14 @@ Namespace1::Namespace2::...::NamespaceN</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>ok_button</cstring>
</property>
@@ -976,7 +976,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>cancel_button</cstring>
</property>
@@ -1092,9 +1092,9 @@ Namespace1::Namespace2::...::NamespaceN</string>
</connection>
<connection>
<sender>baseclasses_view</sender>
- <signal>currentChanged(QListViewItem*)</signal>
+ <signal>currentChanged(TQListViewItem*)</signal>
<receiver>CppNewClassDlgBase</receiver>
- <slot>currBaseSelected(QListViewItem*)</slot>
+ <slot>currBaseSelected(TQListViewItem*)</slot>
</connection>
<connection>
<sender>upbaseclass_button</sender>
@@ -1134,15 +1134,15 @@ Namespace1::Namespace2::...::NamespaceN</string>
</connection>
<connection>
<sender>access_view</sender>
- <signal>mouseButtonPressed(int,QListViewItem*,const QPoint&amp;,int)</signal>
+ <signal>mouseButtonPressed(int,TQListViewItem*,const QPoint&amp;,int)</signal>
<receiver>CppNewClassDlgBase</receiver>
- <slot>access_view_mouseButtonPressed(int,QListViewItem*,const QPoint&amp;,int)</slot>
+ <slot>access_view_mouseButtonPressed(int,TQListViewItem*,const QPoint&amp;,int)</slot>
</connection>
<connection>
<sender>methods_view</sender>
- <signal>mouseButtonPressed(int,QListViewItem*,const QPoint&amp;,int)</signal>
+ <signal>mouseButtonPressed(int,TQListViewItem*,const QPoint&amp;,int)</signal>
<receiver>CppNewClassDlgBase</receiver>
- <slot>methods_view_mouseButtonPressed(int,QListViewItem*,const QPoint&amp;,int)</slot>
+ <slot>methods_view_mouseButtonPressed(int,TQListViewItem*,const QPoint&amp;,int)</slot>
</connection>
<connection>
<sender>clear_selection_button</sender>
@@ -1239,9 +1239,9 @@ Namespace1::Namespace2::...::NamespaceN</string>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot access="protected">updateClassStore()</slot>
- <slot access="protected">access_view_mouseButtonPressed( int button, QListViewItem * item, const QPoint &amp; p, int c )</slot>
+ <slot access="protected">access_view_mouseButtonPressed( int button, TQListViewItem * item, const QPoint &amp; p, int c )</slot>
<slot access="protected">classNameChanged( const QString &amp; text )</slot>
<slot access="protected">headerChanged()</slot>
<slot access="protected">implementationChanged()</slot>
@@ -1253,7 +1253,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<slot access="protected">currBaseProtectedSet()</slot>
<slot access="protected">currBasePublicSet()</slot>
<slot access="protected">currBaseVirtualChanged( int val )</slot>
- <slot access="protected">currBaseSelected( QListViewItem * it )</slot>
+ <slot access="protected">currBaseSelected( TQListViewItem * it )</slot>
<slot access="protected">checkObjCInheritance( int val )</slot>
<slot access="protected">checkQWidgetInheritance( int val )</slot>
<slot access="protected">newTabSelected( const QString &amp; text )</slot>
@@ -1261,7 +1261,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<slot access="protected">changeToProtected()</slot>
<slot access="protected">changeToPublic()</slot>
<slot access="protected">changeToInherited()</slot>
- <slot access="protected">methods_view_mouseButtonPressed( int, QListViewItem *, const QPoint &amp;, int )</slot>
+ <slot access="protected">methods_view_mouseButtonPressed( int, TQListViewItem *, const QPoint &amp;, int )</slot>
<slot access="protected">newTabSelected( QWidget * w )</slot>
<slot access="protected">extendFunctionality()</slot>
<slot access="protected">replaceFunctionality()</slot>
@@ -1281,9 +1281,9 @@ Namespace1::Namespace2::...::NamespaceN</string>
<slot access="protected">scopeboxActivated( int )</slot>
<slot access="protected">classNamespaceChanged( const QString &amp; )</slot>
<slot access="protected">headeronly_box_stateChanged(int val)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>classgeneratorconfig.h</includehint>
</includehints>
diff --git a/languages/cpp/cppsplitheadersourceconfig.cpp b/languages/cpp/cppsplitheadersourceconfig.cpp
index 7298354b..a9edc315 100644
--- a/languages/cpp/cppsplitheadersourceconfig.cpp
+++ b/languages/cpp/cppsplitheadersourceconfig.cpp
@@ -27,7 +27,7 @@
#include <kdebug.h>
#include <tqdom.h>
-TQString CppSplitHeaderSourceConfig::defaultPath = TQString::fromLatin1( "/kdevcppsupport/splitheadersource" );
+TQString CppSplitHeaderSourceConfig::defaultPath = TQString::tqfromLatin1( "/kdevcppsupport/splitheadersource" );
CppSplitHeaderSourceConfig::CppSplitHeaderSourceConfig( CppSupportPart * part, TQDomDocument* dom )
: TQObject( part ), m_part( part ), m_dom( dom )
diff --git a/languages/cpp/cppsplitheadersourceconfig.h b/languages/cpp/cppsplitheadersourceconfig.h
index 20c0f94d..049d3236 100644
--- a/languages/cpp/cppsplitheadersourceconfig.h
+++ b/languages/cpp/cppsplitheadersourceconfig.h
@@ -26,9 +26,10 @@
class CppSupportPart;
class TQDomDocument;
-class CppSplitHeaderSourceConfig : public QObject
+class CppSplitHeaderSourceConfig : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
CppSplitHeaderSourceConfig( CppSupportPart* part, TQDomDocument* dom );
virtual ~CppSplitHeaderSourceConfig();
diff --git a/languages/cpp/cppsupport_events.h b/languages/cpp/cppsupport_events.h
index 2dbac39a..b40fc0ec 100644
--- a/languages/cpp/cppsupport_events.h
+++ b/languages/cpp/cppsupport_events.h
@@ -17,11 +17,7 @@
#include <tqevent.h>
#include <tqvaluelist.h>
-#if QT_VERSION < 0x030100
-#include <kdevmutex.h>
-#else
#include <tqmutex.h>
-#endif
enum
{
@@ -29,7 +25,7 @@ enum
};
-class FileParsedEvent: public QCustomEvent
+class FileParsedEvent: public TQCustomEvent
{
public:
FileParsedEvent( const TQString& fileName, const TQValueList<Problem>& problems, bool fromDisk = false )
diff --git a/languages/cpp/cppsupport_utils.cpp b/languages/cpp/cppsupport_utils.cpp
index 338fa724..b4be045d 100644
--- a/languages/cpp/cppsupport_utils.cpp
+++ b/languages/cpp/cppsupport_utils.cpp
@@ -75,7 +75,7 @@ TQMap<TQString, TQString> typedefMap( const CodeModel* model )
TQMap<TQString, TQString>::iterator it = map.begin();
for ( ; it != map.end(); ++it )
{
- while ( map.contains( map[ it.key() ] ) &&
+ while ( map.tqcontains( map[ it.key() ] ) &&
it.key() != map[ it.key() ] )
{
map[ it.key() ] = map[ map[ it.key() ] ];
diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp
index 334c7d6c..2fa5e2d8 100644
--- a/languages/cpp/cppsupportpart.cpp
+++ b/languages/cpp/cppsupportpart.cpp
@@ -191,8 +191,8 @@ public:
};
-CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStringList &args )
-: KDevLanguageSupport( CppSupportFactory::info(), parent, name ? name : "KDevCppSupport" ), m_backgroundParser(0),
+CppSupportPart::CppSupportPart( TQObject *tqparent, const char *name, const TQStringList &args )
+: KDevLanguageSupport( CppSupportFactory::info(), tqparent, name ? name : "KDevCppSupport" ), m_backgroundParser(0),
m_activeDocument( 0 ), m_activeView( 0 ), m_activeSelection( 0 ), m_activeEditor( 0 ), m_activeViewCursor( 0 ),
m_projectClosed( true ), m_projectClosing( false ), m_valid( false ), m_isTyping( false ), m_hadErrors( false ),
_jd(0)
@@ -205,7 +205,7 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri
this, TQT_SLOT( splitHeaderSourceConfigStored() ) );
connect( m_pCompletionConfig, TQT_SIGNAL( stored() ),
this, TQT_SLOT( codeCompletionConfigStored() ) );
- m_qtBuildConfig = new QtBuildConfig( this, projectDom() );
+ m_qtBuildConfig = new TQtBuildConfig( this, projectDom() );
m_qtBuildConfig->store();
m_backgroundParserConfig = new BackgroundParserConfig;
@@ -480,7 +480,7 @@ void CppSupportPart::activePartChanged( KParts::Part *part )
m_activeSelection = dynamic_cast<KTextEditor::SelectionInterface*>( part );
m_activeViewCursor = dynamic_cast<KTextEditor::ViewCursorInterface*>( m_activeView );
- m_activeFileName = TQString::null;
+ m_activeFileName = TQString();
if ( m_activeDocument )
{
@@ -688,7 +688,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
if ( !text.isEmpty() )
{
id = popup->insertItem( i18n( "Make Member" ), this, TQT_SLOT( slotMakeMember() ) );
- popup->setWhatsThis( id, i18n( "<b>Make member</b><p>Creates a class member function in implementation file "
+ popup->tqsetWhatsThis( id, i18n( "<b>Make member</b><p>Creates a class member function in implementation file "
"based on the member declaration at the current line." ) );
}
@@ -737,7 +737,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
TQPopupMenu * m2 = new TQPopupMenu( popup );
id = popup->insertItem( i18n( "Go to Declaration" ), m2 );
- popup->setWhatsThis( id, i18n( "<b>Go to declaration</b><p>Provides a menu to select available function declarations "
+ popup->tqsetWhatsThis( id, i18n( "<b>Go to declaration</b><p>Provides a menu to select available function declarations "
"in the current file and in the corresponding header (if the current file is an implementation) or source (if the current file is a header) file." ) );
FileDom file2 = codeModel() ->fileByName( candidate );
@@ -753,7 +753,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
text += "::";
}
text += formatModelItem( *it, true );
- text = text.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&&" ) );
+ text = text.tqreplace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&&" ) );
int id = m2->insertItem( text, this, TQT_SLOT( gotoDeclarationLine( int ) ) );
int line, column;
( *it ) ->getStartPosition( &line, &column );
@@ -781,7 +781,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
TQPopupMenu * m = new TQPopupMenu( popup );
id = popup->insertItem( i18n( "Go to Definition" ), m );
- popup->setWhatsThis( id, i18n( "<b>Go to definition</b><p>Provides a menu to select available function definitions "
+ popup->tqsetWhatsThis( id, i18n( "<b>Go to definition</b><p>Provides a menu to select available function definitions "
"in the current file and in the corresponding header (if the current file is an implementation) or source (if the current file is a header) file." ) );
const FileDom file = codeModel() ->fileByName( candidate1 );
@@ -794,7 +794,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
text += "::";
}
text += formatModelItem( *it, true );
- text = text.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&&" ) );
+ text = text.tqreplace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&&" ) );
int id = m->insertItem( text, this, TQT_SLOT( gotoLine( int ) ) );
int line, column;
( *it ) ->getStartPosition( &line, &column );
@@ -822,7 +822,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
m_activeClass = ( ClassModel* ) mcontext->item();
int id = popup->insertItem( i18n( "Extract Interface..." ), this, TQT_SLOT( slotExtractInterface() ) );
- popup->setWhatsThis( id, i18n( "<b>Extract interface</b><p>Extracts interface from the selected class and creates a new class with this interface. "
+ popup->tqsetWhatsThis( id, i18n( "<b>Extract interface</b><p>Extracts interface from the selected class and creates a new class with this interface. "
"No implementation code is extracted and no implementation code is created." ) );
}
else if ( mcontext->item() ->isFunction() )
@@ -840,7 +840,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
m_contextFileName = url.path();
int id = popup->insertItem( i18n( "Create or Select Implementation..." ), this, TQT_SLOT( slotCreateSubclass() ) );
- popup->setWhatsThis( id, i18n( "<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner." ) );
+ popup->tqsetWhatsThis( id, i18n( "<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner." ) );
}
}
}
@@ -850,7 +850,7 @@ TQStringList makeListUnique( const TQStringList& rhs ) {
TQMap<TQString, bool> map;
TQStringList ret;
for( TQStringList::const_iterator it = rhs.begin(); it != rhs.end(); ++it ) {
- if( map.find( *it ) == map.end() ) {
+ if( map.tqfind( *it ) == map.end() ) {
ret << *it;
map.insert( *it, true );
}
@@ -871,14 +871,14 @@ TQStringList CppSupportPart::reorder( const TQStringList &list )
for ( it = list.begin(); it != list.end(); ++it )
{
TQString filePath = *it;
- // brilliant stuff.. this method is apparently called both with
+ // brilliant stuff.. this method is aptqparently called both with
// relative and absolute paths..
if ( !filePath.startsWith("/") )
{
filePath = projectPath + "/" + filePath;
}
if( !isValidSource( filePath ) ) continue;
- if ( headerExtensions.contains( TQFileInfo( filePath ).extension() ) )
+ if ( headerExtensions.tqcontains( TQFileInfo( filePath ).extension() ) )
headers << ( filePath );
else
others << ( filePath );
@@ -945,7 +945,7 @@ void CppSupportPart::savedFile( const KURL &file )
kdDebug( 9007 ) << "savedFile(): " << fileName.mid ( m_projectDirectory.length() + 1 ) << endl;
- if ( m_projectFileList.contains( fileName.mid ( m_projectDirectory.length() + 1 ) ) )
+ if ( m_projectFileList.tqcontains( fileName.mid ( m_projectDirectory.length() + 1 ) ) )
{
maybeParse( fileName );
emit addedSourceInfo( fileName );
@@ -962,7 +962,7 @@ TQString CppSupportPart::findSourceFile()
// extract the base path (full path without '.' and extension)
TQString base = path.left( path.length() - ext.length() - 1 );
TQStringList candidates;
- if ( TQStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).contains( ext ) )
+ if ( TQStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).tqcontains( ext ) )
{
candidates << ( base + ".c" );
candidates << ( base + ".cc" );
@@ -997,7 +997,7 @@ TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
KTextEditor::Document * doc =
dynamic_cast<KTextEditor::Document*>( partController() ->activePart() );
if ( !doc )
- return TQString::null;
+ return TQString();
urlPath = doc->url().path();
}
else
@@ -1010,14 +1010,14 @@ TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
// extract the exension
TQString ext = fi.extension();
if ( ext.isEmpty() )
- return TQString::null;
+ return TQString();
// extract the base path (full path without '.' and extension)
TQString base = path.left( path.length() - ext.length() - 1 );
//kdDebug( 9007 ) << "base: " << base << ", ext: " << ext << endl;
// just the filename without the extension
TQString fileNameWoExt = fi.fileName();
if ( !ext.isEmpty() )
- fileNameWoExt.replace( "." + ext, "" );
+ fileNameWoExt.tqreplace( "." + ext, "" );
TQString possibleExts;
// depending on the current extension assemble a list of
// candidate files to look for
@@ -1026,13 +1026,13 @@ TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
if ( path.endsWith( "_impl.h" ) )
{
TQString headerpath = path;
- headerpath.replace( "_impl.h", ".h" );
+ headerpath.tqreplace( "_impl.h", ".h" );
candidates << headerpath;
- fileNameWoExt.replace( "_impl", "" );
+ fileNameWoExt.tqreplace( "_impl", "" );
possibleExts = "h";
}
// if file is a header file search for implementation file
- else if ( TQStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).contains( ext ) )
+ else if ( TQStringList::split( ',', "h,H,hh,hxx,hpp,tlh" ).tqcontains( ext ) )
{
candidates << ( base + ".c" );
candidates << ( base + ".cc" );
@@ -1048,7 +1048,7 @@ TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
possibleExts = "c,cc,cpp,c++,cxx,C,m,mm,M,inl,_impl.h";
}
// if file is an implementation file, search for header file
- else if ( TQStringList::split( ',', "c,cc,cpp,c++,cxx,C,m,mm,M,inl" ).contains( ext ) )
+ else if ( TQStringList::split( ',', "c,cc,cpp,c++,cxx,C,m,mm,M,inl" ).tqcontains( ext ) )
{
candidates << ( base + ".h" );
candidates << ( base + ".H" );
@@ -1059,7 +1059,7 @@ TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
possibleExts = "h,H,hh,hxx,hpp,tlh";
}
// search for files from the assembled candidate lists, return the first
- // candidate file that actually exists or TQString::null if nothing is found.
+ // candidate file that actually exists or TQString() if nothing is found.
TQStringList::ConstIterator it;
for ( it = candidates.begin(); it != candidates.end(); ++it )
{
@@ -1081,10 +1081,10 @@ TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
candidateFileWoExt.setFile(*fileIt);
//kdDebug( 9007 ) << "candidate file: " << *fileIt << endl;
if( !candidateFileWoExt.extension().isEmpty() )
- candidateFileWoExtString = candidateFileWoExt.fileName().replace( "." + candidateFileWoExt.extension(), "" );
+ candidateFileWoExtString = candidateFileWoExt.fileName().tqreplace( "." + candidateFileWoExt.extension(), "" );
if ( candidateFileWoExtString == fileNameWoExt )
{
- if ( possibleExtsList.contains( candidateFileWoExt.extension() ) || candidateFileWoExt.extension().isEmpty() )
+ if ( possibleExtsList.tqcontains( candidateFileWoExt.extension() ) || candidateFileWoExt.extension().isEmpty() )
{
//kdDebug( 9007 ) << "checking if " << *fileIt << " exists" << endl;
if ( TQFileInfo( *fileIt ).exists() )
@@ -1093,7 +1093,7 @@ TQString CppSupportPart::sourceOrHeaderCandidate( const KURL &url )
}
}
}
- return TQString::null;
+ return TQString();
}
void CppSupportPart::slotSaveMemory() {
@@ -1354,13 +1354,13 @@ KDevLanguageSupport::Features CppSupportPart::features()
TQString CppSupportPart::formatClassName( const TQString &name )
{
TQString n = name;
- return n.replace( ".", "::" );
+ return n.tqreplace( ".", "::" );
}
TQString CppSupportPart::unformatClassName( const TQString &name )
{
TQString n = name;
- return n.replace( "::", "." );
+ return n.tqreplace( "::", "." );
}
bool CppSupportPart::shouldSplitDocument(const KURL &url)
@@ -1506,7 +1506,7 @@ bool CppSupportPart::parseProject( bool force )
uint offset;
_jd->stream >> fn >> ts >> offset;
- _jd->pcs[ fn ] = qMakePair( ts, offset );
+ _jd->pcs[ fn ] = tqMakePair( ts, offset );
}
}
}
@@ -1554,11 +1554,11 @@ void CppSupportPart::slotParseFiles()
{
TQDateTime t = fileInfo.lastModified();
- if ( ! ( m_timestamp.contains( absFilePath ) && m_timestamp[ absFilePath ] == t ) )
+ if ( ! ( m_timestamp.tqcontains( absFilePath ) && m_timestamp[ absFilePath ] == t ) )
{
- if ( _jd->pcs.contains( absFilePath ) )
+ if ( _jd->pcs.tqcontains( absFilePath ) )
{
- _jd->stream.device() ->at( _jd->pcs[ absFilePath ].second );
+ _jd->stream.tqdevice() ->at( _jd->pcs[ absFilePath ].second );
FileDom file = codeModel() ->create<FileModel>();
file->read( _jd->stream );
codeModel() ->addFile( file );
@@ -1678,7 +1678,7 @@ void CppSupportPart::maybeParse( const TQString& fn, bool background )
if ( !fileInfo.exists() )
return;
- TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.find( path );
+ TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.tqfind( path );
if ( codeModel()->hasFile( fn ) && it != m_timestamp.end() && *it == t )
return;
@@ -1705,7 +1705,7 @@ void CppSupportPart::slotNeedTextHint( int line, int column, TQString& textHint
{
while ( node && node->nodeType() != NodeType_FunctionDefinition )
- node = node->parent();
+ node = node->tqparent();
if ( node )
{
@@ -1747,11 +1747,11 @@ void CppSupportPart::MakeMemberHelper( TQString& text, int& atLine, int& atColum
{
if ( currentNode->nodeType() == NodeType_Declarator )
declarator = ( DeclaratorAST* ) currentNode;
- currentNode = currentNode->parent();
+ currentNode = currentNode->tqparent();
}
SimpleDeclarationAST* decl = currentNode ? ( SimpleDeclarationAST* ) currentNode : 0;
- if ( decl && decl->storageSpecifier() && decl->storageSpecifier()->text().contains("friend") )
+ if ( decl && decl->storageSpecifier() && decl->storageSpecifier()->text().tqcontains("friend") )
{
kdDebug(9007) << "this is a friend declaration, don't create any definition" << endl;
fail = true;
@@ -1777,7 +1777,7 @@ void CppSupportPart::MakeMemberHelper( TQString& text, int& atLine, int& atColum
TQString declStr = declaratorToString( declarator, scopeStr ).simplifyWhiteSpace();
if ( declarator->exceptionSpecification() )
{
- declStr += TQString::fromLatin1( " throw( " );
+ declStr += TQString::tqfromLatin1( " throw( " );
TQPtrList<AST> l = declarator->exceptionSpecification() ->nodeList();
TQPtrListIterator<AST> type_it( l );
while ( type_it.current() )
@@ -1786,10 +1786,10 @@ void CppSupportPart::MakeMemberHelper( TQString& text, int& atLine, int& atColum
++type_it;
if ( type_it.current() )
- declStr += TQString::fromLatin1( ", " );
+ declStr += TQString::tqfromLatin1( ", " );
}
- declStr += TQString::fromLatin1( " )" );
+ declStr += TQString::tqfromLatin1( " )" );
}
text += "\n\n";
@@ -1903,7 +1903,7 @@ TQStringList CppSupportPart::modifiedFileList()
TQDateTime t = fileInfo.lastModified();
- TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.find( path );
+ TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.tqfind( path );
if ( fileInfo.exists() && dictIt != m_timestamp.end() && *dictIt == t )
continue;
@@ -1983,7 +1983,7 @@ void CppSupportPart::setupCatalog( )
kdDebug( 9007 ) << "CppSupportPart::setupCatalog()2 " << *it << endl;
Catalog * catalog = new Catalog();
catalog->open( *it );
- catalog->setEnabled( enabledPCSs.contains( TQFileInfo( *it ).baseName(true) ) );
+ catalog->setEnabled( enabledPCSs.tqcontains( TQFileInfo( *it ).baseName(true) ) );
++it;
for ( TQStringList::Iterator idxIt = indexList.begin(); idxIt != indexList.end(); ++idxIt )
@@ -2034,10 +2034,10 @@ TQString CppSupportPart::formatTag( const Tag & inputTag )
switch ( tag.kind() )
{
case Tag::Kind_Namespace:
- return TQString::fromLatin1( "namespace " ) + tag.name();
+ return TQString::tqfromLatin1( "namespace " ) + tag.name();
case Tag::Kind_Class:
- return TQString::fromLatin1( "class " ) + tag.name();
+ return TQString::tqfromLatin1( "class " ) + tag.name();
case Tag::Kind_Function:
case Tag::Kind_FunctionDeclaration:
@@ -2179,25 +2179,25 @@ void CppSupportPart::saveProjectSourceInfo()
{
const FileDom dom = ( *it );
stream << dom->name() << m_timestamp[ dom->name() ].toTime_t();
- if( m_timestamp.find( dom->name() ) == m_timestamp.end() ) {
+ if( m_timestamp.tqfind( dom->name() ) == m_timestamp.end() ) {
kdDebug( 9007 ) << dom->name() << ": timestamp is missing " << endl;
}
- offsets.insert( dom->name(), stream.device() ->at() );
+ offsets.insert( dom->name(), stream.tqdevice() ->at() );
stream << ( uint ) 0; // dummy offset
}
for ( FileList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it )
{
const FileDom dom = ( *it );
- int offset = stream.device() ->at();
+ int offset = stream.tqdevice() ->at();
dom->write( stream );
- int end = stream.device() ->at();
+ int end = stream.tqdevice() ->at();
- stream.device() ->at( offsets[ dom->name() ] );
+ stream.tqdevice() ->at( offsets[ dom->name() ] );
stream << offset;
- stream.device() ->at( end );
+ stream.tqdevice() ->at( end );
}
TQFile::remove( project() ->projectDirectory() + "/"
@@ -2259,7 +2259,7 @@ void CppSupportPart::slotExtractInterface( )
TQString ifaceFileName = fileInfo.dirPath( true ) + "/" + m_activeClass->name().lower() + "_interface.h";
if ( TQFile::exists( ifaceFileName ) )
{
- KMessageBox::error( mainWindow() ->main(), i18n( "File %1 already exists" ).arg( ifaceFileName ),
+ KMessageBox::error( mainWindow() ->main(), i18n( "File %1 already exists" ).tqarg( ifaceFileName ),
i18n( "C++ Support" ) );
}
else
@@ -2323,7 +2323,7 @@ int CppSupportPart::parseFilesAndDependencies( TQStringList files, bool backgrou
int cgroup = nextGroup;
nextGroup++;
- if( fileGroups.find( *it ) != fileGroups.end() )
+ if( fileGroups.tqfind( *it ) != fileGroups.end() )
cgroup = fileGroups[*it];
for( TQStringList::iterator lit = lst.begin(); lit != lst.end(); ++lit )
@@ -2575,19 +2575,19 @@ void CppSupportPart::emitFileParsed( TQStringList l )
bool CppSupportPart::isHeader( const TQString& fileName ) const
{
/*KMimeType::Ptr ptr = KMimeType::findByPath( fileName );
- if ( ptr && m_headerMimeTypes.contains( ptr->name() ) )
+ if ( ptr && m_headerMimeTypes.tqcontains( ptr->name() ) )
return true;*/
- return ( m_headerExtensions.findIndex( TQFileInfo( fileName ).extension() ) != -1 );
+ return ( m_headerExtensions.tqfindIndex( TQFileInfo( fileName ).extension() ) != -1 );
}
bool CppSupportPart::isSource( const TQString& fileName ) const
{
/*KMimeType::Ptr ptr = KMimeType::findByPath( fileName );
- if ( ptr && m_sourceMimeTypes.contains( ptr->name() ) )
+ if ( ptr && m_sourceMimeTypes.tqcontains( ptr->name() ) )
return true;*/
- return ( m_sourceExtensions.findIndex( TQFileInfo( fileName ).extension() ) != -1 );
+ return ( m_sourceExtensions.tqfindIndex( TQFileInfo( fileName ).extension() ) != -1 );
}
void CppSupportPart::gotoDeclarationLine( int line )
@@ -2759,12 +2759,12 @@ KDevDesignerIntegration * CppSupportPart::designer( KInterfaceDesigner::Designer
switch ( type )
{
case KInterfaceDesigner::Glade:
- case KInterfaceDesigner::QtDesigner:
+ case KInterfaceDesigner::TQtDesigner:
des = m_designers[ type ];
if ( des == 0 )
{
CppImplementationWidget * impl = new CppImplementationWidget( this );
- des = new QtDesignerCppIntegration( this, impl );
+ des = new TQtDesignerCppIntegration( this, impl );
des->loadSettings( *project() ->projectDom(), "kdevcppsupport/designerintegration" );
m_designers[ type ] = des;
}
@@ -2791,7 +2791,7 @@ void CppSupportPart::slotCreateSubclass()
TQFileInfo fi( m_contextFileName );
if ( fi.extension( false ) != "ui" )
return ;
- QtDesignerCppIntegration *des = dynamic_cast<QtDesignerCppIntegration*>( designer( KInterfaceDesigner::QtDesigner ) );
+ TQtDesignerCppIntegration *des = dynamic_cast<TQtDesignerCppIntegration*>( designer( KInterfaceDesigner::TQtDesigner ) );
if ( des )
des->selectImplementation( m_contextFileName );
}
@@ -2825,7 +2825,7 @@ void CppSupportPart::addMethod( ClassDom aClass, const TQString& name, const TQS
indentString = sourceFormatter->indentString();
editIface->insertText( findInsertionLineMethod( aClass, accessType ), 0,
- finalDeclaration.replace( "\n", "\n\t" ) + "\n" );
+ finalDeclaration.tqreplace( "\n", "\n\t" ) + "\n" );
backgroundParser() ->addFile( aClass->fileName() );
if ( isInline || isPureVirtual )
@@ -2856,7 +2856,7 @@ void CppSupportPart::addMethod( ClassDom aClass, const TQString& name, const TQS
if ( !editIface )
return ; //@fixme errorverdoedelung
- editIface->insertLine( editIface->numLines(), TQString::fromLatin1( "" ) );
+ editIface->insertLine( editIface->numLines(), TQString::tqfromLatin1( "" ) );
editIface->insertText( editIface->numLines() - 1, 0, definitionString );
backgroundParser() ->addFile( implementationFile );
}
@@ -3118,7 +3118,7 @@ void CppSupportPart::addToRepository( ParsedFilePointer file ) {
w.parseTranslationUnit( *file );
codeRepository()->touchCatalog( catalog );
- m_safeProjectFiles.insert( file->fileName() + "||" + TQString("%1").arg(file->usedMacros().valueHash()) + "||" + TQString("%1").arg(file->usedMacros().idHash()) );
+ m_safeProjectFiles.insert( file->fileName() + "||" + TQString("%1").tqarg(file->usedMacros().valueHash()) + "||" + TQString("%1").tqarg(file->usedMacros().idHash()) );
}
TQString CppSupportPart::findHeaderSimple( const TQString &header )
@@ -3133,17 +3133,17 @@ TQString CppSupportPart::findHeaderSimple( const TQString &header )
return s;
}
- return TQString::null;
+ return TQString();
}
-UIBlockTester::UIBlockTesterThread::UIBlockTesterThread( UIBlockTester& parent ) : TQThread(), m_parent( parent ), m_stop(false) {
+UIBlockTester::UIBlockTesterThread::UIBlockTesterThread( UIBlockTester& tqparent ) : TQThread(), m_parent( tqparent ), m_stop(false) {
}
void UIBlockTester::UIBlockTesterThread::run() {
while(!m_stop) {
msleep( m_parent.m_msecs / 10 );
m_parent.m_timeMutex.lock();
- TQDateTime t = TQDateTime::currentDateTime();
+ TQDateTime t = TQDateTime::tqcurrentDateTime();
uint msecs = m_parent.m_lastTime.time().msecsTo( t.time() );
if( msecs > m_parent.m_msecs ) {
m_parent.lockup();
@@ -3171,7 +3171,7 @@ UIBlockTester::~UIBlockTester() {
void UIBlockTester::timer() {
m_timeMutex.lock();
- m_lastTime = TQDateTime::currentDateTime();
+ m_lastTime = TQDateTime::tqcurrentDateTime();
m_timeMutex.unlock();
}
diff --git a/languages/cpp/cppsupportpart.h b/languages/cpp/cppsupportpart.h
index 00628c94..b9d5a53f 100644
--- a/languages/cpp/cppsupportpart.h
+++ b/languages/cpp/cppsupportpart.h
@@ -39,9 +39,10 @@
///A class that helps detecting what exactly makes the UI block. To use it, just place a breakpoint on UIBlockTester::lockup() and inspect the execution-position of the main thread
class UIBlockTester : public TQObject {
Q_OBJECT
+ TQ_OBJECT
class UIBlockTesterThread : public TQThread {
public:
- UIBlockTesterThread( UIBlockTester& parent );
+ UIBlockTesterThread( UIBlockTester& tqparent );
void run();
void stop();
private:
@@ -74,7 +75,7 @@ class CppCodeCompletion;
class CppCodeCompletionConfig;
class CppSplitHeaderSourceConfig;
class CreateGetterSetterConfiguration;
-class QtBuildConfig;
+class TQtBuildConfig;
class ProblemReporter;
class BackgroundParser;
class Catalog;
@@ -142,7 +143,7 @@ public:
m_fileSet.insert( s );
}
- bool contains( const HashedString& str ) const {
+ bool tqcontains( const HashedString& str ) const {
TQMutexLocker locker( &m_mutex );
return m_fileSet.find( str ) != m_fileSet.end();
}
@@ -155,9 +156,10 @@ private:
class CppSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- CppSupportPart( TQObject *parent, const char *name, const TQStringList &args );
+ CppSupportPart( TQObject *tqparent, const char *name, const TQStringList &args );
virtual ~CppSupportPart();
bool isValid() const
@@ -203,10 +205,10 @@ public:
}
/**
- Get a pointer to the QtBuildConfig object
- @return A pointer to the QtBuildConfig object.
+ Get a pointer to the TQtBuildConfig object
+ @return A pointer to the TQtBuildConfig object.
*/
- inline QtBuildConfig* qtBuildConfig() const { return m_qtBuildConfig; }
+ inline TQtBuildConfig* qtBuildConfig() const { return m_qtBuildConfig; }
const TQPtrList<Catalog>& catalogList() const
{
@@ -415,7 +417,7 @@ private:
KAction * m_createGetterSetterAction;
KAction * m_switchHeaderSourceAction;
- QtBuildConfig* m_qtBuildConfig;
+ TQtBuildConfig* m_qtBuildConfig;
bool withcpp;
TQString m_contextFileName;
@@ -481,7 +483,7 @@ private:
{
}
};
- //typedef QPair<TQStringList, TQStringList> Item; ///The files we are waiting fore, and the files we already got
+ //typedef TQPair<TQStringList, TQStringList> Item; ///The files we are waiting fore, and the files we already got
typedef TQValueList< Item > List;
List m_waiting;
@@ -510,7 +512,7 @@ private:
///files that were not requested must not be processed, since they maybe do not respect the group-relationships.
bool reject( TQString file ) {
for( List::iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) {
- if( (*it).first.find( file ) != (*it).first.end() ) {
+ if( (*it).first.tqfind( file ) != (*it).first.end() ) {
return false;
}
}
@@ -520,7 +522,7 @@ private:
bool waiting( TQString file, Flags forbidFlags = None, int count = 1 ) const {
int hits = 0;
for( List::const_iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) {
- if( (*it).first.find( file ) != (*it).first.end() ) {
+ if( (*it).first.tqfind( file ) != (*it).first.end() ) {
if( ((Flags)((*it).flags & forbidFlags )) == None ) {
hits++;
if( hits >= count ) return true;
@@ -575,8 +577,8 @@ private:
Processed processFile( TQString file, Flags flag = None ) {
TQStringList ret;
for( List::iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) {
- if( (*it).first.find( file ) != (*it).first.end() ) {
- if( (*it).second.find( file ) == (*it).second.end() ) {
+ if( (*it).first.tqfind( file ) != (*it).first.end() ) {
+ if( (*it).second.tqfind( file ) == (*it).second.end() ) {
(*it).flags = (Flags) ((*it).flags | flag);
(*it).second << file;
if( (*it).second.count() == (*it).first.count() ) {
@@ -642,7 +644,7 @@ private:
int lastBackgroundState;
int backgroundState;
TQStringList reparseList;
- TQMap< TQString, QPair<uint, uint> > pcs;
+ TQMap< TQString, TQPair<uint, uint> > pcs;
TQDataStream stream;
TQFile file;
TQTime lastParse;
diff --git a/languages/cpp/creategettersetter.ui b/languages/cpp/creategettersetter.ui
index 0796d4fb..b9a9bca5 100644
--- a/languages/cpp/creategettersetter.ui
+++ b/languages/cpp/creategettersetter.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>CreateGetterSetterDialogBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>CreateGetterSetterDialogBase</cstring>
</property>
@@ -29,14 +29,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>61</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="0" column="5">
+ <widget class="TQCheckBox" row="0" column="5">
<property name="name">
<cstring>m_chkInlineGet</cstring>
</property>
@@ -53,7 +53,7 @@
<string>If this is checked the get method will be created inline; otherwise, it will not.</string>
</property>
</widget>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>m_chkGet</cstring>
</property>
@@ -70,7 +70,7 @@
<string>If this is checked a getter method will be created.</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>m_chkSet</cstring>
</property>
@@ -109,7 +109,7 @@
<string>The name of the created set method</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="5">
+ <widget class="TQCheckBox" row="1" column="5">
<property name="name">
<cstring>m_chkInlineSet</cstring>
</property>
@@ -136,7 +136,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>20</height>
@@ -219,10 +219,10 @@
<tabstop>m_btnCancel</tabstop>
<tabstop>m_btnOk</tabstop>
</tabstops>
-<slots>
+<Q_SLOTS>
<slot access="protected">slotInlineChanged()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/languages/cpp/creategettersetterconfiguration.cpp b/languages/cpp/creategettersetterconfiguration.cpp
index 7190e796..3bee7f16 100644
--- a/languages/cpp/creategettersetterconfiguration.cpp
+++ b/languages/cpp/creategettersetterconfiguration.cpp
@@ -17,7 +17,7 @@
#include <tqdom.h>
#include <kmessagebox.h>
-TQString CreateGetterSetterConfiguration::defaultPath = TQString::fromLatin1( "/kdevcppsupport/creategettersetter" );
+TQString CreateGetterSetterConfiguration::defaultPath = TQString::tqfromLatin1( "/kdevcppsupport/creategettersetter" );
CreateGetterSetterConfiguration::CreateGetterSetterConfiguration( CppSupportPart * part )
: TQObject(part), m_part(part), m_settings(0)
diff --git a/languages/cpp/creategettersetterconfiguration.h b/languages/cpp/creategettersetterconfiguration.h
index 38bbb72d..50aacd92 100644
--- a/languages/cpp/creategettersetterconfiguration.h
+++ b/languages/cpp/creategettersetterconfiguration.h
@@ -33,8 +33,9 @@ class TQDomDocument;
* The settings are stored per project under /kdevcppsupport/creategettersetter/.
* @author Jonas Jacobi <[email protected]>
*/
-class CreateGetterSetterConfiguration : public QObject{
+class CreateGetterSetterConfiguration : public TQObject{
Q_OBJECT
+ TQ_OBJECT
public:
CreateGetterSetterConfiguration(CppSupportPart* part);
~CreateGetterSetterConfiguration();
diff --git a/languages/cpp/creategettersetterdialog.cpp b/languages/cpp/creategettersetterdialog.cpp
index e63fcf23..5b5dae69 100644
--- a/languages/cpp/creategettersetterdialog.cpp
+++ b/languages/cpp/creategettersetterdialog.cpp
@@ -19,8 +19,8 @@
#include "creategettersetterconfiguration.h"
CreateGetterSetterDialog::CreateGetterSetterDialog( CppSupportPart* part, ClassDom aClass,
- VariableDom aVar, TQWidget *parent, const char *pName )
-: CreateGetterSetterDialogBase( parent, pName ), m_part( part ), m_class( aClass ), m_var( aVar )
+ VariableDom aVar, TQWidget *tqparent, const char *pName )
+: CreateGetterSetterDialogBase( tqparent, pName ), m_part( part ), m_class( aClass ), m_var( aVar )
{
TQString name = aVar->name();
setCaption( "Create methods for " + name );
diff --git a/languages/cpp/creategettersetterdialog.h b/languages/cpp/creategettersetterdialog.h
index 435002f2..8f609c33 100644
--- a/languages/cpp/creategettersetterdialog.h
+++ b/languages/cpp/creategettersetterdialog.h
@@ -24,8 +24,9 @@ class CppSupportPart;
class CreateGetterSetterDialog: public CreateGetterSetterDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- CreateGetterSetterDialog(CppSupportPart* part, ClassDom aClass, VariableDom var, TQWidget *parent = 0, const char *name = 0);
+ CreateGetterSetterDialog(CppSupportPart* part, ClassDom aClass, VariableDom var, TQWidget *tqparent = 0, const char *name = 0);
protected slots:
void accept();
diff --git a/languages/cpp/createpcsdialog.cpp b/languages/cpp/createpcsdialog.cpp
index d716bcc2..cb5b25c1 100644
--- a/languages/cpp/createpcsdialog.cpp
+++ b/languages/cpp/createpcsdialog.cpp
@@ -102,7 +102,7 @@ public:
TQString gccLibPath = SetupHelper::getGccIncludePath(&ok);
if (!ok)
return;
- gccLibPath = gccLibPath.replace( TQRegExp( "[\r\n]" ), "" );
+ gccLibPath = gccLibPath.tqreplace( TQRegExp( "[\r\n]" ), "" );
addIncludePath( gccLibPath );
//addIncludePath( "/usr/include/g++-3" );
//addIncludePath( "/usr/include/g++" );
@@ -116,8 +116,8 @@ public:
addMacro( Macro( lst[1], lst[2] ) );
}
addMacro( Macro( "__cplusplus", "1" ) );
- addMacro( Macro( "Q_SIGNALS", "signals" ) );
- addMacro( Macro( "Q_SLOTS", "slots" ) );
+ addMacro( Macro( "signals", "signals" ) );
+ addMacro( Macro( "slots", "slots" ) );
}
private:
@@ -132,13 +132,13 @@ private:
class PCSListViewItem: public KListViewItem
{
public:
- PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListViewItem* parent )
- : KListViewItem( parent ), m_importer( importer )
+ PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListViewItem* tqparent )
+ : KListViewItem( tqparent ), m_importer( importer )
{
init( ptr );
}
- PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListView* parent )
- : KListViewItem( parent ), m_importer( importer )
+ PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListView* tqparent )
+ : KListViewItem( tqparent ), m_importer( importer )
{
init( ptr );
}
@@ -196,8 +196,8 @@ public:
-CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, TQWidget* parent, const char* name, bool modal, WFlags fl )
- : CreatePCSDialogBase( parent, name, modal, fl ), m_part( part ), m_jobData( 0 )
+CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, TQWidget* tqparent, const char* name, bool modal, WFlags fl )
+ : CreatePCSDialogBase( tqparent, name, modal, fl ), m_part( part ), m_jobData( 0 )
{
helpButton()->hide();
@@ -212,7 +212,7 @@ CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, TQWidget* parent, const
KService::Ptr ptr = *it;
int error = 0;
- KDevPCSImporter* importer = KParts::ComponentFactory::createInstanceFromService<KDevPCSImporter>( ptr, this, ptr->name().latin1(), TQStringList(), &error );
+ KDevPCSImporter* importer = KParts::ComponentFactory::createInstanceFromService<KDevPCSImporter>( ptr, TQT_TQOBJECT(this), ptr->name().latin1(), TQStringList(), &error );
if ( importer )
{
new PCSListViewItem( ptr, importer, importerListView );
diff --git a/languages/cpp/createpcsdialog.h b/languages/cpp/createpcsdialog.h
index 87c4818d..e9371434 100644
--- a/languages/cpp/createpcsdialog.h
+++ b/languages/cpp/createpcsdialog.h
@@ -19,9 +19,10 @@ class CppSupportPart;
class CreatePCSDialog : public CreatePCSDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- CreatePCSDialog( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ CreatePCSDialog( CppSupportPart* part, TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~CreatePCSDialog();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/createpcsdialogbase.ui b/languages/cpp/createpcsdialogbase.ui
index 09b59a70..54857eae 100644
--- a/languages/cpp/createpcsdialogbase.ui
+++ b/languages/cpp/createpcsdialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>CreatePCSDialogBase</class>
-<widget class="QWizard">
+<widget class="TQWizard">
<property name="name">
<cstring>CreatePCSDialogBase</cstring>
</property>
@@ -15,7 +15,7 @@
<property name="caption">
<string>New Persistant Class Store</string>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>importerPage</cstring>
</property>
@@ -47,7 +47,7 @@
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>settingsPage</cstring>
</property>
@@ -55,7 +55,7 @@
<string>Select directory</string>
</attribute>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>descriptionPage</cstring>
</property>
@@ -66,7 +66,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -89,7 +89,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>111</height>
@@ -98,7 +98,7 @@
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>finalPage</cstring>
</property>
@@ -109,12 +109,12 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QProgressBar">
+ <widget class="TQProgressBar">
<property name="name">
<cstring>progressBar</cstring>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>currentFile</cstring>
</property>
@@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>81</height>
@@ -151,16 +151,16 @@
</connection>
<connection>
<sender>importerListView</sender>
- <signal>clicked(QListViewItem*)</signal>
+ <signal>clicked(TQListViewItem*)</signal>
<receiver>CreatePCSDialogBase</receiver>
- <slot>slotSelectionChanged(QListViewItem*)</slot>
+ <slot>slotSelectionChanged(TQListViewItem*)</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>slotSelected(const QString&amp;)</slot>
- <slot>slotSelectionChanged(QListViewItem*)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+ <slot>slotSelectionChanged(TQListViewItem*)</slot>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/languages/cpp/debugger/TODO.txt b/languages/cpp/debugger/TODO.txt
index 38aca109..563cf85c 100644
--- a/languages/cpp/debugger/TODO.txt
+++ b/languages/cpp/debugger/TODO.txt
@@ -69,7 +69,7 @@ TODO:
- Add icons
- - Status display column is just ugly
+ - tqStatus display column is just ugly
- Handle "out of breakpoints" message.
diff --git a/languages/cpp/debugger/breakpoint.cpp b/languages/cpp/debugger/breakpoint.cpp
index c9ed193e..9d1860e4 100644
--- a/languages/cpp/debugger/breakpoint.cpp
+++ b/languages/cpp/debugger/breakpoint.cpp
@@ -213,7 +213,7 @@ bool Breakpoint::match(const Breakpoint* breakpoint) const
TQString Breakpoint::dbgRemoveCommand() const
{
if (dbgId_>0)
- return TQString("-break-delete %1").arg(dbgId_); // gdb command - not translatable
+ return TQString("-break-delete %1").tqarg(dbgId_); // gdb command - not translatable
return TQString();
}
@@ -386,7 +386,7 @@ FilePosBreakpoint::FilePosBreakpoint(const TQString &fileName, int lineNum,
: Breakpoint(temporary, enabled)
{
// Sets 'subtype'
- setLocation(TQString("%1:%2").arg(fileName).arg(lineNum));
+ setLocation(TQString("%1:%2").tqarg(fileName).tqarg(lineNum));
}
FilePosBreakpoint::~FilePosBreakpoint()
@@ -482,7 +482,7 @@ void FilePosBreakpoint::setLocation(const TQString& location)
line_ = regExp1.cap(2).toInt();
- location_ = TQString("%1:%2").arg(fileName_).arg(regExp1.cap(2));
+ location_ = TQString("%1:%2").tqarg(fileName_).tqarg(regExp1.cap(2));
}
else
{
@@ -536,7 +536,7 @@ void Watchpoint::setBreakpoint(GDBController* controller)
controller->addCommandBeforeRun(
new GDBCommand(
- TQString("-data-evaluate-expression &%1").arg(varName_),
+ TQString("-data-evaluate-expression &%1").tqarg(varName_),
this,
&Watchpoint::handleAddressComputed));
}
@@ -547,7 +547,7 @@ void Watchpoint::handleAddressComputed(const GDBMI::ResultRecord& r)
address_ = r["value"].literal().toULongLong(0, 16);
controller()->addCommandBeforeRun(
new GDBCommand(
- TQString("-break-watch *%1").arg(r["value"].literal()),
+ TQString("-break-watch *%1").tqarg(r["value"].literal()),
static_cast<Breakpoint*>(this),
&Watchpoint::handleSet));
}
diff --git a/languages/cpp/debugger/breakpoint.h b/languages/cpp/debugger/breakpoint.h
index 8470617c..64db16d5 100644
--- a/languages/cpp/debugger/breakpoint.h
+++ b/languages/cpp/debugger/breakpoint.h
@@ -44,9 +44,10 @@ enum BP_TYPES
BP_TYPE_ReadWatchpoint
};
-class Breakpoint : public QObject
+class Breakpoint : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
Breakpoint(bool temporary=false, bool enabled=true);
virtual ~Breakpoint();
diff --git a/languages/cpp/debugger/dbgcontroller.h b/languages/cpp/debugger/dbgcontroller.h
index 7b161313..9c555e51 100644
--- a/languages/cpp/debugger/dbgcontroller.h
+++ b/languages/cpp/debugger/dbgcontroller.h
@@ -65,9 +65,10 @@ enum DBGStateFlags
/***************************************************************************/
/***************************************************************************/
/***************************************************************************/
-class DbgController : public QObject
+class DbgController : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
@@ -117,7 +118,7 @@ signals:
void gdbUserCommandStdout (const char *output);
void gdbStderr (const char *output);
void showStepInSource (const TQString &fileName, int lineNum, const TQString &address);
- void dbgStatus (const TQString &status, int statusFlag);
+ void dbgtqStatus (const TQString &status, int statusFlag);
protected:
KProcess *dbgProcess_;
diff --git a/languages/cpp/debugger/dbgpsdlg.cpp b/languages/cpp/debugger/dbgpsdlg.cpp
index e96d7395..e08a1cec 100644
--- a/languages/cpp/debugger/dbgpsdlg.cpp
+++ b/languages/cpp/debugger/dbgpsdlg.cpp
@@ -50,8 +50,8 @@ namespace GDBDebugger
// For use with the internal debugger, but this dialog doesn't know anything
// about why it's doing it.
-Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
- : KDialog(parent, name, true), // modal
+Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *tqparent, const char *name)
+ : KDialog(tqparent, name, true), // modal
psProc_(0),
pids_(new KListView(this)),
pidLines_(TQString())
@@ -77,7 +77,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
buttonbox->addStretch();
TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
- buttonbox->layout();
+ buttonbox->tqlayout();
topLayout->addWidget(buttonbox);
connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
@@ -155,14 +155,14 @@ void Dbg_PS_Dialog::slotProcessExited()
pidLines_ += '\n';
- int start = pidLines_.find('\n', 0); // Skip the first line (header line)
+ int start = pidLines_.tqfind('\n', 0); // Skip the first line (header line)
int pos;
static TQRegExp ps_output_line("^\\s*(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(.+)");
- while ( (pos = pidLines_.find('\n', start)) != -1) {
+ while ( (pos = pidLines_.tqfind('\n', start)) != -1) {
TQString item = pidLines_.mid(start, pos-start);
- if (!item.isEmpty() && item.find(pidCmd_) == -1)
+ if (!item.isEmpty() && item.tqfind(pidCmd_) == -1)
{
if(ps_output_line.search(item) == -1)
{
@@ -172,7 +172,7 @@ void Dbg_PS_Dialog::slotProcessExited()
// to 'arg'.
i18n("<b>Could not parse output from the <tt>ps</tt> command.</b>"
"<p>The following line could not be parsed:"
- "<b><tt>%1</tt>").arg(item),
+ "<b><tt>%1</tt>").tqarg(item),
i18n("Internal error"), "gdb_error" );
break;
}
diff --git a/languages/cpp/debugger/dbgpsdlg.h b/languages/cpp/debugger/dbgpsdlg.h
index 214e67a7..273bb7b8 100644
--- a/languages/cpp/debugger/dbgpsdlg.h
+++ b/languages/cpp/debugger/dbgpsdlg.h
@@ -31,9 +31,10 @@ namespace GDBDebugger
class Dbg_PS_Dialog : public KDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- Dbg_PS_Dialog( TQWidget *parent=0, const char *name=0 );
+ Dbg_PS_Dialog( TQWidget *tqparent=0, const char *name=0 );
~Dbg_PS_Dialog();
int pidSelected();
diff --git a/languages/cpp/debugger/dbgtoolbar.cpp b/languages/cpp/debugger/dbgtoolbar.cpp
index 3fbef3c4..aaf4476b 100644
--- a/languages/cpp/debugger/dbgtoolbar.cpp
+++ b/languages/cpp/debugger/dbgtoolbar.cpp
@@ -12,7 +12,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
-#ifndef QT_MAC
+#ifndef TQT_MAC
#include "dbgtoolbar.h"
#include "debuggerpart.h"
#include "dbgcontroller.h"
@@ -65,10 +65,10 @@ namespace GDBDebugger
// the iconify, close, etc buttons from the window title but again I kept running
// into problems. Instead, I used no decoration and this class. Also this looks
// similar to the KToolBar floating style.
-class DbgMoveHandle : public QFrame
+class DbgMoveHandle : public TQFrame
{
public:
- DbgMoveHandle(DbgToolBar *parent=0, const char * name=0, WFlags f=0);
+ DbgMoveHandle(DbgToolBar *tqparent=0, const char * name=0, WFlags f=0);
virtual ~DbgMoveHandle();
virtual void mousePressEvent(TQMouseEvent *e);
@@ -83,9 +83,9 @@ private:
// **************************************************************************
-DbgMoveHandle::DbgMoveHandle(DbgToolBar *parent, const char * name, WFlags f)
- : TQFrame(parent, name, f),
- toolBar_(parent),
+DbgMoveHandle::DbgMoveHandle(DbgToolBar *tqparent, const char * name, WFlags f)
+ : TQFrame(tqparent, name, f),
+ toolBar_(tqparent),
offset_(TQPoint(0,0)),
moving_(false)
{
@@ -107,21 +107,21 @@ void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
if (moving_)
return;
- if (e->button() == RightButton) {
+ if (e->button() == Qt::RightButton) {
KPopupMenu *menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"),
- parent(), TQT_SLOT(slotDock()));
+ tqparent(), TQT_SLOT(slotDock()));
menu->insertItem(i18n("Dock to Panel && Iconify KDevelop"),
- parent(), TQT_SLOT(slotIconifyAndDock()));
+ tqparent(), TQT_SLOT(slotIconifyAndDock()));
menu->popup(e->globalPos());
} else {
moving_ = true;
- offset_ = parentWidget()->pos() - e->globalPos();
+ offset_ = tqparentWidget()->pos() - e->globalPos();
setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
TQApplication::setOverrideCursor(TQCursor(sizeAllCursor));
- setPalette(TQPalette(colorGroup().background()));
- repaint();
+ setPalette(TQPalette(tqcolorGroup().background()));
+ tqrepaint();
}
}
@@ -134,8 +134,8 @@ void DbgMoveHandle::mouseReleaseEvent(TQMouseEvent *e)
offset_ = TQPoint(0,0);
setFrameStyle(TQFrame::Panel|TQFrame::Raised);
TQApplication::restoreOverrideCursor();
- setPalette(TQPalette(colorGroup().background()));
- repaint();
+ setPalette(TQPalette(tqcolorGroup().background()));
+ tqrepaint();
}
// **************************************************************************
@@ -153,16 +153,16 @@ void DbgMoveHandle::mouseMoveEvent(TQMouseEvent *e)
// **************************************************************************
// **************************************************************************
-// This class adds text _and_ a pixmap to a button. Why doesn't QPushButton
+// This class adds text _and_ a pixmap to a button. Why doesn't TQPushButton
// support that? It only allowed text _or_ pixmap.
-class DbgButton : public QPushButton
+class DbgButton : public TQPushButton
{
public:
DbgButton(const TQPixmap &pixmap, const TQString &text,
- DbgToolBar *parent, const char *name=0);
+ DbgToolBar *tqparent, const char *name=0);
virtual ~DbgButton() {};
void drawButtonLabel(TQPainter *painter);
- TQSize sizeHint() const;
+ TQSize tqsizeHint() const;
private:
TQPixmap pixmap_;
@@ -171,8 +171,8 @@ private:
// **************************************************************************
DbgButton::DbgButton(const TQPixmap& pixmap, const TQString& text,
- DbgToolBar* parent, const char* name)
- : TQPushButton(parent, name),
+ DbgToolBar* tqparent, const char* name)
+ : TQPushButton(tqparent, name),
pixmap_(pixmap)
{
setText(text);
@@ -191,21 +191,21 @@ void DbgButton::drawButtonLabel(TQPainter *painter)
painter->drawPixmap(x, y, pixmap_);
if (hasText) {
- painter->setPen(colorGroup().text());
+ painter->setPen(tqcolorGroup().text());
painter->drawText(height()+2, 0, width()-(height()+2), height(), AlignLeft|AlignVCenter, text());
}
}
// **************************************************************************
-TQSize DbgButton::sizeHint() const
+TQSize DbgButton::tqsizeHint() const
{
if (text().isEmpty())
return pixmap_.size();
else
{
TQSize ps = pixmap_.size();
- TQSize bs = TQPushButton::sizeHint();
+ TQSize bs = TQPushButton::tqsizeHint();
TQSize result;
result.setWidth( ps.width() + bs.width()+10 );
result.setHeight( ps.height() > bs.height() ? ps.height() : bs.height() );
@@ -217,8 +217,8 @@ TQSize DbgButton::sizeHint() const
// **************************************************************************
// **************************************************************************
-DbgDocker::DbgDocker(TQWidget* parent, DbgToolBar* toolBar, const TQPixmap& pixmap) :
- KSystemTray(parent, "DbgDocker"),
+DbgDocker::DbgDocker(TQWidget* tqparent, DbgToolBar* toolBar, const TQPixmap& pixmap) :
+ KSystemTray(tqparent, "DbgDocker"),
toolBar_(toolBar)
{
setPixmap(pixmap);
@@ -229,17 +229,17 @@ DbgDocker::DbgDocker(TQWidget* parent, DbgToolBar* toolBar, const TQPixmap& pixm
void DbgDocker::mousePressEvent(TQMouseEvent *e)
{
- if (!rect().contains( e->pos()))
+ if (!TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos()))
return;
switch (e->button()) {
- case LeftButton:
+ case Qt::LeftButton:
{
// Not really a click, but it'll hold for the time being !!!
emit clicked();
break;
}
- case RightButton:
+ case Qt::RightButton:
{
KPopupMenu* menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
@@ -258,7 +258,7 @@ void DbgDocker::mousePressEvent(TQMouseEvent *e)
// **************************************************************************
DbgToolBar::DbgToolBar(DebuggerPart* part,
- TQWidget* parent, const char* name)
+ TQWidget* tqparent, const char* name)
: TQFrame(0, name),
part_(part),
activeWindow_(0),
@@ -268,10 +268,10 @@ DbgToolBar::DbgToolBar(DebuggerPart* part,
appIsActive_(false),
docked_(false),
docker_(0),
- dockWindow_(new KSystemTray(parent))
+ dockWindow_(new KSystemTray(tqparent))
{
- winModule_ = new KWinModule(this);
- docker_ = new DbgDocker(parent, this, BarIcon("dbgnext"));
+ winModule_ = new KWinModule(TQT_TQOBJECT(this));
+ docker_ = new DbgDocker(tqparent, this, BarIcon("dbgnext"));
connect(docker_, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOver()));
// Must have noFocus set so that we can see what window was active.
@@ -285,7 +285,7 @@ DbgToolBar::DbgToolBar(DebuggerPart* part,
// KWin::setType(winId(), NET::Override); // So it has no decoration
KWin::setType(winId(), NET::Dock);
- setFocusPolicy(NoFocus);
+ setFocusPolicy(TQ_NoFocus);
setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(4);
setMidLineWidth(0);
@@ -300,15 +300,15 @@ DbgToolBar::DbgToolBar(DebuggerPart* part,
TQPushButton* bRun = new DbgButton(BarIcon("dbgrun"), i18n("Run"), this);
TQPushButton* bInterrupt = new DbgButton(BarIcon("player_pause"), i18n("Interrupt"), this);
- TQPushButton* bNext = new DbgButton(BarIcon("dbgnext"), TQString::null, this);
- TQPushButton* bNexti = new DbgButton(BarIcon("dbgnextinst"), TQString::null, this);
- TQPushButton* bStep = new DbgButton(BarIcon("dbgstep"), TQString::null, this);
- TQPushButton* bStepi = new DbgButton(BarIcon("dbgstepinst"), TQString::null, this);
+ TQPushButton* bNext = new DbgButton(BarIcon("dbgnext"), TQString(), this);
+ TQPushButton* bNexti = new DbgButton(BarIcon("dbgnextinst"), TQString(), this);
+ TQPushButton* bStep = new DbgButton(BarIcon("dbgstep"), TQString(), this);
+ TQPushButton* bStepi = new DbgButton(BarIcon("dbgstepinst"), TQString(), this);
TQPushButton* bFinish = new DbgButton(BarIcon("dbgstepout"), i18n("Step Out"), this);
TQPushButton* bRunTo = new DbgButton(BarIcon("dbgrunto"), i18n("Run to Cursor"), this);
TQPushButton* bView = new DbgButton(BarIcon("dbgmemview"), i18n("Viewers"), this);
- bKDevFocus_ = new DbgButton(BarIcon("kdevelop"), TQString::null, this);
- bPrevFocus_ = new DbgButton(BarIcon("dbgmemview"), TQString::null, this);
+ bKDevFocus_ = new DbgButton(BarIcon("kdevelop"), TQString(), this);
+ bPrevFocus_ = new DbgButton(BarIcon("dbgmemview"), TQString(), this);
connect(bRun, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotRun()));
connect(bInterrupt, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotPause()));
@@ -365,12 +365,12 @@ DbgToolBar::DbgToolBar(DebuggerPart* part,
nextLayout->addWidget(bNext);
nextLayout->addWidget(bNexti);
-// int w = QMAX(bRun->sizeHint().width(), bFinish->sizeHint().width());
-// w = QMAX(w, bInterrupt->sizeHint().width());
-// w = QMAX(w, bView->sizeHint().width());
+// int w = TQMAX(bRun->tqsizeHint().width(), bFinish->tqsizeHint().width());
+// w = TQMAX(w, bInterrupt->tqsizeHint().width());
+// w = TQMAX(w, bView->tqsizeHint().width());
// they should have the same height, so don't be too fussy
-// int h = bFinish->sizeHint().height();
+// int h = bFinish->tqsizeHint().height();
//
// bNext->setMinimumHeight(h);
// bNexti->setMinimumHeight(h);
@@ -404,10 +404,10 @@ void DbgToolBar::slotKdevFocus()
// If anyone has a way of determining what window the app is _actually_ running on
// then please fix and send a patch.
- if (winModule_->activeWindow() != topLevelWidget()->winId())
+ if (winModule_->activeWindow() != tqtopLevelWidget()->winId())
activeWindow_ = winModule_->activeWindow();
- KWin::activateWindow(topLevelWidget()->winId());
+ KWin::activateWindow(tqtopLevelWidget()->winId());
}
// **************************************************************************
@@ -421,7 +421,7 @@ void DbgToolBar::slotPrevFocus()
// If the app is active then the app button is highlighted, otherwise
// kdev button is highlighted.
-void DbgToolBar::slotDbgStatus(const TQString&, int state)
+void DbgToolBar::slotDbgtqStatus(const TQString&, int state)
{
bool appIndicator = state & s_dbgBusy;
if (appIndicator != appIsActive_) {
@@ -435,11 +435,11 @@ void DbgToolBar::slotDbgStatus(const TQString&, int state)
void DbgToolBar::setAppIndicator(bool appIndicator)
{
if (appIndicator) {
- bPrevFocus_->setPalette(TQPalette(colorGroup().mid()));
- bKDevFocus_->setPalette(TQPalette(colorGroup().background()));
+ bPrevFocus_->setPalette(TQPalette(tqcolorGroup().mid()));
+ bKDevFocus_->setPalette(TQPalette(tqcolorGroup().background()));
} else {
- bPrevFocus_->setPalette(TQPalette(colorGroup().background()));
- bKDevFocus_->setPalette(TQPalette(colorGroup().mid()));
+ bPrevFocus_->setPalette(TQPalette(tqcolorGroup().background()));
+ bKDevFocus_->setPalette(TQPalette(tqcolorGroup().mid()));
}
}
@@ -487,7 +487,7 @@ void DbgToolBar::slotActivateAndUndock()
if (!docked_)
return;
- KWin::activateWindow(topLevelWidget()->winId());
+ KWin::activateWindow(tqtopLevelWidget()->winId());
slotUndock();
}
diff --git a/languages/cpp/debugger/dbgtoolbar.h b/languages/cpp/debugger/dbgtoolbar.h
index 188862d4..427120d9 100644
--- a/languages/cpp/debugger/dbgtoolbar.h
+++ b/languages/cpp/debugger/dbgtoolbar.h
@@ -12,7 +12,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
-#ifndef QT_MAC
+#ifndef TQT_MAC
#ifndef _DBGTOOLBAR_H_
#define _DBGTOOLBAR_H_
@@ -33,9 +33,10 @@ class DebuggerPart;
class DbgDocker : public KSystemTray
{
Q_OBJECT
+ TQ_OBJECT
public:
- DbgDocker(TQWidget *parent, DbgToolBar *toolBar, const TQPixmap &pixmap);
+ DbgDocker(TQWidget *tqparent, DbgToolBar *toolBar, const TQPixmap &pixmap);
virtual ~DbgDocker() {};
virtual void mousePressEvent(TQMouseEvent *e);
@@ -47,16 +48,17 @@ private:
};
-class DbgToolBar : public QFrame
+class DbgToolBar : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- DbgToolBar(DebuggerPart *part, TQWidget* parent, const char* name=0);
+ DbgToolBar(DebuggerPart *part, TQWidget* tqparent, const char* name=0);
virtual ~DbgToolBar();
private slots:
- void slotDbgStatus(const TQString&, int);
+ void slotDbgtqStatus(const TQString&, int);
void slotDock();
void slotUndock();
void slotIconifyAndDock();
diff --git a/languages/cpp/debugger/debuggerconfigwidget.cpp b/languages/cpp/debugger/debuggerconfigwidget.cpp
index f2891378..2fbc6a88 100644
--- a/languages/cpp/debugger/debuggerconfigwidget.cpp
+++ b/languages/cpp/debugger/debuggerconfigwidget.cpp
@@ -27,8 +27,8 @@
namespace GDBDebugger
{
-DebuggerConfigWidget::DebuggerConfigWidget(DebuggerPart* part, TQWidget *parent, const char *name)
- : DebuggerConfigWidgetBase(parent, name), dom(*part->projectDom())
+DebuggerConfigWidget::DebuggerConfigWidget(DebuggerPart* part, TQWidget *tqparent, const char *name)
+ : DebuggerConfigWidgetBase(tqparent, name), dom(*part->projectDom())
{
gdbPath_edit->setMode(KFile::File|KFile::ExistingOnly|KFile::LocalOnly);
@@ -37,7 +37,7 @@ DebuggerConfigWidget::DebuggerConfigWidget(DebuggerPart* part, TQWidget *parent,
TQString shell = DomUtil::readEntry(dom, "/kdevdebugger/general/dbgshell","no_value");
if( shell == TQString("no_value") )
{
- shell = TQString::null;
+ shell = TQString();
}
debuggingShell_edit->setURL( shell );
@@ -78,7 +78,7 @@ DebuggerConfigWidget::DebuggerConfigWidget(DebuggerPart* part, TQWidget *parent,
// ??? DomUtil::readEntry(dom, "/kdevdebugger/general/allowforcedbpset");
- resize(sizeHint());
+ resize(tqsizeHint());
}
diff --git a/languages/cpp/debugger/debuggerconfigwidget.h b/languages/cpp/debugger/debuggerconfigwidget.h
index 3a8283a2..cdd2479d 100644
--- a/languages/cpp/debugger/debuggerconfigwidget.h
+++ b/languages/cpp/debugger/debuggerconfigwidget.h
@@ -26,9 +26,10 @@ class DebuggerPart;
class DebuggerConfigWidget : public DebuggerConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- DebuggerConfigWidget( DebuggerPart* part, TQWidget *parent=0, const char *name=0 );
+ DebuggerConfigWidget( DebuggerPart* part, TQWidget *tqparent=0, const char *name=0 );
~DebuggerConfigWidget();
public slots:
diff --git a/languages/cpp/debugger/debuggerconfigwidgetbase.ui b/languages/cpp/debugger/debuggerconfigwidgetbase.ui
index bf81b2d3..38048f18 100644
--- a/languages/cpp/debugger/debuggerconfigwidgetbase.ui
+++ b/languages/cpp/debugger/debuggerconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>DebuggerConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>debugger_config_widget</cstring>
</property>
@@ -25,7 +25,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -34,7 +34,7 @@
or directly in the project manager</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>gdbPath_label</cstring>
</property>
@@ -64,7 +64,7 @@
<string>To run "gdb" binary from $PATH, leave this field empty. To run custom gdb, for example, for a different architecture, enter the executable name here. You can either run gdb from $PATH, but with a different name (say, "arm-gdb"), by typing the name here, or specify full path to the gdb executable.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>debuggingShell_label</cstring>
</property>
@@ -100,15 +100,15 @@
<string>If you want gdb to be executed by a special shell or tool insert it here. The main use-case is for Automake based projects where the application is actually only a script and &lt;b&gt;libtool&lt;/b&gt; is needed to get it to run inside gdb.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -119,7 +119,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>asmDemangle_box</cstring>
</property>
@@ -132,7 +132,7 @@ can select to see the methods' mangled names.
However, non-mangled names are easier to read.</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>breakOnLoadingLibrary_box</cstring>
</property>
@@ -149,7 +149,7 @@ for more details relating to this behavior.
If you are not "dlopen"ing libs then leave this unchecked.</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0">
+ <widget class="TQCheckBox" row="4" column="0">
<property name="name">
<cstring>dbgTerminal_box</cstring>
</property>
@@ -166,7 +166,7 @@ If you use terminal input in your application then check this option.
Otherwise leave it unchecked.</string>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0">
+ <widget class="TQCheckBox" row="3" column="0">
<property name="name">
<cstring>enableFloatingToolBar_box</cstring>
</property>
@@ -185,7 +185,7 @@ can also be docked into the panel.
This toolbar is in addition to the toolbar in KDevelop.</string>
</property>
</widget>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>displayStaticMembers_box</cstring>
</property>
@@ -206,15 +206,15 @@ check this option.</string>
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>globalOutputRadix</cstring>
</property>
@@ -225,7 +225,7 @@ check this option.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>outputRadixOctal</cstring>
</property>
@@ -233,7 +233,7 @@ check this option.</string>
<string>Oct&amp;al</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>outputRadixHexadecimal</cstring>
</property>
@@ -241,7 +241,7 @@ check this option.</string>
<string>He&amp;xadecimal</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>outputRadixDecimal</cstring>
</property>
@@ -251,7 +251,7 @@ check this option.</string>
</widget>
</vbox>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>buttonGroup2</cstring>
</property>
@@ -262,7 +262,7 @@ check this option.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>radioFramestack</cstring>
</property>
@@ -270,7 +270,7 @@ check this option.</string>
<string>Framestack</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>radioGDB</cstring>
</property>
@@ -284,7 +284,7 @@ check this option.</string>
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -301,15 +301,15 @@ check this option.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>runShellScript_label</cstring>
</property>
@@ -356,7 +356,7 @@ or if your executable contains the gdb stub
2b) Execute "application" on target.</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>runGdbScript_label</cstring>
</property>
@@ -368,7 +368,7 @@ or if your executable contains the gdb stub
<cstring>runGdbScript_edit</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>configGdbScript_label</cstring>
</property>
@@ -404,7 +404,7 @@ or if your executable contains the gdb stub
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -431,8 +431,8 @@ or if your executable contains the gdb stub
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/languages/cpp/debugger/debuggerpart.cpp b/languages/cpp/debugger/debuggerpart.cpp
index 4842ca84..22621630 100644
--- a/languages/cpp/debugger/debuggerpart.cpp
+++ b/languages/cpp/debugger/debuggerpart.cpp
@@ -76,8 +76,8 @@ static const KDevPluginInfo data("kdevdebugger");
typedef KDevGenericFactory<DebuggerPart> DebuggerFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevdebugger, DebuggerFactory( data ) )
-DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringList & ) :
- KDevPlugin( &data, parent, name ? name : "DebuggerPart" ),
+DebuggerPart::DebuggerPart( TQObject *tqparent, const char *name, const TQStringList & ) :
+ KDevPlugin( &data, tqparent, name ? name : "DebuggerPart" ),
controller(0), previousDebuggerState_(s_dbgNotStarted),
justRestarted_(false), needRebuild_(true),
running_(false)
@@ -92,7 +92,7 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi
statusBarIndicator = new LabelWithDoubleClick(
" ", mainWindow()->statusBar());
statusBarIndicator->setFixedWidth(15);
- statusBarIndicator->setAlignment(Qt::AlignCenter);
+ statusBarIndicator->tqsetAlignment(TQt::AlignCenter);
mainWindow()->statusBar()->addWidget(statusBarIndicator, 0, true);
statusBarIndicator->show();
@@ -376,7 +376,7 @@ void DebuggerPart::setupDcop()
{
QCStringList objects = kapp->dcopClient()->registeredApplications();
for (QCStringList::Iterator it = objects.begin(); it != objects.end(); ++it)
- if ((*it).find("drkonqi-") == 0)
+ if ((*it).tqfind("drkonqi-") == 0)
slotDCOPApplicationRegistered(*it);
connect(kapp->dcopClient(), TQT_SIGNAL(applicationRegistered(const TQCString&)), TQT_SLOT(slotDCOPApplicationRegistered(const TQCString&)));
@@ -385,7 +385,7 @@ void DebuggerPart::setupDcop()
void DebuggerPart::slotDCOPApplicationRegistered(const TQCString& appId)
{
- if (appId.find("drkonqi-") == 0) {
+ if (appId.tqfind("drkonqi-") == 0) {
TQByteArray answer;
TQCString replyType;
@@ -491,7 +491,7 @@ void DebuggerPart::contextMenu(TQPopupMenu *popup, const Context *context)
int index = running ? 0 : -1;
if (running)
{
- // Too bad we can't add TQAction to popup menu in Qt3.
+ // Too bad we can't add TQAction to popup menu in TQt3.
KAction* act = actionCollection()->action("debug_runtocursor");
Q_ASSERT(act);
if (act)
@@ -500,7 +500,7 @@ void DebuggerPart::contextMenu(TQPopupMenu *popup, const Context *context)
this, TQT_SLOT(slotRunToCursor()),
0, -1, index);
- popup->setWhatsThis(id, act->whatsThis());
+ popup->tqsetWhatsThis(id, act->whatsThis());
index += running;
}
}
@@ -510,21 +510,21 @@ void DebuggerPart::contextMenu(TQPopupMenu *popup, const Context *context)
this, TQT_SLOT(toggleBreakpoint()),
0, -1, index);
index += running;
- popup->setWhatsThis(id, i18n("<b>Toggle breakpoint</b><p>Toggles breakpoint at the current line."));
+ popup->tqsetWhatsThis(id, i18n("<b>Toggle breakpoint</b><p>Toggles breakpoint at the current line."));
}
if (!m_contextIdent.isEmpty())
{
TQString squeezed = KStringHandler::csqueeze(m_contextIdent, 30);
- int id = popup->insertItem( i18n("Evaluate: %1").arg(squeezed),
+ int id = popup->insertItem( i18n("Evaluate: %1").tqarg(squeezed),
this, TQT_SLOT(contextEvaluate()),
0, -1, index);
index += running;
- popup->setWhatsThis(id, i18n("<b>Evaluate expression</b><p>Shows the value of the expression under the cursor."));
- int id2 = popup->insertItem( i18n("Watch: %1").arg(squeezed),
+ popup->tqsetWhatsThis(id, i18n("<b>Evaluate expression</b><p>Shows the value of the expression under the cursor."));
+ int id2 = popup->insertItem( i18n("Watch: %1").tqarg(squeezed),
this, TQT_SLOT(contextWatch()),
0, -1, index);
index += running;
- popup->setWhatsThis(id2, i18n("<b>Watch expression</b><p>Adds an expression under the cursor to the Variables/Watch list."));
+ popup->tqsetWhatsThis(id2, i18n("<b>Watch expression</b><p>Adds an expression under the cursor to the Variables/Watch list."));
}
if (running)
popup->insertSeparator(index);
@@ -589,8 +589,8 @@ void DebuggerPart::setupController()
disassembleWidget, TQT_SLOT(slotShowStepInSource(const TQString&, int, const TQString&)));
// controller -> this
- connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
- this, TQT_SLOT(slotStatus(const TQString&, int)));
+ connect( controller, TQT_SIGNAL(dbgtqStatus(const TQString&, int)),
+ this, TQT_SLOT(slottqStatus(const TQString&, int)));
connect( controller, TQT_SIGNAL(showStepInSource(const TQString&, int, const TQString&)),
this, TQT_SLOT(slotShowStep(const TQString&, int)));
connect( controller, TQT_SIGNAL(debuggerAbnormalExit()),
@@ -613,16 +613,16 @@ void DebuggerPart::setupController()
connect( controller, TQT_SIGNAL(gdbStderr(const char*)),
gdbOutputWidget, TQT_SLOT(slotReceivedStderr(const char*)) );
- connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
- gdbOutputWidget, TQT_SLOT(slotDbgStatus(const TQString&, int)));
+ connect( controller, TQT_SIGNAL(dbgtqStatus(const TQString&, int)),
+ gdbOutputWidget, TQT_SLOT(slotDbgtqStatus(const TQString&, int)));
// controller -> viewerWidget
- connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
+ connect( controller, TQT_SIGNAL(dbgtqStatus(const TQString&, int)),
viewerWidget, TQT_SLOT(slotDebuggerState(const TQString&, int)));
connect(statusBarIndicator, TQT_SIGNAL(doubleClicked()),
- controller, TQT_SLOT(explainDebuggerStatus()));
+ controller, TQT_SLOT(explainDebuggertqStatus()));
}
@@ -659,7 +659,7 @@ bool DebuggerPart::startDebugger()
{
KMessageBox::information(
mainWindow()->main(),
- i18n("Could not locate the debugging shell '%1'.").arg( shell_without_args ),
+ i18n("Could not locate the debugging shell '%1'.").tqarg( shell_without_args ),
i18n("Debugging Shell Not Found"), "gdb_error" );
return false;
}
@@ -697,7 +697,7 @@ bool DebuggerPart::startDebugger()
if (DomUtil::readBoolEntry(*projectDom(), "/kdevdebugger/general/floatingtoolbar", false))
{
-#ifndef QT_MAC
+#ifndef TQT_MAC
floatingToolBar = new DbgToolBar(this, mainWindow()->main());
floatingToolBar->show();
#endif
@@ -955,7 +955,7 @@ void DebuggerPart::slotExamineCore()
if (coreFile.isNull())
return;
- mainWindow()->statusBar()->message(i18n("Examining core file %1").arg(coreFile), 1000);
+ mainWindow()->statusBar()->message(i18n("Examining core file %1").tqarg(coreFile), 1000);
startDebugger();
controller->slotCoreFile(coreFile);
@@ -976,7 +976,7 @@ void DebuggerPart::slotAttachProcess()
bool DebuggerPart::attachProcess(int pid)
{
- mainWindow()->statusBar()->message(i18n("Attaching to process %1").arg(pid), 1000);
+ mainWindow()->statusBar()->message(i18n("Attaching to process %1").tqarg(pid), 1000);
bool ret = startDebugger();
controller->slotAttachTo(pid);
@@ -1092,7 +1092,7 @@ void DebuggerPart::slotRefreshBPState( const Breakpoint& BP)
}
}
-void DebuggerPart::slotStatus(const TQString &msg, int state)
+void DebuggerPart::slottqStatus(const TQString &msg, int state)
{
TQString stateIndicator, stateIndicatorFull;
diff --git a/languages/cpp/debugger/debuggerpart.h b/languages/cpp/debugger/debuggerpart.h
index a217cfee..71d56568 100644
--- a/languages/cpp/debugger/debuggerpart.h
+++ b/languages/cpp/debugger/debuggerpart.h
@@ -47,9 +47,10 @@ class ViewerWidget;
class DebuggerPart : public KDevPlugin, virtual public DebuggerDCOPInterface
{
Q_OBJECT
+ TQ_OBJECT
public:
- DebuggerPart( TQObject *parent, const char *name, const TQStringList & );
+ DebuggerPart( TQObject *tqparent, const char *name, const TQStringList & );
~DebuggerPart();
virtual void restorePartialProjectSession(const TQDomElement* el);
virtual void savePartialProjectSession(TQDomElement* el);
@@ -94,7 +95,7 @@ private slots:
void slotRefreshBPState(const Breakpoint&);
- void slotStatus(const TQString &msg, int state);
+ void slottqStatus(const TQString &msg, int state);
void slotShowStep(const TQString &fileName, int lineNum);
void slotGotoSource(const TQString &fileName, int lineNum);
diff --git a/languages/cpp/debugger/debuggertracingdialog.cpp b/languages/cpp/debugger/debuggertracingdialog.cpp
index 6bf70f3b..0af77613 100644
--- a/languages/cpp/debugger/debuggertracingdialog.cpp
+++ b/languages/cpp/debugger/debuggertracingdialog.cpp
@@ -14,8 +14,8 @@ namespace GDBDebugger
DebuggerTracingDialog
::DebuggerTracingDialog(Breakpoint* bp,
- TQWidget* parent, const char* name)
- : DebuggerTracingDialogBase(parent, name), bp_(bp)
+ TQWidget* tqparent, const char* name)
+ : DebuggerTracingDialogBase(tqparent, name), bp_(bp)
{
expressions->setButtons(KEditListBox::Add | KEditListBox::Remove);
diff --git a/languages/cpp/debugger/debuggertracingdialog.h b/languages/cpp/debugger/debuggertracingdialog.h
index 916ae912..e0e8dc48 100644
--- a/languages/cpp/debugger/debuggertracingdialog.h
+++ b/languages/cpp/debugger/debuggertracingdialog.h
@@ -23,9 +23,10 @@ namespace GDBDebugger
class DebuggerTracingDialog : public DebuggerTracingDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
DebuggerTracingDialog(Breakpoint* bp,
- TQWidget* parent, const char* name = 0);
+ TQWidget* tqparent, const char* name = 0);
private slots:
void enableOrDisable(int);
diff --git a/languages/cpp/debugger/debuggertracingdialogbase.ui b/languages/cpp/debugger/debuggertracingdialogbase.ui
index 333dc4de..17321999 100644
--- a/languages/cpp/debugger/debuggertracingdialogbase.ui
+++ b/languages/cpp/debugger/debuggertracingdialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>DebuggerTracingDialogBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>DebuggerTracingDialogBase</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>enable</cstring>
</property>
@@ -31,7 +31,7 @@
&lt;p&gt;Tracing is a mechanism to automatically print values of the choosed expressions and continue execution when breakpoint is hit. You can think of it as printf debugging that does not require modifying the source.&lt;/p&gt;</string>
</property>
</widget>
- <widget class="QPushButton" row="5" column="2">
+ <widget class="TQPushButton" row="5" column="2">
<property name="name">
<cstring>cancelButton</cstring>
</property>
@@ -39,7 +39,7 @@
<string>Cancel</string>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0">
+ <widget class="TQCheckBox" row="3" column="0">
<property name="name">
<cstring>enableCustomFormat</cstring>
</property>
@@ -50,7 +50,7 @@
<string>Custom format string</string>
</property>
</widget>
- <widget class="QPushButton" row="5" column="1">
+ <widget class="TQPushButton" row="5" column="1">
<property name="name">
<cstring>okButton</cstring>
</property>
@@ -71,7 +71,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -103,7 +103,7 @@ If custom format string is not enabled, names and values of all expressions will
<string></string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="1" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>expressionsLabel</cstring>
</property>
@@ -130,10 +130,10 @@ If custom format string is not enabled, names and values of all expressions will
<slot>reject()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>enableOrDisable()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>keditlistbox.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/languages/cpp/debugger/disassemblewidget.cpp b/languages/cpp/debugger/disassemblewidget.cpp
index 562aa1ae..6b848a27 100644
--- a/languages/cpp/debugger/disassemblewidget.cpp
+++ b/languages/cpp/debugger/disassemblewidget.cpp
@@ -35,8 +35,8 @@ namespace GDBDebugger
/***************************************************************************/
/***************************************************************************/
-DisassembleWidget::DisassembleWidget(GDBController* controller, TQWidget *parent, const char *name)
- : TQTextEdit(parent, name), controller_(controller),
+DisassembleWidget::DisassembleWidget(GDBController* controller, TQWidget *tqparent, const char *name)
+ : TQTextEdit(tqparent, name), controller_(controller),
active_(false),
lower_(0),
upper_(0),
diff --git a/languages/cpp/debugger/disassemblewidget.h b/languages/cpp/debugger/disassemblewidget.h
index 55288c0c..33f29da9 100644
--- a/languages/cpp/debugger/disassemblewidget.h
+++ b/languages/cpp/debugger/disassemblewidget.h
@@ -30,12 +30,13 @@ namespace GDBDebugger
class Breakpoint;
class GDBController;
-class DisassembleWidget : public QTextEdit
+class DisassembleWidget : public TQTextEdit
{
Q_OBJECT
+ TQ_OBJECT
public:
- DisassembleWidget( GDBController* controller, TQWidget *parent=0, const char *name=0 );
+ DisassembleWidget( GDBController* controller, TQWidget *tqparent=0, const char *name=0 );
virtual ~DisassembleWidget();
public slots:
diff --git a/languages/cpp/debugger/framestackwidget.cpp b/languages/cpp/debugger/framestackwidget.cpp
index fb0246e6..28fd076e 100644
--- a/languages/cpp/debugger/framestackwidget.cpp
+++ b/languages/cpp/debugger/framestackwidget.cpp
@@ -39,9 +39,9 @@ namespace GDBDebugger
{
FramestackWidget::FramestackWidget(GDBController* controller,
- TQWidget *parent,
+ TQWidget *tqparent,
const char *name, WFlags f)
- : TQListView(parent, name, f),
+ : TQListView(tqparent, name, f),
viewedThread_(0),
controller_(controller),
mayUpdate_( false )
@@ -49,9 +49,9 @@ FramestackWidget::FramestackWidget(GDBController* controller,
setRootIsDecorated(true);
setSorting(-1);
setSelectionMode(Single);
- addColumn(TQString::null); // Frame number
- addColumn(TQString::null); // function name/address
- addColumn(TQString::null); // source
+ addColumn(TQString()); // Frame number
+ addColumn(TQString()); // function name/address
+ addColumn(TQString()); // source
header()->hide();
@@ -111,7 +111,7 @@ void FramestackWidget::slotSelectionChanged(TQListViewItem *thisItem)
if (frame->threadNo() != -1)
controller_->addCommand(
new GDBCommand(TQString("-thread-select %1")
- .arg(frame->threadNo()).ascii()));
+ .tqarg(frame->threadNo()).ascii()));
viewedThread_ = findThread(frame->threadNo());
getBacktrace(frame->frameNo(), frame->frameNo() + frameChunk_);
@@ -208,7 +208,7 @@ void FramestackWidget::getBacktrace(int min_frame, int max_frame)
maxFrame_ = max_frame;
controller_->addCommand(
- new GDBCommand(TQString("-stack-info-depth %1").arg(max_frame+1),
+ new GDBCommand(TQString("-stack-info-depth %1").tqarg(max_frame+1),
this,
&FramestackWidget::handleStackDepth));
}
@@ -224,7 +224,7 @@ void FramestackWidget::handleStackDepth(const GDBMI::ResultRecord& r)
//add the following command to the front, so noone switches threads in between
controller_->addCommandToFront(
new GDBCommand(TQString("-stack-list-frames %1 %2")
- .arg(minFrame_).arg(maxFrame_),
+ .tqarg(minFrame_).tqarg(maxFrame_),
this, &FramestackWidget::parseGDBBacktraceList));
}
@@ -236,7 +236,7 @@ void FramestackWidget::getBacktraceForThread(int threadNo)
// Switch to the target thread.
controller_->addCommand(
new GDBCommand(TQString("-thread-select %1")
- .arg(threadNo).ascii()));
+ .tqarg(threadNo).ascii()));
viewedThread_ = findThread(threadNo);
}
@@ -248,7 +248,7 @@ void FramestackWidget::getBacktraceForThread(int threadNo)
// Switch back to the original thread.
controller_->addCommand(
new GDBCommand(TQString("-thread-select %1")
- .arg(currentThread).ascii()));
+ .tqarg(currentThread).ascii()));
}
}
@@ -274,13 +274,13 @@ void FramestackWidget::handleThreadList(const GDBMI::ResultRecord& r)
TQString id = ids.results[i]->value->literal();
controller_->addCommand(
- new GDBCommand(TQString("-thread-select %1").arg(id).ascii(),
+ new GDBCommand(TQString("-thread-select %1").tqarg(id).ascii(),
this, &FramestackWidget::handleThread));
}
controller_->addCommand(
new GDBCommand(TQString("-thread-select %1")
- .arg(controller_->currentThread()).ascii()));
+ .tqarg(controller_->currentThread()).ascii()));
}
// Get backtrace for the current thread. We need to do this
@@ -493,10 +493,10 @@ void FramestackWidget::drawContentsOffset( TQPainter * p, int ox, int oy,
// **************************************************************************
// **************************************************************************
-FrameStackItem::FrameStackItem(FramestackWidget *parent,
+FrameStackItem::FrameStackItem(FramestackWidget *tqparent,
unsigned frameNo,
const TQString &name)
- : TQListViewItem(parent, parent->lastChild()),
+ : TQListViewItem(tqparent, tqparent->lastChild()),
frameNo_(frameNo),
threadNo_(-1)
{
@@ -505,12 +505,12 @@ FrameStackItem::FrameStackItem(FramestackWidget *parent,
// **************************************************************************
-FrameStackItem::FrameStackItem(ThreadStackItem *parent,
+FrameStackItem::FrameStackItem(ThreadStackItem *tqparent,
unsigned frameNo,
const TQString &name)
- : TQListViewItem(parent, parent->lastChild()),
+ : TQListViewItem(tqparent, tqparent->lastChild()),
frameNo_(frameNo),
- threadNo_(parent->threadNo())
+ threadNo_(tqparent->threadNo())
{
setText(0, name);
}
@@ -554,11 +554,11 @@ void FrameStackItem::setOpen(bool open)
// **************************************************************************
// **************************************************************************
-ThreadStackItem::ThreadStackItem(FramestackWidget *parent, unsigned threadNo)
-: TQListViewItem(parent),
+ThreadStackItem::ThreadStackItem(FramestackWidget *tqparent, unsigned threadNo)
+: TQListViewItem(tqparent),
threadNo_(threadNo)
{
- setText(0, i18n("Thread %1").arg(threadNo_));
+ setText(0, i18n("Thread %1").tqarg(threadNo_));
setExpandable(true);
}
diff --git a/languages/cpp/debugger/framestackwidget.h b/languages/cpp/debugger/framestackwidget.h
index 656d2cdb..5d0b98e7 100644
--- a/languages/cpp/debugger/framestackwidget.h
+++ b/languages/cpp/debugger/framestackwidget.h
@@ -30,10 +30,10 @@ namespace GDBDebugger
class FramestackWidget;
-class ThreadStackItem : public QListViewItem
+class ThreadStackItem : public TQListViewItem
{
public:
- ThreadStackItem(FramestackWidget *parent,
+ ThreadStackItem(FramestackWidget *tqparent,
unsigned threadNo);
virtual ~ThreadStackItem();
@@ -56,13 +56,13 @@ private:
/***************************************************************************/
/***************************************************************************/
-class FrameStackItem : public QListViewItem
+class FrameStackItem : public TQListViewItem
{
public:
- FrameStackItem(FramestackWidget *parent,
+ FrameStackItem(FramestackWidget *tqparent,
unsigned frameNo,
const TQString &name);
- FrameStackItem(ThreadStackItem *parent,
+ FrameStackItem(ThreadStackItem *tqparent,
unsigned frameNo,
const TQString &name);
virtual ~FrameStackItem();
@@ -88,13 +88,14 @@ private:
/**
* @author John Birch
*/
-class FramestackWidget : public QListView
+class FramestackWidget : public TQListView
{
Q_OBJECT
+ TQ_OBJECT
public:
FramestackWidget( GDBController* controller,
- TQWidget *parent=0,
+ TQWidget *tqparent=0,
const char *name=0, WFlags f=0 );
virtual ~FramestackWidget();
@@ -150,10 +151,6 @@ public slots:
void slotEvent(GDBController::event_t e);
void slotSelectionChanged(TQListViewItem *thisItem);
-#if QT_VERSION < 300
-private:
- TQListViewItem* findItemWhichBeginsWith(const TQString& text) const;
-#endif
virtual void showEvent(TQShowEvent*);
private:
diff --git a/languages/cpp/debugger/gdbbreakpointwidget.cpp b/languages/cpp/debugger/gdbbreakpointwidget.cpp
index b092a015..38d9e7e8 100644
--- a/languages/cpp/debugger/gdbbreakpointwidget.cpp
+++ b/languages/cpp/debugger/gdbbreakpointwidget.cpp
@@ -56,7 +56,7 @@ enum Column {
Control = 0,
Enable = 1,
Type = 2,
- Status = 3,
+ tqStatus = 3,
Location = 4,
Condition = 5,
IgnoreCount = 6,
@@ -76,7 +76,7 @@ static int m_activeFlag = 0;
/***************************************************************************/
/***************************************************************************/
-class BreakpointTableRow : public QTableItem
+class BreakpointTableRow : public TQTableItem
{
public:
@@ -100,9 +100,9 @@ private:
/***************************************************************************/
/***************************************************************************/
-BreakpointTableRow::BreakpointTableRow(TQTable* parent, EditType editType,
+BreakpointTableRow::BreakpointTableRow(TQTable* tqparent, EditType editType,
Breakpoint* bp) :
- TQTableItem(parent, editType, ""),
+ TQTableItem(tqparent, editType, ""),
m_breakpoint(bp)
{
appendEmptyRow();
@@ -146,7 +146,7 @@ void BreakpointTableRow::appendEmptyRow()
ComplexEditCell* act = new ComplexEditCell(table());
table()->setItem(row, Tracing, act);
TQObject::connect(act, TQT_SIGNAL(edit(TQTableItem*)),
- table()->parent(), TQT_SLOT(editTracing(TQTableItem*)));
+ table()->tqparent(), TQT_SLOT(editTracing(TQTableItem*)));
}
/***************************************************************************/
@@ -161,7 +161,7 @@ void BreakpointTableRow::setRow()
TQString status=m_breakpoint->statusDisplay(m_activeFlag);
- table()->setText(row(), Status, status);
+ table()->setText(row(), tqStatus, status);
table()->setText(row(), Condition, m_breakpoint->conditional());
table()->setText(row(), IgnoreCount, TQString::number(m_breakpoint->ignoreCount() ));
table()->setText(row(), Hits, TQString::number(m_breakpoint->hits() ));
@@ -183,7 +183,7 @@ void BreakpointTableRow::setRow()
table()->setText(row(), Type, displayType);
table()->adjustColumn(Type);
- table()->adjustColumn(Status);
+ table()->adjustColumn(tqStatus);
table()->adjustColumn(Location);
table()->adjustColumn(Hits);
table()->adjustColumn(IgnoreCount);
@@ -196,8 +196,8 @@ void BreakpointTableRow::setRow()
/***************************************************************************/
GDBBreakpointWidget::GDBBreakpointWidget(GDBController* controller,
- TQWidget *parent, const char *name) :
-TQHBox(parent, name),
+ TQWidget *tqparent, const char *name) :
+TQHBox(tqparent, name),
controller_(controller)
{
m_table = new GDBTable(0, numCols, this, name);
@@ -208,7 +208,7 @@ controller_(controller)
m_table->hideColumn(Control);
m_table->setColumnReadOnly(Type, true);
- m_table->setColumnReadOnly(Status, true);
+ m_table->setColumnReadOnly(tqStatus, true);
m_table->setColumnReadOnly(Hits, true);
m_table->setColumnWidth( Enable, 20);
@@ -216,7 +216,7 @@ controller_(controller)
header->setLabel( Enable, "" );
header->setLabel( Type, i18n("Type") );
- header->setLabel( Status, i18n("Status") );
+ header->setLabel( tqStatus, i18n("tqStatus") );
header->setLabel( Location, i18n("Location") );
header->setLabel( Condition, i18n("Condition") );
header->setLabel( IgnoreCount, i18n("Ignore Count") );
@@ -238,12 +238,12 @@ controller_(controller)
m_ctxMenu->insertItem( i18n( "Show text" ), BW_ITEM_Show );
int edit_id =
m_ctxMenu->insertItem( i18n( "Edit" ), BW_ITEM_Edit );
- m_ctxMenu->setAccel(Qt::Key_Enter, edit_id);
+ m_ctxMenu->setAccel(TQt::Key_Enter, edit_id);
m_ctxMenu->insertItem( i18n( "Disable" ), BW_ITEM_Disable );
int del_id =
m_ctxMenu->insertItem( SmallIcon("breakpoint_delete"),
i18n( "Delete" ), BW_ITEM_Delete );
- m_ctxMenu->setAccel(Qt::Key_Delete, del_id);
+ m_ctxMenu->setAccel(TQt::Key_Delete, del_id);
m_ctxMenu->insertSeparator();
m_ctxMenu->insertItem( i18n( "Disable all"), BW_ITEM_DisableAll );
m_ctxMenu->insertItem( i18n( "Enable all"), BW_ITEM_EnableAll );
@@ -377,15 +377,15 @@ void GDBBreakpointWidget::slotWatchpointHit(int id,
"Address: 0x%2<br>"
"Old value: %3<br>"
"New value: %4")
- .arg(b->varName())
- .arg(b->address(), 0, 16)
- .arg(oldValue)
- .arg(newValue));
+ .tqarg(b->varName())
+ .tqarg(b->address(), 0, 16)
+ .tqarg(oldValue)
+ .tqarg(newValue));
}
/***************************************************************************/
-BreakpointTableRow* GDBBreakpointWidget::find(Breakpoint *breakpoint)
+BreakpointTableRow* GDBBreakpointWidget::tqfind(Breakpoint *breakpoint)
{
// NOTE:- The match doesn't have to be equal. Each type of bp
// must decide on the match criteria.
@@ -493,7 +493,7 @@ void GDBBreakpointWidget::slotToggleBreakpoint(const TQString &fileName, int lin
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
if (btr)
{
removeBreakpoint(btr);
@@ -508,7 +508,7 @@ void GDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName,
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
delete fpBP;
if (btr)
{
@@ -523,7 +523,7 @@ void GDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName,
void GDBBreakpointWidget::slotToggleWatchpoint(const TQString &varName)
{
Watchpoint *watchpoint = new Watchpoint(varName, false, true);
- BreakpointTableRow* btr = find(watchpoint);
+ BreakpointTableRow* btr = tqfind(watchpoint);
if (btr)
{
removeBreakpoint(btr);
@@ -557,7 +557,7 @@ void GDBBreakpointWidget::handleBreakpointList(const GDBMI::ResultRecord& r)
if (b.hasField("cond"))
bp->setConditional(b["cond"].literal());
else
- bp->setConditional(TQString::null);
+ bp->setConditional(TQString());
btr->setRow();
emit publishBPState(*bp);
}
@@ -917,7 +917,7 @@ void GDBBreakpointWidget::slotEditBreakpoint(const TQString &fileName, int lineN
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
delete fpBP;
if (btr)
@@ -946,7 +946,7 @@ void GDBBreakpointWidget::slotBreakpointModified(Breakpoint* b)
{
emit publishBPState(*b);
- if (BreakpointTableRow* btr = find(b))
+ if (BreakpointTableRow* btr = tqfind(b))
{
if (b->isActionDie())
{
@@ -1031,7 +1031,7 @@ void GDBBreakpointWidget::editTracing(TQTableItem* item)
// Note: change cell text here and explicitly call slotNewValue here.
// We want this signal to be emitted when we close the tracing dialog
- // and not when we select some other cell, as happens in Qt by default.
+ // and not when we select some other cell, as happens in TQt by default.
if (r == TQDialog::Accepted)
{
// The dialog has modified "btr->breakpoint()" already.
@@ -1191,7 +1191,7 @@ void GDBBreakpointWidget::focusInEvent( TQFocusEvent */* e*/ )
// Without the following 'if', when we first open the breakpoints
// widget, the background is all black. This happens only with
// m_table->setFocusStyle(TQTable::FollowStyle);
- // in constructor, so I suspect Qt bug. But anyway, without
+ // in constructor, so I suspect TQt bug. But anyway, without
// current cell keyboard actions like Enter for edit won't work,
// so keyboard focus does not makes much sense.
if (m_table->currentRow() == -1 ||
@@ -1213,28 +1213,28 @@ TQWidget* ComplexEditCell::createEditor() const
{
TQHBox* box = new TQHBox( table()->viewport() );
box->setPaletteBackgroundColor(
- table()->palette().active().highlight());
+ table()->tqpalette().active().highlight());
label_ = new TQLabel(text(), box, "label");
- label_->setBackgroundMode(Qt::PaletteHighlight);
+ label_->setBackgroundMode(TQt::PaletteHighlight);
// Sorry for hardcode, but '2' is already hardcoded in
- // Qt source, in TQTableItem::paint. Since I don't want the
+ // TQt source, in TQTableItem::paint. Since I don't want the
// text to jump 2 pixels to the right when editor is activated,
// need to set the same indent for label.
label_->setIndent(2);
TQPalette p = label_->palette();
p.setColor(TQPalette::Active, TQColorGroup::Foreground,
- table()->palette().active().highlightedText());
+ table()->tqpalette().active().highlightedText());
p.setColor(TQPalette::Inactive, TQColorGroup::Foreground,
- table()->palette().active().highlightedText());
+ table()->tqpalette().active().highlightedText());
label_->setPalette(p);
TQPushButton* b = new TQPushButton("...", box);
- // This is exactly what is done in QDesigner source in the
+ // This is exactly what is done in TQDesigner source in the
// similar context. Haven't had any success making the good look
- // with layout, I suppose that sizeHint for button is always larger
+ // with tqlayout, I suppose that tqsizeHint for button is always larger
// than 20.
b->setFixedWidth( 20 );
diff --git a/languages/cpp/debugger/gdbbreakpointwidget.h b/languages/cpp/debugger/gdbbreakpointwidget.h
index c0728dec..f67bb03e 100644
--- a/languages/cpp/debugger/gdbbreakpointwidget.h
+++ b/languages/cpp/debugger/gdbbreakpointwidget.h
@@ -41,13 +41,14 @@ class BreakpointTableRow;
class GDBTable;
class GDBController;
-class GDBBreakpointWidget : public QHBox
+class GDBBreakpointWidget : public TQHBox
{
Q_OBJECT
+ TQ_OBJECT
public:
GDBBreakpointWidget( GDBController* controller,
- TQWidget* parent=0, const char* name=0 );
+ TQWidget* tqparent=0, const char* name=0 );
virtual ~GDBBreakpointWidget();
void reset();
@@ -105,7 +106,7 @@ signals:
void tracingOutput(const char*);
private:
- BreakpointTableRow* find(Breakpoint *bp);
+ BreakpointTableRow* tqfind(Breakpoint *bp);
BreakpointTableRow* findId(int id);
BreakpointTableRow* findKey(int BPKey);
@@ -135,14 +136,15 @@ class BreakpointTableRow;
When editing is done, the receiver of 'edit' should change the
value in the table, and then call the 'updateValue' method.
*/
-class ComplexEditCell : public TQObject, public QTableItem
+class ComplexEditCell : public TQObject, public TQTableItem
{
Q_OBJECT
+ TQ_OBJECT
public:
ComplexEditCell(TQTable* table);
- /** Called by Qt when the current cell should become editable.
+ /** Called by TQt when the current cell should become editable.
In our case, when the item becomes current. Creates a widget
that will be shown in the cell and should be able to edit cell
content. In our case -- text plus "..." button that invokes
diff --git a/languages/cpp/debugger/gdbcommand.cpp b/languages/cpp/debugger/gdbcommand.cpp
index bf8d5bc4..b783b31f 100644
--- a/languages/cpp/debugger/gdbcommand.cpp
+++ b/languages/cpp/debugger/gdbcommand.cpp
@@ -99,13 +99,13 @@ ModifyBreakpointCommand::ModifyBreakpointCommand(
bp_(bp)
{}
-QString
+TQString
ModifyBreakpointCommand::cmdToSend()
{
if (bp_->dbgId() > 0)
{
TQString s(initialString());
- s = s.arg(bp_->dbgId()) + "\n";
+ s = s.tqarg(bp_->dbgId()) + "\n";
return s.local8Bit();
}
else
diff --git a/languages/cpp/debugger/gdbcommand.h b/languages/cpp/debugger/gdbcommand.h
index 946bc3aa..7000235a 100644
--- a/languages/cpp/debugger/gdbcommand.h
+++ b/languages/cpp/debugger/gdbcommand.h
@@ -91,8 +91,8 @@ public:
private:
TQString command_;
- TQGuardedPtr<TQObject> handler_this;
- typedef void (TQObject::* handler_t)(const GDBMI::ResultRecord&);
+ TQGuardedPtr<TQT_BASE_OBJECT_NAME> handler_this;
+ typedef void (TQT_BASE_OBJECT_NAME::* handler_t)(const GDBMI::ResultRecord&);
handler_t handler_method;
TQValueVector<TQString> lines;
bool run;
@@ -153,8 +153,8 @@ public: // GDBCommand overrides
bool invokeHandler(const GDBMI::ResultRecord& r);
private:
- TQGuardedPtr<TQObject> cli_handler_this;
- typedef void (TQObject::* cli_handler_t)(const TQValueVector<TQString>&);
+ TQGuardedPtr<TQT_BASE_OBJECT_NAME> cli_handler_this;
+ typedef void (TQT_BASE_OBJECT_NAME::* cli_handler_t)(const TQValueVector<TQString>&);
cli_handler_t cli_handler_method;
};
@@ -165,7 +165,7 @@ private:
class SentinelCommand : public GDBCommand
{
public:
- typedef void (TQObject::*handler_method_t)();
+ typedef void (TQT_BASE_OBJECT_NAME::*handler_method_t)();
template<class Handler>
SentinelCommand(Handler* handler_this,
@@ -186,7 +186,7 @@ public:
}
private:
- TQGuardedPtr<TQObject> handler_this;
+ TQGuardedPtr<TQT_BASE_OBJECT_NAME> handler_this;
handler_method_t handler_method;
};
@@ -207,7 +207,7 @@ private:
class ExpressionValueCommand : public TQObject, public GDBCommand
{
public:
- typedef void (TQObject::*handler_method_t)(const TQString&);
+ typedef void (TQT_BASE_OBJECT_NAME::*handler_method_t)(const TQString&);
template<class Handler>
ExpressionValueCommand(
@@ -226,7 +226,7 @@ public:
}
private:
- TQGuardedPtr<TQObject> handler_this;
+ TQGuardedPtr<TQT_BASE_OBJECT_NAME> handler_this;
handler_method_t handler_method;
};
diff --git a/languages/cpp/debugger/gdbcontroller.cpp b/languages/cpp/debugger/gdbcontroller.cpp
index 3fd912ec..93424396 100644
--- a/languages/cpp/debugger/gdbcontroller.cpp
+++ b/languages/cpp/debugger/gdbcontroller.cpp
@@ -179,7 +179,7 @@ void GDBController::configure()
config_runShellScript_ = DomUtil::readEntry(dom, "/kdevdebugger/general/runShellScript").latin1();
config_runGdbScript_ = DomUtil::readEntry(dom, "/kdevdebugger/general/runGdbScript").latin1();
-// add macros for reading QStrings? or in configGdbScript?
+// add macros for reading TQStrings? or in configGdbScript?
config_forceBPSet_ = DomUtil::readBoolEntry(dom, "/kdevdebugger/general/allowforcedbpset", true);
config_dbgTerminal_ = DomUtil::readBoolEntry(dom, "/kdevdebugger/general/separatetty", false);
config_gdbPath_ = DomUtil::readEntry(dom, "/kdevdebugger/general/gdbpath");
@@ -294,7 +294,7 @@ void GDBController::queueCmd(GDBCommand *cmd, enum queue_where queue_where)
KMessageBox::information(
0,
i18n("<b>Gdb command sent when debugger is not running</b><br>"
- "The command was:<br> %1").arg(cmd->initialString()),
+ "The command was:<br> %1").tqarg(cmd->initialString()),
i18n("Internal error"), "gdb_error");
return;
}
@@ -316,11 +316,11 @@ void GDBController::queueCmd(GDBCommand *cmd, enum queue_where queue_where)
cmdList_.insert(i, cmd);
}
- kdDebug(9012) << "QUEUE: " << cmd->initialString()
+ kdDebug(9012) << "TQUEUE: " << cmd->initialString()
<< (stateReloadInProgress_ ? " (state reloading)\n" : "\n");
setStateOn(s_dbgBusy);
- emit dbgStatus("", state_);
+ emit dbgtqStatus("", state_);
raiseEvent(debugger_busy);
executeCmd();
@@ -401,7 +401,7 @@ void GDBController::executeCmd()
setStateOn(s_waitForWrite);
TQString prettyCmd = currentCmd_->cmdToSend();
- prettyCmd.replace( TQRegExp("set prompt \032.\n"), "" );
+ prettyCmd.tqreplace( TQRegExp("set prompt \032.\n"), "" );
prettyCmd = "(gdb) " + prettyCmd;
if (currentCmd_->isUserCommand())
@@ -409,7 +409,7 @@ void GDBController::executeCmd()
else
emit gdbInternalCommandStdout( prettyCmd.latin1() );
- emit dbgStatus ("", state_);
+ emit dbgtqStatus ("", state_);
}
// **************************************************************************
@@ -500,7 +500,7 @@ void GDBController::actOnProgramPauseMI(const GDBMI::ResultRecord& r)
if (reason == "exited-signalled")
{
programNoApp(i18n("Exited on signal %1")
- .arg(r["signal-name"].literal()), false);
+ .tqarg(r["signal-name"].literal()), false);
// FIXME: figure out why this variable is needed.
programHasExited_ = true;
state_reload_needed = false;
@@ -540,7 +540,7 @@ void GDBController::actOnProgramPauseMI(const GDBMI::ResultRecord& r)
// or whatever).
setStateOff(s_explicitBreakInto);
- emit dbgStatus("Application interrupted", state_);
+ emit dbgtqStatus("Application interrupted", state_);
// Will show the source line in the code
// handling non-special stop kinds, below.
}
@@ -554,7 +554,7 @@ void GDBController::actOnProgramPauseMI(const GDBMI::ResultRecord& r)
// that'll end the program.
KMessageBox::information(0,
i18n("Program received signal %1 (%2)")
- .arg(name).arg(user_name),
+ .tqarg(name).tqarg(user_name),
i18n("Received signal"));
}
}
@@ -592,7 +592,7 @@ void GDBController::reloadProgramState()
maybeAnnounceWatchpointHit();
}
- emit dbgStatus ("", state_);
+ emit dbgtqStatus ("", state_);
// We're always at frame zero when the program stops
// and we must reset the active flag
@@ -635,7 +635,7 @@ void GDBController::programNoApp(const TQString &msg, bool msgBox)
if (tty_)
tty_->readRemaining();
- // Tty is no longer usable, delete it. Without this, QSocketNotifier
+ // Tty is no longer usable, delete it. Without this, TQSocketNotifier
// will continiously bomd STTY with signals, so we need to either disable
// TQSocketNotifier, or delete STTY. The latter is simpler, since we can't
// reuse it for future debug sessions anyway.
@@ -648,7 +648,7 @@ void GDBController::programNoApp(const TQString &msg, bool msgBox)
if (msgBox)
KMessageBox::information(0, i18n("gdb message:\n")+msg,"Warning", "gdb_error");
- emit dbgStatus (msg, state_);
+ emit dbgtqStatus (msg, state_);
/* Also show message in gdb window, so that users who
prefer to look at gdb window know what's up. */
emit gdbUserCommandStdout(msg.ascii());
@@ -716,9 +716,9 @@ void GDBController::handleMiFileListExecSourceFile(const GDBMI::ResultRecord& r)
"Command was: %1\n"
"Response is: %2\n"
"Invalid response kind: \"%3\"")
- .arg(currentCmd_->rawDbgCommand())
- .arg(buf)
- .arg(r.reason),
+ .tqarg(currentCmd_->rawDbgCommand())
+ .tqarg(buf)
+ .tqarg(r.reason),
i18n("Invalid gdb reply"), "gdb_error");
#endif
}
@@ -755,7 +755,7 @@ void GDBController::maybeAnnounceWatchpointHit()
}
else if (last_stop_reason == "read-watchpoint-trigger")
{
- emit dbgStatus ("Read watchpoint triggered", state_);
+ emit dbgtqStatus ("Read watchpoint triggered", state_);
}
}
}
@@ -846,14 +846,14 @@ bool GDBController::start(const TQString& shell, const DomUtil::PairList& run_en
i18n("<b>Could not start debugger.</b>"
"<p>Could not run '%1'. "
"Make sure that the path name is specified correctly."
- ).arg(dbgProcess_->args()[0]),
+ ).tqarg(dbgProcess_->args()[0].data()),
i18n("Could not start debugger"), "gdb_error");
return false;
}
setStateOff(s_dbgNotStarted);
- emit dbgStatus ("", state_);
+ emit dbgtqStatus ("", state_);
saw_gdb_prompt_ = false;
@@ -1043,7 +1043,7 @@ void GDBController::slotStopDebugger()
gdbOutput_ = "";
setState(s_dbgNotStarted | s_appNotStarted);
- emit dbgStatus (i18n("Debugger stopped"), state_);
+ emit dbgtqStatus (i18n("Debugger stopped"), state_);
raiseEvent(debugger_exited);
}
@@ -1159,7 +1159,7 @@ void GDBController::slotRun()
" %1\n"
"<br>does not exist. Check that you have specified "
"the right application in the debugger configuration."
- ).arg(app.fileName()),
+ ).tqarg(app.fileName()),
i18n("Application does not exist"));
// FIXME: after this, KDevelop will still show that debugger
@@ -1176,7 +1176,7 @@ void GDBController::slotRun()
"<p>The application does not have the executable bit set. "
"Try rebuilding the project, or change permissions "
"manually."
- ).arg(app.fileName()),
+ ).tqarg(app.fileName()),
i18n("Could not run application"));
slotStopDebugger();
}
@@ -1324,11 +1324,11 @@ void GDBController::selectFrame(int frameNo, int threadNo)
{
if (viewedThread_ != threadNo)
queueCmd(new GDBCommand(
- TQString("-thread-select %1").arg(threadNo).ascii()));
+ TQString("-thread-select %1").tqarg(threadNo).ascii()));
}
queueCmd(new GDBCommand(
- TQString("-stack-select-frame %1").arg(frameNo).ascii()));
+ TQString("-stack-select-frame %1").tqarg(frameNo).ascii()));
// Will emit the 'thread_or_frame_changed' event.
queueCmd(new GDBCommand("-stack-info-frame",
@@ -1349,10 +1349,10 @@ void GDBController::defaultErrorHandler(const GDBMI::ResultRecord& result)
{
TQString msg = result["msg"].literal();
- if (msg.contains("No such process"))
+ if (msg.tqcontains("No such process"))
{
setState(s_appNotStarted|s_programExited);
- emit dbgStatus (i18n("Process exited"), state_);
+ emit dbgtqStatus (i18n("Process exited"), state_);
raiseEvent(program_exited);
return;
}
@@ -1433,7 +1433,7 @@ void GDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
// Already parsing? then get out quick.
// VP, 2006-01-30. I'm not sure how this could happen, since
- // parsing of gdb reply should not ever execute Qt message loop. Except,
+ // parsing of gdb reply should not ever execute TQt message loop. Except,
// maybe, when we pop up a message box. But even in that case,
// it's likely we won't return to slotDbgStdout again.
if (parsing)
@@ -1447,7 +1447,7 @@ void GDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
int i;
bool got_any_command = false;
// For each gdb reply. In MI mode, each reply is one string.
- while((i = holdingZone_.find('\n')) != -1)
+ while((i = holdingZone_.tqfind('\n')) != -1)
{
got_any_command = true;
@@ -1590,7 +1590,7 @@ void GDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
"<p>The debugger component encountered an internal error while "
"processing a reply from gdb. Please submit a bug report."),
i18n("The exception is: %1\n"
- "The MI response is: %2").arg(e.what()).arg(reply),
+ "The MI response is: %2").tqarg(e.what()).tqarg(reply.data()),
i18n("Internal debugger error"));
destroyCurrentCommand();
@@ -1629,7 +1629,7 @@ void GDBController::commandDone()
{
kdDebug(9012) << "No more commands\n";
setStateOff(s_dbgBusy);
- emit dbgStatus("", state_);
+ emit dbgtqStatus("", state_);
raiseEvent(debugger_ready);
}
}
@@ -1650,7 +1650,7 @@ void GDBController::removeStateReloadingCommands()
GDBCommand* cmd = cmdList_.at(i);
if (stateReloadingCommands_.count(cmd))
{
- kdDebug(9012) << "UNQUEUE: " << cmd->initialString() << "\n";
+ kdDebug(9012) << "UNTQUEUE: " << cmd->initialString() << "\n";
delete cmdList_.take(i);
}
}
@@ -1688,7 +1688,7 @@ void GDBController::raiseEvent(event_t e)
void GDBController::slotDbgStderr(KProcess *proc, char *buf, int buflen)
{
// At the moment, just drop a message out and redirect
- kdDebug(9012) << "STDERR: " << TQString::fromLatin1(buf, buflen+1) << endl;
+ kdDebug(9012) << "STDERR: " << TQString::tqfromLatin1(buf, buflen+1) << endl;
slotDbgStdout(proc, buf, buflen);
}
@@ -1722,7 +1722,7 @@ void GDBController::slotDbgProcessExited(KProcess* process)
destroyCmds();
setState(s_dbgNotStarted|s_appNotStarted|s_programExited);
- emit dbgStatus (i18n("Process exited"), state_);
+ emit dbgtqStatus (i18n("Process exited"), state_);
emit gdbUserCommandStdout("(gdb) Process exited\n");
}
@@ -1743,14 +1743,14 @@ void GDBController::slotUserGDBCmd(const TQString& cmd)
// raiseEvent(program_state_changed);
}
-void GDBController::explainDebuggerStatus()
+void GDBController::explainDebuggertqStatus()
{
TQString information("%1 commands in queue\n"
"%2 commands being processed by gdb\n"
"Debugger state: %3\n");
information =
- information.arg(cmdList_.count()).arg(currentCmd_ ? 1 : 0)
- .arg(state_);
+ information.tqarg(cmdList_.count()).tqarg(currentCmd_ ? 1 : 0)
+ .tqarg(state_);
if (currentCmd_)
{
@@ -1758,8 +1758,8 @@ void GDBController::explainDebuggerStatus()
"Current command text: '%2'\n"
"Current command origianl text: '%3'\n");
- extra = extra.arg(
- typeid(*currentCmd_).name()).arg(currentCmd_->cmdToSend()).
+ extra = extra.tqarg(
+ typeid(*currentCmd_).name()).tqarg(currentCmd_->cmdToSend()).
arg(currentCmd_->initialString());
information += extra;
}
diff --git a/languages/cpp/debugger/gdbcontroller.h b/languages/cpp/debugger/gdbcontroller.h
index a8b6bd2b..8cbf3b26 100644
--- a/languages/cpp/debugger/gdbcontroller.h
+++ b/languages/cpp/debugger/gdbcontroller.h
@@ -52,6 +52,7 @@ class STTY;
class GDBController : public DbgController
{
Q_OBJECT
+ TQ_OBJECT
public:
GDBController(TQDomDocument &projectDom);
@@ -249,7 +250,7 @@ public slots:
// Pops up a dialog box with some hopefully
// detailed information about which state debugger
// is in, which commands were sent and so on.
- void explainDebuggerStatus();
+ void explainDebuggertqStatus();
protected slots:
diff --git a/languages/cpp/debugger/gdboutputwidget.cpp b/languages/cpp/debugger/gdboutputwidget.cpp
index 836886bb..7877a92c 100644
--- a/languages/cpp/debugger/gdboutputwidget.cpp
+++ b/languages/cpp/debugger/gdboutputwidget.cpp
@@ -39,8 +39,8 @@ namespace GDBDebugger
/***************************************************************************/
-GDBOutputWidget::GDBOutputWidget( TQWidget *parent, const char *name) :
- TQWidget(parent, name),
+GDBOutputWidget::GDBOutputWidget( TQWidget *tqparent, const char *name) :
+ TQWidget(tqparent, name),
m_userGDBCmdEditor(0),
m_Interrupt(0),
m_gdbView(0),
@@ -62,7 +62,7 @@ GDBOutputWidget::GDBOutputWidget( TQWidget *parent, const char *name) :
userGDBCmdEntry->setStretchFactor(m_userGDBCmdEditor, 1);
m_Interrupt = new TQToolButton( this, "add breakpoint" );
- m_Interrupt->setSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0,
+ m_Interrupt->tqsetSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0,
( TQSizePolicy::SizeType)0,
0,
0,
@@ -76,7 +76,7 @@ GDBOutputWidget::GDBOutputWidget( TQWidget *parent, const char *name) :
topLayout->addWidget(m_gdbView, 10);
topLayout->addLayout(userGDBCmdEntry);
- slotDbgStatus( "", s_dbgNotStarted);
+ slotDbgtqStatus( "", s_dbgNotStarted);
connect( m_userGDBCmdEditor, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotGDBCmd()) );
connect( m_Interrupt, TQT_SIGNAL(clicked()), TQT_SIGNAL(breakInto()));
@@ -257,7 +257,7 @@ void GDBOutputWidget::flushPending()
/***************************************************************************/
-void GDBOutputWidget::slotDbgStatus(const TQString &, int statusFlag)
+void GDBOutputWidget::slotDbgtqStatus(const TQString &, int statusFlag)
{
if (statusFlag & s_dbgNotStarted)
{
@@ -291,8 +291,8 @@ void GDBOutputWidget::focusInEvent(TQFocusEvent */*e*/)
TQString GDBOutputWidget::html_escape(const TQString& s)
{
TQString r(s);
- r.replace("<", "&lt;");
- r.replace(">", "&gt;");
+ r.tqreplace("<", "&lt;");
+ r.tqreplace(">", "&gt;");
return r;
}
@@ -327,8 +327,8 @@ TQPopupMenu* OutputText::createPopupMenu(const TQPoint&)
this,
TQT_SLOT(toggleShowInternalCommands()));
- popup->setItemChecked(id, parent_->showInternalCommands_);
- popup->setWhatsThis(
+ popup->setItemChecked(id, tqparent_->showInternalCommands_);
+ popup->tqsetWhatsThis(
id,
i18n(
"Controls if commands issued internally by KDevelop "
@@ -348,21 +348,21 @@ void OutputText::copyAll()
{
/* See comments for allCommandRaw_ for explanations of
this complex logic, as opposed to calling text(). */
- TQStringList& raw = parent_->showInternalCommands_ ?
- parent_->allCommandsRaw_ : parent_->userCommandsRaw_;
+ TQStringList& raw = tqparent_->showInternalCommands_ ?
+ tqparent_->allCommandsRaw_ : tqparent_->userCommandsRaw_;
TQString text;
for (unsigned i = 0; i < raw.size(); ++i)
text += raw[i];
// Make sure the text is pastable both with Ctrl-C and with
// middle click.
- TQApplication::clipboard()->setText(text, QClipboard::Clipboard);
- TQApplication::clipboard()->setText(text, QClipboard::Selection);
+ TQApplication::tqclipboard()->setText(text, TQClipboard::Clipboard);
+ TQApplication::tqclipboard()->setText(text, TQClipboard::Selection);
}
void OutputText::toggleShowInternalCommands()
{
- parent_->setShowInternalCommands(!parent_->showInternalCommands_);
+ tqparent_->setShowInternalCommands(!tqparent_->showInternalCommands_);
}
diff --git a/languages/cpp/debugger/gdboutputwidget.h b/languages/cpp/debugger/gdboutputwidget.h
index e0ad9c39..ace1c00d 100644
--- a/languages/cpp/debugger/gdboutputwidget.h
+++ b/languages/cpp/debugger/gdboutputwidget.h
@@ -32,12 +32,13 @@ class TQDomElement;
namespace GDBDebugger
{
-class GDBOutputWidget : public QWidget
+class GDBOutputWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- GDBOutputWidget( TQWidget *parent=0, const char *name=0 );
+ GDBOutputWidget( TQWidget *tqparent=0, const char *name=0 );
~GDBOutputWidget();
void savePartialProjectSession(TQDomElement* el);
@@ -49,7 +50,7 @@ public slots:
void slotInternalCommandStdout(const char* line);
void slotUserCommandStdout(const char* line);
void slotReceivedStderr(const char* line);
- void slotDbgStatus (const TQString &status, int statusFlag);
+ void slotDbgtqStatus (const TQString &status, int statusFlag);
void slotGDBCmd();
@@ -100,7 +101,7 @@ private:
/** For performance reasons, we don't immediately add new text
- to QTExtEdit. Instead we add it to pendingOutput_ and
+ to TQTExtEdit. Instead we add it to pendingOutput_ and
flush it on timer.
*/
TQString pendingOutput_;
@@ -113,13 +114,14 @@ private:
/** Add popup menu specific to gdb output window to TQTextEdit.
*/
-class OutputText : public QTextEdit
+class OutputText : public TQTextEdit
{
Q_OBJECT
+ TQ_OBJECT
public:
- OutputText(GDBOutputWidget* parent)
- : TQTextEdit(parent),
- parent_(parent)
+ OutputText(GDBOutputWidget* tqparent)
+ : TQTextEdit(tqparent),
+ tqparent_(tqparent)
{}
TQPopupMenu* createPopupMenu(const TQPoint& pos);
@@ -129,7 +131,7 @@ private slots:
void toggleShowInternalCommands();
private:
- GDBOutputWidget* parent_;
+ GDBOutputWidget* tqparent_;
};
}
diff --git a/languages/cpp/debugger/gdbparser.cpp b/languages/cpp/debugger/gdbparser.cpp
index 5a8588b1..d8ae62b8 100644
--- a/languages/cpp/debugger/gdbparser.cpp
+++ b/languages/cpp/debugger/gdbparser.cpp
@@ -97,7 +97,7 @@ TQString GDBParser::undecorateValue(DataType type, const TQString& s)
// - composites (arrays and structures)
// - pointers to functions. In this case type is
// enclosed in "{}". Not sure why it's so, as
- // when printing pointer, type is in parenthesis.
+ // when printing pointer, type is in tqparenthesis.
if (type == typePointer)
{
// Looks like type in braces at the beginning. Strip it.
@@ -126,7 +126,7 @@ TQString GDBParser::undecorateValue(DataType type, const TQString& s)
// We can't find the first ')', because type can contain '(' and ')'
// characters if its function pointer. So count opening and closing
- // parentheses.
+ // tqparentheses.
start = skipDelim(start, '(', ')');
}
@@ -138,7 +138,7 @@ TQString GDBParser::undecorateValue(DataType type, const TQString& s)
if (value[0] == '@')
{
// It's a reference, we need to show just the value.
- if (int i = value.find(":"))
+ if (int i = value.tqfind(":"))
{
value = value.mid(i+2);
}
@@ -149,7 +149,7 @@ TQString GDBParser::undecorateValue(DataType type, const TQString& s)
}
}
- if (value.find("Cannot access memory") == 0)
+ if (value.tqfind("Cannot access memory") == 0)
value = "(inaccessible)";
return value.stripWhiteSpace();
diff --git a/languages/cpp/debugger/gdbparser.h b/languages/cpp/debugger/gdbparser.h
index a56c082d..08e5cda7 100644
--- a/languages/cpp/debugger/gdbparser.h
+++ b/languages/cpp/debugger/gdbparser.h
@@ -35,7 +35,7 @@ public:
static void destroy();
private:
- void parseArray(TrimmableItem *parent, const char *buf);
+ void parseArray(TrimmableItem *tqparent, const char *buf);
const char *skipTokenEnd(const char *buf) const;
const char *skipTokenValue(const char *buf) const;
diff --git a/languages/cpp/debugger/gdbtable.cpp b/languages/cpp/debugger/gdbtable.cpp
index c9c1bf2f..c4b16da8 100644
--- a/languages/cpp/debugger/gdbtable.cpp
+++ b/languages/cpp/debugger/gdbtable.cpp
@@ -11,13 +11,13 @@
namespace GDBDebugger {
-GDBTable::GDBTable(TQWidget *parent, const char *name)
- : TQTable(parent, name)
+GDBTable::GDBTable(TQWidget *tqparent, const char *name)
+ : TQTable(tqparent, name)
{
}
-GDBTable::GDBTable(int nr, int nc, TQWidget * parent, const char * name)
- : TQTable(nr, nc, parent, name)
+GDBTable::GDBTable(int nr, int nc, TQWidget * tqparent, const char * name)
+ : TQTable(nr, nc, tqparent, name)
{
}
diff --git a/languages/cpp/debugger/gdbtable.h b/languages/cpp/debugger/gdbtable.h
index 78c45055..55374380 100644
--- a/languages/cpp/debugger/gdbtable.h
+++ b/languages/cpp/debugger/gdbtable.h
@@ -14,12 +14,13 @@
namespace GDBDebugger {
-class GDBTable : public QTable
+class GDBTable : public TQTable
{
Q_OBJECT
+ TQ_OBJECT
public:
- GDBTable(TQWidget *parent = 0, const char *name = 0);
- GDBTable( int numRows, int numCols, TQWidget * parent = 0, const char * name = 0 );
+ GDBTable(TQWidget *tqparent = 0, const char *name = 0);
+ GDBTable( int numRows, int numCols, TQWidget * tqparent = 0, const char * name = 0 );
~GDBTable();
virtual void keyPressEvent ( TQKeyEvent * e );
diff --git a/languages/cpp/debugger/label_with_double_click.cpp b/languages/cpp/debugger/label_with_double_click.cpp
index f08c7358..deaab3cc 100644
--- a/languages/cpp/debugger/label_with_double_click.cpp
+++ b/languages/cpp/debugger/label_with_double_click.cpp
@@ -1,8 +1,8 @@
#include "label_with_double_click.h"
-LabelWithDoubleClick::LabelWithDoubleClick(const TQString& s, TQWidget* parent)
-: TQLabel(s, parent)
+LabelWithDoubleClick::LabelWithDoubleClick(const TQString& s, TQWidget* tqparent)
+: TQLabel(s, tqparent)
{}
void LabelWithDoubleClick::mouseDoubleClickEvent(TQMouseEvent*)
diff --git a/languages/cpp/debugger/label_with_double_click.h b/languages/cpp/debugger/label_with_double_click.h
index 35ade271..616ad903 100644
--- a/languages/cpp/debugger/label_with_double_click.h
+++ b/languages/cpp/debugger/label_with_double_click.h
@@ -4,11 +4,12 @@
#include <tqlabel.h>
-class LabelWithDoubleClick : public QLabel
+class LabelWithDoubleClick : public TQLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
- LabelWithDoubleClick(const TQString& s, TQWidget* parent);
+ LabelWithDoubleClick(const TQString& s, TQWidget* tqparent);
signals:
void doubleClicked();
diff --git a/languages/cpp/debugger/memviewdlg.cpp b/languages/cpp/debugger/memviewdlg.cpp
index 6d700233..44a95b1a 100644
--- a/languages/cpp/debugger/memviewdlg.cpp
+++ b/languages/cpp/debugger/memviewdlg.cpp
@@ -71,7 +71,7 @@ namespace GDBDebugger
it's not a standalone dialog. However, we want to have easy way
to hide/show all controls, so we group them in this class.
*/
- class MemoryRangeSelector : public QWidget
+ class MemoryRangeSelector : public TQWidget
{
public:
KLineEdit* startAddressLineEdit;
@@ -79,12 +79,12 @@ namespace GDBDebugger
TQPushButton* okButton;
TQPushButton* cancelButton;
- MemoryRangeSelector(TQWidget* parent)
- : TQWidget(parent)
+ MemoryRangeSelector(TQWidget* tqparent)
+ : TQWidget(tqparent)
{
TQVBoxLayout* l = new TQVBoxLayout(this);
- // Grid layout: labels + address field
+ // Grid tqlayout: labels + address field
TQGridLayout* gl = new TQGridLayout(l);
gl->setColSpacing(0, 2);
@@ -127,8 +127,8 @@ namespace GDBDebugger
MemoryView::MemoryView(GDBController* controller,
- TQWidget* parent, const char* name)
- : TQWidget(parent, name),
+ TQWidget* tqparent, const char* name)
+ : TQWidget(tqparent, name),
controller_(controller),
// New memory view can be created only when debugger is active,
// so don't set s_appNotStarted here.
@@ -263,8 +263,8 @@ namespace GDBDebugger
new
GDBCommand(
TQString("-data-read-memory %1 x 1 1 %2")
- .arg(rangeSelector_->startAddressLineEdit->text())
- .arg(size).ascii(),
+ .tqarg(rangeSelector_->startAddressLineEdit->text())
+ .tqarg(size).ascii(),
this,
&MemoryView::memoryRead));
}
@@ -280,7 +280,7 @@ namespace GDBDebugger
start_ = startAsString_.toUInt(0, 0);
setCaption(TQString("%1 (%2 bytes)")
- .arg(startAsString_).arg(amount_));
+ .tqarg(startAsString_).tqarg(amount_));
emit captionChanged(caption());
KHE::BytesEditInterface* bytesEditor
@@ -328,9 +328,9 @@ namespace GDBDebugger
controller_->addCommand(
new GDBCommand(
TQString("set *(char*)(%1 + %2) = %3")
- .arg(start_)
- .arg(i)
- .arg(TQString::number(data_[i]))));
+ .tqarg(start_)
+ .tqarg(i)
+ .tqarg(TQString::number(data_[i]))));
}
}
@@ -374,7 +374,7 @@ namespace GDBDebugger
new
GDBCommand(
TQString("-data-read-memory %1 x 1 1 %2")
- .arg(start_).arg(amount_).ascii(),
+ .tqarg(start_).tqarg(amount_).ascii(),
this,
&MemoryView::memoryRead));
}
@@ -403,9 +403,9 @@ namespace GDBDebugger
ViewerWidget::ViewerWidget(GDBController* controller,
- TQWidget* parent,
+ TQWidget* tqparent,
const char* name)
- : TQWidget(parent, name),
+ : TQWidget(tqparent, name),
controller_(controller)
{
setIcon(SmallIcon("math_brace"));
@@ -457,7 +457,7 @@ namespace GDBDebugger
TQWidget* ncs = const_cast<TQWidget*>(s);
TQString cap = caption;
// Prevent intepreting '&' as accelerator specifier.
- cap.replace("&", "&&");
+ cap.tqreplace("&", "&&");
toolBox_->setItemLabel(toolBox_->indexOf(ncs), cap);
}
@@ -466,7 +466,7 @@ namespace GDBDebugger
TQValueVector<MemoryView*>::iterator i, e;
for(i = memoryViews_.begin(), e = memoryViews_.end(); i != e; ++i)
{
- if (*i == child)
+ if (TQT_BASE_OBJECT(*i) == TQT_BASE_OBJECT(child))
{
memoryViews_.erase(i);
break;
diff --git a/languages/cpp/debugger/memviewdlg.h b/languages/cpp/debugger/memviewdlg.h
index 4febe14a..991efbb3 100644
--- a/languages/cpp/debugger/memviewdlg.h
+++ b/languages/cpp/debugger/memviewdlg.h
@@ -31,12 +31,13 @@ namespace GDBDebugger
class MemoryView;
class GDBController;
- class ViewerWidget : public QWidget
+ class ViewerWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
ViewerWidget(GDBController* controller,
- TQWidget* parent, const char* name);
+ TQWidget* tqparent, const char* name);
public slots:
/** Adds a new memory view to *this, initially showing
@@ -61,12 +62,13 @@ namespace GDBDebugger
TQValueVector<MemoryView*> memoryViews_;
};
- class MemoryView : public QWidget
+ class MemoryView : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
MemoryView(GDBController* controller,
- TQWidget* parent, const char* name = 0);
+ TQWidget* tqparent, const char* name = 0);
void debuggerStateChanged(int state);
diff --git a/languages/cpp/debugger/mi/gdbmi.h b/languages/cpp/debugger/mi/gdbmi.h
index 64252ee5..03985958 100644
--- a/languages/cpp/debugger/mi/gdbmi.h
+++ b/languages/cpp/debugger/mi/gdbmi.h
@@ -189,7 +189,7 @@ namespace GDBMI
struct Record
{
virtual ~Record() {}
- virtual TQString toString() const { Q_ASSERT( 0 ); return TQString::null; }
+ virtual TQString toString() const { Q_ASSERT( 0 ); return TQString(); }
enum { Prompt, Stream, Result } kind;
};
diff --git a/languages/cpp/debugger/mi/milexer.cpp b/languages/cpp/debugger/mi/milexer.cpp
index 7813d091..74b8eda9 100644
--- a/languages/cpp/debugger/mi/milexer.cpp
+++ b/languages/cpp/debugger/mi/milexer.cpp
@@ -275,7 +275,7 @@ void TokenStream::positionAt(int position, int *line, int *column) const
len = half;
}
- *line = QMAX(first - 1, 0);
+ *line = TQMAX(first - 1, 0);
*column = position - m_lines.at(*line);
Q_ASSERT( *column >= 0 );
diff --git a/languages/cpp/debugger/stty.cpp b/languages/cpp/debugger/stty.cpp
index ac3cd4e1..27bde0aa 100644
--- a/languages/cpp/debugger/stty.cpp
+++ b/languages/cpp/debugger/stty.cpp
@@ -105,7 +105,7 @@ static int chownpty(int fd, int grant)
// { // signal from other child, behave like catchChild.
// // guess this gives quite some control chaos...
- // Shell* sh = shells.find(rc);
+ // Shell* sh = shells.tqfind(rc);
// if (sh) { shells.remove(rc); sh->doneShell(w); }
// goto retry;
// }
@@ -263,7 +263,7 @@ void STTY::OutReceived(int f)
if (n == 0 /* eof */
|| (n == -1 && errno != EAGAIN))
{
- // Found eof or error. Disable socket notifier, otherwise Qt
+ // Found eof or error. Disable socket notifier, otherwise TQt
// will repeatedly call this method, eating CPU
// cycles.
out->setEnabled(false);
@@ -321,7 +321,7 @@ bool STTY::findExternalTTY(const TQString &termApp)
const char* prog = appName.latin1();
TQString script = TQString("tty>") + TQString(fifo) +
TQString(";" // fifo name
- "trap \"\" INT QUIT TSTP;" // ignore various signals
+ "trap \"\" INT TQUIT TSTP;" // ignore various signals
"exec<&-;exec>&-;" // close stdin and stdout
"while :;do sleep 3600;done");
const char* scriptStr = script.latin1();
@@ -346,11 +346,11 @@ bool STTY::findExternalTTY(const TQString &termApp)
::exit(1);
}
- // parent process
+ // tqparent process
if (pid <= 0)
::exit(1);
- // Open the communication between us (the parent) and the
+ // Open the communication between us (the tqparent) and the
// child (the process running on a tty console)
fifo_fd = ::open(fifo, O_RDONLY);
if (fifo_fd < 0)
diff --git a/languages/cpp/debugger/stty.h b/languages/cpp/debugger/stty.h
index 9cacf50f..5fd45cc6 100644
--- a/languages/cpp/debugger/stty.h
+++ b/languages/cpp/debugger/stty.h
@@ -33,9 +33,10 @@ class TQSocketNotifier;
namespace GDBDebugger
{
-class STTY : public QObject
+class STTY : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
STTY(bool ext=false, const TQString &termAppName=TQString());
diff --git a/languages/cpp/debugger/tests/print_pointers/print_pointers.kdevelop b/languages/cpp/debugger/tests/print_pointers/print_pointers.kdevelop
index 03faba9a..af025ba1 100644
--- a/languages/cpp/debugger/tests/print_pointers/print_pointers.kdevelop
+++ b/languages/cpp/debugger/tests/print_pointers/print_pointers.kdevelop
@@ -9,7 +9,7 @@
<ignoreparts>
<part>kdevsecurity</part>
<part>kdevkonsoleview</part>
- <part>kdevreplace</part>
+ <part>kdevtqreplace</part>
<part>kdevctags2</part>
<part>kdevvalgrind</part>
</ignoreparts>
diff --git a/languages/cpp/debugger/variablewidget.cpp b/languages/cpp/debugger/variablewidget.cpp
index 163c2024..c5293c8c 100644
--- a/languages/cpp/debugger/variablewidget.cpp
+++ b/languages/cpp/debugger/variablewidget.cpp
@@ -47,14 +47,14 @@
/** The variables widget is passive, and is invoked by the rest of the
code via two main slots:
- - slotDbgStatus
+ - slotDbgtqStatus
- slotCurrentFrame
The first is received the program status changes and the second is
recieved after current frame in the debugger can possibly changes.
The widget has a list item for each frame/thread combination, with
- variables as children. However, at each moment only one item is shown.
+ variables as tqchildren. However, at each moment only one item is shown.
When handling the slotCurrentFrame, we check if variables for the
current frame are available. If yes, we simply show the corresponding item.
Otherwise, we fetch the new data from debugger.
@@ -77,8 +77,8 @@ namespace GDBDebugger
VariableWidget::VariableWidget(GDBController* controller,
GDBBreakpointWidget* breakpointWidget,
- TQWidget *parent, const char *name)
-: TQWidget(parent, name)
+ TQWidget *tqparent, const char *name)
+: TQWidget(tqparent, name)
{
setIcon(SmallIcon("math_brace"));
setCaption(i18n("Variable Tree"));
@@ -197,11 +197,11 @@ void VariableWidget::focusInEvent(TQFocusEvent */*e*/)
// **************************************************************************
// **************************************************************************
-VariableTree::VariableTree(VariableWidget *parent,
+VariableTree::VariableTree(VariableWidget *tqparent,
GDBController* controller,
GDBBreakpointWidget* breakpointWidget,
const char *name)
- : KListView(parent, name),
+ : KListView(tqparent, name),
TQToolTip( viewport() ),
controller_(controller),
breakpointWidget_(breakpointWidget),
@@ -244,7 +244,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
setSelected(item, true); // Need to select this item.
- if (item->parent())
+ if (item->tqparent())
{
KPopupMenu popup(this);
KPopupMenu format(this);
@@ -271,19 +271,19 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
format.setCheckable(true);
idNatural = format.insertItem(i18n("Natural"),
(int)VarItem::natural);
- format.setAccel(Qt::Key_N, idNatural);
+ format.setAccel(TQt::Key_N, idNatural);
idHex = format.insertItem(i18n("Hexadecimal"),
(int)VarItem::hexadecimal);
- format.setAccel(Qt::Key_X, idHex);
+ format.setAccel(TQt::Key_X, idHex);
idDecimal = format.insertItem(i18n("Decimal"),
(int)VarItem::decimal);
- format.setAccel(Qt::Key_D, idDecimal);
+ format.setAccel(TQt::Key_D, idDecimal);
idCharacter = format.insertItem(i18n("Character"),
(int)VarItem::character);
- format.setAccel(Qt::Key_C, idCharacter);
+ format.setAccel(TQt::Key_C, idCharacter);
idBinary = format.insertItem(i18n("Binary"),
(int)VarItem::binary);
- format.setAccel(Qt::Key_T, idBinary);
+ format.setAccel(TQt::Key_T, idBinary);
format.setItemChecked((int)(var->format()), true);
@@ -305,7 +305,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
if (dynamic_cast<WatchRoot*>(root)) {
idRemove = popup.insertItem(
SmallIcon("editdelete"), i18n("Remove Watch Variable") );
- popup.setAccel(Qt::Key_Delete, idRemove);
+ popup.setAccel(TQt::Key_Delete, idRemove);
} else if (root != recentExpressions_) {
idWatch = popup.insertItem(
i18n("Watch Variable"));
@@ -317,7 +317,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
MAYBE_DISABLE(idReevaluate);
idRemove = popup.insertItem(
SmallIcon("editdelete"), i18n("Remove Expression") );
- popup.setAccel(Qt::Key_Delete, idRemove);
+ popup.setAccel(TQt::Key_Delete, idRemove);
}
if (var)
@@ -328,7 +328,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
int idCopyToClipboard = popup.insertItem(
SmallIcon("editcopy"), i18n("Copy Value") );
- popup.setAccel(Qt::CTRL + Qt::Key_C, idCopyToClipboard);
+ popup.setAccel(TQt::CTRL + TQt::Key_C, idCopyToClipboard);
activePopup_ = &popup;
/* This code can be executed when debugger is stopped,
@@ -338,7 +338,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
controller_->addCommand(
new GDBCommand(
TQString("-data-evaluate-expression &%1")
- .arg(var->gdbExpression()),
+ .tqarg(var->gdbExpression()),
this,
&VariableTree::handleAddressComputed,
true /*handles error*/));
@@ -360,7 +360,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
{
if (VarItem *item = dynamic_cast<VarItem*>(currentItem()))
{
- ((VariableWidget*)parent())->
+ ((VariableWidget*)tqparent())->
slotEvaluateExpression(item->gdbExpression());
}
}
@@ -368,7 +368,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
{
if (VarItem *item = dynamic_cast<VarItem*>(currentItem()))
{
- ((VariableWidget*)parent())->
+ ((VariableWidget*)tqparent())->
slotAddWatchVariable(item->gdbExpression());
}
}
@@ -505,8 +505,8 @@ void VariableTree::updateCurrentFrame()
controller_->addCommand(
new GDBCommand(TQString("-stack-list-arguments 0 %1 %2")
- .arg(controller_->currentFrame())
- .arg(controller_->currentFrame())
+ .tqarg(controller_->currentFrame())
+ .tqarg(controller_->currentFrame())
.ascii(),
this,
&VariableTree::argumentsReady));
@@ -547,8 +547,8 @@ void VariableTree::slotEvaluateExpression(const TQString &expression)
TQListViewItem *VariableTree::findRoot(TQListViewItem *item) const
{
- while (item->parent())
- item = item->parent();
+ while (item->tqparent())
+ item = item->tqparent();
return item;
}
@@ -607,7 +607,7 @@ void VariableTree::maybeTip(const TQPoint &p)
VarItem * item = dynamic_cast<VarItem*>( itemAt( p ) );
if ( item )
{
- TQRect r = itemRect( item );
+ TQRect r = tqitemRect( item );
if ( r.isValid() )
tip( r, item->tipText() );
}
@@ -711,7 +711,7 @@ void VariableTree::frameIdReady(const TQValueVector<TQString>& lines)
frame_info += lines[i];
kdDebug(9012) << "frame info: " << frame_info << "\n";
- frame_info.replace('\n', "");
+ frame_info.tqreplace('\n', "");
static TQRegExp frame_base_rx("frame at 0x([0-9a-fA-F]*)");
static TQRegExp frame_code_rx("saved [a-zA-Z0-9]* 0x([0-9a-fA-F]*)");
@@ -882,8 +882,8 @@ void VarItem::handleCliPrint(const TQValueVector<TQString>& lines)
{
controller_->addCommand(
new GDBCommand(TQString("-var-create %1 * \"%2\"")
- .arg(varobjName_)
- .arg(r.cap(1)),
+ .tqarg(varobjName_)
+ .tqarg(r.cap(1)),
this,
&VarItem::varobjCreated,
// On initial create, errors get reported
@@ -968,7 +968,7 @@ void VariableTree::keyPressEvent(TQKeyEvent* e)
item->formatFromGdbModifier(text[0].latin1()));
}
- if (e->key() == Qt::Key_Delete)
+ if (e->key() == TQt::Key_Delete)
{
TQListViewItem* root = findRoot(item);
@@ -978,7 +978,7 @@ void VariableTree::keyPressEvent(TQKeyEvent* e)
}
}
- if (e->key() == Qt::Key_C && e->state() == Qt::ControlButton)
+ if (e->key() == TQt::Key_C && e->state() == TQt::ControlButton)
{
copyToClipboard(item);
}
@@ -988,10 +988,10 @@ void VariableTree::keyPressEvent(TQKeyEvent* e)
void VariableTree::copyToClipboard(TQListViewItem* item)
{
- QClipboard *qb = KApplication::clipboard();
+ TQClipboard *qb = KApplication::tqclipboard();
TQString text = item->text( 1 );
- qb->setText( text, QClipboard::Clipboard );
+ qb->setText( text, TQClipboard::Clipboard );
}
void VariableTree::handleAddressComputed(const GDBMI::ResultRecord& r)
@@ -1018,15 +1018,15 @@ void VariableTree::handleAddressComputed(const GDBMI::ResultRecord& r)
// **************************************************************************
// **************************************************************************
-TrimmableItem::TrimmableItem(VariableTree *parent)
- : KListViewItem (parent, parent->lastChild())
+TrimmableItem::TrimmableItem(VariableTree *tqparent)
+ : KListViewItem (tqparent, tqparent->lastChild())
{
}
// **************************************************************************
-TrimmableItem::TrimmableItem(TrimmableItem *parent)
- : KListViewItem (parent, parent->lastChild())
+TrimmableItem::TrimmableItem(TrimmableItem *tqparent)
+ : KListViewItem (tqparent, tqparent->lastChild())
{
}
@@ -1044,7 +1044,7 @@ void TrimmableItem::paintCell(TQPainter *p, const TQColorGroup &cg,
if ( !p )
return;
// make toplevel item (watch and frame items) names bold
- if (column == 0 && !parent())
+ if (column == 0 && !tqparent())
{
TQFont f = p->font();
f.setBold(true);
@@ -1069,16 +1069,16 @@ TQListViewItem *TrimmableItem::lastChild() const
int VarItem::varobjIndex = 0;
-VarItem::VarItem(TrimmableItem *parent,
+VarItem::VarItem(TrimmableItem *tqparent,
const TQString& expression,
bool frozen)
- : TrimmableItem (parent),
+ : TrimmableItem (tqparent),
expression_(expression),
highlight_(false),
oldSpecialRepresentationSet_(false),
format_(natural),
numChildren_(0),
- childrenFetched_(false),
+ tqchildrenFetched_(false),
updateUnconditionally_(false),
frozen_(frozen),
initialCreation_(true),
@@ -1116,14 +1116,14 @@ VarItem::VarItem(TrimmableItem *parent,
createVarobj();
}
-VarItem::VarItem(TrimmableItem *parent, const GDBMI::Value& varobj,
+VarItem::VarItem(TrimmableItem *tqparent, const GDBMI::Value& varobj,
format_t format, bool baseClassMember)
-: TrimmableItem (parent),
+: TrimmableItem (tqparent),
highlight_(false),
oldSpecialRepresentationSet_(false),
format_(format),
numChildren_(0),
- childrenFetched_(false),
+ tqchildrenFetched_(false),
updateUnconditionally_(false),
frozen_(false),
initialCreation_(false),
@@ -1146,7 +1146,7 @@ VarItem::VarItem(TrimmableItem *parent, const GDBMI::Value& varobj,
controller_ = varTree()->controller();
- // Set type and children.
+ // Set type and tqchildren.
originalValueType_ = varobj["type"].literal();
numChildren_ = varobj["numchild"].literal().toInt();
setExpandable(numChildren_ != 0);
@@ -1159,7 +1159,7 @@ VarItem::VarItem(TrimmableItem *parent, const GDBMI::Value& varobj,
void VarItem::createVarobj()
{
TQString old = varobjName_;
- varobjName_ = TQString("KDEV%1").arg(varobjIndex++);
+ varobjName_ = TQString("KDEV%1").tqarg(varobjIndex++);
emit varobjNameChange(old, varobjName_);
if (frozen_)
@@ -1169,7 +1169,7 @@ void VarItem::createVarobj()
// variable and we create variable object from that.
controller_->addCommand(
new CliCommand(
- TQString("print %1").arg(expression_),
+ TQString("print %1").tqarg(expression_),
this,
&VarItem::handleCliPrint));
}
@@ -1177,7 +1177,7 @@ void VarItem::createVarobj()
{
controller_->addCommand(
new CliCommand(
- TQString("print /x &%1").arg(expression_),
+ TQString("print /x &%1").tqarg(expression_),
this,
&VarItem::handleCurrentAddress,
true));
@@ -1186,8 +1186,8 @@ void VarItem::createVarobj()
// Need to quote expression, otherwise gdb won't like
// spaces inside it.
new GDBCommand(TQString("-var-create %1 * \"%2\"")
- .arg(varobjName_)
- .arg(expression_),
+ .tqarg(varobjName_)
+ .tqarg(expression_),
this,
&VarItem::varobjCreated,
initialCreation_ ? false : true));
@@ -1209,7 +1209,7 @@ void VarItem::varobjCreated(const GDBMI::ResultRecord& r)
originalValueType_ = r["type"].literal();
if (!oldType.isEmpty() && oldType != originalValueType_)
{
- // Type changed, the children might be no longer valid,
+ // Type changed, the tqchildren might be no longer valid,
// so delete them.
for(TQListViewItem* child = firstChild(); child; )
{
@@ -1239,7 +1239,7 @@ void VarItem::setVarobjName(const TQString& name)
{
controller_->addCommand(
new GDBCommand(TQString("-var-set-format \"%1\" %2")
- .arg(varobjName_).arg(varobjFormatName())));
+ .tqarg(varobjName_).tqarg(varobjFormatName())));
}
// Get the initial value.
@@ -1247,7 +1247,7 @@ void VarItem::setVarobjName(const TQString& name)
if (isOpen())
{
- // This regets children list.
+ // This regets tqchildren list.
setOpen(true);
}
}
@@ -1333,18 +1333,18 @@ void VarItem::valueDone(const GDBMI::ResultRecord& r)
}
void VarItem::createChildren(const GDBMI::ResultRecord& r,
- bool children_of_fake)
+ bool tqchildren_of_fake)
{
- const GDBMI::Value& children = r["children"];
+ const GDBMI::Value& tqchildren = r["tqchildren"];
/* In order to figure out which variable objects correspond
to base class subobject, we first must detect if *this
is a structure type. We use present of 'public'/'private'/'protected'
fake child as an indicator. */
bool structureType = false;
- if (!children_of_fake && children.size() > 0)
+ if (!tqchildren_of_fake && tqchildren.size() > 0)
{
- TQString exp = children[0]["exp"].literal();
+ TQString exp = tqchildren[0]["exp"].literal();
bool ok = false;
exp.toInt(&ok);
if (!ok || exp[0] != '*')
@@ -1353,23 +1353,23 @@ void VarItem::createChildren(const GDBMI::ResultRecord& r,
}
}
- for (unsigned i = 0; i < children.size(); ++i)
+ for (unsigned i = 0; i < tqchildren.size(); ++i)
{
- TQString exp = children[i]["exp"].literal();
+ TQString exp = tqchildren[i]["exp"].literal();
// For artificial accessibility nodes,
- // fetch their children.
+ // fetch their tqchildren.
if (exp == "public" || exp == "protected" || exp == "private")
{
- TQString name = children[i]["name"].literal();
+ TQString name = tqchildren[i]["name"].literal();
controller_->addCommand(new GDBCommand(
- "-var-list-children \"" +
+ "-var-list-tqchildren \"" +
name + "\"",
this,
- &VarItem::childrenOfFakesDone));
+ &VarItem::tqchildrenOfFakesDone));
}
else
{
- /* All children of structures that are not artifical
+ /* All tqchildren of structures that are not artifical
are base subobjects. */
bool baseObject = structureType;
@@ -1388,28 +1388,28 @@ void VarItem::createChildren(const GDBMI::ResultRecord& r,
}
if (existing)
{
- existing->setVarobjName(children[i]["name"].literal());
+ existing->setVarobjName(tqchildren[i]["name"].literal());
}
else
{
kdDebug(9012) << "Creating new varobj "
<< exp << " " << baseObject << "\n";
- // Propagate format from parent.
+ // Propagate format from tqparent.
VarItem* v = 0;
- v = new VarItem(this, children[i], format_, baseObject);
+ v = new VarItem(this, tqchildren[i], format_, baseObject);
}
}
}
}
-void VarItem::childrenDone(const GDBMI::ResultRecord& r)
+void VarItem::tqchildrenDone(const GDBMI::ResultRecord& r)
{
createChildren(r, false);
- childrenFetched_ = true;
+ tqchildrenFetched_ = true;
}
-void VarItem::childrenOfFakesDone(const GDBMI::ResultRecord& r)
+void VarItem::tqchildrenOfFakesDone(const GDBMI::ResultRecord& r)
{
createChildren(r, true);
}
@@ -1469,10 +1469,10 @@ TQString VarItem::displayName() const
if (expression_[0] != '*')
return expression_;
- if (const VarItem* parent =
- dynamic_cast<const VarItem*>(TrimmableItem::parent()))
+ if (const VarItem* tqparent =
+ dynamic_cast<const VarItem*>(TrimmableItem::tqparent()))
{
- return "*" + parent->displayName();
+ return "*" + tqparent->displayName();
}
else
{
@@ -1504,24 +1504,24 @@ TQString VarItem::gdbExpression() const
// - number, for array element
// - identifier, for member,
// - ***intentifier, for derefenreced pointer.
- const VarItem* parent = dynamic_cast<const VarItem*>(TrimmableItem::parent());
+ const VarItem* tqparent = dynamic_cast<const VarItem*>(TrimmableItem::tqparent());
bool ok = false;
expression_.toInt(&ok);
if (ok)
{
- // Array, parent always exists.
- return parent->gdbExpression() + "[" + expression_ + "]";
+ // Array, tqparent always exists.
+ return tqparent->gdbExpression() + "[" + expression_ + "]";
}
else if (expression_[0] == '*')
{
- if (parent)
+ if (tqparent)
{
// For MI, expression_ can be "*0" (meaing
// references 0-th element of some array).
- // So, we really need to get to the parent to computed the right
+ // So, we really need to get to the tqparent to computed the right
// gdb expression.
- return "*" + parent->gdbExpression();
+ return "*" + tqparent->gdbExpression();
}
else
{
@@ -1532,14 +1532,14 @@ TQString VarItem::gdbExpression() const
}
else
{
- if (parent)
+ if (tqparent)
/* This is varitem corresponds to a base suboject,
- the expression should cast parent to the base's
+ the expression should cast tqparent to the base's
type. */
if (baseClassMember_)
- return "((" + expression_ + ")" + parent->gdbExpression() + ")";
+ return "((" + expression_ + ")" + tqparent->gdbExpression() + ")";
else
- return parent->gdbExpression() + "." + expression_;
+ return tqparent->gdbExpression() + "." + expression_;
else
return expression_;
}
@@ -1603,8 +1603,8 @@ void VarItem::updateValue()
void VarItem::setValue(const TQString& new_value)
{
controller_->addCommand(
- new GDBCommand(TQString("-var-assign \"%1\" %2").arg(varobjName_)
- .arg(new_value)));
+ new GDBCommand(TQString("-var-assign \"%1\" %2").tqarg(varobjName_)
+ .tqarg(new_value)));
// And immediately reload it from gdb,
// so that it's display format is the one gdb uses,
@@ -1619,12 +1619,12 @@ void VarItem::updateSpecialRepresentation(const TQString& xs)
TQString s(xs);
if (s[0] == '$')
{
- int i = s.find('=');
+ int i = s.tqfind('=');
if (i != -1)
s = s.mid(i+2);
}
- // A hack to nicely display QStrings. The content of TQString is unicode
+ // A hack to nicely display TQStrings. The content of TQString is tqunicode
// for for ASCII only strings we get ascii character mixed with \000.
// Remove those \000 now.
@@ -1638,7 +1638,7 @@ void VarItem::updateSpecialRepresentation(const TQString& xs)
// one TQChar from two characters from gdb. But to do that, we *should*
// now if the data if generic gdb value, and result of request for string
// data. Fixing is is for later.
- s.replace( TQRegExp("\\\\000|\\\\0"), "" );
+ s.tqreplace( TQRegExp("\\\\000|\\\\0"), "" );
// FIXME: for now, assume that all special representations are
// just strings.
@@ -1661,14 +1661,14 @@ void VarItem::recreateLocallyMaybe()
{
controller_->addCommand(
new CliCommand(
- TQString("print /x &%1").arg(expression_),
+ TQString("print /x &%1").tqarg(expression_),
this,
&VarItem::handleCurrentAddress,
true));
controller_->addCommand(
new CliCommand(
- TQString("whatis %1").arg(expression_),
+ TQString("whatis %1").tqarg(expression_),
this,
&VarItem::handleType));
}
@@ -1688,12 +1688,12 @@ void VarItem::setOpen(bool open)
{
TQListViewItem::setOpen(open);
- if (open && !childrenFetched_)
+ if (open && !tqchildrenFetched_)
{
controller_->addCommand(new GDBCommand(
- "-var-list-children \"" + varobjName_ + "\"",
+ "-var-list-tqchildren \"" + varobjName_ + "\"",
this,
- &VarItem::childrenDone));
+ &VarItem::tqchildrenDone));
}
}
@@ -1703,7 +1703,7 @@ bool VarItem::handleSpecialTypes()
if (originalValueType_.isEmpty())
return false;
- static TQRegExp qstring("^(const)?[ ]*QString[ ]*&?$");
+ static TQRegExp qstring("^(const)?[ ]*TQString[ ]*&?$");
if (qstring.exactMatch(originalValueType_)) {
@@ -1712,7 +1712,7 @@ bool VarItem::handleSpecialTypes()
return false;
varTree->controller()->addCommand(
new ResultlessCommand(TQString("print $kdev_d=%1.d")
- .arg(gdbExpression()),
+ .tqarg(gdbExpression()),
true /* ignore error */));
if (varTree->controller()->qtVersion() >= 4)
@@ -1736,7 +1736,7 @@ bool VarItem::handleSpecialTypes()
else
varTree->controller()->addCommand(
new ValueSpecialRepresentationCommand(
- this, "print ($kdev_s>0) ? (*((char*)&$kdev_d.unicode[0])@$kdev_s) : \"\""));
+ this, "print ($kdev_s>0) ? (*((char*)&$kdev_d.tqunicode[0])@$kdev_s) : \"\""));
return true;
}
@@ -1760,7 +1760,7 @@ void VarItem::setFormat(format_t f)
if (numChildren_)
{
- // If variable has children, change format for children.
+ // If variable has tqchildren, change format for tqchildren.
// - for structures, that's clearly right
// - for arrays, that's clearly right
// - for pointers, this can be confusing, but nobody ever wants to
@@ -1775,7 +1775,7 @@ void VarItem::setFormat(format_t f)
{
controller_->addCommand(
new GDBCommand(TQString("-var-set-format \"%1\" %2")
- .arg(varobjName_).arg(varobjFormatName())));
+ .tqarg(varobjName_).tqarg(varobjFormatName())));
updateValue();
}
@@ -1853,7 +1853,7 @@ void VarItem::paintCell(TQPainter *p, const TQColorGroup &cg,
if (!alive_)
{
/* Draw this as disabled. */
- TQListViewItem::paintCell(p, varTree()->TQWidget::palette().disabled(),
+ TQListViewItem::paintCell(p, varTree()->TQWidget::tqpalette().disabled(),
column, width, align);
}
else
@@ -1876,8 +1876,8 @@ VariableTree* VarItem::varTree() const
void VarItem::unhookFromGdb()
{
- // Unhook children first, so that child varitems are deleted
- // before parent. Strictly speaking, we can avoid calling
+ // Unhook tqchildren first, so that child varitems are deleted
+ // before tqparent. Strictly speaking, we can avoid calling
// -var-delete on child varitems, but that's a bit cheesy,
for(TQListViewItem* child = firstChild();
child; child = child->nextSibling())
@@ -1886,7 +1886,7 @@ void VarItem::unhookFromGdb()
}
alive_ = false;
- childrenFetched_ = false;
+ tqchildrenFetched_ = false;
emit varobjNameChange(varobjName_, "");
@@ -1894,7 +1894,7 @@ void VarItem::unhookFromGdb()
{
controller_->addCommand(
new GDBCommand(
- TQString("-var-delete \"%1\"").arg(varobjName_)));
+ TQString("-var-delete \"%1\"").tqarg(varobjName_)));
}
varobjName_ = "";
@@ -1931,8 +1931,8 @@ bool VarItem::isAlive() const
// **************************************************************************
// **************************************************************************
-VarFrameRoot::VarFrameRoot(VariableTree *parent, int frameNo, int threadNo)
- : TrimmableItem (parent),
+VarFrameRoot::VarFrameRoot(VariableTree *tqparent, int frameNo, int threadNo)
+ : TrimmableItem (tqparent),
needLocals_(false),
frameNo_(frameNo),
threadNo_(threadNo),
@@ -1956,8 +1956,8 @@ void VarFrameRoot::setOpen(bool open)
if (frameOpened && needLocals_)
{
needLocals_ = false;
- VariableTree* parent = static_cast<VariableTree*>(listView());
- parent->updateCurrentFrame();
+ VariableTree* tqparent = static_cast<VariableTree*>(listView());
+ tqparent->updateCurrentFrame();
}
}
@@ -1978,8 +1978,8 @@ void VarFrameRoot::setDirty()
// **************************************************************************
// **************************************************************************
-WatchRoot::WatchRoot(VariableTree *parent)
- : TrimmableItem(parent)
+WatchRoot::WatchRoot(VariableTree *tqparent)
+ : TrimmableItem(tqparent)
{
setText(0, i18n("Watch"));
setOpen(true);
diff --git a/languages/cpp/debugger/variablewidget.h b/languages/cpp/debugger/variablewidget.h
index 5c77ea43..d56e8977 100644
--- a/languages/cpp/debugger/variablewidget.h
+++ b/languages/cpp/debugger/variablewidget.h
@@ -46,17 +46,18 @@ class GDBBreakpointWidget;
enum { VarNameCol = 0, ValueCol = 1, VarTypeCol = 2};
enum DataType { typeUnknown, typeValue, typePointer, typeReference,
- typeStruct, typeArray, typeQString, typeWhitespace,
+ typeStruct, typeArray, typeTQString, typeWhitespace,
typeName };
-class VariableWidget : public QWidget
+class VariableWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
VariableWidget( GDBController* controller,
GDBBreakpointWidget* breakpointWidget,
- TQWidget *parent=0, const char *name=0 );
+ TQWidget *tqparent=0, const char *name=0 );
VariableTree *varTree() const
{ return varTree_; }
@@ -82,11 +83,12 @@ private:
/***************************************************************************/
/***************************************************************************/
-class VariableTree : public KListView, public QToolTip
+class VariableTree : public KListView, public TQToolTip
{
Q_OBJECT
+ TQ_OBJECT
public:
- VariableTree(VariableWidget *parent,
+ VariableTree(VariableWidget *tqparent,
GDBController* controller,
GDBBreakpointWidget* breakpointWidget,
const char *name=0 );
@@ -184,16 +186,16 @@ private:
/***************************************************************************/
/***************************************************************************/
-/** List view item that can 'trim' outdated children.
+/** List view item that can 'trim' outdated tqchildren.
- The instances of this class hold a number of children corresponding
+ The instances of this class hold a number of tqchildren corresponding
to variables. When program state changes, such as after a step in source,
some variable values can change, and some variables can go out of scope.
We need
- highlight modified variables
- remove gone variables
- We could just remove all children and repopulate the list from
+ We could just remove all tqchildren and repopulate the list from
the data from debugger, but then we'd loose information about previous
variable values.
@@ -205,8 +207,8 @@ private:
class TrimmableItem : public KListViewItem
{
public:
- TrimmableItem(VariableTree *parent);
- TrimmableItem(TrimmableItem *parent);
+ TrimmableItem(VariableTree *tqparent);
+ TrimmableItem(TrimmableItem *tqparent);
virtual ~TrimmableItem();
@@ -226,17 +228,18 @@ class VarItem : public TQObject,
public TrimmableItem
{
Q_OBJECT
+ TQ_OBJECT
public:
enum format_t { natural, hexadecimal, decimal, character, binary };
/** Creates top-level variable item from the specified expression.
Optionally, alternative display name can be provided.
*/
- VarItem( TrimmableItem *parent,
+ VarItem( TrimmableItem *tqparent,
const TQString& expression,
bool frozen = false);
- VarItem( TrimmableItem *parent, const GDBMI::Value& varobj,
+ VarItem( TrimmableItem *tqparent, const GDBMI::Value& varobj,
format_t format, bool baseClassMember);
virtual ~VarItem();
@@ -283,7 +286,7 @@ public:
/** Recursively clears the varobjName_ field, making
*this completely disconnected from gdb.
- Automatically makes *this and children disables,
+ Automatically makes *this and tqchildren disables,
since there's no possible interaction with unhooked
object.
*/
@@ -297,7 +300,7 @@ public:
format_t formatFromGdbModifier(char c) const;
/** Clears highliting for this variable and
- all its children. */
+ all its tqchildren. */
void clearHighlight();
/** Sets new top-level textual value of this variable.
@@ -330,7 +333,7 @@ private:
- sets varobjName_ to 'name'
- sets format, if it's not default one
- gets initial value
- - if item is open, gets children.
+ - if item is open, gets tqchildren.
*/
void setVarobjName(const TQString& name);
@@ -345,12 +348,12 @@ private:
int column, int width, int align );
void varobjCreated(const GDBMI::ResultRecord& r);
void valueDone(const GDBMI::ResultRecord& r);
- void childrenDone(const GDBMI::ResultRecord& r);
- void childrenOfFakesDone(const GDBMI::ResultRecord& r);
+ void tqchildrenDone(const GDBMI::ResultRecord& r);
+ void tqchildrenOfFakesDone(const GDBMI::ResultRecord& r);
void handleCurrentAddress(const TQValueVector<TQString>& lines);
void handleType(const TQValueVector<TQString>& lines);
- void createChildren(const GDBMI::ResultRecord& r, bool children_of_fake);
+ void createChildren(const GDBMI::ResultRecord& r, bool tqchildren_of_fake);
/** Called to handle the output of the cli print command.
*/
@@ -370,7 +373,7 @@ private:
private:
// The gdb expression for this varItem relatively to
- // parent VarItem.
+ // tqparent VarItem.
TQString expression_;
bool highlight_;
@@ -388,7 +391,7 @@ private:
static int varobjIndex;
int numChildren_;
- bool childrenFetched_;
+ bool tqchildrenFetched_;
TQString currentAddress_;
TQString lastObtainedAddress_;
@@ -415,7 +418,7 @@ private:
class VarFrameRoot : public TrimmableItem
{
public:
- VarFrameRoot(VariableTree *parent, int frameNo, int threadNo);
+ VarFrameRoot(VariableTree *tqparent, int frameNo, int threadNo);
virtual ~VarFrameRoot();
void setOpen(bool open);
@@ -453,7 +456,7 @@ private:
class WatchRoot : public TrimmableItem
{
public:
- WatchRoot(VariableTree *parent);
+ WatchRoot(VariableTree *tqparent);
virtual ~WatchRoot();
};
diff --git a/languages/cpp/declarationinfo.h b/languages/cpp/declarationinfo.h
index 8b55557e..de49dae3 100644
--- a/languages/cpp/declarationinfo.h
+++ b/languages/cpp/declarationinfo.h
@@ -44,7 +44,7 @@ struct DeclarationInfo {
}
TQString locationToText() const {
- return TQString("line %1 col %2 - line %3 col %4\nfile: %5").arg(startLine).arg(startCol).arg(endLine).arg(endCol).arg(file);
+ return TQString("line %1 col %2 - line %3 col %4\nfile: %5").tqarg(startLine).tqarg(startCol).tqarg(endLine).tqarg(endCol).tqarg(file);
}
TQString toText() const {
diff --git a/languages/cpp/doc/clanlib.toc b/languages/cpp/doc/clanlib.toc
index 04ed2041..97e8ec56 100644
--- a/languages/cpp/doc/clanlib.toc
+++ b/languages/cpp/doc/clanlib.toc
@@ -7,7 +7,7 @@
<tocsect2 name="Display overview" url="overview/display-1.html" />
<tocsect2 name="Resources" url="overview/resources-1.html" />
<tocsect2 name="Sound overview" url="overview/sound_overview.html" />
- <tocsect2 name="Signals &amp; Slots overview" url="overview/signals.html" />
+ <tocsect2 name="Signals &amp; Slots overview" url="overview/Q_SIGNALS.html" />
<tocsect2 name="Sprites overview" url="overview/sprites_overview.html" />
<tocsect2 name="Font overview" url="overview/font_overview-1.html" />
<tocsect2 name="Loading graphics overview" url="overview/loading_graphics.html" />
diff --git a/languages/cpp/doc/cppannotations.toc b/languages/cpp/doc/cppannotations.toc
index 081ad646..7acb23a3 100644
--- a/languages/cpp/doc/cppannotations.toc
+++ b/languages/cpp/doc/cppannotations.toc
@@ -290,7 +290,7 @@
<tocsect2 name="17.4: The Generic Algorithms" url="cplusplus17.html#l227">
<tocsect3 name="17.4.1: accumulate()" url="cplusplus17.html#l228"/>
<tocsect3 name="17.4.2: adjacent_difference()" url="cplusplus17.html#l229"/>
- <tocsect3 name="17.4.3: adjacent_find()" url="cplusplus17.html#l230"/>
+ <tocsect3 name="17.4.3: adjacent_tqfind()" url="cplusplus17.html#l230"/>
<tocsect3 name="17.4.4: binary_search()" url="cplusplus17.html#l231"/>
<tocsect3 name="17.4.5: copy()" url="cplusplus17.html#l232"/>
<tocsect3 name="17.4.6: copy_backward()" url="cplusplus17.html#l233"/>
@@ -300,7 +300,7 @@
<tocsect3 name="17.4.10: equal_range()" url="cplusplus17.html#l237"/>
<tocsect3 name="17.4.11: fill()" url="cplusplus17.html#l238"/>
<tocsect3 name="17.4.12: fill_n()" url="cplusplus17.html#l239"/>
- <tocsect3 name="17.4.13: find()" url="cplusplus17.html#l240"/>
+ <tocsect3 name="17.4.13: tqfind()" url="cplusplus17.html#l240"/>
<tocsect3 name="17.4.14: find_end()" url="cplusplus17.html#l241"/>
<tocsect3 name="17.4.15: find_first_of()" url="cplusplus17.html#l242"/>
<tocsect3 name="17.4.16: find_if()" url="cplusplus17.html#l243"/>
@@ -331,7 +331,7 @@
<tocsect3 name="17.4.41: remove_copy()" url="cplusplus17.html#l268"/>
<tocsect3 name="17.4.42: remove_if()" url="cplusplus17.html#l269"/>
<tocsect3 name="17.4.43: remove_copy_if()" url="cplusplus17.html#l270"/>
- <tocsect3 name="17.4.44: replace()" url="cplusplus17.html#l271"/>
+ <tocsect3 name="17.4.44: tqreplace()" url="cplusplus17.html#l271"/>
<tocsect3 name="17.4.45: replace_copy()" url="cplusplus17.html#l272"/>
<tocsect3 name="17.4.46: replace_if()" url="cplusplus17.html#l273"/>
<tocsect3 name="17.4.47: replace_copy_if()" url="cplusplus17.html#l274"/>
@@ -427,7 +427,7 @@
<tocsect3 name="19.7.1: The `Daemon' program" url="cplusplus19.html#l349"/>
<tocsect3 name="19.7.2: The `Pipe' class" url="cplusplus19.html#l350"/>
<tocsect3 name="19.7.3: The `ParentSlurp' class" url="cplusplus19.html#l351"/>
- <tocsect3 name="19.7.4: Communicating with multiple children" url="cplusplus19.html#l352">
+ <tocsect3 name="19.7.4: Communicating with multiple tqchildren" url="cplusplus19.html#l352">
<tocsect4 name="19.7.4.1: The `Select' class" url="cplusplus19.html#l353"/>
<tocsect4 name="19.7.4.2: The `Child' class" url="cplusplus19.html#l354"/>
<tocsect4 name="19.7.4.3: The `Monitor' class" url="cplusplus19.html#l355"/>
diff --git a/languages/cpp/doc/gnome1.toc b/languages/cpp/doc/gnome1.toc
index d996f1a0..e6c13c48 100644
--- a/languages/cpp/doc/gnome1.toc
+++ b/languages/cpp/doc/gnome1.toc
@@ -124,7 +124,7 @@
<tocsect3 name="Keyboard Accelerators" url="gtk/gtk-keyboard-accelerators.html"/>
<tocsect3 name="Selections" url="gtk/gtk-selections.html"/>
<tocsect3 name="Drag and Drop" url="gtk/gtk-drag-and-drop.html"/>
- <tocsect3 name="Signals" url="gtk/gtk-signals.html"/>
+ <tocsect3 name="Signals" url="gtk/gtk-Q_SIGNALS.html"/>
<tocsect3 name="Signal Marshallers" url="gtk/gtk-signal-marshallers.html"/>
<tocsect3 name="Implementation of Object Properties" url="gtk/gtk-object-properties.html"/>
<tocsect3 name="Types" url="gtk/gtk-types.html"/>
@@ -135,7 +135,7 @@
<tocsect2 name="GTK+ Widgets and Objects" url="gtk/gtkobjects.html">
<tocsect3 name="GtkAccelLabel" url="gtk/gtkaccellabel.html"/>
<tocsect3 name="GtkAdjustment" url="gtk/gtkadjustment.html"/>
- <tocsect3 name="GtkAlignment" url="gtk/gtkalignment.html"/>
+ <tocsect3 name="GtkAlignment" url="gtk/gtktqalignment.html"/>
<tocsect3 name="GtkArrow" url="gtk/gtkarrow.html"/>
<tocsect3 name="GtkAspectFrame" url="gtk/gtkaspectframe.html"/>
<tocsect3 name="GtkButtonBox" url="gtk/gtkbuttonbox.html"/>
@@ -261,7 +261,7 @@
<tocsect3 name="gnome-canvas-util" url="gnomeui/gnomeui-gnome-canvas-util.html"/>
<tocsect3 name="gnome-dialog-util" url="gnomeui/gnomeui-gnome-dialog-util.html"/>
<tocsect3 name="gnome-dns" url="gnomeui/gnomeui-gnome-dns.html"/>
- <tocsect3 name="gnome-geometry" url="gnomeui/gnomeui-gnome-geometry.html"/>
+ <tocsect3 name="gnome-tqgeometry" url="gnomeui/gnomeui-gnome-tqgeometry.html"/>
<tocsect3 name="gnome-ice" url="gnomeui/gnomeui-gnome-ice.html"/>
<tocsect3 name="gnome-icon-text" url="gnomeui/gnomeui-gnome-icon-text.html"/>
<tocsect3 name="gnome-init" url="gnomeui/gnomeui-gnome-init.html"/>
diff --git a/languages/cpp/doc/kde2book.toc b/languages/cpp/doc/kde2book.toc
index e7d5f4d2..2c4451a6 100644
--- a/languages/cpp/doc/kde2book.toc
+++ b/languages/cpp/doc/kde2book.toc
@@ -38,7 +38,7 @@
<tocsect3 name="What It Is For (Look and Feel)" url=""/>
<tocsect3 name="Inside the Qt Toolkit" url="ch03lev1sec2.html"/>
<tocsect3 name="Signals and Slots" url="ch03lev1sec3.html"/>
- <tocsect3 name="Meta Object Compiler (moc)" url="ch03lev1sec4.html"/>
+ <tocsect3 name="Meta Object Compiler (tqmoc)" url="ch03lev1sec4.html"/>
<tocsect3 name="The Utility Classes" url="ch03lev1sec5.html"/>
<tocsect3 name="Special Features (ImageIO, OpenGL, Mesa)" url="ch03lev1sec6.html"/>
<tocsect3 name="Summary" url="ch03lev1sec7.html"/>
@@ -238,7 +238,7 @@
<entry name="actions, editBookmarks" url="ch06.html"/>
<entry name="actions, findNext" url="ch06.html"/>
<entry name="actions, findPrev" url="ch06.html"/>
-<entry name="actions, find" url="ch06.html"/>
+<entry name="actions, tqfind" url="ch06.html"/>
<entry name="actions, firstPage" url="ch06.html"/>
<entry name="actions, fitToHeight" url="ch06.html"/>
<entry name="actions, fitToPage" url="ch06.html"/>
@@ -266,7 +266,7 @@
<entry name="actions, quit" url="ch06.html"/>
<entry name="actions, redisplay" url="ch06.html"/>
<entry name="actions, redo" url="ch06.html"/>
-<entry name="actions, replace" url="ch06.html"/>
+<entry name="actions, tqreplace" url="ch06.html"/>
<entry name="actions, reportBug" url="ch06.html"/>
<entry name="actions, revert" url="ch06.html"/>
<entry name="actions, saveAs" url="ch06.html"/>
@@ -405,7 +405,7 @@
<entry name="CDE (Common Desktop Environment)" url="ch01.html"/>
<entry name="cgi resource type" url="ch07lev1sec4.html"/>
<entry name="CGotoDialog class, modeless dialog box" url="ch08lev1sec3.html"/>
-<entry name="CGotoDialog example, layout" url="ch08lev1sec2.html"/>
+<entry name="CGotoDialog example, tqlayout" url="ch08lev1sec2.html"/>
<entry name="Chapter tag (DocBook)" url="ch15lev1sec2.html"/>
<entry name="checking out, applications (CVS)" url="ch17lev1sec5.html"/>
<entry name="checking spelling" url="ch10lev1sec3.html"/>
@@ -413,11 +413,11 @@
<entry name="check() method" url="ch10lev1sec3.html"/>
<entry name="checkWord() method" url="ch10lev1sec3.html"/>
<entry name="Child Classes command (Classbrowser pop-up menu)" url="ch18lev1sec4.html"/>
-<entry name="child widgets, geometry management, QBoxLayout manager" url="ch04lev1sec3.html"/>
-<entry name="child widgets, geometry management, QGridLayout manager" url="ch04lev1sec3.html"/>
-<entry name="child widgets, geometry management" url="ch04lev1sec3.html"/>
-<entry name="child widgets, KChildren example, kchildren.cpp class definition" url="ch04lev1sec3.html"/>
-<entry name="child widgets, KChildren example, kchildren.h class declaration" url="ch04lev1sec3.html"/>
+<entry name="child widgets, tqgeometry management, QBoxLayout manager" url="ch04lev1sec3.html"/>
+<entry name="child widgets, tqgeometry management, QGridLayout manager" url="ch04lev1sec3.html"/>
+<entry name="child widgets, tqgeometry management" url="ch04lev1sec3.html"/>
+<entry name="child widgets, KChildren example, ktqchildren.cpp class definition" url="ch04lev1sec3.html"/>
+<entry name="child widgets, KChildren example, ktqchildren.h class declaration" url="ch04lev1sec3.html"/>
<entry name="child widgets, KChildren example, main() method" url="ch04lev1sec3.html"/>
<entry name="child widgets, KChildren example" url="ch04lev1sec3.html"/>
<entry name="child widgets" url="ch04lev1sec3.html"/>
@@ -472,15 +472,15 @@
<entry name="classes, QWidget, example (listing)" url="ch03lev1sec2.html"/>
<entry name="classes, QWidget, functions" url="ch03lev1sec2.html"/>
<entry name="classes, QWidget, sample class declaration" url="ch04.html"/>
-<entry name="classes, QWidget, signals" url="ch04.html"/>
-<entry name="classes, QWidget, slots" url="ch04.html"/>
+<entry name="classes, QWidget, Q_SIGNALS" url="ch04.html"/>
+<entry name="classes, QWidget, Q_SLOTS" url="ch04.html"/>
<entry name="classes, QWidget" url="ch03lev1sec2.html"/>
<entry name="classes, QWidget" url="ch04.html"/>
<entry name="classes, ReadOnlyPart" url="ch12lev1sec4.html"/>
<entry name="classes, ReadWritePart" url="ch12lev1sec4.html"/>
<entry name="classes, SelectDialog" url="ch08.html"/>
-<entry name="classes, slots in temporary classes" url="ch03lev1sec3.html"/>
-<entry name="classes, slots" url="ch03lev1sec3.html"/>
+<entry name="classes, Q_SLOTS in temporary classes" url="ch03lev1sec3.html"/>
+<entry name="classes, Q_SLOTS" url="ch03lev1sec3.html"/>
<entry name="classes, template, QList" url="ch03lev1sec5.html"/>
<entry name="classes, template" url="ch03lev1sec5.html"/>
<entry name="classes, utility (Qt)" url="ch03lev1sec5.html"/>
@@ -667,7 +667,7 @@
<entry name="DCOP, programming interface, transactions" url="ch13lev1sec5.html"/>
<entry name="DCOP, programming interface" url="ch13lev1sec5.html"/>
<entry name="DCOPRef objects" url="ch13lev1sec6.html"/>
-<entry name="DCOP, signals and slots" url="ch13lev1sec6.html"/>
+<entry name="DCOP, Q_SIGNALS and Q_SLOTS" url="ch13lev1sec6.html"/>
<entry name="DCOP, underlying technologies, data streaming" url="ch13lev1sec3.html"/>
<entry name="DCOP, underlying technologies, ICE (Inter-Client Exchange) mechanism" url="ch13lev1sec3.html"/>
<entry name="DCOP, underlying technologies" url="ch13lev1sec3.html"/>
@@ -729,7 +729,7 @@
<entry name="deleting, CVS (Concurrent Version System) directories" url="ch17lev1sec5.html"/>
<entry name="deleting, CVS (Concurrent Version System) files" url="ch17lev1sec5.html"/>
<entry name="deprecated (" url="ch15.html"/>
-<entry name="design guidelines, dialog boxes, layout issues" url="ch08lev1sec2.html"/>
+<entry name="design guidelines, dialog boxes, tqlayout issues" url="ch08lev1sec2.html"/>
<entry name="design guidelines, dialog boxes" url="ch08lev1sec7.html"/>
<entry name="designing, icons" url="ch06lev1sec3.html"/>
<entry name="Desktop Communication Protocol. See DCOP" url="ch13.html"/>
@@ -760,13 +760,13 @@
<entry name="dialog boxes, KDialogBase class" url="ch08lev1sec5.html"/>
<entry name="dialog boxes, KEdit Option dialog example" url="ch08lev1sec6.html"/>
<entry name="dialog boxes, KSpellConfig configuration dialog" url="ch10lev1sec3.html"/>
-<entry name="dialog boxes, layout, CGotoDialog example" url="ch08lev1sec2.html"/>
-<entry name="dialog boxes, layout, design issues" url="ch08lev1sec2.html"/>
-<entry name="dialog boxes, layout, hierarchies of layouts" url="ch08lev1sec2.html"/>
-<entry name="dialog boxes, layout, manual placement" url="ch08lev1sec2.html"/>
-<entry name="dialog boxes, layout, nested layouts" url="ch08lev1sec2.html"/>
-<entry name="dialog boxes, layout, QLayout classes" url="ch08lev1sec2.html"/>
-<entry name="dialog boxes, layout, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
+<entry name="dialog boxes, tqlayout, CGotoDialog example" url="ch08lev1sec2.html"/>
+<entry name="dialog boxes, tqlayout, design issues" url="ch08lev1sec2.html"/>
+<entry name="dialog boxes, tqlayout, hierarchies of tqlayouts" url="ch08lev1sec2.html"/>
+<entry name="dialog boxes, tqlayout, manual placement" url="ch08lev1sec2.html"/>
+<entry name="dialog boxes, tqlayout, nested tqlayouts" url="ch08lev1sec2.html"/>
+<entry name="dialog boxes, tqlayout, QLayout classes" url="ch08lev1sec2.html"/>
+<entry name="dialog boxes, tqlayout, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
<entry name="dialog boxes, modal, advantages/disadvantages" url="ch08lev1sec3.html"/>
<entry name="dialog boxes, modal, modal dialog allocated from the heap" url="ch08lev1sec3.html"/>
<entry name="dialog boxes, modal, modal dialog located on the stack" url="ch08lev1sec3.html"/>
@@ -897,7 +897,7 @@
<entry name="embedding, parts, multiple parts" url="ch12lev1sec8.html"/>
<entry name="embedding, parts" url="ch12lev1sec7.html"/>
<entry name="emitDCOPSignal() method" url="ch13lev1sec6.html"/>
-<entry name="emitting signals" url="ch03lev1sec3.html"/>
+<entry name="emitting Q_SIGNALS" url="ch03lev1sec3.html"/>
<entry name="Emphasis tag (DocBook)" url="ch15lev1sec2.html"/>
<entry name="enabling, application functions" url="ch09lev1sec3.html"/>
<entry name="enabling, debugging, gdb debugger" url="ch18lev1sec6.html"/>
@@ -912,7 +912,7 @@
<entry name="event handling, drag events" url="ch07.html"/>
<entry name="event handling, drop events" url="ch07.html"/>
<entry name="event handling, Qt" url="ch03lev1sec2.html"/>
-<entry name="event handling, signals and slots" url="ch03lev1sec3.html"/>
+<entry name="event handling, Q_SIGNALS and Q_SLOTS" url="ch03lev1sec3.html"/>
<entry name="event handling, widgets, closeEvent()" url="ch04.html"/>
<entry name="event handling, widgets, dragEnterEvent()" url="ch04.html"/>
<entry name="event handling, widgets, dragLeaveEvent()" url="ch04.html"/>
@@ -1061,7 +1061,7 @@
<entry name="functions, slotOpen()" url="ch07lev1sec5.html"/>
<entry name="functions, slotSave()" url="ch07lev1sec5.html"/>
<entry name="functions, slotSpecialHelp()" url="ch05lev1sec2.html"/>
-<entry name="functions, slots" url="ch03lev1sec3.html"/>
+<entry name="functions, Q_SLOTS" url="ch03lev1sec3.html"/>
<entry name="functions, sorry()" url="ch05lev1sec3.html"/>
<entry name="functions, streamEnd()" url="ch14lev1sec3.html"/>
<entry name="functions, streamInit()" url="ch14lev1sec3.html"/>
@@ -1080,16 +1080,16 @@
<entry name="gdb debugger, running" url="ch18lev1sec6.html"/>
<entry name="gdb debugger" url="ch18lev1sec6.html"/>
<entry name="gdb (GNU debugger)" url="ch02.html"/>
-<entry name="geometry management (widgets), dialog boxes, CGotoDialog example" url="ch08lev1sec2.html"/>
-<entry name="geometry management (widgets), dialog boxes, design issues" url="ch08lev1sec2.html"/>
-<entry name="geometry management (widgets), dialog boxes, hierarchies of layouts" url="ch08lev1sec2.html"/>
-<entry name="geometry management (widgets), dialog boxes, manual placement" url="ch08lev1sec2.html"/>
-<entry name="geometry management (widgets), dialog boxes, nested layouts" url="ch08lev1sec2.html"/>
-<entry name="geometry management (widgets), dialog boxes, QLayout classes" url="ch08lev1sec2.html"/>
-<entry name="geometry management (widgets), dialog boxes, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
-<entry name="geometry management (widgets), QBoxLayout manager" url="ch04lev1sec3.html"/>
-<entry name="geometry management (widgets), QGridLayout manager" url="ch04lev1sec3.html"/>
-<entry name="geometry management (widgets)" url="ch04lev1sec3.html"/>
+<entry name="tqgeometry management (widgets), dialog boxes, CGotoDialog example" url="ch08lev1sec2.html"/>
+<entry name="tqgeometry management (widgets), dialog boxes, design issues" url="ch08lev1sec2.html"/>
+<entry name="tqgeometry management (widgets), dialog boxes, hierarchies of tqlayouts" url="ch08lev1sec2.html"/>
+<entry name="tqgeometry management (widgets), dialog boxes, manual placement" url="ch08lev1sec2.html"/>
+<entry name="tqgeometry management (widgets), dialog boxes, nested tqlayouts" url="ch08lev1sec2.html"/>
+<entry name="tqgeometry management (widgets), dialog boxes, QLayout classes" url="ch08lev1sec2.html"/>
+<entry name="tqgeometry management (widgets), dialog boxes, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
+<entry name="tqgeometry management (widgets), QBoxLayout manager" url="ch04lev1sec3.html"/>
+<entry name="tqgeometry management (widgets), QGridLayout manager" url="ch04lev1sec3.html"/>
+<entry name="tqgeometry management (widgets)" url="ch04lev1sec3.html"/>
<entry name="getColor() function" url="ch05lev1sec3.html"/>
<entry name="getExistingDirectory() function" url="ch05lev1sec3.html"/>
<entry name="getFont() function" url="ch05lev1sec3.html"/>
@@ -1130,7 +1130,7 @@
<entry name="GUIs, dialog boxes, kdeui (KDE user-interface library)" url="ch08lev1sec4.html"/>
<entry name="GUIs, dialog boxes, KDialogBase class" url="ch08lev1sec5.html"/>
<entry name="GUIs, dialog boxes, KEdit Option dialog example" url="ch08lev1sec6.html"/>
-<entry name="GUIs, dialog boxes, layout" url="ch08lev1sec2.html"/>
+<entry name="GUIs, dialog boxes, tqlayout" url="ch08lev1sec2.html"/>
<entry name="GUIs, dialog boxes, modal" url="ch08lev1sec3.html"/>
<entry name="GUIs, dialog boxes, modeless" url="ch08lev1sec3.html"/>
<entry name="GUIs, dialog boxes, simple example" url="ch08.html"/>
@@ -1170,8 +1170,8 @@
<entry name="GUIs, widgets, event handlers" url="ch04.html"/>
<entry name="GUIs, widgets, painting" url="ch04lev1sec2.html"/>
<entry name="GUIs, widgets, sample class declaration" url="ch04.html"/>
-<entry name="GUIs, widgets, signals" url="ch04.html"/>
-<entry name="GUIs, widgets, slots" url="ch04.html"/>
+<entry name="GUIs, widgets, Q_SIGNALS" url="ch04.html"/>
+<entry name="GUIs, widgets, Q_SLOTS" url="ch04.html"/>
<entry name="GUIs, widgets" url="ch04.html"/>
<entry name="GUIs, widgets, user input" url="ch04lev1sec4.html"/>
<entry name="Hausmann, Simon" url="ch13lev1sec7.html"/>
@@ -1278,10 +1278,10 @@
<entry name="KApplication class" url="ch02lev1sec3.html"/>
<entry name="KAudioPlayer class" url="ch14lev1sec6.html"/>
<entry name="KButtonBox manager widget" url="ch08lev1sec4.html"/>
-<entry name="kchildren.cpp class definition (KChildren widget)" url="ch04lev1sec3.html"/>
-<entry name="kchildren.h class declaration (KChildren widget)" url="ch04lev1sec3.html"/>
-<entry name="KChildren sample widget (child widget), kchildren.cpp class definition" url="ch04lev1sec3.html"/>
-<entry name="KChildren sample widget (child widget), kchildren.h class declaration" url="ch04lev1sec3.html"/>
+<entry name="ktqchildren.cpp class definition (KChildren widget)" url="ch04lev1sec3.html"/>
+<entry name="ktqchildren.h class declaration (KChildren widget)" url="ch04lev1sec3.html"/>
+<entry name="KChildren sample widget (child widget), ktqchildren.cpp class definition" url="ch04lev1sec3.html"/>
+<entry name="KChildren sample widget (child widget), ktqchildren.h class declaration" url="ch04lev1sec3.html"/>
<entry name="KChildren sample widget (child widget), main() method" url="ch04lev1sec3.html"/>
<entry name="KChildren sample widget (child widget)" url="ch04lev1sec3.html"/>
<entry name="kconfigdemo.cpp file (KConfigDemo widget)" url="ch07lev1sec2.html"/>
@@ -1427,7 +1427,7 @@
<entry name="keyReleaseEvent() event handler, widgets" url="ch04.html"/>
<entry name="keystrokes, handling, widgets" url="ch04lev1sec4.html"/>
<entry name="KeyWordSet tag (DocBook)" url="ch15lev1sec2.html"/>
-<entry name="keywords, moc" url="ch03lev1sec4.html"/>
+<entry name="keywords, tqmoc" url="ch03lev1sec4.html"/>
<entry name="Keyword tag (DocBook)" url="ch15lev1sec2.html"/>
<entry name="KFileDialog" url="ch05lev1sec3.html"/>
<entry name="KFontDialog" url="ch05lev1sec3.html"/>
@@ -1558,9 +1558,9 @@
<entry name="KStdActionsDemo widget" url="ch05.html"/>
<entry name="ktictactoe.cpp class definition (KTicTacToe widget)" url="ch04lev1sec3.html"/>
<entry name="ktictactoe.h class declaration (KTicTacToe widget)" url="ch04lev1sec3.html"/>
-<entry name="KTicTacToe widget (geometry management example), ktictactoe.cpp class definition" url="ch04lev1sec3.html"/>
-<entry name="KTicTacToe widget (geometry management example), ktictactoe.h class declaration" url="ch04lev1sec3.html"/>
-<entry name="KTicTacToe widget (geometry management example), playing the game" url="ch04lev1sec3.html"/>
+<entry name="KTicTacToe widget (tqgeometry management example), ktictactoe.cpp class definition" url="ch04lev1sec3.html"/>
+<entry name="KTicTacToe widget (tqgeometry management example), ktictactoe.h class declaration" url="ch04lev1sec3.html"/>
+<entry name="KTicTacToe widget (tqgeometry management example), playing the game" url="ch04lev1sec3.html"/>
<entry name="KTMainWindow class" url="ch02lev1sec3.html"/>
<entry name="Kulow, Stephen" url="ch16.html"/>
<entry name="KUniqueApplication class, passing command-line parameters" url="ch13lev1sec7.html"/>
@@ -1591,15 +1591,15 @@
<entry name="languages, i18n() function" url="ch06lev1sec4.html"/>
<entry name="languages, translator files" url="ch06lev1sec4.html"/>
<entry name="lastPage action" url="ch06.html"/>
-<entry name="layout, dialog boxes, CGotoDialog example" url="ch08lev1sec2.html"/>
-<entry name="layout, dialog boxes, design guidelines" url="ch08lev1sec7.html"/>
-<entry name="layout, dialog boxes, design issues" url="ch08lev1sec2.html"/>
-<entry name="layout, dialog boxes, hierarchies of layouts" url="ch08lev1sec2.html"/>
-<entry name="layout, dialog boxes, manual placement" url="ch08lev1sec2.html"/>
-<entry name="layout, dialog boxes, nested layouts" url="ch08lev1sec2.html"/>
-<entry name="layout, dialog boxes, QLayout classes" url="ch08lev1sec2.html"/>
-<entry name="layout, dialog boxes, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
-<entry name="layout managers, creating internally, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
+<entry name="tqlayout, dialog boxes, CGotoDialog example" url="ch08lev1sec2.html"/>
+<entry name="tqlayout, dialog boxes, design guidelines" url="ch08lev1sec7.html"/>
+<entry name="tqlayout, dialog boxes, design issues" url="ch08lev1sec2.html"/>
+<entry name="tqlayout, dialog boxes, hierarchies of tqlayouts" url="ch08lev1sec2.html"/>
+<entry name="tqlayout, dialog boxes, manual placement" url="ch08lev1sec2.html"/>
+<entry name="tqlayout, dialog boxes, nested tqlayouts" url="ch08lev1sec2.html"/>
+<entry name="tqlayout, dialog boxes, QLayout classes" url="ch08lev1sec2.html"/>
+<entry name="tqlayout, dialog boxes, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
+<entry name="tqlayout managers, creating internally, QVBox/QHBox widgets" url="ch08lev1sec2.html"/>
<entry name="leaveEvent() event handler, widgets" url="ch04.html"/>
<entry name="legal issues" url="ch01lev1sec6.html"/>
<entry name="legal issues" url="ch19.html"/>
@@ -1637,7 +1637,7 @@
<entry name="lines, drawing" url="ch04lev1sec2.html"/>
<entry name="listing, CVS (Concurrent Version System) modules" url="ch17lev1sec5.html"/>
<entry name="listings, application configuration file example" url="ch07lev1sec2.html"/>
-<entry name="listings, connecting slots to signals" url="ch03lev1sec3.html"/>
+<entry name="listings, connecting Q_SLOTS to Q_SIGNALS" url="ch03lev1sec3.html"/>
<entry name="listings, DCOP, client using stub interface" url="ch13lev1sec5.html"/>
<entry name="listings, DCOP, DCOPClient call() method" url="ch13lev1sec5.html"/>
<entry name="listings, DCOP, DCOPClient send() method" url="ch13lev1sec5.html"/>
@@ -1656,12 +1656,12 @@
<entry name="listings, dialog boxes, dialog from kdeui library" url="ch08lev1sec4.html"/>
<entry name="listings, dialog boxes, KButtonBox in a dialog" url="ch08lev1sec4.html"/>
<entry name="listings, dialog boxes, KEdit dialog code" url="ch08lev1sec6.html"/>
-<entry name="listings, dialog boxes, manual geometry strategy and QLayouts classes" url="ch08lev1sec2.html"/>
+<entry name="listings, dialog boxes, manual tqgeometry strategy and QLayouts classes" url="ch08lev1sec2.html"/>
<entry name="listings, dialog boxes, modal dialog allocated from the heap" url="ch08lev1sec3.html"/>
<entry name="listings, dialog boxes, modal dialog located on the stack" url="ch08lev1sec3.html"/>
<entry name="listings, dialog boxes, modeless dialog example" url="ch08lev1sec3.html"/>
<entry name="listings, dialog boxes, modeless dialogs, removing from memory" url="ch08lev1sec3.html"/>
-<entry name="listings, dialog boxes, QVBox widget for geometry management" url="ch08lev1sec2.html"/>
+<entry name="listings, dialog boxes, QVBox widget for tqgeometry management" url="ch08lev1sec2.html"/>
<entry name="listings, dialog boxes, SelectDialog class" url="ch08.html"/>
<entry name="listings, Example_ADD interface" url="ch14lev1sec2.html"/>
<entry name="listings, Example_ADD module" url="ch14lev1sec2.html"/>
@@ -1672,8 +1672,8 @@
<entry name="listings, KabDemo application (address book dialog), kabdemo.cpp class definition" url="ch10lev1sec4.html"/>
<entry name="listings, KabDemo application (address book dialog), kabdemo.h class declaration" url="ch10lev1sec4.html"/>
<entry name="listings, KabDemo application (address book dialog), main() method" url="ch10lev1sec4.html"/>
-<entry name="listings, KChildren widget, kchildren.cpp class definition" url="ch04lev1sec3.html"/>
-<entry name="listings, KChildren widget, kchildren.h class declaration" url="ch04lev1sec3.html"/>
+<entry name="listings, KChildren widget, ktqchildren.cpp class definition" url="ch04lev1sec3.html"/>
+<entry name="listings, KChildren widget, ktqchildren.h class declaration" url="ch04lev1sec3.html"/>
<entry name="listings, KChildren widget, main() method" url="ch04lev1sec3.html"/>
<entry name="listings, KConfigDemo widget, kconfigdemo.cpp class definition" url="ch07lev1sec2.html"/>
<entry name="listings, KConfigDemo widget, kconfigdemo.h class declaration" url="ch07lev1sec2.html"/>
@@ -1750,7 +1750,7 @@
<entry name="listings, KXOSquare widget, main() method" url="ch04lev1sec2.html"/>
<entry name="listings, Makefile.am" url="ch16lev1sec2.html"/>
<entry name="listings, Makefiles, example of" url="ch02lev1sec2.html"/>
-<entry name="listings, moc example" url="ch03lev1sec4.html"/>
+<entry name="listings, tqmoc example" url="ch03lev1sec4.html"/>
<entry name="listings, MyWindow class implementation" url="ch03lev1sec4.html"/>
<entry name="listings, network transparency, complete example" url="ch06lev1sec8.html"/>
<entry name="listings, network transparency, filenames" url="ch06lev1sec8.html"/>
@@ -1829,7 +1829,7 @@
<entry name="managing, sessions, source file example" url="ch06lev1sec2.html"/>
<entry name="managing, sessions" url="ch06lev1sec2.html"/>
<entry name="managing, sessions" url="ch07lev1sec3.html"/>
-<entry name="manual geometry strategy (dialog boxes)" url="ch08lev1sec2.html"/>
+<entry name="manual tqgeometry strategy (dialog boxes)" url="ch08lev1sec2.html"/>
<entry name="mcopclass files" url="ch14lev1sec2.html"/>
<entry name="MCOP, future of, composition/RAD" url="ch14lev1sec7.html"/>
<entry name="MCOP, future of, GUIs" url="ch14lev1sec7.html"/>
@@ -1886,7 +1886,7 @@
<entry name="Meta Object Compiler, executing programs" url="ch03lev1sec4.html"/>
<entry name="Meta Object Compiler, keywords" url="ch03lev1sec4.html"/>
<entry name="Meta Object Compiler, main program file example" url="ch03lev1sec4.html"/>
-<entry name="Meta Object Compiler (moc)" url="ch03lev1sec2.html"/>
+<entry name="Meta Object Compiler (tqmoc)" url="ch03lev1sec2.html"/>
<entry name="Meta Object Compiler" url="ch03lev1sec4.html"/>
<entry name="methods, attach()" url="ch13lev1sec5.html"/>
<entry name="methods, beginTransaction()" url="ch13lev1sec5.html"/>
@@ -1937,7 +1937,7 @@
<entry name="methods, remoteFunctions()" url="ch13lev1sec6.html"/>
<entry name="methods, remoteInterfaces()" url="ch13lev1sec6.html"/>
<entry name="methods, remoteObjects()" url="ch13lev1sec6.html"/>
-<entry name="methods, repaint(), QPainter class" url="ch04lev1sec2.html"/>
+<entry name="methods, tqrepaint(), QPainter class" url="ch04lev1sec2.html"/>
<entry name="methods, resume()" url="ch13lev1sec5.html"/>
<entry name="methods, senderId()" url="ch13lev1sec6.html"/>
<entry name="methods, send()" url="ch13lev1sec5.html"/>
@@ -1962,11 +1962,11 @@
<entry name="MIDI, LibKMid" url="ch14lev1sec6.html"/>
<entry name="mime resource type" url="ch07lev1sec4.html"/>
<entry name="Mini application template" url="ch18lev1sec2.html"/>
-<entry name="moc, executing programs" url="ch03lev1sec4.html"/>
-<entry name="moc, keywords" url="ch03lev1sec4.html"/>
-<entry name="moc, main program file example" url="ch03lev1sec4.html"/>
-<entry name="moc (Meta Object Compiler" url="ch03lev1sec2.html"/>
-<entry name="moc" url="ch03lev1sec4.html"/>
+<entry name="tqmoc, executing programs" url="ch03lev1sec4.html"/>
+<entry name="tqmoc, keywords" url="ch03lev1sec4.html"/>
+<entry name="tqmoc, main program file example" url="ch03lev1sec4.html"/>
+<entry name="tqmoc (Meta Object Compiler" url="ch03lev1sec2.html"/>
+<entry name="tqmoc" url="ch03lev1sec4.html"/>
<entry name="modalCheck() method" url="ch10lev1sec3.html"/>
<entry name="modal dialog boxes, advantages/disadvantages" url="ch08lev1sec3.html"/>
<entry name="modal dialog boxes, modal dialog allocated from the heap" url="ch08lev1sec3.html"/>
@@ -2032,7 +2032,7 @@
<entry name="navigation, drag and drop" url="ch07.html"/>
<entry name="navigation, menubars, creating" url="ch02lev1sec4.html"/>
<entry name="navigation, toolbars" url="ch02lev1sec4.html"/>
-<entry name="nested layouts (dialog boxes)" url="ch08lev1sec2.html"/>
+<entry name="nested tqlayouts (dialog boxes)" url="ch08lev1sec2.html"/>
<entry name="network transparency, applications, classes" url="ch06lev1sec8.html"/>
<entry name="network transparency, applications" url="ch06lev1sec8.html"/>
<entry name="network transparency" url="ch01lev1sec2.html"/>
@@ -2143,13 +2143,13 @@
<entry name="painting, widgets, invoking paint events" url="ch04lev1sec2.html"/>
<entry name="painting, widgets, KXOSquare example" url="ch04lev1sec2.html"/>
<entry name="painting, widgets, paintEvent() method" url="ch04lev1sec2.html"/>
-<entry name="painting, widgets, repainting" url="ch04lev1sec2.html"/>
+<entry name="painting, widgets, tqrepainting" url="ch04lev1sec2.html"/>
<entry name="painting, widgets" url="ch04lev1sec2.html"/>
<entry name="panel applet (KWeather), kweather.cpp class definition" url="ch11lev1sec3.html"/>
<entry name="panel applet (KWeather), kweather.h class definition" url="ch11lev1sec3.html"/>
<entry name="panel applet (KWeather), main() method" url="ch11lev1sec3.html"/>
<entry name="panel applet (KWeather)" url="ch11lev1sec3.html"/>
-<entry name="parameters, signals and slots" url="ch03lev1sec3.html"/>
+<entry name="parameters, Q_SIGNALS and Q_SLOTS" url="ch03lev1sec3.html"/>
<entry name="param (" url="ch15.html"/>
<entry name="Para tag (DocBook)" url="ch15lev1sec2.html"/>
<entry name="Parent Classes command (Classbrowser pop-up menu)" url="ch18lev1sec4.html"/>
@@ -2259,16 +2259,16 @@
<entry name="protocols, DCOP, message redirection technology (referencing)" url="ch13lev1sec6.html"/>
<entry name="protocols, DCOP, performance and overhead" url="ch13lev1sec6.html"/>
<entry name="protocols, DCOP, programming interface" url="ch13lev1sec5.html"/>
-<entry name="protocols, DCOP, signals and slots" url="ch13lev1sec6.html"/>
+<entry name="protocols, DCOP, Q_SIGNALS and Q_SLOTS" url="ch13lev1sec6.html"/>
<entry name="protocols, DCOP, underlying technologies" url="ch13lev1sec3.html"/>
<entry name="protocols, DCOP" url="ch13.html"/>
<entry name="protocols, FTP, snapshots" url="ch17lev1sec3.html"/>
<entry name="protocols, XDND" url="ch07.html"/>
-<entry name="QBoxLayout geometry manager" url="ch04lev1sec3.html"/>
+<entry name="QBoxLayout tqgeometry manager" url="ch04lev1sec3.html"/>
<entry name="QDataStream objects" url="ch13lev1sec3.html"/>
<entry name="QGL widget" url="ch03lev1sec6.html"/>
-<entry name="QGridLayout geometry manager" url="ch04lev1sec3.html"/>
-<entry name="QHBox widget, layout managers, creating" url="ch08lev1sec2.html"/>
+<entry name="QGridLayout tqgeometry manager" url="ch04lev1sec3.html"/>
+<entry name="QHBox widget, tqlayout managers, creating" url="ch08lev1sec2.html"/>
<entry name="QImage class" url="ch10lev1sec2.html"/>
<entry name="QLayout classes, code example" url="ch08lev1sec2.html"/>
<entry name="QLayout classes, design issues" url="ch08lev1sec2.html"/>
@@ -2278,7 +2278,7 @@
<entry name="QPainter class, example usage (listing)" url="ch03lev1sec2.html"/>
<entry name="QPainter class, member function" url="ch03lev1sec2.html"/>
<entry name="QPainter class, methods, paintEvent()" url="ch04lev1sec2.html"/>
-<entry name="QPainter class, methods, repaint()" url="ch04lev1sec2.html"/>
+<entry name="QPainter class, methods, tqrepaint()" url="ch04lev1sec2.html"/>
<entry name="QPainter class, methods, update()" url="ch04lev1sec2.html"/>
<entry name="QPainter class" url="ch03lev1sec2.html"/>
<entry name="QPainter class" url="ch04lev1sec2.html"/>
@@ -2289,7 +2289,7 @@
<entry name="QPushButton class, listing" url="ch03lev1sec2.html"/>
<entry name="QPushButton class, member functions" url="ch03lev1sec2.html"/>
<entry name="QPushButton class" url="ch03lev1sec2.html"/>
-<entry name="QSplitter" url="ch05.html"/>
+<entry name=TQSPLITTER_OBJECT_NAME_STRING url="ch05.html"/>
<entry name="Qt, classes, QList" url="ch03lev1sec5.html"/>
<entry name="QTDIR environment variable" url="ch02lev1sec2.html"/>
<entry name="Qt, event handling" url="ch03lev1sec2.html"/>
@@ -2298,11 +2298,11 @@
<entry name="Qt library, supported image formats" url="ch10lev1sec2.html"/>
<entry name="Qt, license, FreeQt" url="ch19lev1sec3.html"/>
<entry name="Qt, Mesa" url="ch03lev1sec6.html"/>
-<entry name="Qt, moc, executing programs" url="ch03lev1sec4.html"/>
-<entry name="Qt, moc, keywords" url="ch03lev1sec4.html"/>
-<entry name="Qt, moc, main program file example" url="ch03lev1sec4.html"/>
-<entry name="Qt, moc (Meta Object Compiler)" url="ch03lev1sec2.html"/>
-<entry name="Qt, moc" url="ch03lev1sec4.html"/>
+<entry name="Qt, tqmoc, executing programs" url="ch03lev1sec4.html"/>
+<entry name="Qt, tqmoc, keywords" url="ch03lev1sec4.html"/>
+<entry name="Qt, tqmoc, main program file example" url="ch03lev1sec4.html"/>
+<entry name="Qt, tqmoc (Meta Object Compiler)" url="ch03lev1sec2.html"/>
+<entry name="Qt, tqmoc" url="ch03lev1sec4.html"/>
<entry name="Qt, OpenGL" url="ch03lev1sec6.html"/>
<entry name="Qt, paremeters" url="ch03lev1sec3.html"/>
<entry name="Qt, QObject class" url="ch03lev1sec2.html"/>
@@ -2313,21 +2313,21 @@
<entry name="Qt, QWidget class, example (listing)" url="ch03lev1sec2.html"/>
<entry name="Qt, QWidget class, member functions" url="ch03lev1sec2.html"/>
<entry name="Qt, QWidget class" url="ch03lev1sec2.html"/>
-<entry name="Qt, signals, connecting to slots" url="ch03lev1sec3.html"/>
-<entry name="Qt, signals, emitting" url="ch03lev1sec3.html"/>
-<entry name="Qt, signals" url="ch03lev1sec3.html"/>
-<entry name="Qt, slots, connecting to signals" url="ch03lev1sec3.html"/>
-<entry name="Qt, slots, creating" url="ch03lev1sec3.html"/>
-<entry name="Qt, slots, parameters" url="ch03lev1sec3.html"/>
-<entry name="Qt, slots, temporary classes" url="ch03lev1sec3.html"/>
-<entry name="Qt, slots" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SIGNALS, connecting to Q_SLOTS" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SIGNALS, emitting" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SIGNALS" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SLOTS, connecting to Q_SIGNALS" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SLOTS, creating" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SLOTS, parameters" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SLOTS, temporary classes" url="ch03lev1sec3.html"/>
+<entry name="Qt, Q_SLOTS" url="ch03lev1sec3.html"/>
<entry name="Qt, STL" url="ch03lev1sec5.html"/>
<entry name="Qt tookit" url="ch03.html"/>
<entry name="Qt toolkit, overview" url="ch03lev1sec2.html"/>
<entry name="Qt, utility classes" url="ch03lev1sec5.html"/>
<entry name="queryClose() function" url="ch07lev1sec3.html"/>
<entry name="quit action" url="ch06.html"/>
-<entry name="QVBox widget, layout managers, creating" url="ch08lev1sec2.html"/>
+<entry name="QVBox widget, tqlayout managers, creating" url="ch08lev1sec2.html"/>
<entry name="QWidget class, attributes" url="ch04.html"/>
<entry name="QWidget class, documentation" url="ch04.html"/>
<entry name="QWidget class, event handlers, closeEvent()" url="ch04.html"/>
@@ -2353,8 +2353,8 @@
<entry name="QWidget class, event handlers" url="ch04.html"/>
<entry name="QWidget class, event handlers, wheelEvent()" url="ch04.html"/>
<entry name="QWidget class, sample class declaration" url="ch04.html"/>
-<entry name="QWidget class, signals" url="ch04.html"/>
-<entry name="QWidget class, slots" url="ch04.html"/>
+<entry name="QWidget class, Q_SIGNALS" url="ch04.html"/>
+<entry name="QWidget class, Q_SLOTS" url="ch04.html"/>
<entry name="QWidget class" url="ch03lev1sec2.html"/>
<entry name="QWidget class" url="ch04.html"/>
<entry name="raises (" url="ch15.html"/>
@@ -2385,8 +2385,8 @@
<entry name="remove option (cvs command)" url="ch17lev1sec5.html"/>
<entry name="removing, modeless dialog boxes" url="ch08lev1sec3.html"/>
<entry name="rendering, HTML files" url="ch10.html"/>
-<entry name="repainting, widgets" url="ch04lev1sec2.html"/>
-<entry name="repaint() method, QPainter class" url="ch04lev1sec2.html"/>
+<entry name="tqrepainting, widgets" url="ch04lev1sec2.html"/>
+<entry name="tqrepaint() method, QPainter class" url="ch04lev1sec2.html"/>
<entry name="replace action" url="ch06.html"/>
<entry name="reportBug action" url="ch06.html"/>
<entry name="resiceGL(int width, int height) function (QGL widget)" url="ch03lev1sec6.html"/>
@@ -2463,13 +2463,13 @@
<entry name="show() method" url="ch02lev1sec3.html"/>
<entry name="showStatusbar action" url="ch06.html"/>
<entry name="showToolbar action" url="ch06.html"/>
-<entry name="signals, connecting to slots" url="ch03lev1sec3.html"/>
-<entry name="signals (DCOP)" url="ch13lev1sec6.html"/>
-<entry name="signals, emitting" url="ch03lev1sec3.html"/>
-<entry name="signals, parameters" url="ch03lev1sec3.html"/>
-<entry name="signals, (Qt)" url="ch03lev1sec3.html"/>
-<entry name="signals" url="ch03lev1sec2.html"/>
-<entry name="signals (widgets)" url="ch04.html"/>
+<entry name="Q_SIGNALS, connecting to Q_SLOTS" url="ch03lev1sec3.html"/>
+<entry name="Q_SIGNALS (DCOP)" url="ch13lev1sec6.html"/>
+<entry name="Q_SIGNALS, emitting" url="ch03lev1sec3.html"/>
+<entry name="Q_SIGNALS, parameters" url="ch03lev1sec3.html"/>
+<entry name="Q_SIGNALS, (Qt)" url="ch03lev1sec3.html"/>
+<entry name="Q_SIGNALS" url="ch03lev1sec2.html"/>
+<entry name="Q_SIGNALS (widgets)" url="ch04.html"/>
<entry name="SimpleSoundServer interface" url="ch14lev1sec4.html"/>
<entry name="since (" url="ch15.html"/>
<entry name="single-instance application, kunique.cpp call definition" url="ch11lev1sec2.html"/>
@@ -2479,17 +2479,17 @@
<entry name="slotButton()" url="ch03lev1sec4.html"/>
<entry name="slotOpen() function" url="ch07lev1sec5.html"/>
<entry name="slotSave() function" url="ch07lev1sec5.html"/>
-<entry name="slots, connecting to signals" url="ch03lev1sec3.html"/>
-<entry name="slots, creating" url="ch03lev1sec3.html"/>
-<entry name="slots (DCOP)" url="ch13lev1sec6.html"/>
-<entry name="slots, parameters" url="ch03lev1sec3.html"/>
+<entry name="Q_SLOTS, connecting to Q_SIGNALS" url="ch03lev1sec3.html"/>
+<entry name="Q_SLOTS, creating" url="ch03lev1sec3.html"/>
+<entry name="Q_SLOTS (DCOP)" url="ch13lev1sec6.html"/>
+<entry name="Q_SLOTS, parameters" url="ch03lev1sec3.html"/>
<entry name="slotSpecialHelp() function" url="ch05lev1sec2.html"/>
<entry name="slotSpellCheck() method" url="ch10lev1sec3.html"/>
-<entry name="slots, (Qt)" url="ch03lev1sec3.html"/>
-<entry name="slots, slotButton()" url="ch03lev1sec4.html"/>
-<entry name="slots, temporary classes" url="ch03lev1sec3.html"/>
-<entry name="slots" url="ch03lev1sec2.html"/>
-<entry name="slots (widgets)" url="ch04.html"/>
+<entry name="Q_SLOTS, (Qt)" url="ch03lev1sec3.html"/>
+<entry name="Q_SLOTS, slotButton()" url="ch03lev1sec4.html"/>
+<entry name="Q_SLOTS, temporary classes" url="ch03lev1sec3.html"/>
+<entry name="Q_SLOTS" url="ch03lev1sec2.html"/>
+<entry name="Q_SLOTS (widgets)" url="ch04.html"/>
<entry name="snapshots" url="ch17lev1sec3.html"/>
<entry name="socket() method" url="ch13lev1sec6.html"/>
<entry name="software development, documentation" url="ch18.html"/>
@@ -2789,7 +2789,7 @@
<entry name="widets, KImageView (image viewer/converter), main() method" url="ch10lev1sec2.html"/>
<entry name="widets, KImageView (image viewer/converter)" url="ch10lev1sec2.html"/>
<entry name="widgets, attributes" url="ch04.html"/>
-<entry name="widgets, child widgets, geometry management" url="ch04lev1sec3.html"/>
+<entry name="widgets, child widgets, tqgeometry management" url="ch04lev1sec3.html"/>
<entry name="widgets, child widgets, KChildren example" url="ch04lev1sec3.html"/>
<entry name="widgets, child widgets" url="ch04lev1sec3.html"/>
<entry name="widgets, compared to parts" url="ch12.html"/>
@@ -2832,12 +2832,12 @@
<entry name="widgets, painting, invoking paint events" url="ch04lev1sec2.html"/>
<entry name="widgets, painting, KXOSquare example" url="ch04lev1sec2.html"/>
<entry name="widgets, painting, paintEvent() method" url="ch04lev1sec2.html"/>
-<entry name="widgets, painting, repainting" url="ch04lev1sec2.html"/>
+<entry name="widgets, painting, tqrepainting" url="ch04lev1sec2.html"/>
<entry name="widgets, painting" url="ch04lev1sec2.html"/>
<entry name="widgets, QGL" url="ch03lev1sec6.html"/>
<entry name="widgets, sample class declaration" url="ch04.html"/>
-<entry name="widgets, signals" url="ch04.html"/>
-<entry name="widgets, slots" url="ch04.html"/>
+<entry name="widgets, Q_SIGNALS" url="ch04.html"/>
+<entry name="widgets, Q_SLOTS" url="ch04.html"/>
<entry name="widgets" url="ch01lev1sec2.html"/>
<entry name="widgets" url="ch04.html"/>
<entry name="widgets" url="ch04lev1sec3.html"/>
diff --git a/languages/cpp/doc/libc.toc b/languages/cpp/doc/libc.toc
index a007614d..626558da 100644
--- a/languages/cpp/doc/libc.toc
+++ b/languages/cpp/doc/libc.toc
@@ -58,7 +58,7 @@
<tocsect4 name="3.2.4.5 Obstack Functions and Macros" url="chapters_3.html#SEC47"/>
<tocsect4 name="3.2.4.6 Growing Objects" url="chapters_3.html#SEC48"/>
<tocsect4 name="3.2.4.7 Extra Fast Growing Objects" url="chapters_3.html#SEC49"/>
- <tocsect4 name="3.2.4.8 Status of an Obstack" url="chapters_3.html#SEC50"/>
+ <tocsect4 name="3.2.4.8 tqStatus of an Obstack" url="chapters_3.html#SEC50"/>
<tocsect4 name="3.2.4.9 Alignment of Data in Obstacks" url="chapters_3.html#SEC51"/>
<tocsect4 name="3.2.4.10 Obstack Chunks" url="chapters_3.html#SEC52"/>
<tocsect4 name="3.2.4.11 Summary of Obstack Functions" url="chapters_3.html#SEC53"/>
@@ -300,7 +300,7 @@
<tocsect2 name="13.9 Synchronizing I/O operations" url="chapters_13.html#SEC250"/>
<tocsect2 name="13.10 Perform I/O Operations in Parallel" url="chapters_13.html#SEC251">
<tocsect3 name="13.10.1 Asynchronous Read and Write Operations" url="chapters_13.html#SEC252"/>
- <tocsect3 name="13.10.2 Getting the Status of AIO Operations" url="chapters_13.html#SEC253"/>
+ <tocsect3 name="13.10.2 Getting the tqStatus of AIO Operations" url="chapters_13.html#SEC253"/>
<tocsect3 name="13.10.3 Getting into a Consistent State" url="chapters_13.html#SEC254"/>
<tocsect3 name="13.10.4 Cancellation of AIO Operations" url="chapters_13.html#SEC255"/>
<tocsect3 name="13.10.5 How to optimize the AIO implementation" url="chapters_13.html#SEC256"/>
@@ -308,11 +308,11 @@
<tocsect2 name="13.11 Control Operations on Files" url="chapters_13.html#SEC257"/>
<tocsect2 name="13.12 Duplicating Descriptors" url="chapters_13.html#SEC258"/>
<tocsect2 name="13.13 File Descriptor Flags" url="chapters_13.html#SEC259"/>
- <tocsect2 name="13.14 File Status Flags" url="chapters_13.html#SEC260">
+ <tocsect2 name="13.14 File tqStatus Flags" url="chapters_13.html#SEC260">
<tocsect3 name="13.14.1 File Access Modes" url="chapters_13.html#SEC261"/>
<tocsect3 name="13.14.2 Open-time Flags" url="chapters_13.html#SEC262"/>
<tocsect3 name="13.14.3 I/O Operating Modes" url="chapters_13.html#SEC263"/>
- <tocsect3 name="13.14.4 Getting and Setting File Status Flags" url="chapters_13.html#SEC264"/>
+ <tocsect3 name="13.14.4 Getting and Setting File tqStatus Flags" url="chapters_13.html#SEC264"/>
</tocsect2>
<tocsect2 name="13.15 File Locks" url="chapters_13.html#SEC265"/>
<tocsect2 name="13.16 Interrupt-Driven Input" url="chapters_13.html#SEC266"/>
@@ -455,7 +455,7 @@
<tocsect3 name="18.2.1 openlog" url="chapters_18.html#SEC385"/>
<tocsect3 name="18.2.2 syslog, vsyslog" url="chapters_18.html#SEC386"/>
<tocsect3 name="18.2.3 closelog" url="chapters_18.html#SEC387"/>
- <tocsect3 name="18.2.4 setlogmask" url="chapters_18.html#SEC388"/>
+ <tocsect3 name="18.2.4 setlogtqmask" url="chapters_18.html#SEC388"/>
<tocsect3 name="18.2.5 Syslog Example" url="chapters_18.html#SEC389"/>
</tocsect2>
</tocsect1>
@@ -666,7 +666,7 @@
<tocsect2 name="25.5 System Calls" url="chapters_25.html#SEC560"/>
<tocsect2 name="25.6 Program Termination" url="chapters_25.html#SEC561">
<tocsect3 name="25.6.1 Normal Termination" url="chapters_25.html#SEC562"/>
- <tocsect3 name="25.6.2 Exit Status" url="chapters_25.html#SEC563"/>
+ <tocsect3 name="25.6.2 Exit tqStatus" url="chapters_25.html#SEC563"/>
<tocsect3 name="25.6.3 Cleanups on Exit" url="chapters_25.html#SEC564"/>
<tocsect3 name="25.6.4 Aborting a Program" url="chapters_25.html#SEC565"/>
<tocsect3 name="25.6.5 Termination Internals" url="chapters_25.html#SEC566"/>
@@ -679,7 +679,7 @@
<tocsect2 name="26.4 Creating a Process" url="chapters_26.html#SEC571"/>
<tocsect2 name="26.5 Executing a File" url="chapters_26.html#SEC572"/>
<tocsect2 name="26.6 Process Completion" url="chapters_26.html#SEC573"/>
- <tocsect2 name="26.7 Process Completion Status" url="chapters_26.html#SEC574"/>
+ <tocsect2 name="26.7 Process Completion tqStatus" url="chapters_26.html#SEC574"/>
<tocsect2 name="26.8 BSD Process Wait Functions" url="chapters_26.html#SEC575"/>
<tocsect2 name="26.9 Process Creation Example" url="chapters_26.html#SEC576"/>
</tocsect1>
diff --git a/languages/cpp/doc/qt-kdev3.toc b/languages/cpp/doc/qt-kdev3.toc
index e1ed885e..b9e225ec 100644
--- a/languages/cpp/doc/qt-kdev3.toc
+++ b/languages/cpp/doc/qt-kdev3.toc
@@ -16,9 +16,9 @@
<tocsect2 name="Designing the program" url="design-program.html"/>
<tocsect2 name="Adding widgets" url="adding-widgets.html"/>
<tocsect2 name="Getting spaced out" url="spaced-out.html"/>
- <tocsect2 name="Signals and slots" url="signals-and-slots.html"/>
+ <tocsect2 name="Signals and Q_SLOTS" url="Q_SIGNALS-and-Q_SLOTS.html"/>
<tocsect2 name="Generating the source" url="source.html"/>
- <tocsect2 name="Implementing the slot" url="slots.html"/>
+ <tocsect2 name="Implementing the slot" url="Q_SLOTS.html"/>
</tocsect1>
<tocsect1 name="In short" url="in-short.html">
</tocsect1>
@@ -32,7 +32,7 @@
</tocsect1>
<tocsect1 name="Generating the source (alternate)" url="without_subclass.html">
<tocsect2 name="Without using the KDevelop subclassing capability" url="without_subclass.html"/>
- <tocsect2 name="Implementing the slot" url="slots2.html"/>
+ <tocsect2 name="Implementing the slot" url="Q_SLOTS2.html"/>
</tocsect1>
<tocsect1 name="Credits and License" url="credits.html">
</tocsect1>
diff --git a/languages/cpp/doc/stl.toc b/languages/cpp/doc/stl.toc
index d86b82b0..a3754311 100644
--- a/languages/cpp/doc/stl.toc
+++ b/languages/cpp/doc/stl.toc
@@ -109,9 +109,9 @@
<tocsect1 name="Algorithms" url="">
<tocsect2 name="Non-mutating algorithms" url="">
<tocsect3 name="for_each" url="for_each.html"/>
- <tocsect3 name="find" url="find.html"/>
+ <tocsect3 name="tqfind" url="find.html"/>
<tocsect3 name="find_if" url="find_if.html"/>
- <tocsect3 name="adjacent_find" url="adjacent_find.html"/>
+ <tocsect3 name="adjacent_tqfind" url="adjacent_find.html"/>
<tocsect3 name="find_first_of" url="find_first_of.html"/>
<tocsect3 name="count" url="count.html"/>
<tocsect3 name="count_if" url="count_if.html"/>
@@ -129,7 +129,7 @@
<tocsect3 name="iter_swap" url="iter_swap.html"/>
<tocsect3 name="swap_ranges" url="swap_ranges.html"/>
<tocsect3 name="transform" url="transform.html"/>
- <tocsect3 name="replace" url="replace.html"/>
+ <tocsect3 name="tqreplace" url="tqreplace.html"/>
<tocsect3 name="replace_if" url="replace_if.html"/>
<tocsect3 name="replace_copy" url="replace_copy.html"/>
<tocsect3 name="replace_copy_if" url="replace_copy_if.html"/>
@@ -370,9 +370,9 @@
<entry name="distance, STL function" url="distance.html"/>
<entry name="advance, STL function" url="advance.html"/>
<entry name="for_each, STL algorithm" url="for_each.html"/>
-<entry name="find, STL algorithm" url="find.html"/>
+<entry name="tqfind, STL algorithm" url="find.html"/>
<entry name="find_if, STL algorithm" url="find_if.html"/>
-<entry name="adjacent_find, STL algorithm" url="adjacent_find.html"/>
+<entry name="adjacent_tqfind, STL algorithm" url="adjacent_find.html"/>
<entry name="find_first_of, STL algorithm" url="find_first_of.html"/>
<entry name="count, STL algorithm" url="count.html"/>
<entry name="count_if, STL algorithm" url="count_if.html"/>
@@ -388,7 +388,7 @@
<entry name="iter_swap, STL algorithm" url="iter_swap.html"/>
<entry name="swap_ranges, STL algorithm" url="swap_ranges.html"/>
<entry name="transform, STL algorithm" url="transform.html"/>
-<entry name="replace, STL algorithm" url="replace.html"/>
+<entry name="tqreplace, STL algorithm" url="tqreplace.html"/>
<entry name="replace_if, STL algorithm" url="replace_if.html"/>
<entry name="replace_copy, STL algorithm" url="replace_copy.html"/>
<entry name="fill, STL algorithm" url="fill.html"/>
diff --git a/languages/cpp/doxydoc.cpp b/languages/cpp/doxydoc.cpp
index 54343b70..1f35708c 100644
--- a/languages/cpp/doxydoc.cpp
+++ b/languages/cpp/doxydoc.cpp
@@ -20,7 +20,7 @@
void DoxyDoc::formatType( TQString& str )
{
- str.replace( TQRegExp( " " ), "" );
+ str.tqreplace( TQRegExp( " " ), "" );
}
DoxyDoc::DoxyDoc( const TQStringList& dir )
@@ -36,7 +36,7 @@ TQString DoxyDoc::functionDescription( const TQString& tmpscope, const TQString&
TQString scope = tmpscope;
bool foundfile = false;
//produce doxygen conform filenames
- TQString filename = "/class" + scope.replace( TQRegExp( "_" ), "__" ).replace( TQRegExp( "::" ), "_1_1" ) + ".xml";
+ TQString filename = "/class" + scope.tqreplace( TQRegExp( "_" ), "__" ).tqreplace( TQRegExp( "::" ), "_1_1" ) + ".xml";
//search for file in all directories
for ( std::list<TQDir>::const_iterator ci = m_dirs.begin(); !foundfile && ci != m_dirs.end(); ++ci )
@@ -53,7 +53,7 @@ TQString DoxyDoc::functionDescription( const TQString& tmpscope, const TQString&
return "";
}
TQDomDocument m_doc;
- m_doc.setContent( m_file.readAll() );
+ m_doc.setContent( TQByteArray(m_file.readAll()) );
m_file.close();
m_list = m_doc.elementsByTagName( "memberdef" );
foundfile = true;
@@ -64,7 +64,7 @@ TQString DoxyDoc::functionDescription( const TQString& tmpscope, const TQString&
}
}
if ( !foundfile )
- return TQString::null;
+ return TQString();
TQString type = tmptype;
formatType( type );
@@ -134,7 +134,7 @@ TQString DoxyDoc::functionDescription( const TQString& tmpscope, const TQString&
description += "<b>Parameterlist:</b><p>" + paramstr;
if ( description == "" )
- return TQString::null;
+ return TQString();
else
return description;
}
@@ -142,7 +142,7 @@ TQString DoxyDoc::functionDescription( const TQString& tmpscope, const TQString&
}
- return TQString::null;
+ return TQString();
}
//kate: indent-mode csands; tab-width 4; space-indent off;
diff --git a/languages/cpp/includepathresolver.cpp b/languages/cpp/includepathresolver.cpp
index ebd536ec..fee9832e 100644
--- a/languages/cpp/includepathresolver.cpp
+++ b/languages/cpp/includepathresolver.cpp
@@ -18,7 +18,7 @@
*
*
* unsermake:
- * unsermake is detected by reading the first line of the makefile. If it contains "generated by unsermake" the following things are respected:
+ * unsermake is detected by reading the first line of the makefile. If it tqcontains "generated by unsermake" the following things are respected:
* 1. Since unsermake does not have the -W command(which should tell it to recompile the given file no matter whether it has been changed or not), the file-modification-time of the file is changed temporarily and the --no-real-compare option is used to force recompilation.
* 2. The targets seem to be called *.lo instead of *.o when using unsermake, so *.lo names are used.
* example-(test)command: unsermake --no-real-compare -n myfile.lo
@@ -181,7 +181,7 @@ namespace CppTools {
if( f.open( IO_ReadOnly ) ) {
TQString firstLine;
f.readLine( firstLine, 1000 );
- if( firstLine.find( "generated by unsermake" ) != -1 ) {
+ if( firstLine.tqfind( "generated by unsermake" ) != -1 ) {
ret = true;
}
f.close();
@@ -257,11 +257,11 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const TQString& fi
dir = TQDir( dir.absPath() );
TQFileInfo makeFile( dir, "Makefile" );
if( !makeFile.exists() )
- return PathResolutionResult(false, i18n("Makefile is missing in folder \"%1\"").arg(dir.absPath()), i18n("problem while trying to resolve include-paths for %1").arg(file) );
+ return PathResolutionResult(false, i18n("Makefile is missing in folder \"%1\"").tqarg(dir.absPath()), i18n("problem while trying to resolve include-paths for %1").tqarg(file) );
TQStringList cachedPath; //If the call doesn't succeed, use the cached not up-to-date version
TQDateTime makeFileModification = makeFile.lastModified();
- Cache::iterator it = m_cache.find( dir.path() );
+ Cache::iterator it = m_cache.tqfind( dir.path() );
if( it != m_cache.end() ) {
cachedPath = (*it).path;
if( makeFileModification == (*it).modificationTime ) {
@@ -272,7 +272,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const TQString& fi
return ret;
} else {
//We have a cached failed result. We should use that for some time but then try again. Return the failed result if: ( there were too many tries within this folder OR this file was already tried ) AND The last tries have not expired yet
- if( /*((*it).failedFiles.size() > 3 || (*it).failedFiles.find( file ) != (*it).failedFiles.end()) &&*/ (*it).failTime.secsTo( TQDateTime::currentDateTime() ) < CACHE_FAIL_FOR_SECONDS ) {
+ if( /*((*it).failedFiles.size() > 3 || (*it).failedFiles.tqfind( file ) != (*it).failedFiles.end()) &&*/ (*it).failTime.secsTo( TQDateTime::tqcurrentDateTime() ) < CACHE_FAIL_FOR_SECONDS ) {
PathResolutionResult ret(false); //Fake that the result is ok
ret.errorMessage = i18n("Cached: ") + (*it).errorMessage;
ret.longErrorMessage = (*it).longErrorMessage;
@@ -297,8 +297,8 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const TQString& fi
absoluteFile = u.path();
int dot;
- if( (dot = file.findRev( '.' )) == -1 )
- return PathResolutionResult( false, i18n( "Filename %1 seems to be malformed" ).arg(file) );
+ if( (dot = file.tqfindRev( '.' )) == -1 )
+ return PathResolutionResult( false, i18n( "Filename %1 seems to be malformed" ).tqarg(file) );
targetName = file.left( dot );
@@ -365,7 +365,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const TQString& fi
ce.failed = true;
ce.errorMessage = res.errorMessage;
ce.longErrorMessage = res.longErrorMessage;
- ce.failTime = TQDateTime::currentDateTime();
+ ce.failTime = TQDateTime::tqcurrentDateTime();
ce.failedFiles[file] = true;
} else {
ce.failed = false;
@@ -387,12 +387,12 @@ PathResolutionResult IncludePathResolver::getFullOutput( const TQString& command
output = proc.stdOut();
if( proc.exitStatus() != 0 )
- return PathResolutionResult( false, i18n("make-process finished with nonzero exit-status"), i18n("output: %1").arg( output ) );
+ return PathResolutionResult( false, i18n("make-process finished with nonzero exit-status"), i18n("output: %1").tqarg( output ) );
} else {
bool ret = executeCommandPopen(command, workingDirectory, output);
if( !ret )
- return PathResolutionResult( false, i18n("make-process failed"), i18n("output: %1").arg( output ) );
+ return PathResolutionResult( false, i18n("make-process failed"), i18n("output: %1").tqarg( output ) );
}
return PathResolutionResult(true);
}
@@ -413,11 +413,11 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const TQSt
return res;
TQRegExp newLineRx("\\\\\\n");
- fullOutput.replace( newLineRx, "" );
+ fullOutput.tqreplace( newLineRx, "" );
///@todo collect multiple outputs at the same time for performance-reasons
TQString firstLine = fullOutput;
int lineEnd;
- if( (lineEnd = fullOutput.find('\n')) != -1 )
+ if( (lineEnd = fullOutput.tqfind('\n')) != -1 )
firstLine.truncate( lineEnd ); //Only look at the first line of output
/**
@@ -443,7 +443,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const TQSt
else if( prefix.endsWith( ";" ) )
prefix.truncate( prefix.length() - 1 );
///Now test if what we have as prefix is a simple "cd /foo/bar" call.
- if( prefix.startsWith( "cd ") && !prefix.contains( ";") && !prefix.contains("&&") ) {
+ if( prefix.startsWith( "cd ") && !prefix.tqcontains( ";") && !prefix.tqcontains("&&") ) {
newWorkingDirectory = prefix.right( prefix.length() - 3 ).stripWhiteSpace();
if( !newWorkingDirectory.startsWith("/") )
newWorkingDirectory = workingDirectory + "/" + newWorkingDirectory;
@@ -456,7 +456,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const TQSt
if( d.exists() ) {
///The recursive working-directory exists.
TQString makeParams = firstLine.mid( offset+5 );
- if( !makeParams.contains( ";" ) && !makeParams.contains( "&&" ) ) {
+ if( !makeParams.tqcontains( ";" ) && !makeParams.tqcontains( "&&" ) ) {
///Looks like valid parameters
///Make the file-name absolute, so it can be referenced from any directory
TQString absoluteFile = file;
@@ -471,14 +471,14 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const TQSt
return res;
return resolveIncludePathInternal( KURL::relativePath(newWorkingDirectory,u.path()), newWorkingDirectory, makeParams , newSource );
}else{
- return PathResolutionResult( false, i18n("Recursive make-call failed"), i18n("The parameter-string \"%1\" does not seem to be valid. Output was: %2").arg(makeParams).arg(fullOutput) );
+ return PathResolutionResult( false, i18n("Recursive make-call failed"), i18n("The parameter-string \"%1\" does not seem to be valid. Output was: %2").tqarg(makeParams).tqarg(fullOutput) );
}
} else {
- return PathResolutionResult( false, i18n("Recursive make-call failed"), i18n("The directory \"%1\" does not exist. Output was: %2").arg(newWorkingDirectory).arg(fullOutput) );
+ return PathResolutionResult( false, i18n("Recursive make-call failed"), i18n("The directory \"%1\" does not exist. Output was: %2").tqarg(newWorkingDirectory).tqarg(fullOutput) );
}
} else {
- return PathResolutionResult( false, i18n("Recursive make-call malformed"), i18n("Output was: %2").arg(fullOutput) );
+ return PathResolutionResult( false, i18n("Recursive make-call malformed"), i18n("Output was: %2").tqarg(fullOutput) );
}
++offset;
@@ -488,7 +488,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const TQSt
///STEP 2: Search the output for include-paths
TQRegExp validRx( "\\b([cg]\\+\\+|gcc)" );
if( validRx.search( fullOutput ) == -1 )
- return PathResolutionResult( false, i18n("Output seems not to be a valid gcc or g++ call"), i18n("Folder: \"%1\" Command: \"%2\" Output: \"%3\"").arg(workingDirectory).arg( source.getCommand(file, makeParameters) ).arg(fullOutput) );
+ return PathResolutionResult( false, i18n("Output seems not to be a valid gcc or g++ call"), i18n("Folder: \"%1\" Command: \"%2\" Output: \"%3\"").tqarg(workingDirectory).tqarg( source.getCommand(file, makeParameters) ).tqarg(fullOutput) );
PathResolutionResult ret( true );
ret.longErrorMessage = fullOutput;
@@ -497,7 +497,7 @@ PathResolutionResult IncludePathResolver::resolveIncludePathInternal( const TQSt
TQString quotedRx( "(\\').*(\\')|(\\\").*(\\\")" ); //Matches "hello", 'hello', 'hello"hallo"', etc.
TQString escapedPathRx( "(([^)(\"'\\s]*)(\\\\\\s)?)*" ); //Matches /usr/I\ am \ a\ strange\ path/include
- TQRegExp includeRx( TQString( "%1(%2|%3)(?=\\s)" ).arg( includeParameterRx ).arg( quotedRx ).arg( escapedPathRx ) );
+ TQRegExp includeRx( TQString( "%1(%2|%3)(?=\\s)" ).tqarg( includeParameterRx ).tqarg( quotedRx ).tqarg( escapedPathRx ) );
includeRx.setMinimal( true );
includeRx.setCaseSensitive( true );
offset = 0;
diff --git a/languages/cpp/includepathresolver.h b/languages/cpp/includepathresolver.h
index 33aaecd9..57106e4f 100644
--- a/languages/cpp/includepathresolver.h
+++ b/languages/cpp/includepathresolver.h
@@ -38,7 +38,7 @@ namespace CppTools {
///One resolution-try can issue up to 4 make-calls in worst case
class IncludePathResolver {
public:
- ///Whether the Qt event-loop should be continued(using BlockingKProcess). This crashes if enabled in a non-foreground thread.
+ ///Whether the TQt event-loop should be continued(using BlockingKProcess). This crashes if enabled in a non-foreground thread.
IncludePathResolver( bool continueEventLoop = false );
///Same as below, but uses the directory of the file as working-directory. The argument must be absolute.
PathResolutionResult resolveIncludePath( const TQString& file );
diff --git a/languages/cpp/kdevdriver.cpp b/languages/cpp/kdevdriver.cpp
index f240ed36..9e0918b2 100644
--- a/languages/cpp/kdevdriver.cpp
+++ b/languages/cpp/kdevdriver.cpp
@@ -105,11 +105,11 @@ void KDevDriver::setup()
if( !kdedir.isNull() )
addIncludePath( kdedir + "/include" );
- TQString qmakespec = getenv( "QMAKESPEC" );
+ TQString qmakespec = getenv( "TQMAKESPEC" );
if ( qmakespec.isNull() )
qmakespec = "linux-g++";
- TQString qtdir = getenv( "QTDIR" );
+ TQString qtdir = getenv( "TQTDIR" );
if( !qtdir.isNull() ) {
addIncludePath( qtdir + "/include" );
@@ -130,15 +130,15 @@ void KDevDriver::setup()
}
addMacro( Macro( "__cplusplus", "1" ) );
- addMacro( Macro( "Q_SIGNALS", "signals" ) );
- addMacro( Macro( "Q_SLOTS", "slots" ) );
- addMacro( Macro( "Q_SCRIPTABLE", "" ) );
+ addMacro( Macro( "signals", "signals" ) );
+ addMacro( Macro( "slots", "slots" ) );
+ addMacro( Macro( "TQ_SCRIPTABLE", "" ) );
CppCodeCompletionConfig* cfg = m_cppSupport->codeCompletionConfig();
TQString str = cfg->customIncludePaths();
int pos = 0;
while( pos < str.length() ) {
- int end = str.find( ';', pos );
+ int end = str.tqfind( ';', pos );
if( end == -1 ) {
end = str.length();
}
@@ -175,7 +175,7 @@ TQStringList KDevDriver::getCustomIncludePath( const TQString& file ) {
CppTools::PathResolutionResult res = m_includePathResolver->resolveIncludePath( file );
if( !res.success ) {
- Problem p( i18n( "%1. Message: %2" ).arg( res.errorMessage ).arg( res.longErrorMessage ), 0, 0, Problem::Level_Warning );
+ Problem p( i18n( "%1. Message: %2" ).tqarg( res.errorMessage ).tqarg( res.longErrorMessage ), 0, 0, Problem::Level_Warning );
p.setFileName( file );
addProblem( file, p );
}
@@ -184,15 +184,15 @@ TQStringList KDevDriver::getCustomIncludePath( const TQString& file ) {
}
bool KDevDriver::shouldParseIncludedFile( const ParsedFilePointer& file ) {
- TQString compoundString = file->fileName() + "||" + TQString("%1").arg(file->usedMacros().valueHash()) + "||" + TQString("%1").arg(file->usedMacros().idHash());
+ TQString compoundString = file->fileName() + "||" + TQString("%1").tqarg(file->usedMacros().valueHash()) + "||" + TQString("%1").tqarg(file->usedMacros().idHash());
if( !m_shouldParseIncludedFiles )
return false;
- m_cppSupport->safeFileSet().contains( compoundString );
+ m_cppSupport->safeFileSet().tqcontains( compoundString );
- if( m_cppSupport->safeFileSet().contains( file->fileName()) ){
+ if( m_cppSupport->safeFileSet().tqcontains( file->fileName()) ){
return false;
- } else if( m_cppSupport->safeFileSet().contains( compoundString ) ) {
+ } else if( m_cppSupport->safeFileSet().tqcontains( compoundString ) ) {
//kdDebug( 9007 ) << "ALREADY IN FILE-SET: " << compoundString << endl;
return false;
} else {
diff --git a/languages/cpp/main.cpp b/languages/cpp/main.cpp
index b3e6bacb..b29fe2d4 100644
--- a/languages/cpp/main.cpp
+++ b/languages/cpp/main.cpp
@@ -86,11 +86,11 @@ public:
if ( !kdedir.isNull() )
addIncludePath( kdedir + "/include" );
- TQString qtdir = getenv( "QTDIR" );
+ TQString qtdir = getenv( "TQTDIR" );
if ( !qtdir.isNull() )
addIncludePath( qtdir + "/include" );
- TQString qmakespec = getenv( "QMAKESPEC" );
+ TQString qmakespec = getenv( "TQMAKESPEC" );
if ( qmakespec.isNull() )
qmakespec = "linux-g++";
// #### implement other mkspecs and find a better way to find the
@@ -107,7 +107,7 @@ public:
TQString gccLibPath = SetupHelper::getGccIncludePath(&ok);
if (!ok)
return;
- gccLibPath = gccLibPath.replace( TQRegExp( "[\r\n]" ), "" );
+ gccLibPath = gccLibPath.tqreplace( TQRegExp( "[\r\n]" ), "" );
addIncludePath( gccLibPath );
addIncludePath( "/usr/include/g++-3" );
addIncludePath( "/usr/include/g++" );
diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
index 5551cd02..930bcfef 100644
--- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
+++ b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
@@ -19,9 +19,9 @@
K_EXPORT_COMPONENT_FACTORY( libkdevcustompcsimporter, KGenericFactory<KDevCustomImporter>( "kdevcustompcsimporter" ) )
-KDevCustomImporter::KDevCustomImporter( TQObject* parent, const char* name, const TQStringList & // args
+KDevCustomImporter::KDevCustomImporter( TQObject* tqparent, const char* name, const TQStringList & // args
)
- : KDevPCSImporter( parent, name )
+ : KDevPCSImporter( tqparent, name )
{}
@@ -75,9 +75,9 @@ TQStringList KDevCustomImporter::includePaths()
return m_settings->dirs();
}
-TQWidget* KDevCustomImporter::createSettingsPage( TQWidget* parent, const char* name )
+TQWidget* KDevCustomImporter::createSettingsPage( TQWidget* tqparent, const char* name )
{
- m_settings = new SettingsDialog( parent, name );
+ m_settings = new SettingsDialog( tqparent, name );
return m_settings;
}
@@ -94,7 +94,7 @@ void KDevCustomImporter::processDir( const TQString path, TQStringList & files )
if (!dir.exists())
continue;
kdDebug( 9015 ) << "Examining: " << dir.path() << endl;
- const QFileInfoList *dirEntries = dir.entryInfoList();
+ const TQFileInfoList *dirEntries = dir.entryInfoList();
if ( !dirEntries ) continue;
TQPtrListIterator<TQFileInfo> it( *dirEntries );
for ( ; dirEntries && it.current(); ++it )
diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
index bca53eeb..0aea3974 100644
--- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
+++ b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
@@ -19,15 +19,16 @@ class SettingsDialog;
class KDevCustomImporter : public KDevPCSImporter
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDevCustomImporter(TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
+ KDevCustomImporter(TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList());
~KDevCustomImporter();
virtual TQString dbName() const;
virtual TQStringList fileList();
virtual TQStringList includePaths();
- virtual TQWidget* createSettingsPage(TQWidget* parent, const char* name);
+ virtual TQWidget* createSettingsPage(TQWidget* tqparent, const char* name);
protected:
TQStringList fileList( const TQString& path );
diff --git a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
index 37f2bfef..ebef44ed 100644
--- a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
@@ -34,8 +34,8 @@
#include <cstdlib>
-SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
- : SettingsDialogBase( parent, name, fl )
+SettingsDialog::SettingsDialog( TQWidget* tqparent, const char* name, WFlags fl )
+ : SettingsDialogBase( tqparent, name, fl )
{
KURLRequester * req = new KURLRequester( this );
req->setMode( KFile::Directory );
@@ -83,17 +83,17 @@ void SettingsDialog::validate()
void SettingsDialog::validateDirectory( const TQString & dir )
{
- TQDir d( dir, TQString::null, TQDir::DefaultSort, TQDir::Dirs );
+ TQDir d( dir, TQString(), TQDir::DefaultSort, TQDir::Dirs );
if ( !d.exists() )
{
elb->lineEdit() ->setText( dir );
- if ( TQListBoxItem * item = elb->listBox() ->findItem( dir, Qt::ExactMatch ) )
+ if ( TQListBoxItem * item = elb->listBox() ->tqfindItem( dir, TQt::ExactMatch ) )
{
elb->listBox() ->removeItem( elb->listBox() ->index( item ) );
}
- TQString errormsg = TQString( "<qt><b>%1</b> is not a directory</qt>" ).arg( dir );
+ TQString errormsg = TQString( "<qt><b>%1</b> is not a directory</qt>" ).tqarg( dir );
KMessageBox::error( 0, errormsg, "Couldn't find directory" );
}
emit enabled( elb->listBox()->count() > 0 );
diff --git a/languages/cpp/pcsimporter/customimporter/settingsdialog.h b/languages/cpp/pcsimporter/customimporter/settingsdialog.h
index 02336f98..3d683f99 100644
--- a/languages/cpp/pcsimporter/customimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/customimporter/settingsdialog.h
@@ -19,12 +19,13 @@ class KEditListBox;
class SettingsDialog : public SettingsDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
- bool isValidQtDir( const TQString& path ) const;
+ bool isValidTQtDir( const TQString& path ) const;
TQString qtDir() const;
TQString configuration() const;
diff --git a/languages/cpp/pcsimporter/customimporter/settingsdialogbase.ui b/languages/cpp/pcsimporter/customimporter/settingsdialogbase.ui
index b9faadb1..a7678844 100644
--- a/languages/cpp/pcsimporter/customimporter/settingsdialogbase.ui
+++ b/languages/cpp/pcsimporter/customimporter/settingsdialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>SettingsDialogBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>SettingsDialogBase</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>grid</cstring>
</property>
@@ -32,7 +32,7 @@
<string>*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -40,7 +40,7 @@
<string>Filename pattern:</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>recursive_box</cstring>
</property>
@@ -55,8 +55,8 @@
</widget>
</vbox>
</widget>
-<signals>
+<Q_SIGNALS>
<signal>enabled(int)</signal>
-</signals>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SIGNALS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp
index a52da5d7..d487ab35 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp
+++ b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp
@@ -23,8 +23,8 @@
K_EXPORT_COMPONENT_FACTORY( libkdevkdelibsimporter, KGenericFactory<KDevKDELibsImporter>( "kdevkdelibsimporter" ) )
-KDevKDELibsImporter::KDevKDELibsImporter( TQObject * parent, const char * name, const TQStringList& )
- : KDevPCSImporter( parent, name )
+KDevKDELibsImporter::KDevKDELibsImporter( TQObject * tqparent, const char * name, const TQStringList& )
+ : KDevPCSImporter( tqparent, name )
{}
KDevKDELibsImporter::~KDevKDELibsImporter()
@@ -76,7 +76,7 @@ TQStringList KDevKDELibsImporter::fileList()
{
dir.setPath( s.pop() );
kdDebug( 9015 ) << "Examining: " << dir.path() << endl;
- const QFileInfoList *dirEntries = dir.entryInfoList();
+ const TQFileInfoList *dirEntries = dir.entryInfoList();
if ( !dirEntries ) continue;
TQPtrListIterator<TQFileInfo> it( *dirEntries );
for ( ; it.current(); ++it )
@@ -109,9 +109,9 @@ TQStringList KDevKDELibsImporter::includePaths()
return includePaths;
}
-TQWidget * KDevKDELibsImporter::createSettingsPage( TQWidget * parent, const char * name )
+TQWidget * KDevKDELibsImporter::createSettingsPage( TQWidget * tqparent, const char * name )
{
- m_settings = new SettingsDialog( parent, name );
+ m_settings = new SettingsDialog( tqparent, name );
return m_settings;
}
//kate: indent-mode csands; tab-width 4; space-indent off;
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h
index 45cf470a..1e2c8254 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h
+++ b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h
@@ -9,8 +9,8 @@
* *
***************************************************************************/
-#ifndef KDEVQTIMPORTER_H
-#define KDEVQTIMPORTER_H
+#ifndef KDEVTQTIMPORTER_H
+#define KDEVTQTIMPORTER_H
#include <kdevpcsimporter.h>
#include <tqguardedptr.h>
@@ -20,15 +20,16 @@ class SettingsDialog;
class KDevKDELibsImporter : public KDevPCSImporter
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDevKDELibsImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
+ KDevKDELibsImporter( TQObject* tqparent=0, const char* name=0, const TQStringList& args=TQStringList() );
virtual ~KDevKDELibsImporter();
- virtual TQString dbName() const { return TQString::fromLatin1("KDElibs"); }
+ virtual TQString dbName() const { return TQString::tqfromLatin1("KDElibs"); }
virtual TQStringList fileList();
virtual TQStringList includePaths();
- virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* tqparent, const char* name=0 );
private:
TQStringList fileList( const TQString& path );
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp
index a0763380..612ff79a 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp
@@ -29,17 +29,17 @@
#include "settingsdialog.h"
-TQListBoxItem* QListBox_selectedItem( TQListBox* cpQListBox )
+TQListBoxItem* TQListBox_selectedItem( TQListBox* cpTQListBox )
{
- if ( cpQListBox->selectionMode() != TQListBox::Single )
+ if ( cpTQListBox->selectionMode() != TQListBox::Single )
return 0;
- if ( cpQListBox->isSelected( cpQListBox->currentItem() ) )
- return cpQListBox->item( cpQListBox->currentItem() );
+ if ( cpTQListBox->isSelected( cpTQListBox->currentItem() ) )
+ return cpTQListBox->item( cpTQListBox->currentItem() );
return 0;
}
-SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
-: SettingsDialogBase( parent, name, fl )
+SettingsDialog::SettingsDialog( TQWidget* tqparent, const char* name, WFlags fl )
+: SettingsDialogBase( tqparent, name, fl )
{
KApplication::kApplication()->dirs()->addResourceType("include","include");
TQStringList kdedirs=KApplication::kApplication()->dirs()->findDirs("include","");
@@ -47,7 +47,7 @@ SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
{
TQString kdedir = *it;
if ( !kdedir.isEmpty() && isValidKDELibsDir( kdedir ) )
- if ( !kdeListBox->findItem( kdedir, ExactMatch ) )
+ if ( !kdeListBox->tqfindItem( kdedir, ExactMatch ) )
kdeListBox->insertItem( kdedir );
}
@@ -81,7 +81,7 @@ void SettingsDialog::addUrlButton_clicked()
if ( isValidKDELibsDir( kdeUrl->url() ) )
{
kdeListBox->insertItem( kdeUrl->url() );
- if ( TQListBoxItem * item = kdeListBox->findItem( kdeUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = kdeListBox->tqfindItem( kdeUrl->url(), ExactMatch ) )
{
kdeListBox->setSelected( item, true );
}
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h
index 4a06dd12..7de31292 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h
@@ -17,9 +17,10 @@
class SettingsDialog : public SettingsDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialogbase.ui b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialogbase.ui
index 00b8c3ac..de905d40 100644
--- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialogbase.ui
+++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>SettingsDialogBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>SettingsDialogBase</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="4">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -25,7 +25,7 @@
Only the selected entry will be used</string>
</property>
</widget>
- <widget class="QComboBox" row="3" column="1">
+ <widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>KDE Libs Headers</string>
@@ -46,7 +46,7 @@ Only the selected entry will be used</string>
<string>Decide if you want to restrict the Code Completion database to only the base kdelibs API or the entire KDE include structure</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -65,7 +65,7 @@ Only the selected entry will be used</string>
<string>If none of the directories KDevelop found is what you want,you can enter a directory of your choice here</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="3">
+ <widget class="TQPushButton" row="2" column="3">
<property name="name">
<cstring>addUrlButton</cstring>
</property>
@@ -96,7 +96,7 @@ Only the selected entry will be used</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>220</width>
<height>20</height>
@@ -110,18 +110,18 @@ Only the selected entry will be used</string>
<connections>
<connection>
<sender>kdeListBox</sender>
- <signal>selectionChanged(QListBoxItem*)</signal>
+ <signal>selectionChanged(TQListBoxItem*)</signal>
<receiver>SettingsDialogBase</receiver>
- <slot>slotSelectionChanged(QListBoxItem*)</slot>
+ <slot>slotSelectionChanged(TQListBoxItem*)</slot>
</connection>
</connections>
-<signals>
+<Q_SIGNALS>
<signal>enabled(int)</signal>
-</signals>
-<slots>
- <slot>slotSelectionChanged(QListBoxItem*)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SIGNALS>
+<Q_SLOTS>
+ <slot>slotSelectionChanged(TQListBoxItem*)</slot>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
index d4635ba4..5864659c 100644
--- a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
@@ -22,15 +22,15 @@
#include <tqlabel.h>
#include <tqdir.h>
-K_EXPORT_COMPONENT_FACTORY( libkdevqt4importer, KGenericFactory<KDevQt4Importer>( "kdevqt4importer" ) )
+K_EXPORT_COMPONENT_FACTORY( libkdevqt4importer, KGenericFactory<KDevTQt4Importer>( "kdevqt4importer" ) )
-KDevQt4Importer::KDevQt4Importer( TQObject * parent, const char * name, const TQStringList& )
- : KDevPCSImporter( parent, name )
+KDevTQt4Importer::KDevTQt4Importer( TQObject * tqparent, const char * name, const TQStringList& )
+ : KDevPCSImporter( tqparent, name )
{
m_qtfile = 0;
}
-KDevQt4Importer::~KDevQt4Importer()
+KDevTQt4Importer::~KDevTQt4Importer()
{
if (m_qtfile)
delete m_qtfile;
@@ -38,7 +38,7 @@ KDevQt4Importer::~KDevQt4Importer()
m_qtfile = 0;
}
-TQStringList KDevQt4Importer::fileList()
+TQStringList KDevTQt4Importer::fileList()
{
if( !m_settings )
return TQStringList();
@@ -49,18 +49,18 @@ TQStringList KDevQt4Importer::fileList()
KTempFile ifile;
TQTextStream &is = *ifile.textStream();
- is << "#include <QtCore/qobjectdefs.h>\n"
- << "#undef Q_SLOTS\n#undef Q_SIGNALS\n#undef slots\n#undef signals"
- << "#define Q_SLOTS slots\n"
- << "#define Q_SIGNALS signals\n"
- << "#include <QtCore/QtCore>\n"
- << "#include <QtGui/QtGui>\n"
- << "#include <QtNetwork/QtNetwork>\n"
- << "#include <QtXml/QtXml>\n"
- << "#include <Qt3Support/Qt3Support>\n"
- << "#include <QtSql/QtSql>\n"
- << "#include <QtTest/QtTest>\n"
- << "#include <QtOpenGL/QtOpenGL>\n";
+ is << "#include <TQtCore/tqobjectdefs.h>\n"
+ << "#undef slots\n#undef signals\n#undef slots\n#undef signals"
+ << "#define slots slots\n"
+ << "#define signals signals\n"
+ << "#include <TQtCore/TQtCore>\n"
+ << "#include <TQtGui/TQtGui>\n"
+ << "#include <TQtNetwork/TQtNetwork>\n"
+ << "#include <TQtXml/TQtXml>\n"
+ << "#include <TQt3Support/TQt3Support>\n"
+ << "#include <TQtSql/TQtSql>\n"
+ << "#include <TQtTest/TQtTest>\n"
+ << "#include <TQtOpenGL/TQtOpenGL>\n";
@@ -86,22 +86,22 @@ TQStringList KDevQt4Importer::fileList()
return m_qtfile->name();
}
-TQStringList KDevQt4Importer::includePaths()
+TQStringList KDevTQt4Importer::includePaths()
{
if( !m_settings || !m_qtfile)
return TQStringList();
TQStringList includePaths;
includePaths.push_back( m_settings->qtDir() );
- includePaths.push_back( m_settings->qtDir() + "/Qt" );
+ includePaths.push_back( m_settings->qtDir() + "/TQt" );
/// @todo add mkspec
return includePaths;
}
-TQWidget * KDevQt4Importer::createSettingsPage( TQWidget * parent, const char * name )
+TQWidget * KDevTQt4Importer::createSettingsPage( TQWidget * tqparent, const char * name )
{
- m_settings = new SettingsDialog( parent, name );
+ m_settings = new SettingsDialog( tqparent, name );
return m_settings;
}
diff --git a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
index c430db19..5a365bf6 100644
--- a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
+++ b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
@@ -9,8 +9,8 @@
* *
***************************************************************************/
-#ifndef KDEVQTIMPORTER_H
-#define KDEVQTIMPORTER_H
+#ifndef KDEVTQTIMPORTER_H
+#define KDEVTQTIMPORTER_H
#include <kdevpcsimporter.h>
#include <tqguardedptr.h>
@@ -18,18 +18,19 @@
class SettingsDialog;
class KTempFile;
-class KDevQt4Importer : public KDevPCSImporter
+class KDevTQt4Importer : public KDevPCSImporter
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDevQt4Importer( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
- virtual ~KDevQt4Importer();
+ KDevTQt4Importer( TQObject* tqparent=0, const char* name=0, const TQStringList& args=TQStringList() );
+ virtual ~KDevTQt4Importer();
- virtual TQString dbName() const { return TQString::fromLatin1("Qt4"); }
+ virtual TQString dbName() const { return TQString::tqfromLatin1("TQt4"); }
virtual TQStringList fileList();
virtual TQStringList includePaths();
- virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* tqparent, const char* name=0 );
private:
TQGuardedPtr<SettingsDialog> m_settings;
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
index 755b14c4..1b8e46f2 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
@@ -27,20 +27,20 @@
#include "settingsdialog.h"
-TQListBoxItem* QListBox_selectedItem(TQListBox* cpQListBox)
+TQListBoxItem* TQListBox_selectedItem(TQListBox* cpTQListBox)
{
- if ( cpQListBox->selectionMode() != TQListBox::Single )
+ if ( cpTQListBox->selectionMode() != TQListBox::Single )
return 0;
- if ( cpQListBox->isSelected( cpQListBox->currentItem() ) )
- return cpQListBox->item(cpQListBox->currentItem());
+ if ( cpTQListBox->isSelected( cpTQListBox->currentItem() ) )
+ return cpTQListBox->item(cpTQListBox->currentItem());
return 0;
}
-SettingsDialog::SettingsDialog(TQWidget* parent, const char* name, WFlags fl)
- : SettingsDialogBase(parent,name,fl)
+SettingsDialog::SettingsDialog(TQWidget* tqparent, const char* name, WFlags fl)
+ : SettingsDialogBase(tqparent,name,fl)
{
TQStringList qtdirs;
- qtdirs.push_back( ::getenv("QTDIR") + TQString("/include") );
+ qtdirs.push_back( ::getenv("TQTDIR") + TQString("/include") );
qtdirs.push_back( TQString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt/include" );
qtdirs.push_back( TQString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt-main/include" );
qtdirs.push_back( "/usr/qt/4/include" );
@@ -48,8 +48,8 @@ SettingsDialog::SettingsDialog(TQWidget* parent, const char* name, WFlags fl)
for( TQStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
{
TQString qtdir = *it;
- if( !qtdir.isEmpty() && isValidQtDir(qtdir) )
- if (!qtListBox->findItem(qtdir, ExactMatch))
+ if( !qtdir.isEmpty() && isValidTQtDir(qtdir) )
+ if (!qtListBox->tqfindItem(qtdir, ExactMatch))
qtListBox->insertItem( qtdir );
}
@@ -74,9 +74,9 @@ void SettingsDialog::slotSelectionChanged(TQListBoxItem* item)
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const TQString & path ) const
+bool SettingsDialog::isValidTQtDir( const TQString & path ) const
{
- return TQFile::exists( path + "/QtCore/QtCore" );
+ return TQFile::exists( path + "/TQtCore/TQtCore" );
}
TQString SettingsDialog::qtDir( ) const
@@ -93,10 +93,10 @@ void SettingsDialog::addUrlButton_clicked( )
{
kdDebug(9000) << k_funcinfo << endl;
- if ( isValidQtDir( qtUrl->url() ) )
+ if ( isValidTQtDir( qtUrl->url() ) )
{
qtListBox->insertItem( qtUrl->url() );
- if ( TQListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = qtListBox->tqfindItem( qtUrl->url(), ExactMatch ) )
{
qtListBox->setSelected( item, true );
}
@@ -104,7 +104,7 @@ void SettingsDialog::addUrlButton_clicked( )
}
else
{
- KMessageBox::error( this, i18n("This does not appear to be a valid Qt4 include directory.\nPlease select a different directory."), i18n("Invalid Directory") );
+ KMessageBox::error( this, i18n("This does not appear to be a valid TQt4 include directory.\nPlease select a different directory."), i18n("Invalid Directory") );
}
}
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialog.h b/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
index 118564fb..9a28b2ad 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
@@ -17,13 +17,14 @@
class SettingsDialog : public SettingsDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
/*$PUBLIC_FUNCTIONS$*/
- bool isValidQtDir( const TQString& path ) const;
+ bool isValidTQtDir( const TQString& path ) const;
TQString qtDir() const;
TQString configuration() const;
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui b/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui
index f655e4f9..d3314b40 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>SettingsDialogBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>SettingsDialogBase</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -25,7 +25,7 @@
Only the selected entry will be used</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="1">
+ <widget class="TQPushButton" row="2" column="1">
<property name="name">
<cstring>addUrlButton</cstring>
</property>
@@ -58,18 +58,18 @@ Only the selected entry will be used</string>
<connections>
<connection>
<sender>qtListBox</sender>
- <signal>selectionChanged(QListBoxItem*)</signal>
+ <signal>selectionChanged(TQListBoxItem*)</signal>
<receiver>SettingsDialogBase</receiver>
- <slot>slotSelectionChanged(QListBoxItem*)</slot>
+ <slot>slotSelectionChanged(TQListBoxItem*)</slot>
</connection>
</connections>
-<signals>
+<Q_SIGNALS>
<signal>enabled(int)</signal>
-</signals>
-<slots>
- <slot>slotSelectionChanged(QListBoxItem*)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SIGNALS>
+<Q_SLOTS>
+ <slot>slotSelectionChanged(TQListBoxItem*)</slot>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
index 62eb38fd..25937879 100644
--- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
+++ b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
@@ -18,16 +18,16 @@
#include <tqlabel.h>
#include <tqdir.h>
-K_EXPORT_COMPONENT_FACTORY( libkdevqtimporter, KGenericFactory<KDevQtImporter>( "kdevqtimporter" ) )
+K_EXPORT_COMPONENT_FACTORY( libkdevqtimporter, KGenericFactory<KDevTQtImporter>( "kdevqtimporter" ) )
-KDevQtImporter::KDevQtImporter( TQObject * parent, const char * name, const TQStringList& )
- : KDevPCSImporter( parent, name )
+KDevTQtImporter::KDevTQtImporter( TQObject * tqparent, const char * name, const TQStringList& )
+ : KDevPCSImporter( tqparent, name )
{}
-KDevQtImporter::~KDevQtImporter()
+KDevTQtImporter::~KDevTQtImporter()
{}
-TQStringList KDevQtImporter::fileList()
+TQStringList KDevTQtImporter::fileList()
{
if ( !m_settings )
return TQStringList();
@@ -50,7 +50,7 @@ TQStringList KDevQtImporter::fileList()
return fileList;
}
-TQStringList KDevQtImporter::includePaths()
+TQStringList KDevTQtImporter::includePaths()
{
if ( !m_settings )
return TQStringList();
@@ -64,9 +64,9 @@ TQStringList KDevQtImporter::includePaths()
return includePaths;
}
-TQWidget * KDevQtImporter::createSettingsPage( TQWidget * parent, const char * name )
+TQWidget * KDevTQtImporter::createSettingsPage( TQWidget * tqparent, const char * name )
{
- m_settings = new SettingsDialog( parent, name );
+ m_settings = new SettingsDialog( tqparent, name );
return m_settings;
}
diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
index 3ae35b96..744a4b67 100644
--- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
+++ b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
@@ -9,26 +9,27 @@
* *
***************************************************************************/
-#ifndef KDEVQTIMPORTER_H
-#define KDEVQTIMPORTER_H
+#ifndef KDEVTQTIMPORTER_H
+#define KDEVTQTIMPORTER_H
#include <kdevpcsimporter.h>
#include <tqguardedptr.h>
class SettingsDialog;
-class KDevQtImporter : public KDevPCSImporter
+class KDevTQtImporter : public KDevPCSImporter
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDevQtImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
- virtual ~KDevQtImporter();
+ KDevTQtImporter( TQObject* tqparent=0, const char* name=0, const TQStringList& args=TQStringList() );
+ virtual ~KDevTQtImporter();
- virtual TQString dbName() const { return TQString::fromLatin1("Qt"); }
+ virtual TQString dbName() const { return TQString::tqfromLatin1("TQt"); }
virtual TQStringList fileList();
virtual TQStringList includePaths();
- virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* tqparent, const char* name=0 );
private:
TQGuardedPtr<SettingsDialog> m_settings;
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
index 2df475b7..a03ac0d4 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
@@ -27,20 +27,20 @@
#include "settingsdialog.h"
-TQListBoxItem* QListBox_selectedItem( TQListBox* cpQListBox )
+TQListBoxItem* TQListBox_selectedItem( TQListBox* cpTQListBox )
{
- if ( cpQListBox->selectionMode() != TQListBox::Single )
+ if ( cpTQListBox->selectionMode() != TQListBox::Single )
return 0;
- if ( cpQListBox->isSelected( cpQListBox->currentItem() ) )
- return cpQListBox->item( cpQListBox->currentItem() );
+ if ( cpTQListBox->isSelected( cpTQListBox->currentItem() ) )
+ return cpTQListBox->item( cpTQListBox->currentItem() );
return 0;
}
-SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
- : SettingsDialogBase( parent, name, fl )
+SettingsDialog::SettingsDialog( TQWidget* tqparent, const char* name, WFlags fl )
+ : SettingsDialogBase( tqparent, name, fl )
{
TQStringList qtdirs;
- qtdirs.push_back( ::getenv( "QTDIR" ) + TQString("/include") );
+ qtdirs.push_back( ::getenv( "TQTDIR" ) + TQString("/include") );
qtdirs.push_back( "/usr/lib/qt3/include" );
qtdirs.push_back( "/usr/lib/qt/include" );
qtdirs.push_back( "/usr/share/qt3/include" );
@@ -49,8 +49,8 @@ SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
for ( TQStringList::Iterator it = qtdirs.begin(); it != qtdirs.end(); ++it )
{
TQString qtdir = *it;
- if ( !qtdir.isEmpty() && isValidQtDir( qtdir ) )
- if ( !qtListBox->findItem( qtdir, ExactMatch ) )
+ if ( !qtdir.isEmpty() && isValidTQtDir( qtdir ) )
+ if ( !qtListBox->tqfindItem( qtdir, ExactMatch ) )
qtListBox->insertItem( qtdir );
}
@@ -71,9 +71,9 @@ void SettingsDialog::slotSelectionChanged( TQListBoxItem* )
}
TQDir dir( qtDir() );
- TQStringList qconfigFileList = dir.entryList( "qconfig-*.h" );
+ TQStringList qconfigFileList = dir.entryList( "tqconfig-*.h" );
qtConfiguration->clear();
- TQRegExp rx( "qconfig-(\\w+)\\.h" );
+ TQRegExp rx( "tqconfig-(\\w+)\\.h" );
for ( TQStringList::Iterator it = qconfigFileList.begin(); it != qconfigFileList.end(); ++it )
{
( void ) rx.exactMatch( *it );
@@ -83,7 +83,7 @@ void SettingsDialog::slotSelectionChanged( TQListBoxItem* )
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const TQString & path ) const
+bool SettingsDialog::isValidTQtDir( const TQString & path ) const
{
return TQFile::exists( path + "/tqt.h" );
}
@@ -101,10 +101,10 @@ void SettingsDialog::addUrlButton_clicked( )
{
kdDebug(9000) << k_funcinfo << endl;
- if ( isValidQtDir( qtUrl->url() ) )
+ if ( isValidTQtDir( qtUrl->url() ) )
{
qtListBox->insertItem( qtUrl->url() );
- if ( TQListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = qtListBox->tqfindItem( qtUrl->url(), ExactMatch ) )
{
qtListBox->setSelected( item, true );
}
@@ -112,7 +112,7 @@ void SettingsDialog::addUrlButton_clicked( )
}
else
{
- KMessageBox::error( this, i18n("This does not appear to be a valid Qt3 include directory.\nPlease select a different directory."), i18n("Invalid Directory") );
+ KMessageBox::error( this, i18n("This does not appear to be a valid TQt3 include directory.\nPlease select a different directory."), i18n("Invalid Directory") );
}
}
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialog.h b/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
index 118564fb..9a28b2ad 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
@@ -17,13 +17,14 @@
class SettingsDialog : public SettingsDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ SettingsDialog(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~SettingsDialog();
/*$PUBLIC_FUNCTIONS$*/
- bool isValidQtDir( const TQString& path ) const;
+ bool isValidTQtDir( const TQString& path ) const;
TQString qtDir() const;
TQString configuration() const;
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui b/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui
index fa485d57..fc28b901 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>SettingsDialogBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>SettingsDialogBase</cstring>
</property>
@@ -26,22 +26,22 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>161</width>
<height>21</height>
</size>
</property>
</spacer>
- <widget class="QLayoutWidget" row="3" column="0">
+ <widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -75,7 +75,7 @@
</widget>
</hbox>
</widget>
- <widget class="QPushButton" row="2" column="2">
+ <widget class="TQPushButton" row="2" column="2">
<property name="name">
<cstring>addUrlButton</cstring>
</property>
@@ -96,7 +96,7 @@
<cstring>qtUrl</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -117,18 +117,18 @@ Only the selected entry will be used</string>
<connections>
<connection>
<sender>qtListBox</sender>
- <signal>selectionChanged(QListBoxItem*)</signal>
+ <signal>selectionChanged(TQListBoxItem*)</signal>
<receiver>SettingsDialogBase</receiver>
- <slot>slotSelectionChanged(QListBoxItem*)</slot>
+ <slot>slotSelectionChanged(TQListBoxItem*)</slot>
</connection>
</connections>
-<signals>
+<Q_SIGNALS>
<signal>enabled(int)</signal>
-</signals>
-<slots>
- <slot>slotSelectionChanged(QListBoxItem*)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SIGNALS>
+<Q_SLOTS>
+ <slot>slotSelectionChanged(TQListBoxItem*)</slot>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcombobox.h</includehint>
<includehint>kurlrequester.h</includehint>
diff --git a/languages/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp
index c7a8e9b6..32c078e1 100644
--- a/languages/cpp/problemreporter.cpp
+++ b/languages/cpp/problemreporter.cpp
@@ -57,14 +57,14 @@
class ProblemItem: public KListViewItem
{
public:
- ProblemItem( TQListView* parent, const TQString& problem,
+ ProblemItem( TQListView* tqparent, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, problem, file, line, column )
+ : KListViewItem( tqparent, problem, file, line, column )
{}
- ProblemItem( TQListViewItem* parent, const TQString& problem,
+ ProblemItem( TQListViewItem* tqparent, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, problem, file, line, column )
+ : KListViewItem( tqparent, problem, file, line, column )
{}
int compare( TQListViewItem* item, int column, bool ascending ) const
@@ -82,8 +82,8 @@ public:
};
-ProblemReporter::ProblemReporter( CppSupportPart* part, TQWidget* parent, const char* name )
-: TQWidget( parent, name ? name : "problemreporter" ),
+ProblemReporter::ProblemReporter( CppSupportPart* part, TQWidget* tqparent, const char* name )
+: TQWidget( tqparent, name ? name : "problemreporter" ),
m_cppSupport( part ),
// m_document( 0 ),
m_markIface( 0 )
@@ -142,8 +142,8 @@ m_markIface( 0 )
m_gridLayout->addWidget(m_tabBar,0,0);
m_gridLayout->addMultiCellWidget(m_widgetStack,1,1,0,2);
- m_gridLayout->addWidget(m_filterLabel,0,1,Qt::AlignRight);
- m_gridLayout->addWidget(m_filterEdit,0,2,Qt::AlignLeft);
+ m_gridLayout->addWidget(m_filterLabel,0,1,TQt::AlignRight);
+ m_gridLayout->addWidget(m_filterEdit,0,2,TQt::AlignLeft);
connect( m_filterEdit, TQT_SIGNAL(returnPressed()),
this, TQT_SLOT(slotFilter()) );
@@ -175,7 +175,7 @@ void ProblemReporter::slotFilter()
if(!m_tabBar->isTabEnabled(5))
m_tabBar->setTabEnabled(5,true);
- m_tabBar->tab(5)->setText(i18n("Filtered: %1").arg( m_filterEdit->text() ));
+ m_tabBar->tab(5)->setText(i18n("Filtered: %1").tqarg( m_filterEdit->text() ));
m_tabBar->setCurrentTab(5);
m_filteredList->clear();
@@ -198,7 +198,7 @@ void ProblemReporter::filterList(KListView* listview, const TQString& level)
TQListViewItemIterator it( listview );
while ( it.current() )
{
- if ( it.current()->text(3).contains(m_filterEdit->text(),false))
+ if ( it.current()->text(3).tqcontains(m_filterEdit->text(),false))
{
new KListViewItem(m_filteredList,level,
it.current()->text(0), it.current()->text(1),
@@ -356,7 +356,7 @@ void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p
m_markIface->addMark( p.line(), markType );
TQString msg = p.text();
- msg = msg.replace( TQRegExp("\n"), "" );
+ msg = msg.tqreplace( TQRegExp("\n"), "" );
TQString relFileName = m_cppSupport->project()->relativeProjectFile(fileName);
@@ -416,7 +416,7 @@ TQString ProblemReporter::levelToString( int level ) const
case Problem::Level_Fixme:
return TQString( i18n("Fixme") );
default:
- return TQString::null;
+ return TQString();
}
}
diff --git a/languages/cpp/problemreporter.h b/languages/cpp/problemreporter.h
index fc25523e..c2abb294 100644
--- a/languages/cpp/problemreporter.h
+++ b/languages/cpp/problemreporter.h
@@ -102,11 +102,12 @@ namespace KTextEditor
class Document;
}
-class ProblemReporter: public QWidget
+class ProblemReporter: public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- ProblemReporter( CppSupportPart* part, TQWidget* parent = 0, const char* name = 0 );
+ ProblemReporter( CppSupportPart* part, TQWidget* tqparent = 0, const char* name = 0 );
virtual ~ProblemReporter();
void removeAllProblems( const TQString& filename );
diff --git a/languages/cpp/qtbuildconfig.cpp b/languages/cpp/qtbuildconfig.cpp
index 46fa7897..21717dd2 100644
--- a/languages/cpp/qtbuildconfig.cpp
+++ b/languages/cpp/qtbuildconfig.cpp
@@ -25,19 +25,19 @@
#include <stdlib.h>
-const TQString QtBuildConfig::m_configRoot = TQString( "/kdevcppsupport/qt" );
+const TQString TQtBuildConfig::m_configRoot = TQString( "/kdevcppsupport/qt" );
-QtBuildConfig::QtBuildConfig( CppSupportPart * part, TQDomDocument* dom )
+TQtBuildConfig::TQtBuildConfig( CppSupportPart * part, TQDomDocument* dom )
: TQObject( part ), m_part( part ), m_dom( dom )
{
init();
}
-QtBuildConfig::~QtBuildConfig()
+TQtBuildConfig::~TQtBuildConfig()
{
}
-void QtBuildConfig::init( )
+void TQtBuildConfig::init( )
{
m_used = DomUtil::readBoolEntry( *m_dom, m_configRoot + "/used", false );
m_version = DomUtil::readIntEntry( *m_dom, m_configRoot + "/version", 3 );
@@ -55,9 +55,9 @@ void QtBuildConfig::init( )
m_designerPath = DomUtil::readEntry(*m_dom, m_configRoot + "/designer", "");
m_designerPluginPaths = DomUtil::readListEntry(*m_dom, m_configRoot + "/designerpluginpaths", "path" );
- if( m_root.isEmpty() || !isValidQtDir( m_root ) )
+ if( m_root.isEmpty() || !isValidTQtDir( m_root ) )
{
- findQtDir();
+ findTQtDir();
}
if( m_qmakePath.isEmpty() || !isExecutable( m_qmakePath ) )
{
@@ -83,7 +83,7 @@ void QtBuildConfig::init( )
}
}
-bool QtBuildConfig::isValidQtDir( const TQString& path ) const
+bool TQtBuildConfig::isValidTQtDir( const TQString& path ) const
{
TQFileInfo inc( path + TQString( TQChar( TQDir::separator() ) )+
"include"+TQString( TQChar( TQDir::separator() ) )+
@@ -91,30 +91,30 @@ bool QtBuildConfig::isValidQtDir( const TQString& path ) const
return ( m_version == 4 || ( m_version != 4 && inc.exists() ) );
}
-void QtBuildConfig::buildBinDirs( TQStringList & dirs ) const
+void TQtBuildConfig::buildBinDirs( TQStringList & dirs ) const
{
if( m_version == 3 )
{
if( !m_root.isEmpty() )
dirs << (m_root + TQString( TQChar( TQDir::separator() ) ) + "bin");
- dirs << (::getenv("QTDIR") + TQString( TQChar( TQDir::separator() ) ) + "bin");
+ dirs << (::getenv("TQTDIR") + TQString( TQChar( TQDir::separator() ) ) + "bin");
}
TQStringList paths = TQStringList::split(":",::getenv("PATH"));
dirs += paths;
TQString binpath = TQDir::rootDirPath() + "bin";
- if( dirs.findIndex( binpath ) != -1 )
+ if( dirs.tqfindIndex( binpath ) != -1 )
dirs << binpath;
binpath = TQDir::rootDirPath() + "usr" + TQString( TQChar( TQDir::separator() ) ) + "bin";
- if( dirs.findIndex( binpath ) != -1 )
+ if( dirs.tqfindIndex( binpath ) != -1 )
dirs << binpath;
binpath = TQDir::rootDirPath() + "usr" + TQString( TQChar( TQDir::separator() ) ) + "local" + TQString( TQChar( TQDir::separator() ) ) + "bin";
- if( dirs.findIndex( binpath ) != -1 )
+ if( dirs.tqfindIndex( binpath ) != -1 )
dirs << binpath;
}
-TQString QtBuildConfig::findExecutable( const TQString& execname ) const
+TQString TQtBuildConfig::findExecutable( const TQString& execname ) const
{
TQStringList dirs;
buildBinDirs( dirs );
@@ -130,27 +130,27 @@ TQString QtBuildConfig::findExecutable( const TQString& execname ) const
return "";
}
-bool QtBuildConfig::isExecutable( const TQString& path ) const
+bool TQtBuildConfig::isExecutable( const TQString& path ) const
{
TQFileInfo fi(path);
return( fi.exists() && fi.isExecutable() );
}
-void QtBuildConfig::findQtDir()
+void TQtBuildConfig::findTQtDir()
{
TQStringList qtdirs;
if( m_version == 3 )
- qtdirs.push_back( ::getenv("QTDIR") );
- qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"lib"+TQString( TQChar( TQDir::separator() ) )+"qt"+TQString("%1").arg( m_version ) );
- qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"lib"+TQString( TQChar( TQDir::separator() ) )+"qt"+TQString( TQChar( TQDir::separator() ) )+TQString("%1").arg( m_version ) );
- qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"share"+TQString( TQChar( TQDir::separator() ) )+"qt"+TQString("%1").arg( m_version ) );
+ qtdirs.push_back( ::getenv("TQTDIR") );
+ qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"lib"+TQString( TQChar( TQDir::separator() ) )+"qt"+TQString("%1").tqarg( m_version ) );
+ qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"lib"+TQString( TQChar( TQDir::separator() ) )+"qt"+TQString( TQChar( TQDir::separator() ) )+TQString("%1").tqarg( m_version ) );
+ qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"share"+TQString( TQChar( TQDir::separator() ) )+"qt"+TQString("%1").tqarg( m_version ) );
qtdirs.push_back( TQDir::rootDirPath()+"usr" );
qtdirs.push_back( TQDir::rootDirPath()+"usr"+TQString( TQChar( TQDir::separator() ) )+"lib"+TQString( TQChar( TQDir::separator() ) )+"qt" );
for( TQStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
{
TQString qtdir = *it;
- if( !qtdir.isEmpty() && isValidQtDir(qtdir) )
+ if( !qtdir.isEmpty() && isValidTQtDir(qtdir) )
{
m_root = qtdir;
return;
@@ -158,7 +158,7 @@ void QtBuildConfig::findQtDir()
}
}
-void QtBuildConfig::store( )
+void TQtBuildConfig::store( )
{
DomUtil::writeBoolEntry( *m_dom, m_configRoot + "/used", m_used );
DomUtil::writeIntEntry( *m_dom, m_configRoot + "/version", m_version );
@@ -172,45 +172,45 @@ void QtBuildConfig::store( )
emit stored();
}
-void QtBuildConfig::setUsed( bool used )
+void TQtBuildConfig::setUsed( bool used )
{
m_used = used;
}
-void QtBuildConfig::setVersion( int version )
+void TQtBuildConfig::setVersion( int version )
{
m_version = version;
}
-void QtBuildConfig::setIncludeStyle( int style )
+void TQtBuildConfig::setIncludeStyle( int style )
{
m_includeStyle = style;
}
-void QtBuildConfig::setRoot( const TQString& root )
+void TQtBuildConfig::setRoot( const TQString& root )
{
m_root = root;
}
-void QtBuildConfig::setQMakePath( const TQString& path )
+void TQtBuildConfig::setTQMakePath( const TQString& path )
{
m_qmakePath = path;
}
-void QtBuildConfig::setDesignerPluginPaths( const TQStringList& pfx )
+void TQtBuildConfig::setDesignerPluginPaths( const TQStringList& pfx )
{
m_designerPluginPaths = pfx;
}
-void QtBuildConfig::setDesignerPath( const TQString& path )
+void TQtBuildConfig::setDesignerPath( const TQString& path )
{
m_designerPath = path;
}
-void QtBuildConfig::setDesignerIntegration( const TQString& designerIntegration )
+void TQtBuildConfig::setDesignerIntegration( const TQString& designerIntegration )
{
m_designerIntegration = designerIntegration;
}
#include "qtbuildconfig.moc"
-//kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
+//kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on
diff --git a/languages/cpp/qtbuildconfig.h b/languages/cpp/qtbuildconfig.h
index 193f582d..df92869b 100644
--- a/languages/cpp/qtbuildconfig.h
+++ b/languages/cpp/qtbuildconfig.h
@@ -15,8 +15,8 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#ifndef QTBUILDCONFIG_H
-#define QTBUILDCONFIG_H
+#ifndef TQTBUILDCONFIG_H
+#define TQTBUILDCONFIG_H
#include <tqobject.h>
#include <tqstringlist.h>
@@ -25,17 +25,18 @@ class CppSupportPart;
class TQDomDocument;
/**
- @brief The QtBuildConfig class stores all parameters related to the used Qt library
+ @brief The TQtBuildConfig class stores all parameters related to the used TQt library
@author Tobias Erbsland <[email protected]>
*/
-class QtBuildConfig : public QObject
+class TQtBuildConfig : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- QtBuildConfig( CppSupportPart* part, TQDomDocument* dom );
- virtual ~QtBuildConfig();
+ TQtBuildConfig( CppSupportPart* part, TQDomDocument* dom );
+ virtual ~TQtBuildConfig();
inline bool isUsed() const { return m_used; }
inline int version() const { return m_version; }
@@ -52,7 +53,7 @@ public:
void setRoot( const TQString& root );
void setDesignerPath( const TQString& path );
void setDesignerPluginPaths( const TQStringList& pfx );
- void setQMakePath( const TQString& path );
+ void setTQMakePath( const TQString& path );
void setDesignerIntegration( const TQString& designerIntegration );
void init();
@@ -64,8 +65,8 @@ signals:
private:
- bool isValidQtDir( const TQString& ) const;
- void findQtDir();
+ bool isValidTQtDir( const TQString& ) const;
+ void findTQtDir();
TQString findExecutable( const TQString& ) const;
void buildBinDirs( TQStringList& ) const;
bool isExecutable( const TQString& ) const;
@@ -76,9 +77,9 @@ private:
bool m_used; ///< Flag if qt is used in this project.
int m_version; ///< The major version of the qt library (3 or 4)
int m_includeStyle; ///< The type of include style used (qt 3 or 4)
- TQString m_root; ///< The root directory of the used qt installation for Qt3
- TQString m_designerPath; ///< The path including the binary name of Qt Designer
- TQString m_qmakePath; ///< The path including the binary name of QMake
+ TQString m_root; ///< The root directory of the used qt installation for TQt3
+ TQString m_designerPath; ///< The path including the binary name of TQt Designer
+ TQString m_qmakePath; ///< The path including the binary name of TQMake
TQStringList m_designerPluginPaths; ///< The Prefix for Designer
TQString m_designerIntegration; ///< The type of designer used, kdevdesigner or qt designer
diff --git a/languages/cpp/qtdesignercppintegration.cpp b/languages/cpp/qtdesignercppintegration.cpp
index 9314aceb..83354fa8 100644
--- a/languages/cpp/qtdesignercppintegration.cpp
+++ b/languages/cpp/qtdesignercppintegration.cpp
@@ -40,12 +40,12 @@
#include "codemodel_utils.h"
#include "implementationwidget.h"
-QtDesignerCppIntegration::QtDesignerCppIntegration( KDevLanguageSupport *part,
+TQtDesignerCppIntegration::TQtDesignerCppIntegration( KDevLanguageSupport *part,
ImplementationWidget *impl )
-: QtDesignerIntegration( part, impl, true, 0 )
+: TQtDesignerIntegration( part, impl, true, 0 )
{}
-void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function function, ClassDom klass )
+void TQtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function function, ClassDom klass )
{
m_part->partController() ->editDocument( KURL( klass->fileName() ) );
KTextEditor::EditInterface* editIface = dynamic_cast<KTextEditor::EditInterface*>( m_part->partController() ->activePart() );
@@ -60,7 +60,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
klass->getEndPosition( &line, &column );
// compute the insertion point map
- TQMap<TQString, QPair<int, int> > points;
+ TQMap<TQString, TQPair<int, int> > points;
const FunctionList functionList = klass->functionList();
for ( FunctionList::ConstIterator it = functionList.begin(); it != functionList.end(); ++it )
@@ -68,9 +68,9 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
int funEndLine, funEndColumn;
( *it ) ->getEndPosition( &funEndLine, &funEndColumn );
TQString access = accessID( *it );
- QPair<int, int> funEndPoint = qMakePair( funEndLine, funEndColumn );
+ TQPair<int, int> funEndPoint = tqMakePair( funEndLine, funEndColumn );
- if ( !points.contains( access ) || points[ access ] < funEndPoint )
+ if ( !points.tqcontains( access ) || points[ access ] < funEndPoint )
{
points[ access ] = funEndPoint;
}
@@ -78,7 +78,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
int insertedLine = 0;
- TQString access = function.access + ( function.type == KInterfaceDesigner::ftQtSlot ? " slots" : "" );
+ TQString access = function.access + ( function.type == KInterfaceDesigner::ftTQtSlot ? " slots" : "" );
TQString str = function.returnType + " " + function.function;
if ( function.specifier == "virtual" )
@@ -90,20 +90,20 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
str += ";\n";
str = " " + str;
- QPair<int, int> pt;
- if ( points.contains( access ) )
+ TQPair<int, int> pt;
+ if ( points.tqcontains( access ) )
{
pt = points[ access ];
}
else
{
str.prepend( access + ":\n" );
- points[ access ] = qMakePair( line - 1, 0 );
+ points[ access ] = tqMakePair( line - 1, 0 );
pt = points[ access ]; // end of class declaration
}
editIface->insertText( pt.first + insertedLine + 1, 0 /*pt.second*/, str );
- insertedLine += str.contains( TQChar( '\n' ) );
+ insertedLine += str.tqcontains( TQChar( '\n' ) );
CppSupportPart *cppPart = dynamic_cast<CppSupportPart *>( m_part );
cppPart->backgroundParser() ->addFile( klass->fileName() );
@@ -121,7 +121,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
TQFileInfo fi( klass->fileName() );
TQString implementationFile = fi.absFilePath();
- implementationFile.replace( ".h", ".cpp" );
+ implementationFile.tqreplace( ".h", ".cpp" );
TQFileInfo fileInfo( implementationFile );
if ( !TQFile::exists( fileInfo.absFilePath() ) )
@@ -158,7 +158,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
}
else
{
- if ( editIface->textLine( line ).contains( TQRegExp( ".*#include .*\\.moc.*" ) ) )
+ if ( editIface->textLine( line ).tqcontains( TQRegExp( ".*#include .*\\.tqmoc.*" ) ) )
atLine = line;
break;
}
@@ -167,7 +167,7 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
atColumn = 0;
}
- // editIface->insertLine( atLine + 1, TQString::fromLatin1("") );
+ // editIface->insertLine( atLine + 1, TQString::tqfromLatin1("") );
kdDebug() << "at line in intg: " << atLine << " atCol: " << atColumn << endl;
kdDebug() << "text: " << stri << endl;
editIface->insertText( atLine, atColumn, stri );
@@ -182,35 +182,35 @@ void QtDesignerCppIntegration::addFunctionToClass( KInterfaceDesigner::Function
cppPart->backgroundParser() ->addFile( implementationFile );
}
-TQString QtDesignerCppIntegration::accessID( FunctionDom fun ) const
+TQString TQtDesignerCppIntegration::accessID( FunctionDom fun ) const
{
if ( fun->isSignal() )
- return TQString::fromLatin1( "signals" );
+ return TQString::tqfromLatin1( "signals" );
switch ( fun->access() )
{
case CodeModelItem::Public:
if ( fun->isSlot() )
- return TQString::fromLatin1( "public slots" );
- return TQString::fromLatin1( "public" );
+ return TQString::tqfromLatin1( "public slots" );
+ return TQString::tqfromLatin1( "public" );
case CodeModelItem::Protected:
if ( fun->isSlot() )
- return TQString::fromLatin1( "protected slots" );
- return TQString::fromLatin1( "protected" );
+ return TQString::tqfromLatin1( "protected slots" );
+ return TQString::tqfromLatin1( "protected" );
case CodeModelItem::Private:
if ( fun->isSlot() )
- return TQString::fromLatin1( "private slots" );
- return TQString::fromLatin1( "private" );
+ return TQString::tqfromLatin1( "private slots" );
+ return TQString::tqfromLatin1( "private" );
}
- return TQString::null;
+ return TQString();
}
-void QtDesignerCppIntegration::processImplementationName( TQString &name )
+void TQtDesignerCppIntegration::processImplementationName( TQString &name )
{
- name.replace( ".h", ".cpp" );
+ name.tqreplace( ".h", ".cpp" );
}
#include "qtdesignercppintegration.moc"
diff --git a/languages/cpp/qtdesignercppintegration.h b/languages/cpp/qtdesignercppintegration.h
index 6721c9df..5fd95b58 100644
--- a/languages/cpp/qtdesignercppintegration.h
+++ b/languages/cpp/qtdesignercppintegration.h
@@ -17,16 +17,17 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef QTDESIGNERCPPINTEGRATION_H
-#define QTDESIGNERCPPINTEGRATION_H
+#ifndef TQTDESIGNERCPPINTEGRATION_H
+#define TQTDESIGNERCPPINTEGRATION_H
#include <qtdesignerintegration.h>
-class QtDesignerCppIntegration : public QtDesignerIntegration
+class TQtDesignerCppIntegration : public TQtDesignerIntegration
{
Q_OBJECT
+ TQ_OBJECT
public:
- QtDesignerCppIntegration( KDevLanguageSupport *part, ImplementationWidget *impl );
+ TQtDesignerCppIntegration( KDevLanguageSupport *part, ImplementationWidget *impl );
protected:
virtual void addFunctionToClass( KInterfaceDesigner::Function function, ClassDom klass );
diff --git a/languages/cpp/simplecontext.cpp b/languages/cpp/simplecontext.cpp
index 225bfc84..3d23f76c 100644
--- a/languages/cpp/simplecontext.cpp
+++ b/languages/cpp/simplecontext.cpp
@@ -27,7 +27,7 @@ SimpleType getGlobal( SimpleType t ) {
SafetyCounter s( 50 );
while( !global.scope().isEmpty() && s ) {
if( !s ) { kdDebug( 9007 ) << "error" << endl; break; }
- global = global->parent();
+ global = global->tqparent();
}
if( !global.scope().isEmpty() ) {kdDebug( 9007 ) << "ERROR WITH GLOBAL SCOPE" << endl; return SimpleType(); }
return global;
diff --git a/languages/cpp/simplecontext.h b/languages/cpp/simplecontext.h
index d1fde70a..a0075554 100644
--- a/languages/cpp/simplecontext.h
+++ b/languages/cpp/simplecontext.h
@@ -134,12 +134,12 @@ class SimpleContext
}
//First the new name, aka "" for real imports, second the name to be imported
- void addImport( const QPair<TQString, TQString>& import ) {
+ void addImport( const TQPair<TQString, TQString>& import ) {
m_imports << import;
}
//Key the new name, aka "" for real imports, second the name to be imported
- TQValueList<QPair<TQString, TQString> > imports() {
+ TQValueList<TQPair<TQString, TQString> > imports() {
return m_imports;
}
@@ -162,7 +162,7 @@ class SimpleContext
private:
TQValueList<SimpleVariable> m_vars;
- TQValueList<QPair<TQString, TQString> > m_imports;
+ TQValueList<TQPair<TQString, TQString> > m_imports;
SimpleContext* m_prev;
SimpleType m_container;
};
diff --git a/languages/cpp/simpletype.cpp b/languages/cpp/simpletype.cpp
index 5111a2a0..b496b96a 100644
--- a/languages/cpp/simpletype.cpp
+++ b/languages/cpp/simpletype.cpp
@@ -39,15 +39,15 @@ BuiltinTypes::BuiltinTypes() {
}
bool BuiltinTypes::isBuiltin( const TypeDesc& desc ) {
- return m_types.find( desc.name() ) != m_types.end();
+ return m_types.tqfind( desc.name() ) != m_types.end();
}
TQString BuiltinTypes::comment( const TypeDesc& desc ) {
- TQMap<TQString, TQString>::iterator it = m_types.find( desc.name() );
+ TQMap<TQString, TQString>::iterator it = m_types.tqfind( desc.name() );
if( it != m_types.end() ) {
return *it;
} else {
- return TQString::null;
+ return TQString();
}
}
@@ -301,7 +301,7 @@ TQString SimpleTypeImpl::operatorToString( Operator op ) {
case ParenOp:
return "paren-operator";
default:
- return TQString( "%1" ).arg( ( long ) op );
+ return TQString( "%1" ).tqarg( ( long ) op );
};
}
@@ -428,7 +428,7 @@ class TemplateParamMatch {
for( int a = 0; a < m_candidateParams.count(); a++ ) {
SimpleTypeImpl::TemplateParamInfo::TemplateParam t;
if( m_candidateParams.getParam( t, a ) ) {
- if( !m_hadParameters.contains( t.name ) ) {
+ if( !m_hadParameters.tqcontains( t.name ) ) {
m_matched = false;
}
} else {
@@ -472,7 +472,7 @@ class TemplateParamMatch {
t.value = val;
- if( m_hadParameters.contains( t.name ) && oldValue != t.value ) {
+ if( m_hadParameters.tqcontains( t.name ) && oldValue != t.value ) {
return false; ///We have a mismatch, two different values for the same template-parameter.
} else {
m_candidateParams.addParam( t );
@@ -793,9 +793,9 @@ LocateResult SimpleTypeImpl::locateType( TypeDesc name , LocateMode mode , int d
}
}
- ///Ask parentsc
+ ///Ask tqparentsc
if ( !scope().isEmpty() && dir != 1 && ! ( mode & ExcludeParents ) ) {
- LocateResult rett = parent() ->locateType( resolveTemplateParams( name, mode & ExcludeBases ? ExcludeBases : mode ), mode & ForgetModeUpwards ? Normal : mode );
+ LocateResult rett = tqparent() ->locateType( resolveTemplateParams( name, mode & ExcludeBases ? ExcludeBases : mode ), mode & ForgetModeUpwards ? Normal : mode );
if ( rett->resolved() )
return rett.increaseDepth();
else
@@ -803,7 +803,7 @@ LocateResult SimpleTypeImpl::locateType( TypeDesc name , LocateMode mode , int d
ret = rett.increaseDepth();
}
- ///Ask the bases and allow them to search in their parents.
+ ///Ask the bases and allow them to search in their tqparents.
if ( ! ( mode & ExcludeBases ) ) {
TypeDesc baseName = resolveTemplateParams( name, LocateBase ); ///Resolve all template-params that are at least visible in the scope of the base-declaration
TQValueList<LocateResult> bases = getBases();
@@ -832,7 +832,7 @@ void SimpleTypeImpl::breakReferences() {
m_desc.resetResolved();
// m_trace.clear();
m_masterProxy = 0;
- invalidateCache();
+ tqinvalidateCache();
}
TypePointer SimpleTypeImpl::bigContainer() {
@@ -842,26 +842,26 @@ TypePointer SimpleTypeImpl::bigContainer() {
return TypePointer( this );
}
-SimpleType SimpleTypeImpl::parent() {
+SimpleType SimpleTypeImpl::tqparent() {
if ( m_parent ) {
- //ifVerbose( dbg() << "\"" << str() << "\": returning parent" << endl;
+ //ifVerbose( dbg() << "\"" << str() << "\": returning tqparent" << endl;
return SimpleType( m_parent );
} else {
- ifVerbose( dbg() << "\"" << str() << "\": locating parent" << endl );
- invalidateSecondaryCache();
+ ifVerbose( dbg() << "\"" << str() << "\": locating tqparent" << endl );
+ tqinvalidateSecondaryCache();
TQStringList sc = scope();
if ( !sc.isEmpty() ) {
sc.pop_back();
SimpleType r = SimpleType( sc, m_desc.includeFiles() );
if ( &( *r.get() ) == this ) {
- kdDebug( 9007 ) << "error: self set as parent: " << m_scope.join( "::" ) << "(" << m_scope.count() << ")" << ", " << sc.join( "::" ) << "(" << sc.count() << ")" /* << kdBacktrace()*/ << endl;
+ kdDebug( 9007 ) << "error: self set as tqparent: " << m_scope.join( "::" ) << "(" << m_scope.count() << ")" << ", " << sc.join( "::" ) << "(" << sc.count() << ")" /* << kdBacktrace()*/ << endl;
return SimpleType( new SimpleTypeImpl( "" ) );
}
m_parent = r.get();
return r;
} else {
- ifVerbose( dbg() << "\"" << str() << "\"warning: returning parent of global scope!" << endl );
+ ifVerbose( dbg() << "\"" << str() << "\"warning: returning tqparent of global scope!" << endl );
return SimpleType( new SimpleTypeImpl( "" ) );
}
}
@@ -876,7 +876,7 @@ const TypeDesc& SimpleTypeImpl::desc() {
TypeDesc& SimpleTypeImpl::descForEdit() {
desc();
- invalidateCache();
+ tqinvalidateCache();
return m_desc;
}
@@ -934,15 +934,15 @@ TQString SimpleTypeImpl::fullTypeUnresolvedWithScope( ) {
TQString SimpleTypeImpl::fullTypeResolvedWithScope( int depth ) {
Q_UNUSED( depth );
- if ( !m_scope.isEmpty() && parent() ) {
- return parent() ->fullTypeResolvedWithScope() + "::" + fullTypeResolved();
+ if ( !m_scope.isEmpty() && tqparent() ) {
+ return tqparent() ->fullTypeResolvedWithScope() + "::" + fullTypeResolved();
} else {
return fullTypeResolved();
}
}
void SimpleTypeImpl::checkTemplateParams () {
- invalidateCache();
+ tqinvalidateCache();
if ( ! m_scope.isEmpty() ) {
TQString str = m_scope.back();
m_desc = str;
@@ -956,7 +956,7 @@ void SimpleTypeImpl::checkTemplateParams () {
}
void SimpleTypeImpl::setScope( const TQStringList& scope ) {
- invalidateCache();
+ tqinvalidateCache();
m_scope = scope;
if ( m_scope.count() == 1 && m_scope.front().isEmpty() ) {
//kdDebug() << "bad scope set " << kdBacktrace() << endl;
@@ -965,8 +965,8 @@ void SimpleTypeImpl::setScope( const TQStringList& scope ) {
}
SimpleTypeImpl::TypeOfResult SimpleTypeImpl::searchBases ( const TypeDesc& name /*option!!*/ ) {
- TQValueList<LocateResult> parents = getBases();
- for ( TQValueList<LocateResult>::iterator it = parents.begin(); it != parents.end(); ++it ) {
+ TQValueList<LocateResult> tqparents = getBases();
+ for ( TQValueList<LocateResult>::iterator it = tqparents.begin(); it != tqparents.end(); ++it ) {
if ( !( *it ) ->resolved() )
continue;
TypeOfResult type = ( *it ) ->resolved() ->typeOf( name );
@@ -985,20 +985,20 @@ void SimpleTypeImpl::setSlaveParent( SimpleTypeImpl& slave ) {
}
void SimpleTypeImpl::parseParams( TypeDesc desc ) {
- invalidateCache();
+ tqinvalidateCache();
m_desc = desc;
m_desc.clearInstanceInfo();
}
void SimpleTypeImpl::takeTemplateParams( TypeDesc desc ) {
- invalidateCache();
+ tqinvalidateCache();
m_desc.templateParams() = desc.templateParams();
}
//SimpleTypeImpl::TemplateParamInfo implementation
bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, TQString name ) const {
- TQMap<TQString, TemplateParam>::const_iterator it = m_paramsByName.find( name );
+ TQMap<TQString, TemplateParam>::const_iterator it = m_paramsByName.tqfind( name );
if ( it != m_paramsByName.end() ) {
target = *it;
return true;
@@ -1007,7 +1007,7 @@ bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, TQStrin
}
bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, int number ) const {
- TQMap<int, TemplateParam>::const_iterator it = m_paramsByNumber.find( number );
+ TQMap<int, TemplateParam>::const_iterator it = m_paramsByNumber.tqfind( number );
if ( it != m_paramsByNumber.end() ) {
target = *it;
return true;
@@ -1016,7 +1016,7 @@ bool SimpleTypeImpl::TemplateParamInfo::getParam( TemplateParam& target, int num
}
void SimpleTypeImpl::TemplateParamInfo::removeParam( int number ) {
- TQMap<int, TemplateParam>::iterator it = m_paramsByNumber.find( number );
+ TQMap<int, TemplateParam>::iterator it = m_paramsByNumber.tqfind( number );
if ( it != m_paramsByNumber.end() ) {
m_paramsByName.remove( ( *it ).name );
m_paramsByNumber.remove( it );
diff --git a/languages/cpp/simpletype.h b/languages/cpp/simpletype.h
index 19fb22cc..49b01ee0 100644
--- a/languages/cpp/simpletype.h
+++ b/languages/cpp/simpletype.h
@@ -42,7 +42,7 @@ class SimpleTypeFunctionInterface;
typedef KSharedPtr<SimpleTypeImpl> TypePointer;
-///if this is set, imported items will get their parent set to the node they were acquired through(which may increase the overall count of items, decrease the caching-performance, and may create other problems in locating stuff)
+///if this is set, imported items will get their tqparent set to the node they were acquired through(which may increase the overall count of items, decrease the caching-performance, and may create other problems in locating stuff)
//#define PHYSICAL_IMPORT
enum Repository {
@@ -214,7 +214,7 @@ class SimpleTypeConfiguration {
SimpleType::destroyStore();
}
}
- void invalidate() {
+ void tqinvalidate() {
m_invalid = true;
}
};
@@ -251,7 +251,7 @@ class SimpleTypeImpl : public KShared {
///Returns the template-specialization-string for classes
virtual TQString specialization() const {
- return TQString::null;
+ return TQString();
}
class TemplateParamInfo {
@@ -322,7 +322,7 @@ class SimpleTypeImpl : public KShared {
};
- ///Sets the parent of the given slave to either this class, or the proxy of this class
+ ///Sets the tqparent of the given slave to either this class, or the proxy of this class
virtual void setSlaveParent( SimpleTypeImpl& slave );
void setMasterProxy( TypePointer t ) {
@@ -410,11 +410,11 @@ class SimpleTypeImpl : public KShared {
}
protected:
- virtual void invalidateCache() {}
+ virtual void tqinvalidateCache() {}
;
///Secondary cache also depends on the surrounding
- virtual void invalidateSecondaryCache() {}
+ virtual void tqinvalidateSecondaryCache() {}
virtual void setSecondaryCacheActive( bool active ) {
Q_UNUSED( active );
@@ -422,7 +422,7 @@ class SimpleTypeImpl : public KShared {
///Primary cache is the one associated only with this object. It must only be cleared
///when the object pointed to changes
- virtual void invalidatePrimaryCache( bool onlyNegative = false ) {}
+ virtual void tqinvalidatePrimaryCache( bool onlyNegative = false ) {}
static TQString operatorToString( Operator op );
@@ -480,19 +480,19 @@ class SimpleTypeImpl : public KShared {
return ts;
}
- ///sets the parent-type(type this one is nested in)
- void setParent( TypePointer parent ) {
- if( parent == m_parent ) return;
- invalidateSecondaryCache();
- if ( &( *parent ) == this ) {
+ ///sets the tqparent-type(type this one is nested in)
+ void setParent( TypePointer tqparent ) {
+ if( tqparent == m_parent ) return;
+ tqinvalidateSecondaryCache();
+ if ( &( *tqparent ) == this ) {
kdDebug( 9007 ) << "setSlaveParent error\n" << kdBacktrace() << endl;
return ;
}
- m_parent = parent;
+ m_parent = tqparent;
}
- ///returns whether the type has template-parameters, or one of the parent-types has template-parameters.
+ ///returns whether the type has template-parameters, or one of the tqparent-types has template-parameters.
bool usingTemplates() const {
return !m_desc.templateParams().isEmpty() || ( m_parent && m_parent->usingTemplates() );
}
@@ -617,7 +617,7 @@ class SimpleTypeImpl : public KShared {
ExcludeParents = 16,
ExcludeNestedTypes = 32,
ExcludeNamespaces = 64,
- ForgetModeUpwards = 128, ///forgets everything, even NoFail, while passing control to the parent
+ ForgetModeUpwards = 128, ///forgets everything, even NoFail, while passing control to the tqparent
LocateBase = 4 + 8 + 32 + 64 + 128, ///searching in the scope visible while the base-declaration of a class
NoFail = 256,
TraceAliases = 512, ///Stores a copy whenever an alias is applied
@@ -718,8 +718,8 @@ class SimpleTypeImpl : public KShared {
///Returns either itself, or the (namespace-)proxy this type is a slave of.
TypePointer bigContainer();
- ///Returns the parent, eg. the SimpleType this one is nested in.
- SimpleType parent();
+ ///Returns the tqparent, eg. the SimpleType this one is nested in.
+ SimpleType tqparent();
///this must be a reference, so the desc can be manipulated in-place from outside
const TypeDesc& desc();
@@ -779,31 +779,31 @@ class SimpleTypeImpl : public KShared {
///Used to set the include-files that were used to find this type(needed for lazy evaluation of the base-classes)
void setFindIncludeFiles( const IncludeFiles& files );
- ///Should be called within the parent-namespace/class
+ ///Should be called within the tqparent-namespace/class
virtual void chooseSpecialization( MemberInfo& member );
};
class TypeTrace {
- TQValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> > m_trace;
+ TQValueList<TQPair< SimpleTypeImpl::MemberInfo, TypeDesc> > m_trace;
public:
- TQValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> >& trace() {
+ TQValueList<TQPair< SimpleTypeImpl::MemberInfo, TypeDesc> >& trace() {
return m_trace;
};
void prepend( const SimpleTypeImpl::MemberInfo& t, const TypeDesc& tail = TypeDesc() ) {
- m_trace.push_front( QPair< SimpleTypeImpl::MemberInfo, TypeDesc>( t, tail ) );
+ m_trace.push_front( TQPair< SimpleTypeImpl::MemberInfo, TypeDesc>( t, tail ) );
}
void prepend( const TypeTrace& trace, int indent = 0 ) {
/* if( indent != 0 ) {
TQString ind;
for( int a = 0; a < indent; a++ ) ind += " ";
- for( TQValueList<QPair< SimpleTypeImpl::MemberInfo, TypeDesc> >::const_iterator it = trace.m_trace.end(); it != trace.m_trace.begin(); ) {
+ for( TQValueList<TQPair< SimpleTypeImpl::MemberInfo, TypeDesc> >::const_iterator it = trace.m_trace.end(); it != trace.m_trace.begin(); ) {
--it;
- QPair<SimpleTypeImpl::MemberInfo, TypeDesc> item = *it;
+ TQPair<SimpleTypeImpl::MemberInfo, TypeDesc> item = *it;
item.second.prependDecoration( ind );
m_trace.push_front( item );
}
diff --git a/languages/cpp/simpletypecachebinder.h b/languages/cpp/simpletypecachebinder.h
index 3f950cbf..6744d5d8 100644
--- a/languages/cpp/simpletypecachebinder.h
+++ b/languages/cpp/simpletypecachebinder.h
@@ -203,7 +203,7 @@ class SimpleTypeCacheBinder : public Base {
}
#ifdef TEST_REMAP
- typename MemberMap::iterator it = m_memberCache.find( key );
+ typename MemberMap::iterator it = m_memberCache.tqfind( key );
if ( it == m_memberCache.end() ) dbgMajor() << "\"" << Base::str() << "\"remap failed with \"" << name.fullNameChain() << "\"" << endl;
#endif
@@ -260,7 +260,7 @@ class SimpleTypeCacheBinder : public Base {
(*r.first).second = t;
#ifdef TEST_REMAP
- typename LocateMap::iterator it = m_locateCache.find( desc );
+ typename LocateMap::iterator it = m_locateCache.tqfind( desc );
if ( it == m_locateCache.end() ) dbgMajor() << "\"" << Base::str() << "\"remap failed with \"" << name.fullNameChain() << "\"" << endl;
#endif
return t;
@@ -293,7 +293,7 @@ class SimpleTypeCacheBinder : public Base {
return new SimpleTypeCacheBinder<Base>( this );
}
- virtual void invalidatePrimaryCache( bool onlyNegative ) {
+ virtual void tqinvalidatePrimaryCache( bool onlyNegative ) {
//if( !m_memberCache.isEmpty() ) dbg() << "\"" << Base::str() << "\" primary caches cleared" << endl;
if ( !onlyNegative)
m_memberCache.clear();
@@ -307,7 +307,7 @@ class SimpleTypeCacheBinder : public Base {
}
m_classListCache.clear();
}
- virtual void invalidateSecondaryCache() {
+ virtual void tqinvalidateSecondaryCache() {
//if( !m_locateCache.isEmpty() ) dbg() << "\"" << Base::str() << "\" secondary caches cleared" << endl;
m_locateCache.clear();
m_haveBasesCache = false;
@@ -322,9 +322,9 @@ class SimpleTypeCacheBinder : public Base {
primaryActive = active;
}
- virtual void invalidateCache() {
- invalidatePrimaryCache( false );
- invalidateSecondaryCache();
+ virtual void tqinvalidateCache() {
+ tqinvalidatePrimaryCache( false );
+ tqinvalidateSecondaryCache();
};
};
diff --git a/languages/cpp/simpletypecatalog.cpp b/languages/cpp/simpletypecatalog.cpp
index f662acc5..9afdea75 100644
--- a/languages/cpp/simpletypecatalog.cpp
+++ b/languages/cpp/simpletypecatalog.cpp
@@ -279,13 +279,13 @@ TQStringList SimpleTypeCatalog::getBaseStrings() {
TQStringList ret;
TQMap<TQString, bool> bases;
-// try with parentsc
+// try with tqparentsc
TQTime t;
t.restart();
- TQValueList<Tag> parents( getBaseClassList() );
+ TQValueList<Tag> tqparents( getBaseClassList() );
- TQValueList<Tag>::Iterator it = parents.begin();
- while ( it != parents.end() ) {
+ TQValueList<Tag>::Iterator it = tqparents.begin();
+ while ( it != tqparents.end() ) {
Tag & tag = *it;
++it;
diff --git a/languages/cpp/simpletypecatalog.h b/languages/cpp/simpletypecatalog.h
index e22a3fcf..92563781 100644
--- a/languages/cpp/simpletypecatalog.h
+++ b/languages/cpp/simpletypecatalog.h
@@ -77,7 +77,7 @@ private:
int pointerDepthFromString( const TQString& str ) {
TQRegExp ptrRx( "(\\*|\\&)" );
- TQString ptr = str.mid( str.find( ptrRx ) );
+ TQString ptr = str.mid( str.tqfind( ptrRx ) );
TQStringList ptrList = TQStringList::split( "", ptr );
return ptrList.size();
}
@@ -100,7 +100,7 @@ protected:
TypeDesc m_desc;
TypePointer m_parent;
- CatalogBuildInfo( Tag tag , const TypeDesc& desc, TypePointer parent ) : m_tag( tag ) , m_desc( desc ), m_parent( parent ) {
+ CatalogBuildInfo( Tag tag , const TypeDesc& desc, TypePointer tqparent ) : m_tag( tag ) , m_desc( desc ), m_parent( tqparent ) {
}
virtual TypePointer build();
diff --git a/languages/cpp/simpletypefunction.cpp b/languages/cpp/simpletypefunction.cpp
index 3fc1ce52..d0c2c2af 100644
--- a/languages/cpp/simpletypefunction.cpp
+++ b/languages/cpp/simpletypefunction.cpp
@@ -455,7 +455,7 @@ SimpleTypeImpl::MemberInfo SimpleTypeCodeModel::findMember( TypeDesc name , Memb
if ( ret.memberType == MemberInfo::Function || ret.memberType == MemberInfo::Variable || ret.memberType == MemberInfo::Template || ret.memberType == MemberInfo::Typedef || ret.memberType == MemberInfo::NestedType ) {
//For redirected types it is necessary to add the include-files of the context they were searched in.
//That is not quite correct, but it makes sure that at least the same namespace-aliases will be activated while the search for the type,
- //Which is necessary because the alias is parented by exactly this class.
+ //Which is necessary because the alias is tqparented by exactly this class.
ret.type->addIncludeFiles( name.includeFiles() );
}
@@ -494,7 +494,7 @@ DeclarationInfo SimpleTypeCodeModel::getDeclarationInfo() {
TQString SimpleTypeCodeModel::specialization() const {
const ClassModel* klass = dynamic_cast<const ClassModel*>( m_item.data() );
- if ( !klass ) return TQString::null;
+ if ( !klass ) return TQString();
return klass->getSpecializationDeclaration();
}
@@ -553,8 +553,8 @@ TQStringList SimpleTypeCodeModel::getBaseStrings() {
if ( !m_item || ( klass = dynamic_cast<ClassModel*>( & ( *m_item ) ) ) == 0 ) return ret;
- TQStringList parents = klass->baseClassList();
- for ( TQStringList::Iterator it = parents.begin(); it != parents.end(); ++it ) {
+ TQStringList tqparents = klass->baseClassList();
+ for ( TQStringList::Iterator it = tqparents.begin(); it != tqparents.end(); ++it ) {
ret << *it;
}
@@ -572,8 +572,8 @@ TypePointer SimpleTypeCodeModel::CodeModelBuildInfo::build() {
TypeDesc SimpleTypeCodeModelFunction::getReturnType() {
if ( item() ) {
IncludeFiles files;
- if( parent() )
- files = parent()->getFindIncludeFiles();
+ if( tqparent() )
+ files = tqparent()->getFindIncludeFiles();
if ( FunctionModel* m = dynamic_cast<FunctionModel*>( & ( *item() ) ) ) {
TypeDesc d = m->resultType();
d.setIncludeFiles( files );
@@ -597,8 +597,8 @@ TQValueList<TypeDesc> SimpleTypeCodeModelFunction::getArgumentTypes() {
if ( item() ) {
IncludeFiles files;
- if( parent() )
- files = parent()->getFindIncludeFiles();
+ if( tqparent() )
+ files = tqparent()->getFindIncludeFiles();
if ( FunctionModel* m = dynamic_cast<FunctionModel*>( & ( *item() ) ) ) {
ArgumentList l = m->argumentList();
for ( ArgumentList::iterator it = l.begin(); it != l.end(); ++it ) {
@@ -642,7 +642,7 @@ TQStringList SimpleTypeCodeModelFunction::getArgumentDefaults() {
//SimpleTypeCodeModelFunction::CodeModelFunctionBuildInfo implementation
-SimpleTypeCodeModelFunction::CodeModelFunctionBuildInfo::CodeModelFunctionBuildInfo( FunctionDefinitionList items, TypeDesc& desc, TypePointer parent ) : m_desc( desc ), m_parent( parent ) {
+SimpleTypeCodeModelFunction::CodeModelFunctionBuildInfo::CodeModelFunctionBuildInfo( FunctionDefinitionList items, TypeDesc& desc, TypePointer tqparent ) : m_desc( desc ), m_parent( tqparent ) {
for ( FunctionDefinitionList::iterator it = items.begin(); it != items.end(); ++it ) {
m_items << model_cast<FunctionDom> ( *it );
diff --git a/languages/cpp/simpletypefunction.h b/languages/cpp/simpletypefunction.h
index 90b5fcab..86f32a65 100644
--- a/languages/cpp/simpletypefunction.h
+++ b/languages/cpp/simpletypefunction.h
@@ -139,7 +139,7 @@ public:
///paramInfo now contains the information for all implicit types
}
- return this->parent()->locateDecType( f->replaceTemplateParams( rt, paramInfo ) );
+ return this->tqparent()->locateDecType( f->replaceTemplateParams( rt, paramInfo ) );
} else {
ifVerbose( dbg() << "failed to find a fitting overloaded method" << endl );
}
@@ -239,7 +239,7 @@ protected:
TypeDesc m_desc;
TypePointer m_parent;
- CodeModelBuildInfo( ItemDom item, const TypeDesc& desc, TypePointer parent ) : m_item( item ), m_desc( desc ), m_parent( parent ) {
+ CodeModelBuildInfo( ItemDom item, const TypeDesc& desc, TypePointer tqparent ) : m_item( item ), m_desc( desc ), m_parent( tqparent ) {
}
virtual TypePointer build();
@@ -281,9 +281,9 @@ public:
TypeDesc m_desc;
TypePointer m_parent;
- CodeModelFunctionBuildInfo( FunctionList items, TypeDesc& desc, TypePointer parent ) : m_items( items ), m_desc( desc ), m_parent( parent ) {
+ CodeModelFunctionBuildInfo( FunctionList items, TypeDesc& desc, TypePointer tqparent ) : m_items( items ), m_desc( desc ), m_parent( tqparent ) {
}
- CodeModelFunctionBuildInfo( FunctionDefinitionList items, TypeDesc& desc, TypePointer parent );
+ CodeModelFunctionBuildInfo( FunctionDefinitionList items, TypeDesc& desc, TypePointer tqparent );
virtual TypePointer build();
};
@@ -317,7 +317,7 @@ public:
TypeDesc m_desc;
TypePointer m_parent;
- CatalogFunctionBuildInfo( TQValueList<Tag> tags, TypeDesc& desc, TypePointer parent ) : m_tags( tags ), m_desc( desc ), m_parent( parent ) {
+ CatalogFunctionBuildInfo( TQValueList<Tag> tags, TypeDesc& desc, TypePointer tqparent ) : m_tags( tags ), m_desc( desc ), m_parent( tqparent ) {
}
virtual TypePointer build();
diff --git a/languages/cpp/simpletypenamespace.cpp b/languages/cpp/simpletypenamespace.cpp
index f7937db1..048eb9ad 100644
--- a/languages/cpp/simpletypenamespace.cpp
+++ b/languages/cpp/simpletypenamespace.cpp
@@ -116,7 +116,7 @@ SimpleTypeImpl::MemberInfo SimpleTypeNamespace::findMember( TypeDesc name, Membe
ImportList m_aliasImports;
- AliasMap::iterator itt = m_aliases.find( name.name() );
+ AliasMap::iterator itt = m_aliases.tqfind( name.name() );
if ( itt != m_aliases.end() && !( *itt ).empty() ) {
ifVerbose( dbg() << "\"" << str() << "\": namespace-sub-aliases \"" << name.name() << "\"" << "\" requested, locating targets" << endl );
@@ -159,7 +159,7 @@ SimpleTypeImpl::MemberInfo SimpleTypeNamespace::findMember( TypeDesc name, Membe
if ( mem.memberType != MemberInfo::Namespace ) {
#ifdef PHYSICAL_IMPORT
TypePointer b = mem.build();
- if ( b && !( b->parent()->masterProxy().data() == this ) ) {
+ if ( b && !( b->tqparent()->masterProxy().data() == this ) ) {
b = b ->clone(); //expensive, cache is not shared
b->setParent( this );
@@ -169,7 +169,7 @@ SimpleTypeImpl::MemberInfo SimpleTypeNamespace::findMember( TypeDesc name, Membe
if( mem.memberType == MemberInfo::NestedType )
chooseSpecialization( mem );
TypePointer b = mem.build();
- if( b && b->parent() && b->parent()->masterProxy().data() == this )
+ if( b && b->tqparent() && b->tqparent()->masterProxy().data() == this )
b->setParent( this );
#endif
return mem;
@@ -224,10 +224,10 @@ void SimpleTypeNamespace::addAliasMap( const TypeDesc& name, const TypeDesc& ali
if ( symmetric )
addAliasMap( alias, name, files, recurse, false );
- invalidateSecondaryCache();
- invalidatePrimaryCache( true ); //Only not-found items are cleared updated here for performance-reasons(found items will stay cached)
+ tqinvalidateSecondaryCache();
+ tqinvalidatePrimaryCache( true ); //Only not-found items are cleared updated here for performance-reasons(found items will stay cached)
- AliasMap::iterator it = m_aliases.find( name.name() );
+ AliasMap::iterator it = m_aliases.tqfind( name.name() );
if ( it == m_aliases.end() )
it = m_aliases.insert( name.name(), ImportList() );
@@ -253,7 +253,7 @@ std::set<size_t> SimpleTypeNamespace::updateAliases( const IncludeFiles& files/*
if ( m_activeSlaves.empty() || !safetyCounter.ok() ) return possibleSlaves;
// if( !isRecursion ) {
// ///Test the cache
-// SlavesCache::const_iterator it = m_slavesCache.find( files );
+// SlavesCache::const_iterator it = m_slavesCache.tqfind( files );
// if( it != m_slavesCache.end() && it->second.first == m_slavesCache.size() ) return; ///The cache already contains a valid entry, and the work is done
// }
@@ -302,7 +302,7 @@ std::set<size_t> SimpleTypeNamespace::updateAliases( const IncludeFiles& files/*
#ifdef PHYSICALLY_IMPORT_NAMESPACES
if ( desc.resolved()->masterProxy().data() != this ) {
desc.setResolved( desc.resolved()->clone() ); //expensive, cache is not shared
- desc.resolved()->setMasterProxy( this ); //Possible solution: don't use this, simply set the parents of all found members correctly
+ desc.resolved()->setMasterProxy( this ); //Possible solution: don't use this, simply set the tqparents of all found members correctly
}
#endif
d.first.first = desc;
@@ -320,8 +320,8 @@ std::set<size_t> SimpleTypeNamespace::updateAliases( const IncludeFiles& files/*
void SimpleTypeNamespace::addAliases( TQString map, const IncludeFiles& files ) {
while ( !map.isEmpty() ) {
- int mid = map.find( "=" );
- int mid2 = map.find( "<<" );
+ int mid = map.tqfind( "=" );
+ int mid2 = map.tqfind( "<<" );
int found = mid;
int len = 1;
if ( mid2 != -1 && ( mid2 < found || found == -1 ) ) {
@@ -331,7 +331,7 @@ void SimpleTypeNamespace::addAliases( TQString map, const IncludeFiles& files )
if ( found == -1 )
break;
- int end = map.find( ";", found + len );
+ int end = map.tqfind( ";", found + len );
if ( end == -1 ) {
//break;
end = map.length();
@@ -344,15 +344,15 @@ void SimpleTypeNamespace::addAliases( TQString map, const IncludeFiles& files )
}
}
-void SimpleTypeNamespace::invalidatePrimaryCache( bool onlyNegative ) {
+void SimpleTypeNamespace::tqinvalidatePrimaryCache( bool onlyNegative ) {
//m_slavesCache.clear();
- SimpleTypeImpl::invalidatePrimaryCache( onlyNegative );
+ SimpleTypeImpl::tqinvalidatePrimaryCache( onlyNegative );
}
void SimpleTypeNamespace::addImport( const TypeDesc& import, const IncludeFiles& files, TypePointer perspective ) {
//ifVerbose( dbg() << "
if ( !perspective ) perspective = this;
- invalidateCache();
+ tqinvalidateCache();
TypeDesc d = import;
if ( d.resolved() ) {
#ifdef PHYSICALLY_IMPORT_NAMESPACES
@@ -377,7 +377,7 @@ bool SimpleTypeNamespace::hasNode() const {
SimpleTypeNamespace::SlaveList SimpleTypeNamespace::getSlaves( const IncludeFiles& files ) {
/* ///Test the cache
- SlavesCache::const_iterator it = m_slavesCache.find( files );
+ SlavesCache::const_iterator it = m_slavesCache.tqfind( files );
if( it != m_slavesCache.end() && it->second.first == m_activeSlaves.size() ) return it->second.second; ///The cache already contains a valid entry, and the work is done*/
std::set<size_t> allSlaves = updateAliases( files );
diff --git a/languages/cpp/simpletypenamespace.h b/languages/cpp/simpletypenamespace.h
index b465cfb6..ab5131c7 100644
--- a/languages/cpp/simpletypenamespace.h
+++ b/languages/cpp/simpletypenamespace.h
@@ -135,7 +135,7 @@ class SimpleTypeNamespace : public SimpleTypeImpl {
return true;
}
- virtual void invalidatePrimaryCache( bool onlyNegative = false );
+ virtual void tqinvalidatePrimaryCache( bool onlyNegative = false );
virtual MemberInfo findMember( TypeDesc name, MemberInfo::MemberType type = MemberInfo::AllTypes );
diff --git a/languages/cpp/store_walker.cpp b/languages/cpp/store_walker.cpp
index bcea1a05..e0c9bfd6 100644
--- a/languages/cpp/store_walker.cpp
+++ b/languages/cpp/store_walker.cpp
@@ -53,7 +53,7 @@ void StoreWalker::parseTranslationUnit( const ParsedFile& ast )
m_anon = 0;
m_imports.clear();
- m_imports << QPair<TQMap<TQString, ClassDom>, TQStringList>(TQMap<TQString, ClassDom>(), TQStringList());
+ m_imports << TQPair<TQMap<TQString, ClassDom>, TQStringList>(TQMap<TQString, ClassDom>(), TQStringList());
TreeParser::parseTranslationUnit( ast );
m_imports.pop_back();
}
@@ -519,7 +519,7 @@ void StoreWalker::parseClassSpecifier( ClassSpecifierAST* ast )
klass->setEndPosition( endLine, endColumn );
klass->setFileName( m_fileName );
- int i = className.find( '<' );
+ int i = className.tqfind( '<' );
if( i != -1 ) {
klass->setSpecializationDeclaration( className.mid( i ) );
className = className.left( i );
@@ -900,7 +900,7 @@ void StoreWalker::parseFunctionArguments( DeclaratorAST* declarator, FunctionDom
if ( param->declarator() )
{
- TQString text = declaratorToString( param->declarator(), TQString::null, true );
+ TQString text = declaratorToString( param->declarator(), TQString(), true );
if ( !text.isEmpty() )
arg->setName( text );
}
@@ -917,7 +917,7 @@ void StoreWalker::parseFunctionArguments( DeclaratorAST* declarator, FunctionDom
TQString StoreWalker::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator )
{
if ( !typeSpec || !declarator )
- return TQString::null;
+ return TQString();
TQString text;
@@ -982,7 +982,7 @@ ClassDom StoreWalker::findClassFromScope( const TQStringList& scope )
{
TQString scopeText = scope.join("::");
if( !m_imports.isEmpty() ) {
- TQMapIterator<TQString, ClassDom> it = m_imports.back().first.find( scopeText );
+ TQMapIterator<TQString, ClassDom> it = m_imports.back().first.tqfind( scopeText );
if( it != m_imports.back().first.end() ) {
return *it;
}
@@ -1052,7 +1052,7 @@ ClassDom StoreWalker::classFromScope(const TQStringList& scope) {
if( c ) {
///Check the file that overrides the code-model file
- it = m_overrides.find( c->fileName() );
+ it = m_overrides.tqfind( c->fileName() );
//Find the class within the file that is overriding the one in code-model.
if( it != m_overrides.end() ) {
diff --git a/languages/cpp/store_walker.h b/languages/cpp/store_walker.h
index 49c4bb8f..1e646d79 100644
--- a/languages/cpp/store_walker.h
+++ b/languages/cpp/store_walker.h
@@ -115,7 +115,7 @@ private:
HashedString m_hashedFileName;
TQStringList m_currentScope;
CodeModel* m_store;
- TQValueList<QPair<TQMap<TQString, ClassDom>, TQStringList> > m_imports;
+ TQValueList<TQPair<TQMap<TQString, ClassDom>, TQStringList> > m_imports;
int m_currentAccess;
bool m_inSlots;
bool m_inSignals;
diff --git a/languages/cpp/storeconverter.cpp b/languages/cpp/storeconverter.cpp
index 6ad55925..4eae290a 100644
--- a/languages/cpp/storeconverter.cpp
+++ b/languages/cpp/storeconverter.cpp
@@ -140,7 +140,7 @@ void StoreConverter::parseArguments(FunctionDom function, CppFunction<Tag> &cppF
{
ArgumentDom arg = m_model->create<ArgumentModel>();
arg->setType(*it);
- arg->setName(cppFun.argumentNames()[args.findIndex(*it)]);
+ arg->setName(cppFun.argumentNames()[args.tqfindIndex(*it)]);
function->addArgument(arg);
}
diff --git a/languages/cpp/stringhelpers.cpp b/languages/cpp/stringhelpers.cpp
index 13a39de2..bc1a8dc7 100644
--- a/languages/cpp/stringhelpers.cpp
+++ b/languages/cpp/stringhelpers.cpp
@@ -36,9 +36,9 @@ TQString clearComments( TQString str ) {
int lastPos = 0;
int pos;
int len = str.length();
- while( (pos = str.find( "/*", lastPos )) != -1 ) {
+ while( (pos = str.tqfind( "/*", lastPos )) != -1 ) {
if( !s ) return str;
- int i = str.find( "*/", pos );
+ int i = str.tqfind( "*/", pos );
if( i != -1 && i <= len - 2 ) {
clearStr( str, pos, i+2 );
lastPos = i+2;
@@ -49,9 +49,9 @@ TQString clearComments( TQString str ) {
}
lastPos = 0;
- while( (pos = str.find( "//", lastPos )) != -1 ) {
+ while( (pos = str.tqfind( "//", lastPos )) != -1 ) {
if( !s ) return str;
- int i = str.find( "\n", pos );
+ int i = str.tqfind( "\n", pos );
if( i != -1 && i <= len - 1 ) {
clearStr( str, pos, i+1 );
lastPos = i+1;
@@ -66,17 +66,17 @@ TQString clearComments( TQString str ) {
TQString cutTemplateParams( TQString str ) {
int p;
- if( (p = str.find('<') ) != -1) {
+ if( (p = str.tqfind('<') ) != -1) {
return str.left( p );
}
- return str.stripWhiteSpace().replace('*',"");
+ return str.stripWhiteSpace().tqreplace('*',"");
}
-QPair<TQString, TQString> splitTemplateParams( TQString str ) {
- QPair<TQString, TQString> ret;
+TQPair<TQString, TQString> splitTemplateParams( TQString str ) {
+ TQPair<TQString, TQString> ret;
int p;
- if( (p = str.find('<') ) != -1) {
+ if( (p = str.tqfind('<') ) != -1) {
ret.first = str.left( p ).stripWhiteSpace();
ret.second = str.mid( p ).stripWhiteSpace();
} else {
@@ -238,8 +238,8 @@ int countExtract( TQChar c, const TQString& str ) {
TQString templateParamFromString( int num, TQString str ) {
if( str.endsWith("::") ) str.truncate( str.length() - 2 );
- int begin = str.find('<');
- int end = str.findRev('>');
+ int begin = str.tqfind('<');
+ int end = str.tqfindRev('>');
if(begin == -1 || end == -1) return "";
diff --git a/languages/cpp/stringhelpers.h b/languages/cpp/stringhelpers.h
index c8783413..a6815f2b 100644
--- a/languages/cpp/stringhelpers.h
+++ b/languages/cpp/stringhelpers.h
@@ -30,7 +30,7 @@ TQString clearComments( TQString str );
TQString cutTemplateParams( TQString str );
-QPair<TQString, TQString> splitTemplateParams( TQString str );
+TQPair<TQString, TQString> splitTemplateParams( TQString str );
bool parenFits( TQChar c1, TQChar c2 );
@@ -63,8 +63,8 @@ TQStringList splitType( TQString str ) ;
class ParamIterator {
public:
ParamIterator( TQString parens, TQString source ) : m_source( source ), m_parens( parens ), m_cur( 0 ), m_curEnd ( 0 ) {
- int begin = m_source.find( m_parens[ 0 ] );
- int end = m_source.findRev( m_parens[ 1 ] );
+ int begin = m_source.tqfind( m_parens[ 0 ] );
+ int end = m_source.tqfindRev( m_parens[ 1 ] );
m_prefix = m_source.left( begin );
if ( begin == -1 || end == -1 && end - begin > 1 )
diff --git a/languages/cpp/subclassing_template/subclass_qt4_template.cpp b/languages/cpp/subclassing_template/subclass_qt4_template.cpp
index c7b3e1f1..3e96646a 100644
--- a/languages/cpp/subclassing_template/subclass_qt4_template.cpp
+++ b/languages/cpp/subclassing_template/subclass_qt4_template.cpp
@@ -2,8 +2,8 @@
#include "$NEWFILENAMELC$.h"
-$NEWCLASS$::$NEWCLASS$(TQWidget* parent, Qt::WFlags fl)
-: $QTBASECLASS$( parent, fl ), Ui::$BASECLASS$()
+$NEWCLASS$::$NEWCLASS$(TQWidget* tqparent, TQt::WFlags fl)
+: $TQTBASECLASS$( tqparent, fl ), Ui::$BASECLASS$()
{
setupUi(this);
}
diff --git a/languages/cpp/subclassing_template/subclass_qt4_template.h b/languages/cpp/subclassing_template/subclass_qt4_template.h
index a84cf0d0..64ba390e 100644
--- a/languages/cpp/subclassing_template/subclass_qt4_template.h
+++ b/languages/cpp/subclassing_template/subclass_qt4_template.h
@@ -2,15 +2,16 @@
#ifndef $NEWFILENAMEUC$_H
#define $NEWFILENAMEUC$_H
-#include <$QTBASECLASS$>
+#include <$TQTBASECLASS$>
#include "ui_$BASEFILENAME$.h"
-class $NEWCLASS$ : public $QTBASECLASS$, private Ui::$BASECLASS$
+class $NEWCLASS$ : public $TQTBASECLASS$, private Ui::$BASECLASS$
{
Q_OBJECT
+ TQ_OBJECT
public:
- $NEWCLASS$(TQWidget* parent = 0, Qt::WFlags fl = 0 );
+ $NEWCLASS$(TQWidget* tqparent = 0, TQt::WFlags fl = 0 );
~$NEWCLASS$();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/subclassing_template/subclass_template.cpp b/languages/cpp/subclassing_template/subclass_template.cpp
index adc89082..8373a260 100644
--- a/languages/cpp/subclassing_template/subclass_template.cpp
+++ b/languages/cpp/subclassing_template/subclass_template.cpp
@@ -2,8 +2,8 @@
#include "$NEWFILENAMELC$.h"
-$NEWCLASS$::$NEWCLASS$(TQWidget* parent, const char* name$CAN_BE_MODAL_CPP1$, WFlags fl)
-: $BASECLASS$(parent,name$CAN_BE_MODAL_CPP2$,fl)
+$NEWCLASS$::$NEWCLASS$(TQWidget* tqparent, const char* name$CAN_BE_MODAL_CPP1$, WFlags fl)
+: $BASECLASS$(tqparent,name$CAN_BE_MODAL_CPP2$,fl)
{
}
diff --git a/languages/cpp/subclassing_template/subclass_template.h b/languages/cpp/subclassing_template/subclass_template.h
index 8e238bae..7f9d2ae2 100644
--- a/languages/cpp/subclassing_template/subclass_template.h
+++ b/languages/cpp/subclassing_template/subclass_template.h
@@ -7,9 +7,10 @@
class $NEWCLASS$ : public $BASECLASS$
{
Q_OBJECT
+ TQ_OBJECT
public:
- $NEWCLASS$(TQWidget* parent = 0, const char* name = 0$CAN_BE_MODAL_H$, WFlags fl = 0 );
+ $NEWCLASS$(TQWidget* tqparent = 0, const char* name = 0$CAN_BE_MODAL_H$, WFlags fl = 0 );
~$NEWCLASS$();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/subclassingdlg.cpp b/languages/cpp/subclassingdlg.cpp
index 562cd010..62b154da 100644
--- a/languages/cpp/subclassingdlg.cpp
+++ b/languages/cpp/subclassingdlg.cpp
@@ -54,11 +54,11 @@
#define SLOT_HELP SlotItem(m_slotView,"help()","virtual","protected","void",false,true)
-SlotItem::SlotItem(TQListView *parent,const TQString &methodName,
+SlotItem::SlotItem(TQListView *tqparent,const TQString &methodName,
const TQString &specifier,
const TQString &access, const TQString &returnType,
bool isFunc,bool callBaseClass)
-: TQCheckListItem(parent,methodName,TQCheckListItem::CheckBox)
+: TQCheckListItem(tqparent,methodName,TQCheckListItem::CheckBox)
{
setOn(true);
m_methodName = methodName;
@@ -94,9 +94,9 @@ void SlotItem::setAllreadyInSubclass()
SubclassingDlg::SubclassingDlg(CppSupportPart* cppSupport, const TQString &formFile,
- TQStringList &newFileNames, TQWidget* parent,
+ TQStringList &newFileNames, TQWidget* tqparent,
const char* name,bool modal, WFlags fl)
-: SubclassingDlgBase(parent,name,modal,fl),
+: SubclassingDlgBase(tqparent,name,modal,fl),
m_newFileNames(newFileNames), m_cppSupport( cppSupport )
{
@@ -117,8 +117,8 @@ m_newFileNames(newFileNames), m_cppSupport( cppSupport )
SubclassingDlg::SubclassingDlg(CppSupportPart* cppSupport, const TQString &formFile,
const TQString &filename, TQStringList &dummy,
- TQWidget* parent, const char* name, bool modal, WFlags fl)
-: SubclassingDlgBase(parent, name, modal, fl),
+ TQWidget* tqparent, const char* name, bool modal, WFlags fl)
+: SubclassingDlgBase(tqparent, name, modal, fl),
m_newFileNames(dummy), m_cppSupport( cppSupport )
{
@@ -144,8 +144,8 @@ m_newFileNames(dummy), m_cppSupport( cppSupport )
for (ClassList::const_iterator classIt = myClasses.begin(); classIt != myClasses.end(); ++classIt)
{
kdDebug() << "base class " << baseClass << " class " << (*classIt)->name()
- << " parents " << (*classIt)->baseClassList().join(",") << endl;
- if ( (*classIt)->baseClassList().findIndex(baseClass) != -1 )
+ << " tqparents " << (*classIt)->baseClassList().join(",") << endl;
+ if ( (*classIt)->baseClassList().tqfindIndex(baseClass) != -1 )
{
kdDebug() << "base class matched " << endl;
m_edClassName->setText((*classIt)->name());
@@ -167,7 +167,7 @@ bool SubclassingDlg::alreadyInSubclass(const TQString &method)
{
for (uint i=0;i<m_parsedMethods.count();i++)
{
- if (method.find(m_parsedMethods[i])==0)
+ if (method.tqfind(m_parsedMethods[i])==0)
return true;
}
return false;
@@ -191,13 +191,13 @@ void SubclassingDlg::readUiFile()
// Special widget specific slots
SlotItem *newSlot;
- m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class","TQDialog");
+ m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class",TQDIALOG_OBJECT_NAME_STRING);
- if ( (m_qtBaseClassName=="TQMainWindow") || (m_qtBaseClassName=="TQWidget") )
+ if ( (m_qtBaseClassName==TQMAINWINDOW_OBJECT_NAME_STRING) || (m_qtBaseClassName==TQWIDGET_OBJECT_NAME_STRING) )
m_canBeModal = false;
else
m_canBeModal = true;
- if (m_qtBaseClassName != "TQWidget")
+ if (m_qtBaseClassName != TQWIDGET_OBJECT_NAME_STRING)
{
newSlot = new SLOT_ACCEPT;
newSlot->setOn(false);
@@ -214,7 +214,7 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- if (m_qtBaseClassName == "TQWizard")
+ if (m_qtBaseClassName == TQWIZARD_OBJECT_NAME_STRING)
{
newSlot = new SLOT_NEXT;
m_slotView->insertItem(newSlot);
@@ -276,14 +276,14 @@ void SubclassingDlg::updateDlg()
{
}
-void SubclassingDlg::replace(TQString &string, const TQString& search, const TQString& replace)
+void SubclassingDlg::tqreplace(TQString &string, const TQString& search, const TQString& tqreplace)
{
- int nextPos = string.find(search);
+ int nextPos = string.tqfind(search);
unsigned int searchLength = search.length();
while (nextPos>-1)
{
- string = string.replace(nextPos,searchLength,replace);
- nextPos = string.find(search,nextPos+replace.length());
+ string = string.tqreplace(nextPos,searchLength,tqreplace);
+ nextPos = string.tqfind(search,nextPos+tqreplace.length());
}
}
@@ -304,24 +304,24 @@ bool SubclassingDlg::loadBuffer(TQString &buffer, const TQString& filename)
bool SubclassingDlg::replaceKeywords(TQString &buffer,bool canBeModal)
{
- replace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
- replace(buffer,"$BASEFILENAMELC$",m_formName.lower());
- replace(buffer,"$BASEFILENAME$",m_formName);
- replace(buffer,"$NEWCLASS$",m_edClassName->text());
- replace(buffer,"$QTBASECLASS$", m_qtBaseClassName );
- replace(buffer,"$BASECLASS$",m_baseClassName);
- replace(buffer,"$NEWFILENAMELC$",m_edFileName->text().lower());
+ tqreplace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
+ tqreplace(buffer,"$BASEFILENAMELC$",m_formName.lower());
+ tqreplace(buffer,"$BASEFILENAME$",m_formName);
+ tqreplace(buffer,"$NEWCLASS$",m_edClassName->text());
+ tqreplace(buffer,"$TQTBASECLASS$", m_qtBaseClassName );
+ tqreplace(buffer,"$BASECLASS$",m_baseClassName);
+ tqreplace(buffer,"$NEWFILENAMELC$",m_edFileName->text().lower());
if (canBeModal)
{
- replace(buffer,"$CAN_BE_MODAL_H$",", bool modal = FALSE");
- replace(buffer,"$CAN_BE_MODAL_CPP1$",", bool modal");
- replace(buffer,"$CAN_BE_MODAL_CPP2$",", modal");
+ tqreplace(buffer,"$CAN_BE_MODAL_H$",", bool modal = FALSE");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP1$",", bool modal");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP2$",", modal");
}
else
{
- replace(buffer,"$CAN_BE_MODAL_H$","");
- replace(buffer,"$CAN_BE_MODAL_CPP1$","");
- replace(buffer,"$CAN_BE_MODAL_CPP2$","");
+ tqreplace(buffer,"$CAN_BE_MODAL_H$","");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP1$","");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP2$","");
}
return true;
@@ -378,8 +378,8 @@ void SubclassingDlg::accept()
TQFileInfo fi(m_filename + ".h");
TQString module = fi.baseName();
TQString basefilename = fi.baseName(true);
- buffer.replace(TQRegExp("\\$MODULE\\$"),module);
- buffer.replace(TQRegExp("\\$FILENAME\\$"),basefilename);
+ buffer.tqreplace(TQRegExp("\\$MODULE\\$"),module);
+ buffer.tqreplace(TQRegExp("\\$FILENAME\\$"),basefilename);
}
else
loadBuffer(buffer,m_filename+".h");
@@ -411,12 +411,12 @@ void SubclassingDlg::accept()
if (!slitem->m_isFunc)
{
declBuild += spacer.fill(' ',43-declBuild.length()) + slitem->m_methodName + ";";
- replace(buffer,"/*$PUBLIC_SLOTS$*/",declBuild);
+ tqreplace(buffer,"/*$PUBLIC_SLOTS$*/",declBuild);
}
else
{
declBuild += spacer.fill(' ',47-declBuild.length()) + slitem->m_methodName + ";";
- replace(buffer,"/*$PUBLIC_FUNCTIONS$*/",declBuild);
+ tqreplace(buffer,"/*$PUBLIC_FUNCTIONS$*/",declBuild);
}
}
if (slitem->m_access=="protected")
@@ -424,12 +424,12 @@ void SubclassingDlg::accept()
if (!slitem->m_isFunc)
{
declBuild += spacer.fill(' ',46-declBuild.length()) + slitem->m_methodName + ";";
- replace(buffer,"/*$PROTECTED_SLOTS$*/",declBuild);
+ tqreplace(buffer,"/*$PROTECTED_SLOTS$*/",declBuild);
}
else
{
declBuild += spacer.fill(' ',50-declBuild.length()) + slitem->m_methodName + ";";
- replace(buffer,"/*$PROTECTED_FUNCTIONS$*/",declBuild);
+ tqreplace(buffer,"/*$PROTECTED_FUNCTIONS$*/",declBuild);
}
}
}
@@ -458,7 +458,7 @@ void SubclassingDlg::accept()
"/*$SPECIALIZATION$*/\n"
"$RETURNTYPE$ $NEWCLASS$::$METHOD$\n"
"{\n"
- " $QTBASECLASS$::$METHOD$;\n"
+ " $TQTBASECLASS$::$METHOD$;\n"
"}\n";
@@ -473,10 +473,10 @@ void SubclassingDlg::accept()
TQFileInfo fi(m_filename + ".cpp");
TQString module = fi.baseName();
TQString basefilename = fi.baseName(true);
- buffer.replace(TQRegExp("\\$MODULE\\$"),module);
- buffer.replace(TQRegExp("\\$FILENAME\\$"),basefilename);
+ buffer.tqreplace(TQRegExp("\\$MODULE\\$"),module);
+ buffer.tqreplace(TQRegExp("\\$FILENAME\\$"),basefilename);
if ( (m_cppSupport->project()) && (m_cppSupport->project()->options() & KDevProject::UsesAutotoolsBuildSystem))
- buffer += "\n#include \"$NEWFILENAMELC$.moc\"\n";
+ buffer += "\n#include \"$NEWFILENAMELC$.tqmoc\"\n";
}
else
loadBuffer(buffer,m_filename+".cpp");
@@ -489,11 +489,11 @@ void SubclassingDlg::accept()
slitem->m_alreadyInSubclass)
continue;
TQString impl = slitem->m_callBaseClass ? implementation_callbase : implementation;
- replace(impl,"$RETURNTYPE$",slitem->m_returnType);
- replace(impl,"$NEWCLASS$",m_edClassName->text());
- replace(impl,"$METHOD$", slitem->m_methodName);
- replace(impl,"$QTBASECLASS$", m_qtBaseClassName);
- replace(buffer,"/*$SPECIALIZATION$*/",impl);
+ tqreplace(impl,"$RETURNTYPE$",slitem->m_returnType);
+ tqreplace(impl,"$NEWCLASS$",m_edClassName->text());
+ tqreplace(impl,"$METHOD$", slitem->m_methodName);
+ tqreplace(impl,"$TQTBASECLASS$", m_qtBaseClassName);
+ tqreplace(buffer,"/*$SPECIALIZATION$*/",impl);
}
if (reformat_box->isChecked())
diff --git a/languages/cpp/subclassingdlg.h b/languages/cpp/subclassingdlg.h
index c49ad683..ca07059a 100644
--- a/languages/cpp/subclassingdlg.h
+++ b/languages/cpp/subclassingdlg.h
@@ -20,10 +20,10 @@ class TQStringList;
class TQDomDocument;
class CppSupportPart;
-class SlotItem : public QCheckListItem
+class SlotItem : public TQCheckListItem
{
public:
- SlotItem( TQListView *parent, const TQString &text,
+ SlotItem( TQListView *tqparent, const TQString &text,
const TQString &specifier, const TQString &Access,
const TQString &returnType, bool isFunc,
bool callBaseClass = false );
@@ -42,10 +42,10 @@ class SubclassingDlg : public SubclassingDlgBase
{
public:
SubclassingDlg( CppSupportPart* cppSupport, const TQString &formFile, TQStringList &newFileNames,
- TQWidget* parent = 0, const char* name = 0,
+ TQWidget* tqparent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );
SubclassingDlg( CppSupportPart* cppSupport, const TQString &formFile, const TQString &filename, TQStringList &dummy,
- TQWidget* parent = 0, const char* name = 0,
+ TQWidget* tqparent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );
~SubclassingDlg();
@@ -54,7 +54,7 @@ private:
TQString readBaseClassName();
void updateDlg();
bool replaceKeywords( TQString &buffer, bool canBeModal = true );
- void replace( TQString &string, const TQString& search, const TQString& replace );
+ void tqreplace( TQString &string, const TQString& search, const TQString& tqreplace );
bool saveBuffer( TQString &buffer, const TQString& filename );
bool loadBuffer( TQString &buffer, const TQString& filename );
bool alreadyInSubclass( const TQString &method );
diff --git a/languages/cpp/subclassingdlgbase.ui b/languages/cpp/subclassingdlgbase.ui
index c732b244..a43beb05 100644
--- a/languages/cpp/subclassingdlgbase.ui
+++ b/languages/cpp/subclassingdlgbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>SubclassingDlgBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>SubclassingDlgBase</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -30,12 +30,12 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="2" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
- <string>&amp;Specialize following slots:</string>
+ <string>&amp;Specialize following Q_SLOTS:</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_slotView</cstring>
@@ -46,7 +46,7 @@
<cstring>m_edClassName</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -65,7 +65,7 @@
<cstring>m_edClassName</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -89,7 +89,7 @@
<cstring>m_edFileName</cstring>
</property>
</widget>
- <widget class="QListView" row="3" column="0" rowspan="1" colspan="3">
+ <widget class="TQListView" row="3" column="0" rowspan="1" colspan="3">
<column>
<property name="text">
<string>Method</string>
@@ -149,7 +149,7 @@
<cstring>m_slotView</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>reformat_box</cstring>
</property>
@@ -157,7 +157,7 @@
<string>Re&amp;format source</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="2">
+ <widget class="TQCheckBox" row="4" column="2">
<property name="name">
<cstring>reformatDefault_box</cstring>
</property>
@@ -175,7 +175,7 @@
</widget>
</grid>
</widget>
- <widget class="QPushButton" row="1" column="1">
+ <widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>m_btnOk</cstring>
</property>
@@ -186,7 +186,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="1" column="2">
+ <widget class="TQPushButton" row="1" column="2">
<property name="name">
<cstring>m_btnCancel</cstring>
</property>
@@ -204,7 +204,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>110</width>
<height>20</height>
@@ -236,9 +236,9 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>onChangedClassName()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/cpp/tag_creator.cpp b/languages/cpp/tag_creator.cpp
index 15849ad1..2ac8d54b 100644
--- a/languages/cpp/tag_creator.cpp
+++ b/languages/cpp/tag_creator.cpp
@@ -47,10 +47,10 @@ void TagCreator::parseDeclaration( DeclarationAST* ast )
{
if( ast->nodeType() == NodeType_AccessDeclaration ||
m_currentAccess.isEmpty() ||
- m_currentAccess.contains("private") || ///In order to correctly evaluate templates, the private members are necessary too
- m_currentAccess.contains("public") ||
- m_currentAccess.contains("protected") ||
- m_currentAccess.contains("signals") )
+ m_currentAccess.tqcontains("private") || ///In order to correctly evaluate templates, the private members are necessary too
+ m_currentAccess.tqcontains("public") ||
+ m_currentAccess.tqcontains("protected") ||
+ m_currentAccess.tqcontains("signals") )
{
TreeParser::parseDeclaration( ast );
}
@@ -59,7 +59,7 @@ void TagCreator::parseDeclaration( DeclarationAST* ast )
void TagCreator::parseTranslationUnit( const ParsedFile& ast )
{
m_currentScope.clear();
- m_currentAccess = TQString::null;
+ m_currentAccess = TQString();
m_inSlots = false;
m_inSignals = false;
m_anon = 0;
@@ -78,9 +78,9 @@ void TagCreator::parseTranslationUnit( const ParsedFile& ast )
ast.write( stream );
tag.setAttribute( "cppparsedfile", data );
tag.setAttribute( "includedFrom", ast.includedFrom() );
- tag.setAttribute( "skippedLines", TQString("%1").arg( ast.skippedLines()) );
- tag.setAttribute( "macroValueHash", TQString("%1").arg( ast.usedMacros().valueHash()) );
- tag.setAttribute( "macroIdHash", TQString("%1").arg( ast.usedMacros().idHash() ) );
+ tag.setAttribute( "skippedLines", TQString("%1").tqarg( ast.skippedLines()) );
+ tag.setAttribute( "macroValueHash", TQString("%1").tqarg( ast.usedMacros().valueHash()) );
+ tag.setAttribute( "macroIdHash", TQString("%1").tqarg( ast.usedMacros().idHash() ) );
tag.setScope( m_currentScope );
if( !ast->comment().isEmpty() )
@@ -362,7 +362,7 @@ void TagCreator::parseFunctionDefinition( FunctionDefinitionAST* ast )
checkTemplateDeclarator( tag );
TQString arguments = tag.attribute( "a" ).toStringList().join( "," );
-tag.setAttribute( "description", m_documentation->functionDescription( scopeStr.replace( TQRegExp( "." ), ":" ), id, typeOfDeclaration( typeSpec, d ), arguments ) );
+tag.setAttribute( "description", m_documentation->functionDescription( scopeStr.tqreplace( TQRegExp( "." ), ":" ), id, typeOfDeclaration( typeSpec, d ), arguments ) );
tagBuilder.setAccess( TagUtils::stringToAccess( m_currentAccess ) );
@@ -469,7 +469,7 @@ void TagCreator::parseClassSpecifier( ClassSpecifierAST* ast )
tag.setFileName( m_fileName );
- int i = className.find( '<' );
+ int i = className.tqfind( '<' );
TQString specialization;
if( i != -1 ) {
@@ -748,7 +748,7 @@ void TagCreator::parseFunctionArguments( Tag& tag, DeclaratorAST* declarator )
TQString name;
if( param->declarator() ){
- name = declaratorToString(param->declarator(), TQString::null, true );
+ name = declaratorToString(param->declarator(), TQString(), true );
}
TQString type = typeOfDeclaration( param->typeSpec(), param->declarator() );
@@ -773,7 +773,7 @@ void TagCreator::parseFunctionArguments( Tag& tag, DeclaratorAST* declarator )
TQString TagCreator::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator )
{
if( !typeSpec || !declarator )
- return TQString::null;
+ return TQString();
TQString text;
@@ -862,7 +862,7 @@ int TagUtils::stringToAccess( const TQString & access )
<< "public slots" << "protected slots" << "private slots"
<< "signals";
- int idx = l.findIndex( access );
+ int idx = l.tqfindIndex( access );
return idx == -1 ? 0 : idx+1;
}
@@ -878,7 +878,7 @@ TQString TagUtils::accessToString( int id )
if( l.at(id-1) != l.end() )
return l[ id-1 ];
- return TQString::null;
+ return TQString();
}
//kate: indent-mode csands; tab-width 4; space-indent off;
diff --git a/languages/cpp/typedecoration.h b/languages/cpp/typedecoration.h
index e142d837..9e52bb5e 100644
--- a/languages/cpp/typedecoration.h
+++ b/languages/cpp/typedecoration.h
@@ -47,9 +47,9 @@ class TypeDecoration {
}
void operator += ( const TypeDecoration& rhs ) {
- if ( !m_decoration_front.contains( rhs.m_decoration_front ) )
+ if ( !m_decoration_front.tqcontains( rhs.m_decoration_front ) )
m_decoration_front += rhs.m_decoration_front;
- if ( !m_decoration_back.contains( rhs.m_decoration_back ) )
+ if ( !m_decoration_back.tqcontains( rhs.m_decoration_back ) )
m_decoration_back += rhs.m_decoration_back;
}
diff --git a/languages/cpp/typedesc.cpp b/languages/cpp/typedesc.cpp
index 89d32931..b238b734 100644
--- a/languages/cpp/typedesc.cpp
+++ b/languages/cpp/typedesc.cpp
@@ -150,7 +150,7 @@ TypeDesc::TypeDesc( const TypeDesc& rhs ) {
bool TypeDesc::isValidType() const {
if ( !m_data )
return false;
- if ( m_data->m_cleanName.find( "->" ) != -1 || m_data->m_cleanName.contains( '.' ) || m_data->m_cleanName.contains( ' ' ) || m_data->m_cleanName.isEmpty() )
+ if ( m_data->m_cleanName.tqfind( "->" ) != -1 || m_data->m_cleanName.tqcontains( '.' ) || m_data->m_cleanName.tqcontains( ' ' ) || m_data->m_cleanName.isEmpty() )
return false;
for ( TemplateParams::const_iterator it = m_data->m_templateParams.begin(); it != m_data->m_templateParams.end(); ++it ) {
@@ -238,7 +238,7 @@ size_t TypeDescData::hashKey() {
int len = m_cleanName.length();
for ( int a = 0; a < len; a++ )
- ret += m_cleanName[ a ].unicode() * 3 * (11*(a+1));
+ ret += m_cleanName[ a ].tqunicode() * 3 * (11*(a+1));
int n = 1;
@@ -266,7 +266,7 @@ size_t TypeDescData::hashKey2() {
int len = m_cleanName.length();
for ( int a = 0; a < len; a++ )
- ret += m_cleanName[ a ].unicode() * 19 * (7*(a+1));
+ ret += m_cleanName[ a ].tqunicode() * 19 * (7*(a+1));
int n = 1;
@@ -590,7 +590,7 @@ void TypeDesc::makeDataPrivate() {
if ( m_data.count() > 1 ) {
m_data = new TypeDescData( *m_data );
}
- m_data->invalidateKey();
+ m_data->tqinvalidateKey();
}
TypeDesc& TypeDesc::makePrivate() {
@@ -708,7 +708,7 @@ void TypeDesc::init( TQString stri ) {
///Since function-names are also processed by this function, this check has to be done
if( shorten ) {
///Remove any prefixes like const or typename(very limited algorithm)
- int len = str.find( "<" );
+ int len = str.tqfind( "<" );
if ( len == -1 )
len = str.length();
int currentStart = 0;
diff --git a/languages/cpp/typedesc.h b/languages/cpp/typedesc.h
index ddb072d2..0759b74e 100644
--- a/languages/cpp/typedesc.h
+++ b/languages/cpp/typedesc.h
@@ -158,7 +158,7 @@ struct TypeDescData : public KShared {
TypeDescData() : m_hashValid( false ), m_hash2Valid( false ) {
}
- void invalidateKey() {
+ void tqinvalidateKey() {
m_hashValid = false;
m_hash2Valid = false;
}
diff --git a/languages/csharp/README.dox b/languages/csharp/README.dox
index 6d256b08..36797a75 100644
--- a/languages/csharp/README.dox
+++ b/languages/csharp/README.dox
@@ -12,7 +12,7 @@ and images.
\maintainer <a href="mailto:willems.luc AT pandora.be">Luc Willems</a>
\feature csharp programming language support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
..
diff --git a/languages/csharp/csharpconfigwidget.cpp b/languages/csharp/csharpconfigwidget.cpp
index 620f7881..dea62747 100644
--- a/languages/csharp/csharpconfigwidget.cpp
+++ b/languages/csharp/csharpconfigwidget.cpp
@@ -17,8 +17,8 @@
CSharpConfigWidget::CSharpConfigWidget(TQDomDocument &projectDom,
- TQWidget *parent, const char *name)
- : CSharpConfigWidgetBase(parent, name), dom(projectDom)
+ TQWidget *tqparent, const char *name)
+ : CSharpConfigWidgetBase(tqparent, name), dom(projectDom)
{
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevcsharpsupport/run/interpreter"));
terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevcsharpsupport/run/terminal"));
diff --git a/languages/csharp/csharpconfigwidget.h b/languages/csharp/csharpconfigwidget.h
index a44570cd..25b6e58f 100644
--- a/languages/csharp/csharpconfigwidget.h
+++ b/languages/csharp/csharpconfigwidget.h
@@ -19,9 +19,10 @@
class CSharpConfigWidget : public CSharpConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- CSharpConfigWidget( TQDomDocument &projectDom, TQWidget *parent=0, const char *name=0 );
+ CSharpConfigWidget( TQDomDocument &projectDom, TQWidget *tqparent=0, const char *name=0 );
~CSharpConfigWidget();
public slots:
diff --git a/languages/csharp/csharpconfigwidgetbase.ui b/languages/csharp/csharpconfigwidgetbase.ui
index dbf4d3ae..1b7dd060 100644
--- a/languages/csharp/csharpconfigwidgetbase.ui
+++ b/languages/csharp/csharpconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>CSharpConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>csharp_config_widget</cstring>
</property>
@@ -20,7 +20,7 @@
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>interpreter_label</cstring>
</property>
@@ -31,7 +31,7 @@
<cstring>interpreter_edit</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -72,7 +72,7 @@
<enum>Minimum</enum>
</property>
</spacer>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>terminal_box</cstring>
</property>
@@ -96,6 +96,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/csharp/csharpsupportpart.cpp b/languages/csharp/csharpsupportpart.cpp
index d0bc9be6..0c67b155 100644
--- a/languages/csharp/csharpsupportpart.cpp
+++ b/languages/csharp/csharpsupportpart.cpp
@@ -48,8 +48,8 @@ typedef KDevGenericFactory<CSharpSupportPart> CSharpSupportFactory;
static const KDevPluginInfo data("kdevcsharpsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevcsharpsupport, CSharpSupportFactory( data ) )
-CSharpSupportPart::CSharpSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport(&data, parent, name ? name : "CSharpSupportPart")
+CSharpSupportPart::CSharpSupportPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport(&data, tqparent, name ? name : "CSharpSupportPart")
{
setInstance(CSharpSupportFactory::instance());
@@ -166,7 +166,7 @@ void CSharpSupportPart::savedFile(const KURL &fileName)
#if 0 // not needed anymore
kdDebug(9016) << "savedFile()" << endl;
- if (project()->allFiles().contains(fileName.mid ( project()->projectDirectory().length() + 1 ))) {
+ if (project()->allFiles().tqcontains(fileName.mid ( project()->projectDirectory().length() + 1 ))) {
maybeParse(fileName);
emit updatedSourceInfo();
}
@@ -215,7 +215,7 @@ void CSharpSupportPart::slotStartInterpreter()
void CSharpSupportPart::slotExecuteString()
{
bool ok;
- TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString::null, &ok, 0);
+ TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString(), &ok, 0);
if (ok) {
cmd.prepend("'");
cmd.append("'");
diff --git a/languages/csharp/csharpsupportpart.h b/languages/csharp/csharpsupportpart.h
index 35d2b7ba..df2390c8 100644
--- a/languages/csharp/csharpsupportpart.h
+++ b/languages/csharp/csharpsupportpart.h
@@ -19,9 +19,10 @@
class CSharpSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- CSharpSupportPart( TQObject *parent, const char *name, const TQStringList & );
+ CSharpSupportPart( TQObject *tqparent, const char *name, const TQStringList & );
~CSharpSupportPart();
protected:
diff --git a/languages/fortran/README.dox b/languages/fortran/README.dox
index 65a4e645..d0a5e953 100644
--- a/languages/fortran/README.dox
+++ b/languages/fortran/README.dox
@@ -14,7 +14,7 @@ and images.
\maintainer <a href="mailto:nth maintainer AT provider.com">nth maintainer full name</a>
\feature Fortran language support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
..
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp b/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
index 66a12fbb..f6c3465e 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
+++ b/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
@@ -25,8 +25,8 @@ extern "C" {
}
-PgiOptionsFactory::PgiOptionsFactory(TQObject *parent, const char *name)
- : KLibFactory(parent, name)
+PgiOptionsFactory::PgiOptionsFactory(TQObject *tqparent, const char *name)
+ : KLibFactory(tqparent, name)
{
instance();
}
@@ -39,15 +39,15 @@ PgiOptionsFactory::~PgiOptionsFactory()
}
-TQObject *PgiOptionsFactory::createObject(TQObject *parent, const char *name,
+TQObject *PgiOptionsFactory::createObject(TQObject *tqparent, const char *name,
const char * /*classname*/, const TQStringList &args)
{
if (args.count() > 0 && qstrcmp(args[0].latin1(), "pghpf") == 0) {
kdDebug(9021) << "Building PgiOptions for PGHPF" << endl;
- return new PgiOptionsPlugin(PgiOptionsPlugin::PGHPF, parent, name);
+ return new PgiOptionsPlugin(PgiOptionsPlugin::PGHPF, tqparent, name);
} else if (args.count() > 0 && qstrcmp(args[0].latin1(), "pgf77") == 0) {
kdDebug(9021) << "Building PgiOptions for PGF77" << endl;
- return new PgiOptionsPlugin(PgiOptionsPlugin::PGF77, parent, name);
+ return new PgiOptionsPlugin(PgiOptionsPlugin::PGF77, tqparent, name);
} else {
kdDebug(9021) << "Wrong args for kdevpgioptions library" << endl;
if (args.count() > 0)
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsfactory.h b/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
index 4fd73b7f..e66e0cf2 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
+++ b/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
@@ -18,12 +18,13 @@
class PgiOptionsFactory : public KLibFactory
{
Q_OBJECT
+ TQ_OBJECT
public:
- PgiOptionsFactory( TQObject *parent=0, const char *name=0 );
+ PgiOptionsFactory( TQObject *tqparent=0, const char *name=0 );
~PgiOptionsFactory();
- virtual TQObject* createObject( TQObject *parent, const char *name,
+ virtual TQObject* createObject( TQObject *tqparent, const char *name,
const char *classname, const TQStringList &args);
static KInstance *instance();
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp b/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
index 8f22453a..267c67f0 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
+++ b/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
@@ -72,10 +72,10 @@ const char * const hpf_flags[] = {
-class GeneralTab : public QWidget
+class GeneralTab : public TQWidget
{
public:
- GeneralTab( TQWidget *parent=0, const char *name=0 );
+ GeneralTab( TQWidget *tqparent=0, const char *name=0 );
~GeneralTab();
void readFlags(TQStringList *str);
@@ -83,10 +83,10 @@ public:
};
-class OptimizationTab : public QWidget
+class OptimizationTab : public TQWidget
{
public:
- OptimizationTab( PgiOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
+ OptimizationTab( PgiOptionsPlugin::Type type, TQWidget *tqparent=0, const char *name=0 );
~OptimizationTab();
void readFlags(TQStringList *str);
@@ -98,10 +98,10 @@ private:
};
-class HpfTab : public QWidget
+class HpfTab : public TQWidget
{
public:
- HpfTab( TQWidget *parent=0, const char *name=0 );
+ HpfTab( TQWidget *tqparent=0, const char *name=0 );
~HpfTab();
void readFlags(TQStringList *str);
@@ -112,11 +112,11 @@ private:
};
-OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, TQWidget *parent, const char *name)
- : TQWidget(parent, name)
+OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
TQVButtonGroup *group = new TQVButtonGroup(i18n("Optimization Level"), this);
Odefault = new TQRadioButton(i18n("Default"), group);
@@ -127,7 +127,7 @@ OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, TQWidget *parent,
if (type == PgiOptionsPlugin::PGHPF) {
optBox = new TQListView(this);
- optBox->addColumn(TQString::null);
+ optBox->addColumn(TQString());
optBox->header()->hide();
for (const char * const *p = optimization_flags; *p; ++p) {
new TQCheckListItem(optBox, *p, TQCheckListItem::CheckBox);
@@ -137,7 +137,7 @@ OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, TQWidget *parent,
optBox = 0;
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
@@ -150,7 +150,7 @@ void OptimizationTab::readFlags(TQStringList *list)
if (optBox) {
TQListViewItem *item = optBox->firstChild();
for (; item; item = item->nextSibling()) {
- TQStringList::Iterator sli = list->find(item->text(0));
+ TQStringList::Iterator sli = list->tqfind(item->text(0));
if (sli != list->end()) {
static_cast<TQCheckListItem*>(item)->setOn(true);
list->remove(sli);
@@ -159,17 +159,17 @@ void OptimizationTab::readFlags(TQStringList *list)
}
TQStringList::Iterator sli;
- sli = list->find("-O0");
+ sli = list->tqfind("-O0");
if (sli != list->end()) {
O0->setChecked(true);
list->remove(sli);
}
- sli = list->find("-O1");
+ sli = list->tqfind("-O1");
if (sli != list->end()) {
O1->setChecked(true);
list->remove(sli);
}
- sli = list->find("-O2");
+ sli = list->tqfind("-O2");
if (sli != list->end()) {
O2->setChecked(true);
list->remove(sli);
@@ -195,20 +195,20 @@ void OptimizationTab::writeFlags(TQStringList *list)
}
-HpfTab::HpfTab(TQWidget *parent, const char *name)
- : TQWidget(parent, name)
+HpfTab::HpfTab(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
hpfBox = new TQListView(this);
- hpfBox->addColumn(TQString::null);
+ hpfBox->addColumn(TQString());
hpfBox->header()->hide();
for (const char * const *p = hpf_flags; *p; ++p)
new TQCheckListItem(hpfBox, *p, TQCheckListItem::CheckBox);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
@@ -220,7 +220,7 @@ void HpfTab::readFlags(TQStringList *list)
{
TQListViewItem *item = hpfBox->firstChild();
for (; item; item = item->nextSibling()) {
- TQStringList::Iterator sli = list->find(item->text(0));
+ TQStringList::Iterator sli = list->tqfind(item->text(0));
if (sli != list->end()) {
static_cast<TQCheckListItem*>(item)->setOn(true);
list->remove(sli);
@@ -239,9 +239,9 @@ void HpfTab::writeFlags(TQStringList *list)
}
-PgiOptionsDialog::PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *parent, const char *name)
+PgiOptionsDialog::PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *tqparent, const char *name)
: KDialogBase(Tabbed, (type == PgiOptionsPlugin::PGHPF)? i18n("PGHPF Compiler Options") : i18n("PGF77 Compiler Options"),
- Ok|Cancel, Ok, parent, name, true)
+ Ok|Cancel, Ok, tqparent, name, true)
{
TQVBox *vbox;
@@ -299,8 +299,8 @@ TQString PgiOptionsDialog::flags() const
}
-PgiOptionsPlugin::PgiOptionsPlugin(Type type, TQObject *parent, const char *name)
- : KDevCompilerOptions(parent, name)
+PgiOptionsPlugin::PgiOptionsPlugin(Type type, TQObject *tqparent, const char *name)
+ : KDevCompilerOptions(tqparent, name)
{
pgitype = type;
}
@@ -310,9 +310,9 @@ PgiOptionsPlugin::~PgiOptionsPlugin()
{}
-TQString PgiOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
+TQString PgiOptionsPlugin::exec(TQWidget *tqparent, const TQString &flags)
{
- PgiOptionsDialog *dlg = new PgiOptionsDialog(pgitype, parent, "pgi options dialog");
+ PgiOptionsDialog *dlg = new PgiOptionsDialog(pgitype, tqparent, "pgi options dialog");
TQString newFlags = flags;
dlg->setFlags(flags);
if (dlg->exec() == TQDialog::Accepted)
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsplugin.h b/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
index aba83fbc..28392c0d 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
+++ b/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
@@ -24,14 +24,15 @@ class HpfTab;
class PgiOptionsPlugin : public KDevCompilerOptions
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Type { PGHPF, PGF77 };
- PgiOptionsPlugin( Type type, TQObject *parent=0, const char *name=0 );
+ PgiOptionsPlugin( Type type, TQObject *tqparent=0, const char *name=0 );
~PgiOptionsPlugin();
- virtual TQString exec(TQWidget *parent, const TQString &flags);
+ virtual TQString exec(TQWidget *tqparent, const TQString &flags);
private:
Type pgitype;
@@ -41,7 +42,7 @@ private:
class PgiOptionsDialog : public KDialogBase
{
public:
- PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
+ PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *tqparent=0, const char *name=0 );
~PgiOptionsDialog();
void setFlags(const TQString &flags);
diff --git a/languages/fortran/fixedformparser.cpp b/languages/fortran/fixedformparser.cpp
index 312d811e..8f07ad4a 100644
--- a/languages/fortran/fixedformparser.cpp
+++ b/languages/fortran/fixedformparser.cpp
@@ -73,7 +73,7 @@ void FixedFormParser::parse(const TQString &fileName)
while (!stream.atEnd()) {
++lineNum;
TQCString str = stream.readLine().local8Bit();
- if (!str.isEmpty() && TQCString("*Cc#!").find(str[0]) != -1)
+ if (!str.isEmpty() && TQCString("*Cc#!").tqfind(str[0]) != -1)
continue;
// Continuation line
if (str.length() > 6 && str.left(5) == " " && str[5] != ' ') {
diff --git a/languages/fortran/fortransupportpart.cpp b/languages/fortran/fortransupportpart.cpp
index 7d4ed1bc..63a06584 100644
--- a/languages/fortran/fortransupportpart.cpp
+++ b/languages/fortran/fortransupportpart.cpp
@@ -48,8 +48,8 @@ typedef KDevGenericFactory<FortranSupportPart> FortranSupportFactory;
static const KDevPluginInfo data("kdevfortransupport");
K_EXPORT_COMPONENT_FACTORY( libkdevfortransupport, FortranSupportFactory( data ) )
-FortranSupportPart::FortranSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport(&data, parent, name ? name : "FortranSupportPart")
+FortranSupportPart::FortranSupportPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport(&data, tqparent, name ? name : "FortranSupportPart")
{
setInstance(FortranSupportFactory::instance());
@@ -151,7 +151,7 @@ void FortranSupportPart::slotFtnchek()
}
}
- makeFrontend()->queueCommand(TQString::null, cmdline);
+ makeFrontend()->queueCommand(TQString(), cmdline);
}
@@ -267,7 +267,7 @@ void FortranSupportPart::savedFile(const KURL &fileName)
{
kdDebug(9019) << "savedFile()" << endl;
- if (project()->allFiles().contains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
+ if (project()->allFiles().tqcontains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
maybeParse(fileName.path());
emit addedSourceInfo( fileName.path() );
}
diff --git a/languages/fortran/fortransupportpart.h b/languages/fortran/fortransupportpart.h
index 2a6f8787..8bd5872b 100644
--- a/languages/fortran/fortransupportpart.h
+++ b/languages/fortran/fortransupportpart.h
@@ -23,9 +23,10 @@ class KDevMakeFrontend;
class FortranSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- FortranSupportPart( TQObject *parent, const char *name, const TQStringList & );
+ FortranSupportPart( TQObject *tqparent, const char *name, const TQStringList & );
~FortranSupportPart();
protected:
diff --git a/languages/fortran/ftnchekconfigwidget.cpp b/languages/fortran/ftnchekconfigwidget.cpp
index 1c50a1e1..eaef8434 100644
--- a/languages/fortran/ftnchekconfigwidget.cpp
+++ b/languages/fortran/ftnchekconfigwidget.cpp
@@ -22,12 +22,12 @@
#include "domutil.h"
-class FtnchekItem : public QCheckListItem
+class FtnchekItem : public TQCheckListItem
{
public:
- FtnchekItem(TQListView *parent, const TQString &flagstr,
+ FtnchekItem(TQListView *tqparent, const TQString &flagstr,
const TQString &description)
- : TQCheckListItem(parent, flagstr, TQCheckListItem::CheckBox),
+ : TQCheckListItem(tqparent, flagstr, TQCheckListItem::CheckBox),
flag(flagstr), desc(description)
{
setText(1, desc);
@@ -48,7 +48,7 @@ void FtnchekItem::readFlagsToListView(TQListView *listview, TQStringList *list)
TQListViewItem *item = listview->firstChild();
for (; item; item = item->nextSibling()) {
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
- TQStringList::Iterator sli = list->find(flitem->flag);
+ TQStringList::Iterator sli = list->tqfind(flitem->flag);
if (sli != list->end()) {
flitem->setOn(true);
list->remove(sli);
@@ -70,21 +70,21 @@ void FtnchekItem::writeFlagsFromListView(TQListView *listview, TQStringList *lis
}
-class FtnchekToolTip : public QToolTip
+class FtnchekToolTip : public TQToolTip
{
public:
- FtnchekToolTip(TQWidget *parent)
- : TQToolTip(parent)
+ FtnchekToolTip(TQWidget *tqparent)
+ : TQToolTip(tqparent)
{}
protected:
void maybeTip(const TQPoint &pos)
{
- TQListView *listview = static_cast<TQListView*>(parentWidget());
+ TQListView *listview = static_cast<TQListView*>(tqparentWidget());
TQListViewItem *item = listview->itemAt(pos);
FtnchekItem *flitem = static_cast<FtnchekItem*>(item);
if (item)
- tip(listview->itemRect(item), flitem->desc);
+ tip(listview->tqitemRect(item), flitem->desc);
}
};
@@ -141,14 +141,14 @@ const char *f77_flags[] = {
const char *portability_flags[] = {
"backslash", I18N_NOOP("Backslash characters in strings"),
- "common-alignment", I18N_NOOP("COMMON block variables not in descending order of storage sizes"),
+ "common-tqalignment", I18N_NOOP("COMMON block variables not in descending order of storage sizes"),
"hollerith", I18N_NOOP("Hollerith constants"),
0, 0
};
-FtnchekConfigWidget::FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name)
- : FtnchekConfigWidgetBase(parent, name), dom(projectDom)
+FtnchekConfigWidget::FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *tqparent, const char *name)
+ : FtnchekConfigWidgetBase(tqparent, name), dom(projectDom)
{
arguments_group = new TQButtonGroup;
arguments_group->insert(argumentsall_button);
diff --git a/languages/fortran/ftnchekconfigwidget.h b/languages/fortran/ftnchekconfigwidget.h
index 703b2462..78cdd93e 100644
--- a/languages/fortran/ftnchekconfigwidget.h
+++ b/languages/fortran/ftnchekconfigwidget.h
@@ -20,9 +20,10 @@ class TQButtonGroup;
class FtnchekConfigWidget : public FtnchekConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name);
+ FtnchekConfigWidget(TQDomDocument &projectDom, TQWidget *tqparent, const char *name);
~FtnchekConfigWidget();
public slots:
diff --git a/languages/fortran/ftnchekconfigwidgetbase.ui b/languages/fortran/ftnchekconfigwidgetbase.ui
index b6bb2184..d7180514 100644
--- a/languages/fortran/ftnchekconfigwidgetbase.ui
+++ b/languages/fortran/ftnchekconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>FtnchekConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ftcheck_config_widget</cstring>
</property>
@@ -25,11 +25,11 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>TabWidget4</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -40,7 +40,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="2">
+ <widget class="TQCheckBox" row="0" column="2">
<property name="name">
<cstring>extern_box</cstring>
</property>
@@ -48,7 +48,7 @@
<string>&amp;External subprograms without definition</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="2">
+ <widget class="TQCheckBox" row="1" column="2">
<property name="name">
<cstring>division_box</cstring>
</property>
@@ -56,7 +56,7 @@
<string>&amp;Divisions</string>
</property>
</widget>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>declare_box</cstring>
</property>
@@ -64,7 +64,7 @@
<string>&amp;Identifiers without explicit type</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>pure_box</cstring>
</property>
@@ -82,14 +82,14 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -100,7 +100,7 @@
<cstring>argumentsall_button</cstring>
</property>
</widget>
- <widget class="QRadioButton" row="4" column="0">
+ <widget class="TQRadioButton" row="4" column="0">
<property name="name">
<cstring>argumentsall_button</cstring>
</property>
@@ -111,7 +111,7 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QRadioButton" row="5" column="0">
+ <widget class="TQRadioButton" row="5" column="0">
<property name="name">
<cstring>argumentsonly_button</cstring>
</property>
@@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -149,14 +149,14 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QRadioButton" row="4" column="2">
+ <widget class="TQRadioButton" row="4" column="2">
<property name="name">
<cstring>commonall_button</cstring>
</property>
@@ -164,7 +164,7 @@
<string>All</string>
</property>
</widget>
- <widget class="QRadioButton" row="5" column="2">
+ <widget class="TQRadioButton" row="5" column="2">
<property name="name">
<cstring>commononly_button</cstring>
</property>
@@ -175,7 +175,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QListView" row="6" column="0">
+ <widget class="TQListView" row="6" column="0">
<column>
<property name="text">
<string></string>
@@ -205,7 +205,7 @@
<enum>NoColumn</enum>
</property>
</widget>
- <widget class="QListView" row="6" column="2">
+ <widget class="TQListView" row="6" column="2">
<column>
<property name="text">
<string></string>
@@ -235,7 +235,7 @@
<enum>NoColumn</enum>
</property>
</widget>
- <widget class="QLabel" row="3" column="2">
+ <widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -248,7 +248,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -259,7 +259,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>truncationonly_button</cstring>
</property>
@@ -270,7 +270,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
@@ -281,7 +281,7 @@
<cstring>truncationall_button</cstring>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>truncationall_button</cstring>
</property>
@@ -289,7 +289,7 @@
<string>All</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -300,7 +300,7 @@
<cstring>usageall_button</cstring>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="2">
+ <widget class="TQRadioButton" row="1" column="2">
<property name="name">
<cstring>usageall_button</cstring>
</property>
@@ -308,7 +308,7 @@
<string>All</string>
</property>
</widget>
- <widget class="QListView" row="3" column="0">
+ <widget class="TQListView" row="3" column="0">
<column>
<property name="text">
<string></string>
@@ -338,7 +338,7 @@
<enum>NoColumn</enum>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="2">
+ <widget class="TQRadioButton" row="2" column="2">
<property name="name">
<cstring>usageonly_button</cstring>
</property>
@@ -359,14 +359,14 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QListView" row="3" column="2">
+ <widget class="TQListView" row="3" column="2">
<column>
<property name="text">
<string></string>
@@ -398,7 +398,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -409,7 +409,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>f77all_button</cstring>
</property>
@@ -417,7 +417,7 @@
<string>All</string>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>f77only_button</cstring>
</property>
@@ -428,7 +428,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QListView" row="3" column="0">
+ <widget class="TQListView" row="3" column="0">
<column>
<property name="text">
<string></string>
@@ -458,7 +458,7 @@
<enum>NoColumn</enum>
</property>
</widget>
- <widget class="QListView" row="3" column="2">
+ <widget class="TQListView" row="3" column="2">
<column>
<property name="text">
<string></string>
@@ -498,14 +498,14 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel4_2</cstring>
</property>
@@ -516,7 +516,7 @@
<cstring>f77all_button</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>TextLabel3_2</cstring>
</property>
@@ -527,7 +527,7 @@
<cstring>portabilityall_button</cstring>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="2">
+ <widget class="TQRadioButton" row="1" column="2">
<property name="name">
<cstring>portabilityall_button</cstring>
</property>
@@ -535,7 +535,7 @@
<string>All</string>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="2">
+ <widget class="TQRadioButton" row="2" column="2">
<property name="name">
<cstring>portabilityonly_button</cstring>
</property>
@@ -579,6 +579,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/java/JavaLexer.cpp b/languages/java/JavaLexer.cpp
index 623e816f..f205ddd3 100644
--- a/languages/java/JavaLexer.cpp
+++ b/languages/java/JavaLexer.cpp
@@ -275,7 +275,7 @@ ANTLR_USE_NAMESPACE(antlr)RefToken JavaLexer::nextToken()
theRetToken=_returnToken;
}
else if ((LA(1) == 0x3d /* '=' */ ) && (LA(2) == 0x3d /* '=' */ )) {
- mEQUAL(true);
+ mETQUAL(true);
theRetToken=_returnToken;
}
else if ((LA(1) == 0x21 /* '!' */ ) && (LA(2) == 0x3d /* '=' */ )) {
@@ -571,9 +571,9 @@ void JavaLexer::mASSIGN(bool _createToken) {
_saveIndex=0;
}
-void JavaLexer::mEQUAL(bool _createToken) {
+void JavaLexer::mETQUAL(bool _createToken) {
int _ttype; ANTLR_USE_NAMESPACE(antlr)RefToken _token; ANTLR_USE_NAMESPACE(std)string::size_type _begin = text.length();
- _ttype = EQUAL;
+ _ttype = ETQUAL;
ANTLR_USE_NAMESPACE(std)string::size_type _saveIndex;
match("==");
diff --git a/languages/java/JavaLexer.hpp b/languages/java/JavaLexer.hpp
index 9d185686..85d661be 100644
--- a/languages/java/JavaLexer.hpp
+++ b/languages/java/JavaLexer.hpp
@@ -68,7 +68,7 @@ public:
public: void mCOLON(bool _createToken);
public: void mCOMMA(bool _createToken);
public: void mASSIGN(bool _createToken);
- public: void mEQUAL(bool _createToken);
+ public: void mETQUAL(bool _createToken);
public: void mLNOT(bool _createToken);
public: void mBNOT(bool _createToken);
public: void mNOT_EQUAL(bool _createToken);
diff --git a/languages/java/JavaRecognizer.cpp b/languages/java/JavaRecognizer.cpp
index 1021c6a0..eb17df00 100644
--- a/languages/java/JavaRecognizer.cpp
+++ b/languages/java/JavaRecognizer.cpp
@@ -4181,7 +4181,7 @@ void JavaRecognizer::equalityExpression() {
}
{ // ( ... )*
for (;;) {
- if ((LA(1) == NOT_EQUAL || LA(1) == EQUAL)) {
+ if ((LA(1) == NOT_EQUAL || LA(1) == ETQUAL)) {
{
switch ( LA(1)) {
case NOT_EQUAL:
@@ -4194,14 +4194,14 @@ void JavaRecognizer::equalityExpression() {
match(NOT_EQUAL);
break;
}
- case EQUAL:
+ case ETQUAL:
{
RefJavaAST tmp139_AST = RefJavaAST(ANTLR_USE_NAMESPACE(antlr)nullAST);
if ( inputState->guessing == 0 ) {
tmp139_AST = astFactory->create(LT(1));
astFactory->makeASTRoot(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(tmp139_AST));
}
- match(EQUAL);
+ match(ETQUAL);
break;
}
default:
@@ -4272,7 +4272,7 @@ void JavaRecognizer::relationalExpression() {
case BXOR:
case BAND:
case NOT_EQUAL:
- case EQUAL:
+ case ETQUAL:
case LT_:
case GT:
case LE:
@@ -4969,7 +4969,7 @@ void JavaRecognizer::postfixExpression() {
case BXOR:
case BAND:
case NOT_EQUAL:
- case EQUAL:
+ case ETQUAL:
case LT_:
case GT:
case LE:
@@ -5107,7 +5107,7 @@ void JavaRecognizer::postfixExpression() {
case BXOR:
case BAND:
case NOT_EQUAL:
- case EQUAL:
+ case ETQUAL:
case LT_:
case GT:
case LE:
@@ -5235,7 +5235,7 @@ void JavaRecognizer::postfixExpression() {
case BXOR:
case BAND:
case NOT_EQUAL:
- case EQUAL:
+ case ETQUAL:
case LT_:
case GT:
case LE:
@@ -5581,7 +5581,7 @@ void JavaRecognizer::newExpression() {
case BXOR:
case BAND:
case NOT_EQUAL:
- case EQUAL:
+ case ETQUAL:
case LT_:
case GT:
case LE:
@@ -5651,7 +5651,7 @@ void JavaRecognizer::newExpression() {
case BXOR:
case BAND:
case NOT_EQUAL:
- case EQUAL:
+ case ETQUAL:
case LT_:
case GT:
case LE:
@@ -6113,7 +6113,7 @@ const char* JavaRecognizer::tokenNames[] = {
"BXOR",
"BAND",
"NOT_EQUAL",
- "EQUAL",
+ "ETQUAL",
"LT_",
"GT",
"LE",
@@ -6173,7 +6173,7 @@ const unsigned long JavaRecognizer::_tokenSet_4_data_[] = { 0UL, 67215360UL, 687
// SEMI LBRACK RBRACK IDENT LCURLY RCURLY COMMA "implements" LPAREN RPAREN
// ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN
// SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN BXOR_ASSIGN BOR_ASSIGN QUESTION
-// LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_4(_tokenSet_4_data_,8);
const unsigned long JavaRecognizer::_tokenSet_5_data_[] = { 0UL, 8192UL, 0UL, 0UL, 0UL, 0UL };
// SEMI
@@ -6204,13 +6204,13 @@ const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_9(_tokenSet_9_d
const unsigned long JavaRecognizer::_tokenSet_10_data_[] = { 0UL, 67182592UL, 674816UL, 4194296UL, 0UL, 0UL, 0UL, 0UL };
// SEMI RBRACK IDENT RCURLY COMMA RPAREN ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_10(_tokenSet_10_data_,8);
const unsigned long JavaRecognizer::_tokenSet_11_data_[] = { 0UL, 201433088UL, 683008UL, 4194296UL, 0UL, 0UL, 0UL, 0UL };
// SEMI LBRACK RBRACK IDENT DOT RCURLY COMMA LPAREN RPAREN ASSIGN COLON
// PLUS_ASSIGN MINUS_ASSIGN STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN
// BSR_ASSIGN SL_ASSIGN BAND_ASSIGN BXOR_ASSIGN BOR_ASSIGN QUESTION LOR
-// LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// LAND BOR BXOR BAND NOT_EQUAL ETQUAL
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_11(_tokenSet_11_data_,8);
const unsigned long JavaRecognizer::_tokenSet_12_data_[] = { 0UL, 32768UL, 8192UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// LBRACK LPAREN
@@ -6235,7 +6235,7 @@ const unsigned long JavaRecognizer::_tokenSet_16_data_[] = { 2UL, 4294943616UL,
// "super" ASSIGN COLON "if" "else" "for" "while" "do" "break" "continue"
// "return" "switch" "throw" "case" "default" "try" PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS DIV MOD INC DEC BNOT
// LNOT "true" "false" "null" "new" NUM_INT CHAR_LITERAL STRING_LITERAL
// NUM_FLOAT NUM_LONG NUM_DOUBLE
@@ -6275,7 +6275,7 @@ const unsigned long JavaRecognizer::_tokenSet_22_data_[] = { 0UL, 4294878080UL,
// COLON "if" "for" "while" "do" "break" "continue" "return" "switch" "throw"
// "try" PLUS_ASSIGN MINUS_ASSIGN STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN
// BSR_ASSIGN SL_ASSIGN BAND_ASSIGN BXOR_ASSIGN BOR_ASSIGN QUESTION LOR
-// LAND BOR BXOR BAND NOT_EQUAL EQUAL LT_ GT LE GE "instanceof" SL SR BSR
+// LAND BOR BXOR BAND NOT_EQUAL ETQUAL LT_ GT LE GE "instanceof" SL SR BSR
// PLUS MINUS DIV MOD INC DEC BNOT LNOT "true" "false" "null" "new" NUM_INT
// CHAR_LITERAL STRING_LITERAL NUM_FLOAT NUM_LONG NUM_DOUBLE
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_22(_tokenSet_22_data_,12);
@@ -6323,7 +6323,7 @@ const unsigned long JavaRecognizer::_tokenSet_29_data_[] = { 0UL, 4294878080UL,
// COLON "if" "else" "for" "while" "do" "break" "continue" "return" "switch"
// "throw" "case" "default" "try" "finally" "catch" PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS DIV MOD INC DEC BNOT
// LNOT "true" "false" "null" "new" NUM_INT CHAR_LITERAL STRING_LITERAL
// NUM_FLOAT NUM_LONG NUM_DOUBLE
@@ -6348,7 +6348,7 @@ const unsigned long JavaRecognizer::_tokenSet_33_data_[] = { 0UL, 536780800UL, 2
// SEMI LBRACK "void" "boolean" "byte" "char" "short" "int" "float" "long"
// "double" IDENT DOT STAR LPAREN "this" "super" ASSIGN PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS DIV MOD INC DEC BNOT
// LNOT "true" "false" "null" "new" NUM_INT CHAR_LITERAL STRING_LITERAL
// NUM_FLOAT NUM_LONG NUM_DOUBLE
@@ -6377,7 +6377,7 @@ const unsigned long JavaRecognizer::_tokenSet_39_data_[] = { 0UL, 402759680UL, 6
// SEMI LBRACK RBRACK DOT STAR RCURLY COMMA RPAREN ASSIGN COLON PLUS_ASSIGN
// MINUS_ASSIGN STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN
// SL_ASSIGN BAND_ASSIGN BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR
-// BAND NOT_EQUAL EQUAL LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS
+// BAND NOT_EQUAL ETQUAL LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS
// DIV MOD INC DEC
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_39(_tokenSet_39_data_,12);
const unsigned long JavaRecognizer::_tokenSet_40_data_[] = { 0UL, 73728UL, 543744UL, 0UL, 0UL, 0UL, 0UL, 0UL };
@@ -6395,7 +6395,7 @@ const unsigned long JavaRecognizer::_tokenSet_43_data_[] = { 0UL, 536780800UL, 2
// "double" IDENT DOT STAR COMMA LPAREN "this" "super" ASSIGN PLUS_ASSIGN
// MINUS_ASSIGN STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN
// SL_ASSIGN BAND_ASSIGN BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR
-// BAND NOT_EQUAL EQUAL LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS
+// BAND NOT_EQUAL ETQUAL LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS
// DIV MOD INC DEC BNOT LNOT "true" "false" "null" "new" NUM_INT CHAR_LITERAL
// STRING_LITERAL NUM_FLOAT NUM_LONG NUM_DOUBLE
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_43(_tokenSet_43_data_,12);
@@ -6467,18 +6467,18 @@ const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_55(_tokenSet_55
const unsigned long JavaRecognizer::_tokenSet_56_data_[] = { 0UL, 73728UL, 674816UL, 4194296UL, 0UL, 0UL, 0UL, 0UL };
// SEMI RBRACK RCURLY COMMA RPAREN ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_56(_tokenSet_56_data_,8);
const unsigned long JavaRecognizer::_tokenSet_57_data_[] = { 0UL, 73728UL, 674816UL, 134217720UL, 0UL, 0UL, 0UL, 0UL };
// SEMI RBRACK RCURLY COMMA RPAREN ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof"
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_57(_tokenSet_57_data_,8);
const unsigned long JavaRecognizer::_tokenSet_58_data_[] = { 0UL, 73728UL, 674816UL, 1073741816UL, 0UL, 0UL, 0UL, 0UL };
// SEMI RBRACK RCURLY COMMA RPAREN ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof" SL SR BSR
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_58(_tokenSet_58_data_,8);
const unsigned long JavaRecognizer::_tokenSet_59_data_[] = { 0UL, 268435456UL, 0UL, 0UL, 3UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
@@ -6487,13 +6487,13 @@ const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_59(_tokenSet_59
const unsigned long JavaRecognizer::_tokenSet_60_data_[] = { 0UL, 73728UL, 674816UL, 4294967288UL, 0UL, 0UL, 0UL, 0UL };
// SEMI RBRACK RCURLY COMMA RPAREN ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_60(_tokenSet_60_data_,8);
const unsigned long JavaRecognizer::_tokenSet_61_data_[] = { 0UL, 268509184UL, 674816UL, 4294967288UL, 3UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// SEMI RBRACK STAR RCURLY COMMA RPAREN ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS DIV MOD
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_61(_tokenSet_61_data_,12);
const unsigned long JavaRecognizer::_tokenSet_62_data_[] = { 0UL, 134086656UL, 106496UL, 0UL, 65472UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
@@ -6506,7 +6506,7 @@ const unsigned long JavaRecognizer::_tokenSet_63_data_[] = { 0UL, 536846336UL, 7
// "long" "double" IDENT DOT STAR RCURLY COMMA LPAREN RPAREN "this" "super"
// ASSIGN COLON PLUS_ASSIGN MINUS_ASSIGN STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN
// SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN BXOR_ASSIGN BOR_ASSIGN QUESTION
-// LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL LT_ GT LE GE "instanceof" SL
+// LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL LT_ GT LE GE "instanceof" SL
// SR BSR PLUS MINUS DIV MOD INC DEC BNOT LNOT "true" "false" "null" "new"
// NUM_INT CHAR_LITERAL STRING_LITERAL NUM_FLOAT NUM_LONG NUM_DOUBLE
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_63(_tokenSet_63_data_,12);
@@ -6518,7 +6518,7 @@ const unsigned long JavaRecognizer::_tokenSet_64_data_[] = { 0UL, 4294943616UL,
// "super" ASSIGN COLON "if" "else" "for" "while" "do" "break" "continue"
// "return" "switch" "throw" "case" "default" "try" PLUS_ASSIGN MINUS_ASSIGN
// STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN BSR_ASSIGN SL_ASSIGN BAND_ASSIGN
-// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL EQUAL
+// BXOR_ASSIGN BOR_ASSIGN QUESTION LOR LAND BOR BXOR BAND NOT_EQUAL ETQUAL
// LT_ GT LE GE "instanceof" SL SR BSR PLUS MINUS DIV MOD INC DEC BNOT
// LNOT "true" "false" "null" "new" NUM_INT CHAR_LITERAL STRING_LITERAL
// NUM_FLOAT NUM_LONG NUM_DOUBLE
@@ -6533,7 +6533,7 @@ const unsigned long JavaRecognizer::_tokenSet_66_data_[] = { 0UL, 402759680UL, 6
// SEMI LBRACK RBRACK DOT STAR LCURLY RCURLY COMMA RPAREN ASSIGN COLON
// PLUS_ASSIGN MINUS_ASSIGN STAR_ASSIGN DIV_ASSIGN MOD_ASSIGN SR_ASSIGN
// BSR_ASSIGN SL_ASSIGN BAND_ASSIGN BXOR_ASSIGN BOR_ASSIGN QUESTION LOR
-// LAND BOR BXOR BAND NOT_EQUAL EQUAL LT_ GT LE GE "instanceof" SL SR BSR
+// LAND BOR BXOR BAND NOT_EQUAL ETQUAL LT_ GT LE GE "instanceof" SL SR BSR
// PLUS MINUS DIV MOD INC DEC
const ANTLR_USE_NAMESPACE(antlr)BitSet JavaRecognizer::_tokenSet_66(_tokenSet_66_data_,12);
diff --git a/languages/java/JavaRecognizer.hpp b/languages/java/JavaRecognizer.hpp
index fab59972..4dafc60e 100644
--- a/languages/java/JavaRecognizer.hpp
+++ b/languages/java/JavaRecognizer.hpp
@@ -103,7 +103,7 @@
* o supports UNICODE?
* Using Unicode charVocabulay makes code file big, but only
* in the bitsets at the end. I need to make ANTLR generate
- * unicode bitsets more efficiently.
+ * tqunicode bitsets more efficiently.
* Version 1.19 (April 25, 2002)
* Terence added in nice fixes by John Pybus concerning floating
* constants and problems with super() calls. John did a nice
diff --git a/languages/java/JavaStoreWalker.cpp b/languages/java/JavaStoreWalker.cpp
index 1bdb9522..ac5cfc5e 100644
--- a/languages/java/JavaStoreWalker.cpp
+++ b/languages/java/JavaStoreWalker.cpp
@@ -1046,9 +1046,9 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
#line 264 "java.store.g"
meth->setResultType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -1096,14 +1096,14 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
#line 300 "java.store.g"
attr->setType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
attr->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
attr->setAccess( CodeModelItem::Protected );
else
attr->setAccess( CodeModelItem::Private );
- attr->setStatic( m.contains("static") );
+ attr->setStatic( m.tqcontains("static") );
#line 1109 "JavaStoreWalker.cpp"
}
@@ -1144,9 +1144,9 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
_t = _t->getNextSibling();
#line 247 "java.store.g"
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -1212,9 +1212,9 @@ void JavaStoreWalker::modifier(RefJavaAST _t) {
#line 282 "java.store.g"
meth->setResultType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -2447,11 +2447,11 @@ void JavaStoreWalker::expr(RefJavaAST _t) {
_t = _t->getNextSibling();
break;
}
- case EQUAL:
+ case ETQUAL:
{
RefJavaAST __t145 = _t;
RefJavaAST tmp104_AST_in = _t;
- match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),EQUAL);
+ match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),ETQUAL);
_t = _t->getFirstChild();
expr(_t);
_t = _retTree;
@@ -2830,7 +2830,7 @@ void JavaStoreWalker::primaryExpression(RefJavaAST _t) {
case BXOR:
case BAND:
case NOT_EQUAL:
- case EQUAL:
+ case ETQUAL:
case LT_:
case GT:
case LE:
@@ -3389,7 +3389,7 @@ const char* JavaStoreWalker::tokenNames[] = {
"BXOR",
"BAND",
"NOT_EQUAL",
- "EQUAL",
+ "ETQUAL",
"LT_",
"GT",
"LE",
diff --git a/languages/java/JavaStoreWalkerTokenTypes.hpp b/languages/java/JavaStoreWalkerTokenTypes.hpp
index 44322944..6f20deaf 100644
--- a/languages/java/JavaStoreWalkerTokenTypes.hpp
+++ b/languages/java/JavaStoreWalkerTokenTypes.hpp
@@ -125,7 +125,7 @@ struct CUSTOM_API JavaStoreWalkerTokenTypes {
BXOR = 114,
BAND = 115,
NOT_EQUAL = 116,
- EQUAL = 117,
+ ETQUAL = 117,
LT_ = 118,
GT = 119,
LE = 120,
diff --git a/languages/java/JavaTokenTypes.hpp b/languages/java/JavaTokenTypes.hpp
index e36fa54c..64a6486b 100644
--- a/languages/java/JavaTokenTypes.hpp
+++ b/languages/java/JavaTokenTypes.hpp
@@ -125,7 +125,7 @@ struct CUSTOM_API JavaTokenTypes {
BXOR = 114,
BAND = 115,
NOT_EQUAL = 116,
- EQUAL = 117,
+ ETQUAL = 117,
LT_ = 118,
GT = 119,
LE = 120,
diff --git a/languages/java/KDevJavaSupportIface.h b/languages/java/KDevJavaSupportIface.h
index ae5ee39f..da8ed9b3 100644
--- a/languages/java/KDevJavaSupportIface.h
+++ b/languages/java/KDevJavaSupportIface.h
@@ -10,6 +10,7 @@ class JavaSupportPart;
class KDevJavaSupportIface : public TQObject, public DCOPObject
{
Q_OBJECT
+// TQ_OBJECT
K_DCOP
public:
KDevJavaSupportIface( JavaSupportPart* javaSupport );
diff --git a/languages/java/README.dox b/languages/java/README.dox
index 49af1e43..618ddd50 100644
--- a/languages/java/README.dox
+++ b/languages/java/README.dox
@@ -13,7 +13,7 @@ and images.
\maintainer <a href="mailto:roberto AT kdevelop.org">Roberto Raggi</a> Copyright (C) 2002-2003
\feature Java language support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug bugs in <a href="http://bugs.kde.org/buglist.cgi?product=kdevelop&component=javasupport&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=Bug+Number">javasupport component at Bugzilla database</a>
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
diff --git a/languages/java/app_templates/kappjava/appview.java b/languages/java/app_templates/kappjava/appview.java
index 1ead5458..0a25ea22 100644
--- a/languages/java/app_templates/kappjava/appview.java
+++ b/languages/java/app_templates/kappjava/appview.java
@@ -22,10 +22,10 @@ public class %{APPNAME}View extends QWidget
QHBoxLayout top_layout;
-public %{APPNAME}View(QWidget parent)
+public %{APPNAME}View(QWidget tqparent)
{
- super(parent, null);
- // setup our layout manager to automatically add our widgets
+ super(tqparent, null);
+ // setup our tqlayout manager to automatically add our widgets
top_layout = new QHBoxLayout(this);
top_layout.setAutoAdd(true);
diff --git a/languages/java/app_templates/kappjava/pref.java b/languages/java/app_templates/kappjava/pref.java
index a50fdb31..4ba240f9 100644
--- a/languages/java/app_templates/kappjava/pref.java
+++ b/languages/java/app_templates/kappjava/pref.java
@@ -28,22 +28,22 @@ public %{APPNAME}Preferences()
}
public class %{APPNAME}PrefPageOne extends QFrame {
-public %{APPNAME}PrefPageOne(QWidget parent)
+public %{APPNAME}PrefPageOne(QWidget tqparent)
{
- super(parent);
- QHBoxLayout layout = new QHBoxLayout(this);
- layout.setAutoAdd(true);
+ super(tqparent);
+ QHBoxLayout tqlayout = new QHBoxLayout(this);
+ tqlayout.setAutoAdd(true);
new QLabel("Add something here", this);
}
}
public class %{APPNAME}PrefPageTwo extends QFrame {
-public %{APPNAME}PrefPageTwo(QWidget parent)
+public %{APPNAME}PrefPageTwo(QWidget tqparent)
{
- super(parent);
- QHBoxLayout layout = new QHBoxLayout(this);
- layout.setAutoAdd(true);
+ super(tqparent);
+ QHBoxLayout tqlayout = new QHBoxLayout(this);
+ tqlayout.setAutoAdd(true);
new QLabel("Add something here", this);
}
diff --git a/languages/java/app_templates/superwaba/src-Makefile b/languages/java/app_templates/superwaba/src-Makefile
index 84b55ece..f2a2a1ab 100644
--- a/languages/java/app_templates/superwaba/src-Makefile
+++ b/languages/java/app_templates/superwaba/src-Makefile
@@ -114,7 +114,7 @@ WABAEXTRADIR = $(WABADIR)/superwaba
################################################################################
# the classpath will have to tell java where to find the waba stuff.
#
-# the CLASSPATH here is set to let java find
+# the CLASSPATH here is set to let java tqfind
# - the classes it needs to produce the executable class files
# - the waba.applet class, Warp.class, and Exegen.class
#
@@ -198,7 +198,7 @@ $(PDBFILE): $(MAINCLASS) $(EXTRACLASSES)
# $(PDBFILE): $(MAINCLASS) $(EXTRACLASSES)
# $(WARP) $(WARPFLAGS) $(PDBBASENAME) $(MAINCLASS) $(EXTRACLASSES)
-# Below, we just tell make how to create foo.class if it can find
+# Below, we just tell make how to create foo.class if it can tqfind
# foo.java
%.class: %.java
diff --git a/languages/java/backgroundparser.cpp b/languages/java/backgroundparser.cpp
index 0820b4d1..e1f058c7 100644
--- a/languages/java/backgroundparser.cpp
+++ b/languages/java/backgroundparser.cpp
@@ -16,11 +16,7 @@
#include "kdevdeepcopy.h"
#include "kdevdriver.h"
-#if QT_VERSION < 0x030100
-#include <kdevmutex.h>
-#else
#include <tqmutex.h>
-#endif
#include <kparts/part.h>
#include <ktexteditor/editinterface.h>
@@ -92,7 +88,7 @@ public:
return contents;
}
- return TQString::null;
+ return TQString();
}
virtual bool isModified( const TQString& fileName )
@@ -126,7 +122,7 @@ public:
return m_fileList.count();
}
- QPair<TQString, bool> front() const
+ TQPair<TQString, bool> front() const
{
TQMutexLocker locker( &m_mutex );
return m_fileList.front();
@@ -141,7 +137,7 @@ public:
void push_back( const TQString& fileName, bool readFromDisk=false )
{
TQMutexLocker locker( &m_mutex );
- m_fileList.append( qMakePair(fileName, readFromDisk) ); /// \FIXME ROBE deepcopy?!
+ m_fileList.append( tqMakePair(fileName, readFromDisk) ); /// \FIXME ROBE deepcopy?!
}
void pop_front()
@@ -150,10 +146,10 @@ public:
m_fileList.pop_front();
}
- bool contains( const TQString& fileName ) const
+ bool tqcontains( const TQString& fileName ) const
{
TQMutexLocker locker( &m_mutex );
- TQValueList< QPair<TQString, bool> >::ConstIterator it = m_fileList.begin();
+ TQValueList< TQPair<TQString, bool> >::ConstIterator it = m_fileList.begin();
while( it != m_fileList.end() ){
if( (*it).first == fileName )
return true;
@@ -165,7 +161,7 @@ public:
void remove( const TQString& fileName )
{
TQMutexLocker locker( &m_mutex );
- TQValueList< QPair<TQString, bool> >::Iterator it = m_fileList.begin();
+ TQValueList< TQPair<TQString, bool> >::Iterator it = m_fileList.begin();
while( it != m_fileList.end() ){
if( (*it).first == fileName )
m_fileList.remove( it );
@@ -175,7 +171,7 @@ public:
private:
mutable TQMutex m_mutex;
- TQValueList< QPair<TQString, bool> > m_fileList;
+ TQValueList< TQPair<TQString, bool> > m_fileList;
};
BackgroundParser::BackgroundParser( JavaSupportPart* part, TQWaitCondition* consumed )
@@ -203,7 +199,7 @@ void BackgroundParser::addFile( const TQString& fileName, bool readFromDisk )
TQString fn = deepCopy( fileName );
bool added = false;
- if( !m_fileList->contains(fn) ){
+ if( !m_fileList->tqcontains(fn) ){
m_fileList->push_back( fn, readFromDisk );
added = true;
}
@@ -261,7 +257,7 @@ Unit* BackgroundParser::parseFile( const TQString& fileName, bool readFromDisk )
static_cast<KDevSourceProvider*>( m_driver->sourceProvider() )->setReadFromDisk( false );
- if( m_unitDict.find(fileName) != m_unitDict.end() ){
+ if( m_unitDict.tqfind(fileName) != m_unitDict.end() ){
Unit* u = m_unitDict[ fileName ];
m_unitDict.remove( fileName );
delete( u );
@@ -270,13 +266,13 @@ Unit* BackgroundParser::parseFile( const TQString& fileName, bool readFromDisk )
m_unitDict.insert( fileName, unit );
- if( m_fileList->contains(fileName) ){
- kdDebug(9013) << "========================> FILE: " << fileName << " IN QUEUE <=============" << endl;
+ if( m_fileList->tqcontains(fileName) ){
+ kdDebug(9013) << "========================> FILE: " << fileName << " IN TQUEUE <=============" << endl;
} else {
KApplication::postEvent( m_javaSupport, new FileParsedEvent(fileName, unit->problems) );
}
- m_currentFile = TQString::null;
+ m_currentFile = TQString();
if( m_fileList->isEmpty() )
m_isEmpty.wakeAll();
@@ -286,7 +282,7 @@ Unit* BackgroundParser::parseFile( const TQString& fileName, bool readFromDisk )
Unit* BackgroundParser::findUnit( const TQString& fileName )
{
- TQMap<TQString, Unit*>::Iterator it = m_unitDict.find( fileName );
+ TQMap<TQString, Unit*>::Iterator it = m_unitDict.tqfind( fileName );
return it != m_unitDict.end() ? *it : 0;
}
@@ -346,7 +342,7 @@ void BackgroundParser::run()
break;
}
- QPair<TQString, bool> entry = m_fileList->front();
+ TQPair<TQString, bool> entry = m_fileList->front();
TQString fileName = entry.first;
bool readFromDisk = entry.second;
m_currentFile = fileName;
diff --git a/languages/java/backgroundparser.h b/languages/java/backgroundparser.h
index 4cc52f33..fee2bc78 100644
--- a/languages/java/backgroundparser.h
+++ b/languages/java/backgroundparser.h
@@ -40,7 +40,7 @@ protected:
void operator = ( const Unit& source );
};
-class BackgroundParser: public QThread
+class BackgroundParser: public TQThread
{
public:
BackgroundParser( JavaSupportPart*, TQWaitCondition* consumed );
diff --git a/languages/java/configproblemreporter.ui b/languages/java/configproblemreporter.ui
index 580f60c4..1e6a7f1a 100644
--- a/languages/java/configproblemreporter.ui
+++ b/languages/java/configproblemreporter.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>ConfigureProblemReporter</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ConfigureProblemReporter</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -30,15 +30,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>bgParserCheckbox</cstring>
</property>
@@ -46,7 +46,7 @@
<string>&amp;Enable background parsing</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>delayLabel</cstring>
</property>
@@ -61,13 +61,13 @@
<property name="text">
<string>msec</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignLeft</set>
</property>
</widget>
</hbox>
</widget>
- <widget class="QSlider">
+ <widget class="TQSlider">
<property name="name">
<cstring>delaySlider</cstring>
</property>
@@ -92,7 +92,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -132,14 +132,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>61</height>
</size>
</property>
</spacer>
- <widget class="QPushButton" row="3" column="1">
+ <widget class="TQPushButton" row="3" column="1">
<property name="name">
<cstring>pushButton6</cstring>
</property>
@@ -150,7 +150,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="2" column="1">
+ <widget class="TQPushButton" row="2" column="1">
<property name="name">
<cstring>pushButton5</cstring>
</property>
@@ -161,7 +161,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="0" column="1">
+ <widget class="TQPushButton" row="0" column="1">
<property name="name">
<cstring>pushButton3</cstring>
</property>
@@ -172,7 +172,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="1" column="1">
+ <widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>pushButton4</cstring>
</property>
@@ -238,7 +238,7 @@
<include location="global" impldecl="in implementation">kdialog.h</include>
<include location="local" impldecl="in implementation">configproblemreporter.ui.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>init()</slot>
<slot>destroy()</slot>
<slot>accept()</slot>
@@ -248,9 +248,9 @@
<slot>removeSpecialHeader()</slot>
<slot>moveUpSpecialHeader()</slot>
<slot>moveDownSpecialHeader()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>klistview.h</includehint>
</includehints>
diff --git a/languages/java/configproblemreporter.ui.h b/languages/java/configproblemreporter.ui.h
index f68a0c80..1da526ca 100644
--- a/languages/java/configproblemreporter.ui.h
+++ b/languages/java/configproblemreporter.ui.h
@@ -1,7 +1,7 @@
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
-** If you wish to add, delete or rename slots use Qt Designer which will
+** If you wish to add, delete or rename slots use TQt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/
@@ -46,7 +46,7 @@ void ConfigureProblemReporter::bgParserCheckbox_toggled( bool b )
void ConfigureProblemReporter::setDelayLabel( int delay )
{
- delayLabel->setText( i18n( "delay: %1 msec" ).arg( delay ) );
+ delayLabel->setText( i18n( "delay: %1 msec" ).tqarg( delay ) );
}
diff --git a/languages/java/driver.cpp b/languages/java/driver.cpp
index f856fc74..9a4bccdf 100644
--- a/languages/java/driver.cpp
+++ b/languages/java/driver.cpp
@@ -100,7 +100,7 @@ void Driver::remove( const TQString & fileName )
{
m_problems.remove( fileName );
- TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.tqfind( fileName );
if( it != m_parsedUnits.end() ){
RefJavaAST unit = *it;
m_parsedUnits.remove( it );
@@ -110,7 +110,7 @@ void Driver::remove( const TQString & fileName )
RefJavaAST Driver::takeTranslationUnit( const TQString& fileName )
{
- TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.tqfind( fileName );
RefJavaAST unit( *it );
//m_parsedUnits.remove( it );
m_parsedUnits[ fileName] = 0;
@@ -119,7 +119,7 @@ RefJavaAST Driver::takeTranslationUnit( const TQString& fileName )
RefJavaAST Driver::translationUnit( const TQString& fileName ) const
{
- TQMap<TQString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::ConstIterator it = m_parsedUnits.tqfind( fileName );
return it != m_parsedUnits.end() ? *it : RefJavaAST();
}
@@ -130,7 +130,7 @@ void Driver::addProblem( const TQString & fileName, const Problem & problem )
TQValueList < Problem >& Driver::findOrInsertProblemList( const TQString & fileName )
{
- TQMap<TQString, TQValueList<Problem> >::Iterator it = m_problems.find( fileName );
+ TQMap<TQString, TQValueList<Problem> >::Iterator it = m_problems.tqfind( fileName );
if( it != m_problems.end() )
return it.data();
@@ -141,7 +141,7 @@ TQValueList < Problem >& Driver::findOrInsertProblemList( const TQString & fileN
TQValueList < Problem > Driver::problems( const TQString & fileName ) const
{
- TQMap<TQString, TQValueList<Problem> >::ConstIterator it = m_problems.find( fileName );
+ TQMap<TQString, TQValueList<Problem> >::ConstIterator it = m_problems.tqfind( fileName );
if( it != m_problems.end() )
return it.data();
return TQValueList<Problem>();
@@ -152,7 +152,7 @@ void Driver::parseFile( const TQString& fileName, bool onlyPreProcess, bool forc
TQFileInfo fileInfo( fileName );
TQString absFilePath = fileInfo.absFilePath();
- TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.tqfind( absFilePath );
if( force && it != m_parsedUnits.end() ){
takeTranslationUnit( absFilePath );
@@ -199,7 +199,7 @@ void Driver::parseFile( const TQString& fileName, bool onlyPreProcess, bool forc
}
- m_currentFileName = TQString::null;
+ m_currentFileName = TQString();
lexer = 0;
fileParsed( fileName );
diff --git a/languages/java/java.g b/languages/java/java.g
index 1f825ec5..59f7e0cd 100644
--- a/languages/java/java.g
+++ b/languages/java/java.g
@@ -97,7 +97,7 @@ options {
* o supports UNICODE?
* Using Unicode charVocabulay makes code file big, but only
* in the bitsets at the end. I need to make ANTLR generate
- * unicode bitsets more efficiently.
+ * tqunicode bitsets more efficiently.
* Version 1.19 (April 25, 2002)
* Terence added in nice fixes by John Pybus concerning floating
* constants and problems with super() calls. John did a nice
@@ -698,7 +698,7 @@ handler
// ( 2) * / %
// ( 1) ++ -- +(unary) -(unary) ~ ! (type)
// [] () (method call) . (dot -- identifier qualification)
-// new () (explicit parenthesis)
+// new () (explicit tqparenthesis)
//
// the last two are not usually on a precedence chart; I put them in
// to point out that new has a higher precedence than '.', so you
@@ -1050,7 +1050,7 @@ options {
k=4; // four characters of lookahead
// charVocabulary='\u0003'..'\uFFFF';
charVocabulary='\u0003'..'\u00FF';
- // without inlining some bitset tests, couldn't do unicode;
+ // without inlining some bitset tests, couldn't do tqunicode;
// I need to make ANTLR generate smaller bitsets; see
// bottom of JavaLexer.java
codeGenBitsetTestThreshold=20;
diff --git a/languages/java/java.store.g b/languages/java/java.store.g
index b69b7323..d7e28c22 100644
--- a/languages/java/java.store.g
+++ b/languages/java/java.store.g
@@ -245,9 +245,9 @@ ctorDef returns [ FunctionDom meth ] {
m=modifiers methodHead[meth] slist
)
{
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -263,9 +263,9 @@ methodDecl returns [ FunctionDom meth ] {
: #(METHOD_DEF m=modifiers tp=typeSpec methodHead[meth])
{
meth->setResultType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -281,9 +281,9 @@ methodDef returns [ FunctionDom meth ] {
: #(METHOD_DEF m=modifiers tp=typeSpec methodHead[meth] (slist)?)
{
meth->setResultType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
meth->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
meth->setAccess( CodeModelItem::Protected );
else
meth->setAccess( CodeModelItem::Private );
@@ -299,14 +299,14 @@ variableDef returns [ VariableDom attr ] {
: #(VARIABLE_DEF m=modifiers tp=typeSpec variableDeclarator[attr] varInitializer)
{
attr->setType( tp );
- if( m.contains("public") )
+ if( m.tqcontains("public") )
attr->setAccess( CodeModelItem::Public );
- else if( m.contains("protected") )
+ else if( m.tqcontains("protected") )
attr->setAccess( CodeModelItem::Protected );
else
attr->setAccess( CodeModelItem::Private );
- attr->setStatic( m.contains("static") );
+ attr->setStatic( m.tqcontains("static") );
}
;
diff --git a/languages/java/javasupport_events.h b/languages/java/javasupport_events.h
index e325e635..36cda51b 100644
--- a/languages/java/javasupport_events.h
+++ b/languages/java/javasupport_events.h
@@ -18,18 +18,14 @@
#include <tqevent.h>
#include <tqvaluelist.h>
-#if QT_VERSION < 0x030100
-#include <kdevmutex.h>
-#else
#include <tqmutex.h>
-#endif
enum
{
Event_FileParsed = TQEvent::User + 1000
};
-class FileParsedEvent: public QCustomEvent
+class FileParsedEvent: public TQCustomEvent
{
public:
FileParsedEvent( const TQString& fileName, const TQValueList<Problem>& problems )
diff --git a/languages/java/javasupportpart.cpp b/languages/java/javasupportpart.cpp
index 62d4811f..e8f62fa1 100644
--- a/languages/java/javasupportpart.cpp
+++ b/languages/java/javasupportpart.cpp
@@ -118,8 +118,8 @@ public:
}
};
-JavaSupportPart::JavaSupportPart(TQObject *parent, const char *name, const TQStringList &/*args*/)
- : KDevLanguageSupport(JavaSupportFactory::info(), parent, name ? name : "KDevJavaSupport"),
+JavaSupportPart::JavaSupportPart(TQObject *tqparent, const char *name, const TQStringList &/*args*/)
+ : KDevLanguageSupport(JavaSupportFactory::info(), tqparent, name ? name : "KDevJavaSupport"),
m_activeDocument( 0 ), m_activeView( 0 ), m_activeSelection( 0 ), m_activeEditor( 0 ),
m_activeViewCursor( 0 ), m_projectClosed( true ), m_valid( false )
{
@@ -267,13 +267,13 @@ void JavaSupportPart::activePartChanged(KParts::Part *part)
m_activeSelection = dynamic_cast<KTextEditor::SelectionInterface*>( part );
m_activeViewCursor = part ? dynamic_cast<KTextEditor::ViewCursorInterface*>( m_activeView ) : 0;
- m_activeFileName = TQString::null;
+ m_activeFileName = TQString();
if (m_activeDocument) {
m_activeFileName = URLUtil::canonicalPath( m_activeDocument->url().path() );
TQFileInfo fi( m_activeFileName );
TQString ext = fi.extension();
- if (fileExtensions().contains(ext))
+ if (fileExtensions().tqcontains(ext))
enabled = true;
}
@@ -395,7 +395,7 @@ void JavaSupportPart::savedFile(const KURL &fileName)
kdDebug(9013) << "savedFile(): " << fileName.mid ( m_projectDirectory.length() + 1 ) << endl;
TQStringList projectFileList = project()->allFiles();
- if (projectFileList.contains(fileName.mid ( m_projectDirectory.length() + 1 ))) {
+ if (projectFileList.tqcontains(fileName.mid ( m_projectDirectory.length() + 1 ))) {
maybeParse( fileName );
emit addedSourceInfo( fileName );
}
@@ -481,25 +481,6 @@ void JavaSupportPart::initialParse( )
return;
}
-#if QT_VERSION < 0x030100
-// Taken from qt-3.2/tools/qdatetime.java/TQDateTime::toTime_t() and modified for normal function
-uint toTime_t(TQDateTime t)
-{
- tm brokenDown;
- brokenDown.tm_sec = t.time().second();
- brokenDown.tm_min = t.time().minute();
- brokenDown.tm_hour = t.time().hour();
- brokenDown.tm_mday = t.date().day();
- brokenDown.tm_mon = t.date().month() - 1;
- brokenDown.tm_year = t.date().year() - 1900;
- brokenDown.tm_isdst = -1;
- int secsSince1Jan1970UTC = (int) mktime( &brokenDown );
- if ( secsSince1Jan1970UTC < -1 )
- secsSince1Jan1970UTC = -1;
- return (uint) secsSince1Jan1970UTC;
-}
-#endif
-
bool
JavaSupportPart::parseProject( )
{
@@ -524,7 +505,7 @@ JavaSupportPart::parseProject( )
TQDir d( m_projectDirectory );
TQDataStream stream;
- TQMap< TQString, QPair<uint, uint> > pcs;
+ TQMap< TQString, TQPair<uint, uint> > pcs;
if( TQFileInfo( project()->projectDirectory() + "/" +
project()->projectName().lower() + ".kdevelop.pcs" ).exists() )
@@ -550,7 +531,7 @@ JavaSupportPart::parseProject( )
uint offset;
stream >> fn >> ts >> offset;
- pcs[ fn ] = qMakePair( ts, offset );
+ pcs[ fn ] = tqMakePair( ts, offset );
}
}
}
@@ -575,15 +556,11 @@ JavaSupportPart::parseProject( )
if( isValidSource(absFilePath) ){
TQDateTime t = fileInfo.lastModified();
- if( m_timestamp.contains(absFilePath) && m_timestamp[absFilePath] == t )
+ if( m_timestamp.tqcontains(absFilePath) && m_timestamp[absFilePath] == t )
continue;
-#if QT_VERSION >= 0x030100
- if( pcs.contains(absFilePath) && t.toTime_t() == pcs[absFilePath].first ){
-#else
- if( pcs.contains(absFilePath) && toTime_t(t) == pcs[absFilePath].first ){
-#endif
- stream.device()->at( pcs[absFilePath].second );
+ if( pcs.tqcontains(absFilePath) && t.toTime_t() == pcs[absFilePath].first ){
+ stream.tqdevice()->at( pcs[absFilePath].second );
FileDom file = codeModel()->create<FileModel>();
file->read( stream );
codeModel()->addFile( file );
@@ -630,7 +607,7 @@ void JavaSupportPart::maybeParse( const TQString& fileName )
return;
}
- TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.find( path );
+ TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.tqfind( path );
if( it != m_timestamp.end() && *it == t ){
return;
}
@@ -689,12 +666,12 @@ TQStringList JavaSupportPart::modifiedFileList()
TQFileInfo fileInfo( m_projectDirectory, fileName );
- if( !fileExtensions().contains(fileInfo.extension()) )
+ if( !fileExtensions().tqcontains(fileInfo.extension()) )
continue;
TQDateTime t = fileInfo.lastModified();
TQString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
- TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.find( path );
+ TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.tqfind( path );
if( fileInfo.exists() && dictIt != m_timestamp.end() && *dictIt == t )
continue;
@@ -792,7 +769,7 @@ void JavaSupportPart::setPcsVersion( int version )
TQString JavaSupportPart::formatTag( const Tag & /*inputTag*/ )
{
- return TQString::null;
+ return TQString();
}
void JavaSupportPart::removeWithReferences( const TQString & fileName )
@@ -810,7 +787,7 @@ void JavaSupportPart::removeWithReferences( const TQString & fileName )
bool JavaSupportPart::isValidSource( const TQString& fileName ) const
{
TQFileInfo fileInfo( fileName );
- return fileExtensions().contains( fileInfo.extension() ) && !TQFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");
+ return fileExtensions().tqcontains( fileInfo.extension() ) && !TQFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");
}
TQString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription )
@@ -882,26 +859,22 @@ void JavaSupportPart::saveProjectSourceInfo( )
stream << int( fileList.size() );
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ){
const FileDom dom = (*it);
-#if QT_VERSION >= 0x030100
stream << dom->name() << m_timestamp[ dom->name() ].toTime_t();
-#else
- stream << dom->name() << toTime_t(m_timestamp[ dom->name() ]);
-#endif
- offsets.insert( dom->name(), stream.device()->at() );
+ offsets.insert( dom->name(), stream.tqdevice()->at() );
stream << (uint)0; // dummy offset
}
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ){
const FileDom dom = (*it);
- int offset = stream.device()->at();
+ int offset = stream.tqdevice()->at();
dom->write( stream );
- int end = stream.device()->at();
+ int end = stream.tqdevice()->at();
- stream.device()->at( offsets[dom->name()] );
+ stream.tqdevice()->at( offsets[dom->name()] );
stream << offset;
- stream.device()->at( end );
+ stream.tqdevice()->at( end );
}
}
diff --git a/languages/java/javasupportpart.h b/languages/java/javasupportpart.h
index 51230ff8..4b624c80 100644
--- a/languages/java/javasupportpart.h
+++ b/languages/java/javasupportpart.h
@@ -49,9 +49,10 @@ namespace KTextEditor
class JavaSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- JavaSupportPart( TQObject *parent, const char *name, const TQStringList &args );
+ JavaSupportPart( TQObject *tqparent, const char *name, const TQStringList &args );
virtual ~JavaSupportPart();
bool isValid() const { return m_valid; }
diff --git a/languages/java/problemreporter.cpp b/languages/java/problemreporter.cpp
index a5beaaf2..f287f70d 100644
--- a/languages/java/problemreporter.cpp
+++ b/languages/java/problemreporter.cpp
@@ -54,13 +54,13 @@
class ProblemItem: public KListViewItem
{
public:
- ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListView* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column ) {}
+ : KListViewItem( tqparent, level, problem, file, line, column ) {}
- ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListViewItem* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column ) {}
+ : KListViewItem( tqparent, level, problem, file, line, column ) {}
int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 2 || column == 3 ){
@@ -75,8 +75,8 @@ public:
};
-ProblemReporter::ProblemReporter( JavaSupportPart* part, TQWidget* parent, const char* name )
- : KListView( parent, name ? name : "problemreporter" ),
+ProblemReporter::ProblemReporter( JavaSupportPart* part, TQWidget* tqparent, const char* name )
+ : KListView( tqparent, name ? name : "problemreporter" ),
m_javaSupport( part ),
m_document( 0 ),
m_markIface( 0 )
@@ -214,7 +214,7 @@ void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p
}
TQString msg = p.text();
- msg = msg.replace( TQRegExp("\n"), "" );
+ msg = msg.tqreplace( TQRegExp("\n"), "" );
new ProblemItem( this,
levelToString( p.level() ),
@@ -267,15 +267,15 @@ TQString ProblemReporter::levelToString( int level ) const
switch( level )
{
case Problem::Level_Error:
- return TQString::fromLatin1( "Error" );
+ return TQString::tqfromLatin1( "Error" );
case Problem::Level_Warning:
- return TQString::fromLatin1( "Warning" );
+ return TQString::tqfromLatin1( "Warning" );
case Problem::Level_Todo:
- return TQString::fromLatin1( "Todo" );
+ return TQString::tqfromLatin1( "Todo" );
case Problem::Level_Fixme:
- return TQString::fromLatin1( "Fixme" );
+ return TQString::tqfromLatin1( "Fixme" );
default:
- return TQString::null;
+ return TQString();
}
}
diff --git a/languages/java/problemreporter.h b/languages/java/problemreporter.h
index b349b371..4ac7876d 100644
--- a/languages/java/problemreporter.h
+++ b/languages/java/problemreporter.h
@@ -38,8 +38,9 @@ namespace KTextEditor{
class ProblemReporter: public KListView{
Q_OBJECT
+ TQ_OBJECT
public:
- ProblemReporter( JavaSupportPart* part, TQWidget* parent=0, const char* name=0 );
+ ProblemReporter( JavaSupportPart* part, TQWidget* tqparent=0, const char* name=0 );
virtual ~ProblemReporter();
void removeAllProblems( const TQString& filename );
diff --git a/languages/kjssupport/jscodecompletion.cpp b/languages/kjssupport/jscodecompletion.cpp
index 5717858a..6d290532 100644
--- a/languages/kjssupport/jscodecompletion.cpp
+++ b/languages/kjssupport/jscodecompletion.cpp
@@ -37,8 +37,8 @@
#include <kdevelop/domutil.h>
#include <kdevelop/codemodel.h>
-JSCodeCompletion::JSCodeCompletion(TQObject *parent, const char *name)
- : TQObject(parent, name)
+JSCodeCompletion::JSCodeCompletion(TQObject *tqparent, const char *name)
+ : TQObject(tqparent, name)
{
m_argWidgetShow = false;
m_completionBoxShow=false;
diff --git a/languages/kjssupport/jscodecompletion.h b/languages/kjssupport/jscodecompletion.h
index 03247917..4586836f 100644
--- a/languages/kjssupport/jscodecompletion.h
+++ b/languages/kjssupport/jscodecompletion.h
@@ -26,11 +26,12 @@ The code completion engine for Javascript.
@author ian reinhart geiser
*/
-class JSCodeCompletion : public QObject
+class JSCodeCompletion : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- JSCodeCompletion(TQObject *parent = 0, const char *name = 0);
+ JSCodeCompletion(TQObject *tqparent = 0, const char *name = 0);
~JSCodeCompletion();
void setActiveEditorPart(KParts::Part* editorPart);
diff --git a/languages/kjssupport/kjsproblems.cpp b/languages/kjssupport/kjsproblems.cpp
index 31882e7c..318ff44e 100644
--- a/languages/kjssupport/kjsproblems.cpp
+++ b/languages/kjssupport/kjsproblems.cpp
@@ -23,14 +23,14 @@
class KJSProblemItem: public KListViewItem
{
public:
- KJSProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ KJSProblemItem( TQListView* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column )
+ : KListViewItem( tqparent, level, problem, file, line, column )
{}
- KJSProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ KJSProblemItem( TQListViewItem* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column )
+ : KListViewItem( tqparent, level, problem, file, line, column )
{}
int compare( TQListViewItem* item, int column, bool ascending ) const
@@ -48,7 +48,7 @@ class KJSProblemItem: public KListViewItem
};
-KJSProblems::KJSProblems(kjsSupportPart *part, TQWidget *parent, const char *name) : KListView(parent,name), m_part(part)
+KJSProblems::KJSProblems(kjsSupportPart *part, TQWidget *tqparent, const char *name) : KListView(tqparent,name), m_part(part)
{
addColumn ("File");
addColumn ("Line #");
diff --git a/languages/kjssupport/kjsproblems.h b/languages/kjssupport/kjsproblems.h
index 7ca0d3ee..8c5d37a1 100644
--- a/languages/kjssupport/kjsproblems.h
+++ b/languages/kjssupport/kjsproblems.h
@@ -28,9 +28,10 @@ class kjsSupportPart;
class KJSProblems : public KListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- KJSProblems(kjsSupportPart *part, TQWidget *parent = 0L, const char *name = 0L);
+ KJSProblems(kjsSupportPart *part, TQWidget *tqparent = 0L, const char *name = 0L);
~KJSProblems();
void clearItems();
diff --git a/languages/kjssupport/kjssupport_part.cpp b/languages/kjssupport/kjssupport_part.cpp
index dcb8c1e3..8f6afda3 100644
--- a/languages/kjssupport/kjssupport_part.cpp
+++ b/languages/kjssupport/kjssupport_part.cpp
@@ -62,8 +62,8 @@ class typeProperty
int depth;
};
-kjsSupportPart::kjsSupportPart(TQObject *parent, const char *name, const TQStringList& )
-: KDevLanguageSupport(&data, parent, name ? name : "kjsSupportPart" )
+kjsSupportPart::kjsSupportPart(TQObject *tqparent, const char *name, const TQStringList& )
+: KDevLanguageSupport(&data, tqparent, name ? name : "kjsSupportPart" )
{
setInstance(kjsSupportFactory::instance());
setXMLFile("kdevkjssupport.rc");
@@ -157,7 +157,7 @@ void kjsSupportPart::savedFile(const TQString &fileName)
{
- if (project()->allFiles().contains(fileName.mid ( project()->projectDirectory().length() + 1 )))
+ if (project()->allFiles().tqcontains(fileName.mid ( project()->projectDirectory().length() + 1 )))
{
kdDebug(9014) << "parse file " << fileName << endl;
parse( fileName );
@@ -326,10 +326,10 @@ void kjsSupportPart::parse(const TQString &fileName)
m_problemReporter->addLine(m_file->fileName(), lineNo, errorMessage.qstring());
}
- if( line.contains("{") )
+ if( line.tqcontains("{") )
++depth;
- if( line.contains("}") )
+ if( line.tqcontains("}") )
--depth;
++lineNo;
@@ -429,7 +429,7 @@ void kjsSupportPart::contextMenu(TQPopupMenu * popupMenu, const Context *context
int id = popupMenu->insertItem(i18n("Implement Slots"),
this, TQT_SLOT(implementSlots()));
else
- m_selectedUI = TQString::null;
+ m_selectedUI = TQString();
}
void kjsSupportPart::implementSlots()
diff --git a/languages/kjssupport/kjssupport_part.h b/languages/kjssupport/kjssupport_part.h
index 5e7ccdfc..3ea2b5da 100644
--- a/languages/kjssupport/kjssupport_part.h
+++ b/languages/kjssupport/kjssupport_part.h
@@ -46,8 +46,9 @@ class typeProperty;
class kjsSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- kjsSupportPart(TQObject *parent, const char *name, const TQStringList &);
+ kjsSupportPart(TQObject *tqparent, const char *name, const TQStringList &);
~kjsSupportPart();
protected:
virtual Features features();
diff --git a/languages/kjssupport/subclassingdlg.cpp b/languages/kjssupport/subclassingdlg.cpp
index 284d0471..c9393f00 100644
--- a/languages/kjssupport/subclassingdlg.cpp
+++ b/languages/kjssupport/subclassingdlg.cpp
@@ -53,11 +53,11 @@
#define SLOT_HELP SlotItem(m_slotView,"help()","virtual","protected","void",false,true)
-SlotItem::SlotItem(TQListView *parent,const TQString &methodName,
+SlotItem::SlotItem(TQListView *tqparent,const TQString &methodName,
const TQString &specifier,
const TQString &access, const TQString &returnType,
bool isFunc,bool callBaseClass)
-: TQCheckListItem(parent,methodName,TQCheckListItem::CheckBox)
+: TQCheckListItem(tqparent,methodName,TQCheckListItem::CheckBox)
{
setOn(true);
m_methodName = methodName;
@@ -94,8 +94,8 @@ void SlotItem::setAllreadyInSubclass()
SubclassingDlg::SubclassingDlg(kjsSupportPart* kjsSupport, const TQString &formFile,TQStringList &newFileNames,
- TQWidget* parent, const char* name,bool modal, WFlags fl)
-: SubclassingDlgBase(parent,name,modal,fl),
+ TQWidget* tqparent, const char* name,bool modal, WFlags fl)
+: SubclassingDlgBase(tqparent,name,modal,fl),
m_newFileNames(newFileNames), m_kjsSupport( kjsSupport )
//=================================================
{
@@ -116,8 +116,8 @@ m_newFileNames(newFileNames), m_kjsSupport( kjsSupport )
/*SubclassingDlg::SubclassingDlg(kjsSupportPart* kjsSupport, const TQString &formFile,const TQString &filename,TQStringList &dummy,
- TQWidget* parent, const char* name,bool modal, WFlags fl)
-: SubclassingDlgBase(parent,name,modal,fl),
+ TQWidget* tqparent, const char* name,bool modal, WFlags fl)
+: SubclassingDlgBase(tqparent,name,modal,fl),
m_newFileNames(dummy), m_kjsSupport( kjsSupport )
//=================================================
{
@@ -143,7 +143,7 @@ m_newFileNames(dummy), m_kjsSupport( kjsSupport )
for (ClassList::const_iterator classIt = myClasses.begin(); classIt != myClasses.end(); ++classIt)
{
kdDebug() << "base class " << baseClass << " class " << (*classIt)->name()
- << " parents " << (*classIt)->baseClassList().join(",") << endl;
+ << " tqparents " << (*classIt)->baseClassList().join(",") << endl;
if ( (*classIt)->baseClassList().findIndex(baseClass) != -1 )
{
kdDebug() << "base class matched " << endl;
@@ -165,7 +165,7 @@ m_newFileNames(dummy), m_kjsSupport( kjsSupport )
bool SubclassingDlg::alreadyInSubclass(const TQString &method)
{
for (uint i=0;i<m_parsedMethods.count();i++)
- if (method.find(m_parsedMethods[i])==0)
+ if (method.tqfind(m_parsedMethods[i])==0)
return true;
return false;
}
@@ -188,13 +188,13 @@ void SubclassingDlg::readUiFile()
// Special widget specific slots
SlotItem *newSlot;
- m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class","TQDialog");
+ m_qtBaseClassName = DomUtil::elementByPathExt(doc,"widget").attribute("class",TQDIALOG_OBJECT_NAME_STRING);
- if ( (m_qtBaseClassName=="TQMainWindow") || (m_qtBaseClassName=="TQWidget") )
+ if ( (m_qtBaseClassName==TQMAINWINDOW_OBJECT_NAME_STRING) || (m_qtBaseClassName==TQWIDGET_OBJECT_NAME_STRING) )
m_canBeModal = false;
else
m_canBeModal = true;
- if (m_qtBaseClassName != "TQWidget")
+ if (m_qtBaseClassName != TQWIDGET_OBJECT_NAME_STRING)
{
newSlot = new SLOT_ACCEPT;
newSlot->setOn(false);
@@ -211,7 +211,7 @@ void SubclassingDlg::readUiFile()
m_slots << newSlot;
}
- if (m_qtBaseClassName == "TQWizard")
+ if (m_qtBaseClassName == TQWIZARD_OBJECT_NAME_STRING)
{
newSlot = new SLOT_NEXT;
m_slotView->insertItem(newSlot);
@@ -293,15 +293,15 @@ void SubclassingDlg::updateDlg()
{
}
-void SubclassingDlg::replace(TQString &string, const TQString& search, const TQString& replace)
+void SubclassingDlg::tqreplace(TQString &string, const TQString& search, const TQString& tqreplace)
//==========================================================================================
{
- int nextPos = string.find(search);
+ int nextPos = string.tqfind(search);
unsigned int searchLength = search.length();
while (nextPos>-1)
{
- string = string.replace(nextPos,searchLength,replace);
- nextPos = string.find(search,nextPos+replace.length());
+ string = string.tqreplace(nextPos,searchLength,tqreplace);
+ nextPos = string.tqfind(search,nextPos+tqreplace.length());
}
}
@@ -324,23 +324,23 @@ bool SubclassingDlg::loadBuffer(TQString &buffer, const TQString& filename)
bool SubclassingDlg::replaceKeywords(TQString &buffer,bool canBeModal)
//===================================================================
{
- replace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
- replace(buffer,"$BASEFILENAMELC$",m_formName.lower());
- replace(buffer,"$BASEFILENAME$",m_formName);
- replace(buffer,"$NEWCLASS$",m_edClassName->text());
- replace(buffer,"$BASECLASS$",m_baseClassName);
- replace(buffer,"$NEWFILENAMELC$",m_edFileName->text().lower());
+ tqreplace(buffer,"$NEWFILENAMEUC$",m_edFileName->text().upper());
+ tqreplace(buffer,"$BASEFILENAMELC$",m_formName.lower());
+ tqreplace(buffer,"$BASEFILENAME$",m_formName);
+ tqreplace(buffer,"$NEWCLASS$",m_edClassName->text());
+ tqreplace(buffer,"$BASECLASS$",m_baseClassName);
+ tqreplace(buffer,"$NEWFILENAMELC$",m_edFileName->text().lower());
if (canBeModal)
{
- replace(buffer,"$CAN_BE_MODAL_H$",", bool modal = FALSE");
- replace(buffer,"$CAN_BE_MODAL_CPP1$",", bool modal");
- replace(buffer,"$CAN_BE_MODAL_CPP2$",", modal");
+ tqreplace(buffer,"$CAN_BE_MODAL_H$",", bool modal = FALSE");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP1$",", bool modal");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP2$",", modal");
}
else
{
- replace(buffer,"$CAN_BE_MODAL_H$","");
- replace(buffer,"$CAN_BE_MODAL_CPP1$","");
- replace(buffer,"$CAN_BE_MODAL_CPP2$","");
+ tqreplace(buffer,"$CAN_BE_MODAL_H$","");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP1$","");
+ tqreplace(buffer,"$CAN_BE_MODAL_CPP2$","");
}
return true;
@@ -397,8 +397,8 @@ void SubclassingDlg::accept()
TQFileInfo fi(m_filename + ".js");
TQString module = fi.baseName();
TQString basefilename = fi.baseName(true);
- buffer.replace(TQRegExp("\\$MODULE\\$"),module);
- buffer.replace(TQRegExp("\\$FILENAME\\$"),basefilename);
+ buffer.tqreplace(TQRegExp("\\$MODULE\\$"),module);
+ buffer.tqreplace(TQRegExp("\\$FILENAME\\$"),basefilename);
}
else
loadBuffer(buffer,m_filename+".js");
@@ -419,11 +419,11 @@ void SubclassingDlg::accept()
slitem->m_alreadyInSubclass)
continue;
TQString impl = implementation;
- replace(impl,"$RETURNTYPE$",slitem->m_returnType);
- replace(impl,"$NEWCLASS$",m_edClassName->text());
- replace(impl,"$METHOD$", slitem->m_methodName);
- replace(impl,"$QTBASECLASS$", m_qtBaseClassName);
- replace(buffer,"/*$SPECIALIZATION$*/",impl);
+ tqreplace(impl,"$RETURNTYPE$",slitem->m_returnType);
+ tqreplace(impl,"$NEWCLASS$",m_edClassName->text());
+ tqreplace(impl,"$METHOD$", slitem->m_methodName);
+ tqreplace(impl,"$TQTBASECLASS$", m_qtBaseClassName);
+ tqreplace(buffer,"/*$SPECIALIZATION$*/",impl);
}
kdDebug() << buffer << endl;
diff --git a/languages/kjssupport/subclassingdlg.h b/languages/kjssupport/subclassingdlg.h
index 7d168ec0..c3573643 100644
--- a/languages/kjssupport/subclassingdlg.h
+++ b/languages/kjssupport/subclassingdlg.h
@@ -20,10 +20,10 @@ class TQStringList;
class TQDomDocument;
class kjsSupportPart;
-class SlotItem : public QCheckListItem
+class SlotItem : public TQCheckListItem
{
public:
- SlotItem(TQListView *parent,const TQString &text,
+ SlotItem(TQListView *tqparent,const TQString &text,
const TQString &specifier, const TQString &Access,
const TQString &returnType,bool isFunc,
bool callBaseClass=false);
@@ -42,10 +42,10 @@ class SubclassingDlg : public SubclassingDlgBase
{
public:
SubclassingDlg(kjsSupportPart* kjsSupport, const TQString &formFile,TQStringList &newFileNames,
- TQWidget* parent = 0, const char* name = 0,
+ TQWidget* tqparent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );
/* SubclassingDlg(CppSupportPart* kjsSupport, const TQString &formFile,const TQString &filename,TQStringList &dummy,
- TQWidget* parent = 0, const char* name = 0,
+ TQWidget* tqparent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 );*/
~SubclassingDlg();
@@ -54,7 +54,7 @@ private:
TQString readBaseClassName();
void updateDlg();
bool replaceKeywords(TQString &buffer, bool canBeModal=true);
- void replace(TQString &string, const TQString& search, const TQString& replace);
+ void tqreplace(TQString &string, const TQString& search, const TQString& tqreplace);
bool saveBuffer(TQString &buffer, const TQString& filename);
bool loadBuffer(TQString &buffer, const TQString& filename);
bool alreadyInSubclass(const TQString &method);
diff --git a/languages/kjssupport/subclassingdlgbase.ui b/languages/kjssupport/subclassingdlgbase.ui
index fea5ef6d..711250bd 100644
--- a/languages/kjssupport/subclassingdlgbase.ui
+++ b/languages/kjssupport/subclassingdlgbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>SubclassingDlgBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>SubclassingDlgBase</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -30,7 +30,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>reformat_box</cstring>
</property>
@@ -38,7 +38,7 @@
<string>Re&amp;format source</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="2">
+ <widget class="TQCheckBox" row="4" column="2">
<property name="name">
<cstring>reformatDefault_box</cstring>
</property>
@@ -54,7 +54,7 @@
<string>Reformat source by &amp;default</string>
</property>
</widget>
- <widget class="QListView" row="3" column="0" rowspan="1" colspan="3">
+ <widget class="TQListView" row="3" column="0" rowspan="1" colspan="3">
<column>
<property name="text">
<string>Method</string>
@@ -114,23 +114,23 @@
<cstring>m_slotView</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
- <string>&amp;Specialize following slots:</string>
+ <string>&amp;Specialize following Q_SLOTS:</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_slotView</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="1" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>m_edFileName</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -149,7 +149,7 @@
<cstring>m_edFileName</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -168,14 +168,14 @@
<cstring>m_edClassName</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="0" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>m_edClassName</cstring>
</property>
</widget>
</grid>
</widget>
- <widget class="QPushButton" row="1" column="1">
+ <widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>m_btnOk</cstring>
</property>
@@ -186,7 +186,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="1" column="2">
+ <widget class="TQPushButton" row="1" column="2">
<property name="name">
<cstring>m_btnCancel</cstring>
</property>
@@ -204,7 +204,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>110</width>
<height>20</height>
@@ -245,9 +245,9 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>onChangedClassName()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/lib/debugger/Mainpage.dox b/languages/lib/debugger/Mainpage.dox
index 2e141fd3..6dfb64ab 100644
--- a/languages/lib/debugger/Mainpage.dox
+++ b/languages/lib/debugger/Mainpage.dox
@@ -12,7 +12,7 @@ This library contains classes to implement debugger support for a programming la
Each debugger support plugin must interact with an editor to set breakpoints,
jump to execution points, etc. This kind of interaction is implemented in
@ref Debugger class. Your debugger support plugin just need to create
-an instance of @ref Debugger class and connect its signals, for example:
+an instance of @ref Debugger class and connect its Q_SIGNALS, for example:
@code
m_debugger = new Debugger( partController() );
diff --git a/languages/lib/debugger/debugger.cpp b/languages/lib/debugger/debugger.cpp
index 5d33ee8c..8bfebb33 100644
--- a/languages/lib/debugger/debugger.cpp
+++ b/languages/lib/debugger/debugger.cpp
@@ -50,7 +50,7 @@ void Debugger::setBreakpoint(const TQString &fileName, int lineNum, int id, bool
iface->removeMark( lineNum, Breakpoint | ActiveBreakpoint | ReachedBreakpoint | DisabledBreakpoint );
BPItem bpItem(fileName, lineNum);
- TQValueList<BPItem>::Iterator it = BPList.find(bpItem);
+ TQValueList<BPItem>::Iterator it = BPList.tqfind(bpItem);
if (it != BPList.end())
{
// kdDebug(9012) << "Removing BP=" << fileName << ":" << lineNum << endl;
diff --git a/languages/lib/debugger/debugger.h b/languages/lib/debugger/debugger.h
index f1a48452..0b813f66 100644
--- a/languages/lib/debugger/debugger.h
+++ b/languages/lib/debugger/debugger.h
@@ -24,7 +24,7 @@ class BPItem
{
public:
/**
- * default ctor - required from QValueList
+ * default ctor - required from TQValueList
*/
BPItem() : m_fileName(""), m_lineNum(0)
{}
@@ -57,6 +57,7 @@ private:
class Debugger : public KDevDebugger
{
Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/languages/lib/debugger/kdevdebugger.cpp b/languages/lib/debugger/kdevdebugger.cpp
index b9ee4a05..416f567c 100644
--- a/languages/lib/debugger/kdevdebugger.cpp
+++ b/languages/lib/debugger/kdevdebugger.cpp
@@ -19,8 +19,8 @@
*/
#include "kdevdebugger.h"
-KDevDebugger::KDevDebugger(TQObject *parent, const char *name)
- : TQObject(parent, name)
+KDevDebugger::KDevDebugger(TQObject *tqparent, const char *name)
+ : TQObject(tqparent, name)
{
}
diff --git a/languages/lib/debugger/kdevdebugger.h b/languages/lib/debugger/kdevdebugger.h
index 288854e5..f1e50987 100644
--- a/languages/lib/debugger/kdevdebugger.h
+++ b/languages/lib/debugger/kdevdebugger.h
@@ -31,13 +31,14 @@
* Base class to handle signals from the editor that relate to breakpoints
* and the execution point of the debugger.
*/
-class KDevDebugger : public QObject
+class KDevDebugger : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDevDebugger(TQObject *parent=0, const char *name=0);
+ KDevDebugger(TQObject *tqparent=0, const char *name=0);
~KDevDebugger();
/**
diff --git a/languages/lib/designer_integration/implementationwidget.cpp b/languages/lib/designer_integration/implementationwidget.cpp
index c961657b..6198f9bc 100644
--- a/languages/lib/designer_integration/implementationwidget.cpp
+++ b/languages/lib/designer_integration/implementationwidget.cpp
@@ -40,10 +40,10 @@
namespace ImplUtils{
class ClassItem: public KListViewItem{
public:
- ClassItem(KListViewItem *parent, ClassDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
- ClassItem(KListView *parent, ClassDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ ClassItem(KListViewItem *tqparent, ClassDom dom)
+ :KListViewItem(tqparent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ ClassItem(KListView *tqparent, ClassDom dom)
+ :KListViewItem(tqparent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
ClassDom dom() const { return m_dom; }
private:
ClassDom m_dom;
@@ -51,18 +51,18 @@ private:
class NamespaceItem: public KListViewItem{
public:
- NamespaceItem(KListViewItem *parent, NamespaceDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
- NamespaceItem(KListView *parent, NamespaceDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ NamespaceItem(KListViewItem *tqparent, NamespaceDom dom)
+ :KListViewItem(tqparent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ NamespaceItem(KListView *tqparent, NamespaceDom dom)
+ :KListViewItem(tqparent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
NamespaceDom dom() const { return m_dom; }
private:
NamespaceDom m_dom;
};
}
-ImplementationWidget::ImplementationWidget(KDevLanguageSupport *part, TQWidget* parent, const char* name, bool modal)
- :CreateImplemenationWidgetBase(parent, name, modal), m_part(part)
+ImplementationWidget::ImplementationWidget(KDevLanguageSupport *part, TQWidget* tqparent, const char* name, bool modal)
+ :CreateImplemenationWidgetBase(tqparent, name, modal), m_part(part)
{
}
@@ -77,28 +77,28 @@ void ImplementationWidget::init(const TQString &formName)
TQDomDocument doc;
DomUtil::openDOMFile(doc, m_formName);
m_baseClassName = DomUtil::elementByPathExt(doc, "class").text();
- setCaption(i18n("Create or Select Implementation Class for: %1").arg(m_baseClassName));
+ setCaption(i18n("Create or Select Implementation Class for: %1").tqarg(m_baseClassName));
KListViewItem *item = new KListViewItem(classView, i18n("Namespaces &amp;&amp; Classes"));
item->setOpen(true);
processNamespaces(m_part->codeModel()->globalNamespace(), item);
}
-void ImplementationWidget::processNamespaces(NamespaceDom dom, KListViewItem *parent)
+void ImplementationWidget::processNamespaces(NamespaceDom dom, KListViewItem *tqparent)
{
const NamespaceList nslist = dom->namespaceList();
for (NamespaceList::const_iterator it = nslist.begin(); it != nslist.end(); ++it)
- processNamespaces(*it, new ImplUtils::NamespaceItem(parent, *it));
+ processNamespaces(*it, new ImplUtils::NamespaceItem(tqparent, *it));
const ClassList cllist = dom->classList();
for (ClassList::ConstIterator it = cllist.begin(); it != cllist.end(); ++it)
- processClasses(*it, new ImplUtils::ClassItem(parent, *it));
+ processClasses(*it, new ImplUtils::ClassItem(tqparent, *it));
}
-void ImplementationWidget::processClasses(ClassDom dom, KListViewItem *parent)
+void ImplementationWidget::processClasses(ClassDom dom, KListViewItem *tqparent)
{
const ClassList cllist = dom->classList();
for (ClassList::ConstIterator it = cllist.begin(); it != cllist.end(); ++it)
- processClasses(*it, new ImplUtils::ClassItem(parent, *it));
+ processClasses(*it, new ImplUtils::ClassItem(tqparent, *it));
}
ImplementationWidget::~ImplementationWidget()
diff --git a/languages/lib/designer_integration/implementationwidget.h b/languages/lib/designer_integration/implementationwidget.h
index b639b0e8..91f93228 100644
--- a/languages/lib/designer_integration/implementationwidget.h
+++ b/languages/lib/designer_integration/implementationwidget.h
@@ -40,8 +40,9 @@ Subclasses of this class should reimplement only pure virtual functions in the c
class ImplementationWidget : public CreateImplemenationWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- ImplementationWidget(KDevLanguageSupport *part, TQWidget* parent = 0, const char* name = 0, bool modal = false);
+ ImplementationWidget(KDevLanguageSupport *part, TQWidget* tqparent = 0, const char* name = 0, bool modal = false);
virtual ~ImplementationWidget();
/*$PUBLIC_FUNCTIONS$*/
@@ -60,8 +61,8 @@ protected:
the number of classes being displayed as possible implementation classes.*/
void init(const TQString &formName);
- void processNamespaces(NamespaceDom dom, KListViewItem *parent);
- void processClasses(ClassDom dom, KListViewItem *parent);
+ void processNamespaces(NamespaceDom dom, KListViewItem *tqparent);
+ void processClasses(ClassDom dom, KListViewItem *tqparent);
/**Creates a class and adds it to a project. No need to reimplement.*/
bool createClass();
diff --git a/languages/lib/designer_integration/implementationwidgetbase.ui b/languages/lib/designer_integration/implementationwidgetbase.ui
index 1a39d39e..fece6815 100644
--- a/languages/lib/designer_integration/implementationwidgetbase.ui
+++ b/languages/lib/designer_integration/implementationwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>CreateImplemenationWidgetBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>CreateImplemenationWidgetBase</cstring>
</property>
@@ -19,9 +19,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -37,14 +37,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>okButton</cstring>
</property>
@@ -63,7 +63,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>cancelButton</cstring>
</property>
@@ -81,7 +81,7 @@
</widget>
</hbox>
</widget>
- <widget class="QButtonGroup" row="0" column="0">
+ <widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@@ -92,7 +92,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>createButton</cstring>
</property>
@@ -133,15 +133,15 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>classNameLabel</cstring>
</property>
@@ -159,7 +159,7 @@
</widget>
</vbox>
</widget>
- <widget class="QRadioButton" row="3" column="0">
+ <widget class="TQRadioButton" row="3" column="0">
<property name="name">
<cstring>useButton</cstring>
</property>
@@ -167,15 +167,15 @@
<string>Use &amp;existing class</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>layout2_2</cstring>
+ <cstring>tqlayout2_2</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>fileNameLabel</cstring>
</property>
@@ -257,10 +257,10 @@
<tabstop>okButton</tabstop>
<tabstop>cancelButton</tabstop>
</tabstops>
-<slots>
+<Q_SLOTS>
<slot access="protected">classNameChanged(const QString &amp;)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
</includehints>
diff --git a/languages/lib/designer_integration/qtdesignerintegration.cpp b/languages/lib/designer_integration/qtdesignerintegration.cpp
index f66b1b61..f46bd422 100644
--- a/languages/lib/designer_integration/qtdesignerintegration.cpp
+++ b/languages/lib/designer_integration/qtdesignerintegration.cpp
@@ -38,48 +38,48 @@
#include "codemodel_utils.h"
#include "implementationwidget.h"
-QtDesignerIntegration::QtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl, bool classHasDefinitions, const char* name)
+TQtDesignerIntegration::TQtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl, bool classHasDefinitions, const char* name)
:KDevDesignerIntegration(part, name), m_part(part), m_impl(impl),
m_classHasDefinitions(classHasDefinitions)
{
}
-QtDesignerIntegration::~QtDesignerIntegration()
+TQtDesignerIntegration::~TQtDesignerIntegration()
{
delete m_impl;
}
-void QtDesignerIntegration::addFunction(const TQString& formName, KInterfaceDesigner::Function function)
+void TQtDesignerIntegration::addFunction(const TQString& formName, KInterfaceDesigner::Function function)
{
- kdDebug() << "QtDesignerIntegration::addFunction: form: " << formName << ", function: " << function.function << endl;
+ kdDebug() << "TQtDesignerIntegration::addFunction: form: " << formName << ", function: " << function.function << endl;
- if (!m_implementations.contains(formName))
+ if (!m_implementations.tqcontains(formName))
if (!selectImplementation(formName))
return;
ClassDom klass = m_implementations[formName];
if (!klass)
{
- KMessageBox::error(0, i18n("Cannot find implementation class for form: %1").arg(formName));
+ KMessageBox::error(0, i18n("Cannot find implementation class for form: %1").tqarg(formName));
return;
}
addFunctionToClass(function, klass);
}
-void QtDesignerIntegration::editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function)
+void TQtDesignerIntegration::editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function)
{
- kdDebug() << "QtDesignerIntegration::editFunction: form: " << formName
+ kdDebug() << "TQtDesignerIntegration::editFunction: form: " << formName
<< ", old function: " << oldFunction.function
<< ", function: " << function.function << endl;
}
-void QtDesignerIntegration::removeFunction(const TQString& formName, KInterfaceDesigner::Function function)
+void TQtDesignerIntegration::removeFunction(const TQString& formName, KInterfaceDesigner::Function function)
{
- kdDebug() << "QtDesignerIntegration::removeFunction: form: " << formName << ", function: " << function.function << endl;
+ kdDebug() << "TQtDesignerIntegration::removeFunction: form: " << formName << ", function: " << function.function << endl;
}
-bool QtDesignerIntegration::selectImplementation(const TQString &formName)
+bool TQtDesignerIntegration::selectImplementation(const TQString &formName)
{
TQFileInfo fi(formName);
if (!fi.exists())
@@ -93,7 +93,7 @@ bool QtDesignerIntegration::selectImplementation(const TQString &formName)
return false;
}
-void QtDesignerIntegration::loadSettings(TQDomDocument dom, TQString path)
+void TQtDesignerIntegration::loadSettings(TQDomDocument dom, TQString path)
{
TQDomElement el = DomUtil::elementByPath(dom, path + "/qtdesigner");
if (el.isNull())
@@ -117,9 +117,9 @@ void QtDesignerIntegration::loadSettings(TQDomDocument dom, TQString path)
}
}
-void QtDesignerIntegration::saveSettings(TQDomDocument dom, TQString path)
+void TQtDesignerIntegration::saveSettings(TQDomDocument dom, TQString path)
{
- kdDebug() << "QtDesignerIntegration::saveSettings" << endl;
+ kdDebug() << "TQtDesignerIntegration::saveSettings" << endl;
TQDomElement el = DomUtil::createElementByPath(dom, path + "/qtdesigner");
for (TQMap<TQString, ClassDom>::const_iterator it = m_implementations.begin();
it != m_implementations.end(); ++it)
@@ -134,13 +134,13 @@ void QtDesignerIntegration::saveSettings(TQDomDocument dom, TQString path)
}
}
-void QtDesignerIntegration::openFunction(const TQString &formName, const TQString &functionName)
+void TQtDesignerIntegration::openFunction(const TQString &formName, const TQString &functionName)
{
- kdDebug() << "QtDesignerIntegration::openFunction, formName = " << formName
+ kdDebug() << "TQtDesignerIntegration::openFunction, formName = " << formName
<< ", functionName = " << functionName << endl;
TQString fn = functionName;
- if (fn.find("(") > 0)
- fn.remove(fn.find("("), fn.length());
+ if (fn.tqfind("(") > 0)
+ fn.remove(fn.tqfind("("), fn.length());
if (!m_implementations[formName])
return;
@@ -177,14 +177,14 @@ void QtDesignerIntegration::openFunction(const TQString &formName, const TQStrin
m_part->partController()->editDocument(KURL(impl), line, col);
}
-void QtDesignerIntegration::processImplementationName(TQString &// name
+void TQtDesignerIntegration::processImplementationName(TQString &// name
)
{
}
-void QtDesignerIntegration::openSource(const TQString &formName)
+void TQtDesignerIntegration::openSource(const TQString &formName)
{
- if (!m_implementations.contains(formName))
+ if (!m_implementations.tqcontains(formName))
if (!selectImplementation(formName))
return;
TQString impl = m_implementations[formName]->fileName();
diff --git a/languages/lib/designer_integration/qtdesignerintegration.h b/languages/lib/designer_integration/qtdesignerintegration.h
index a31310eb..9a750fbd 100644
--- a/languages/lib/designer_integration/qtdesignerintegration.h
+++ b/languages/lib/designer_integration/qtdesignerintegration.h
@@ -17,8 +17,8 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef QTDESIGNERINTEGRATION_H
-#define QTDESIGNERINTEGRATION_H
+#ifndef TQTDESIGNERINTEGRATION_H
+#define TQTDESIGNERINTEGRATION_H
#include <tqmap.h>
@@ -29,19 +29,20 @@ class KDevLanguageSupport;
class ImplementationWidget;
/**
-Qt Designer integration base class.
+TQt Designer integration base class.
Contains language-independent implementation part of a @ref KDevDesignerIntegration interface.
Ready to use in KDevelop language support plugins.
Subclasses of this class should reimplement only pure virtual functions in the common case.
*/
-class QtDesignerIntegration : public KDevDesignerIntegration
+class TQtDesignerIntegration : public KDevDesignerIntegration
{
Q_OBJECT
+ TQ_OBJECT
public:
- QtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl,
+ TQtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl,
bool classHasDefinitions, const char* name = 0);
- virtual ~QtDesignerIntegration();
+ virtual ~TQtDesignerIntegration();
public slots:
virtual void addFunction(const TQString& formName, KInterfaceDesigner::Function function);
@@ -65,7 +66,7 @@ protected:
separate files for interface and implementation parts of a class. For example,
C++ language support plugin will do:
@code
- name.replace(".h", ".cpp");
+ name.tqreplace(".h", ".cpp");
@endcode*/
virtual void processImplementationName(TQString &name);
diff --git a/languages/lib/interfaces/kdevpcsimporter.cpp b/languages/lib/interfaces/kdevpcsimporter.cpp
index c4b4e664..457c131f 100644
--- a/languages/lib/interfaces/kdevpcsimporter.cpp
+++ b/languages/lib/interfaces/kdevpcsimporter.cpp
@@ -20,8 +20,8 @@
#include "kdevpcsimporter.h"
#include "kdevpcsimporter.moc"
-KDevPCSImporter::KDevPCSImporter( TQObject * parent, const char * name )
- : TQObject( parent, name )
+KDevPCSImporter::KDevPCSImporter( TQObject * tqparent, const char * name )
+ : TQObject( tqparent, name )
{
}
@@ -29,7 +29,7 @@ KDevPCSImporter::~ KDevPCSImporter( )
{
}
-TQWidget * KDevPCSImporter::createSettingsPage( TQWidget * /*parent*/, const char * /*name*/ )
+TQWidget * KDevPCSImporter::createSettingsPage( TQWidget * /*tqparent*/, const char * /*name*/ )
{
return 0;
}
diff --git a/languages/lib/interfaces/kdevpcsimporter.h b/languages/lib/interfaces/kdevpcsimporter.h
index 962b99f3..37547252 100644
--- a/languages/lib/interfaces/kdevpcsimporter.h
+++ b/languages/lib/interfaces/kdevpcsimporter.h
@@ -32,18 +32,19 @@ These plugins are used by language support plugins to fill symbol stores
with symbol information from certain files. The purpose of the importer
is to provide file selection wizard.
*/
-class KDevPCSImporter: public QObject
+class KDevPCSImporter: public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDevPCSImporter( TQObject* parent=0, const char* name=0 );
+ KDevPCSImporter( TQObject* tqparent=0, const char* name=0 );
virtual ~KDevPCSImporter();
virtual TQString dbName() const = 0;
virtual TQStringList includePaths() = 0;
virtual TQStringList fileList() = 0;
- virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 );
+ virtual TQWidget* createSettingsPage( TQWidget* tqparent, const char* name=0 );
};
#endif // KDEVPCSIMPORTER_H
diff --git a/languages/pascal/PascalLexer.cpp b/languages/pascal/PascalLexer.cpp
index 28f532f8..29475545 100644
--- a/languages/pascal/PascalLexer.cpp
+++ b/languages/pascal/PascalLexer.cpp
@@ -172,7 +172,7 @@ ANTLR_USE_NAMESPACE(antlr)RefToken PascalLexer::nextToken()
}
case 0x3d /* '=' */ :
{
- mEQUAL(true);
+ mETQUAL(true);
theRetToken=_returnToken;
break;
}
@@ -508,9 +508,9 @@ void PascalLexer::mCOLON(bool _createToken) {
_saveIndex=0;
}
-void PascalLexer::mEQUAL(bool _createToken) {
+void PascalLexer::mETQUAL(bool _createToken) {
int _ttype; ANTLR_USE_NAMESPACE(antlr)RefToken _token; ANTLR_USE_NAMESPACE(std)string::size_type _begin = text.length();
- _ttype = EQUAL;
+ _ttype = ETQUAL;
ANTLR_USE_NAMESPACE(std)string::size_type _saveIndex;
match('=' /* charlit */ );
diff --git a/languages/pascal/PascalLexer.hpp b/languages/pascal/PascalLexer.hpp
index 99a14959..c2232e65 100644
--- a/languages/pascal/PascalLexer.hpp
+++ b/languages/pascal/PascalLexer.hpp
@@ -77,7 +77,7 @@ public:
public: void mCOMMA(bool _createToken);
public: void mSEMI(bool _createToken);
public: void mCOLON(bool _createToken);
- public: void mEQUAL(bool _createToken);
+ public: void mETQUAL(bool _createToken);
public: void mNOT_EQUAL(bool _createToken);
public: void mLTH(bool _createToken);
public: void mLE(bool _createToken);
diff --git a/languages/pascal/PascalParser.cpp b/languages/pascal/PascalParser.cpp
index 172f4a49..80655b41 100644
--- a/languages/pascal/PascalParser.cpp
+++ b/languages/pascal/PascalParser.cpp
@@ -1193,7 +1193,7 @@ void PascalParser::constantDeclarationPart() {
{ // ( ... )+
int _cnt47=0;
for (;;) {
- if ((LA(1) == IDENT) && (LA(2) == EQUAL)) {
+ if ((LA(1) == IDENT) && (LA(2) == ETQUAL)) {
constantDeclaration();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
@@ -1581,7 +1581,7 @@ void PascalParser::constantDeclaration() {
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
}
- match(EQUAL);
+ match(ETQUAL);
expression();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
@@ -1615,7 +1615,7 @@ void PascalParser::typedConstantDeclaration() {
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
}
- match(EQUAL);
+ match(ETQUAL);
typedConstant();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
@@ -1644,7 +1644,7 @@ void PascalParser::stringConstantDeclaration() {
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
}
- match(EQUAL);
+ match(ETQUAL);
string();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
@@ -1697,7 +1697,7 @@ void PascalParser::typeDeclaration() {
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
}
- match(EQUAL);
+ match(ETQUAL);
type();
if (inputState->guessing==0) {
astFactory->addASTChild(currentAST, ANTLR_USE_NAMESPACE(antlr)RefAST(returnAST));
@@ -1771,7 +1771,7 @@ void PascalParser::type() {
case BYTE:
case WORD:
case CARDINAL:
- case QWORD:
+ case TQWORD:
case BOOLEAN:
case BYTEBOOL:
case LONGBOOL:
@@ -3234,7 +3234,7 @@ void PascalParser::expression() {
}
{
switch ( LA(1)) {
- case EQUAL:
+ case ETQUAL:
case LE:
case GE:
case LTH:
@@ -3717,7 +3717,7 @@ void PascalParser::simpleType() {
case BYTE:
case WORD:
case CARDINAL:
- case QWORD:
+ case TQWORD:
case BOOLEAN:
case BYTEBOOL:
case LONGBOOL:
@@ -3783,7 +3783,7 @@ void PascalParser::subrangeTypeOrTypeIdentifier() {
}
case SEMI:
case RPAREN:
- case EQUAL:
+ case ETQUAL:
case RBRACK:
{
break;
@@ -3891,7 +3891,7 @@ void PascalParser::stringType() {
}
case SEMI:
case RPAREN:
- case EQUAL:
+ case ETQUAL:
case RBRACK:
{
break;
@@ -4154,9 +4154,9 @@ void PascalParser::ordinalType() {
ordinalType_AST = RefPascalAST(currentAST.root);
break;
}
- case QWORD:
+ case TQWORD:
{
- match(QWORD);
+ match(TQWORD);
ordinalType_AST = RefPascalAST(currentAST.root);
break;
}
@@ -5033,7 +5033,7 @@ void PascalParser::proceduralTypePart1() {
}
case SEMI:
case RPAREN:
- case EQUAL:
+ case ETQUAL:
case RBRACK:
{
break;
@@ -6535,9 +6535,9 @@ void PascalParser::expressionSign() {
expressionSign_AST = RefPascalAST(currentAST.root);
break;
}
- case EQUAL:
+ case ETQUAL:
{
- match(EQUAL);
+ match(ETQUAL);
expressionSign_AST = RefPascalAST(currentAST.root);
break;
}
@@ -8571,7 +8571,7 @@ void PascalParser::operatorDefinition() {
}
break;
}
- case EQUAL:
+ case ETQUAL:
case LE:
case GE:
case LTH:
@@ -8707,9 +8707,9 @@ void PascalParser::comparisonOperatorDefinition() {
try { // for error handling
{
switch ( LA(1)) {
- case EQUAL:
+ case ETQUAL:
{
- match(EQUAL);
+ match(ETQUAL);
break;
}
case LE:
@@ -9283,7 +9283,7 @@ const char* PascalParser::tokenNames[] = {
"\"label\"",
"\"const\"",
"\"resourcestring\"",
- "EQUAL",
+ "ETQUAL",
"\"type\"",
"\"var\"",
"COLON",
@@ -9417,7 +9417,7 @@ const char* PascalParser::tokenNames[] = {
"\"self\"",
"METHOD",
"ADDSUBOR",
- "ASSIGNEQUAL",
+ "ASSIGNETQUAL",
"SIGN",
"FUNC",
"NODE_NOT_EMIT",
@@ -9450,7 +9450,7 @@ const unsigned long PascalParser::_tokenSet_3_data_[] = { 121634818UL, 177988UL,
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_3(_tokenSet_3_data_,8);
const unsigned long PascalParser::_tokenSet_4_data_[] = { 994050050UL, 706736UL, 101056512UL, 4294963649UL, 833972167UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF DOT SEMI "end" COMMA "index" "name" LPAREN RPAREN "finalization"
-// EQUAL COLON "procedure" "function" "of" DOTDOT ASSIGN LBRACK RBRACK
+// ETQUAL COLON "procedure" "function" "of" DOTDOT ASSIGN LBRACK RBRACK
// POINTER "constructor" "destructor" "class" "property" "read" "write"
// "default" "nodefault" LE GE LTH GT NOT_EQUAL "in" "is" PLUS MINUS "or"
// "xor" STAR SLASH "div" "mod" "and" "shl" "shr" AT PLUSEQ MINUSEQ STAREQ
@@ -9515,7 +9515,7 @@ const unsigned long PascalParser::_tokenSet_20_data_[] = { 100663296UL, 177988UL
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_20(_tokenSet_20_data_,12);
const unsigned long PascalParser::_tokenSet_21_data_[] = { 1061158914UL, 720868UL, 67239936UL, 4294840768UL, 825581575UL, 8UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF DOT SEMI "end" "exports" COMMA "index" "name" "begin" RPAREN "initialization"
-// "finalization" "label" "const" "resourcestring" EQUAL "type" "var" COLON
+// "finalization" "label" "const" "resourcestring" ETQUAL "type" "var" COLON
// "procedure" "function" "of" DOTDOT RBRACK "constructor" "destructor"
// "class" "property" LE GE LTH GT NOT_EQUAL "in" "is" PLUS MINUS "or"
// "xor" STAR SLASH "div" "mod" "and" "shl" "shr" "then" "else" "do" "until"
@@ -9525,7 +9525,7 @@ const unsigned long PascalParser::_tokenSet_22_data_[] = { 16777216UL, 0UL, 0UL,
// SEMI
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_22(_tokenSet_22_data_,6);
const unsigned long PascalParser::_tokenSet_23_data_[] = { 16777216UL, 2080UL, 67108864UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// SEMI RPAREN EQUAL RBRACK
+// SEMI RPAREN ETQUAL RBRACK
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_23(_tokenSet_23_data_,8);
const unsigned long PascalParser::_tokenSet_24_data_[] = { 0UL, 4UL, 536870920UL, 0UL, 206215168UL, 8UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// "begin" NUM_INT "case" "goto" "if" "while" "repeat" "for" "with" "raise"
@@ -9538,7 +9538,7 @@ const unsigned long PascalParser::_tokenSet_25_data_[] = { 121634818UL, 178116UL
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_25(_tokenSet_25_data_,12);
const unsigned long PascalParser::_tokenSet_26_data_[] = { 16777216UL, 1818406UL, 67108864UL, 192UL, 0UL, 0UL, 0UL, 0UL };
// SEMI "implementation" "begin" RPAREN "label" "const" "resourcestring"
-// EQUAL "type" "var" "procedure" "forward" "function" "of" "external"
+// ETQUAL "type" "var" "procedure" "forward" "function" "of" "external"
// RBRACK "constructor" "destructor"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_26(_tokenSet_26_data_,8);
const unsigned long PascalParser::_tokenSet_27_data_[] = { 117440514UL, 177988UL, 0UL, 192UL, 0UL, 0UL, 0UL, 0UL };
@@ -9579,22 +9579,22 @@ const unsigned long PascalParser::_tokenSet_36_data_[] = { 0UL, 16UL, 33554440UL
// "chr" "nil" NUM_REAL IDENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_36(_tokenSet_36_data_,12);
const unsigned long PascalParser::_tokenSet_37_data_[] = { 16777216UL, 2064UL, 100663304UL, 4294836224UL, 2147483775UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// SEMI LPAREN EQUAL NUM_INT LBRACK RBRACK LE GE LTH GT NOT_EQUAL "in"
+// SEMI LPAREN ETQUAL NUM_INT LBRACK RBRACK LE GE LTH GT NOT_EQUAL "in"
// "is" PLUS MINUS "or" "xor" STAR SLASH "div" "mod" "and" "shl" "shr"
// "not" "true" "false" AT STRING_LITERAL "chr" "nil" NUM_REAL IDENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_37(_tokenSet_37_data_,12);
const unsigned long PascalParser::_tokenSet_38_data_[] = { 184549378UL, 182304UL, 67239936UL, 4544UL, 0UL, 0UL, 0UL, 0UL };
-// EOF SEMI "end" COMMA RPAREN EQUAL COLON "procedure" "function" DOTDOT
+// EOF SEMI "end" COMMA RPAREN ETQUAL COLON "procedure" "function" DOTDOT
// RBRACK "constructor" "destructor" "class" "property"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_38(_tokenSet_38_data_,8);
const unsigned long PascalParser::_tokenSet_39_data_[] = { 150994944UL, 32UL, 0UL, 0UL, 0UL, 0UL };
// SEMI COMMA RPAREN
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_39(_tokenSet_39_data_,6);
const unsigned long PascalParser::_tokenSet_40_data_[] = { 150994944UL, 2080UL, 67108864UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// SEMI COMMA RPAREN EQUAL RBRACK
+// SEMI COMMA RPAREN ETQUAL RBRACK
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_40(_tokenSet_40_data_,8);
const unsigned long PascalParser::_tokenSet_41_data_[] = { 318767104UL, 165936UL, 67108864UL, 127424UL, 0UL, 0UL, 0UL, 0UL };
-// SEMI "end" "index" LPAREN RPAREN EQUAL "procedure" "function" RBRACK
+// SEMI "end" "index" LPAREN RPAREN ETQUAL "procedure" "function" RBRACK
// "constructor" "destructor" "class" "property" "read" "write" "default"
// "nodefault"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_41(_tokenSet_41_data_,8);
@@ -9603,7 +9603,7 @@ const unsigned long PascalParser::_tokenSet_42_data_[] = { 0UL, 32UL, 0UL, 0UL,
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_42(_tokenSet_42_data_,6);
const unsigned long PascalParser::_tokenSet_43_data_[] = { 792723458UL, 720868UL, 67239936UL, 4294963648UL, 825581575UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF DOT SEMI "end" "exports" COMMA "name" "begin" RPAREN "initialization"
-// "finalization" "label" "const" "resourcestring" EQUAL "type" "var" COLON
+// "finalization" "label" "const" "resourcestring" ETQUAL "type" "var" COLON
// "procedure" "function" "of" DOTDOT RBRACK "constructor" "destructor"
// "class" "property" "read" "write" "default" "nodefault" LE GE LTH GT
// NOT_EQUAL "in" "is" PLUS MINUS "or" "xor" STAR SLASH "div" "mod" "and"
@@ -9611,7 +9611,7 @@ const unsigned long PascalParser::_tokenSet_43_data_[] = { 792723458UL, 720868UL
// "finally"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_43(_tokenSet_43_data_,12);
const unsigned long PascalParser::_tokenSet_44_data_[] = { 0UL, 2064UL, 100794376UL, 4294836224UL, 2147483775UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// LPAREN EQUAL NUM_INT DOTDOT LBRACK RBRACK LE GE LTH GT NOT_EQUAL "in"
+// LPAREN ETQUAL NUM_INT DOTDOT LBRACK RBRACK LE GE LTH GT NOT_EQUAL "in"
// "is" PLUS MINUS "or" "xor" STAR SLASH "div" "mod" "and" "shl" "shr"
// "not" "true" "false" AT STRING_LITERAL "chr" "nil" NUM_REAL IDENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_44(_tokenSet_44_data_,12);
@@ -9660,23 +9660,23 @@ const unsigned long PascalParser::_tokenSet_57_data_[] = { 33554432UL, 163840UL,
// "default" "nodefault"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_57(_tokenSet_57_data_,8);
const unsigned long PascalParser::_tokenSet_58_data_[] = { 188743680UL, 526496UL, 67239936UL, 16646144UL, 825581568UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// DOT SEMI "end" COMMA RPAREN "finalization" EQUAL "of" DOTDOT RBRACK
+// DOT SEMI "end" COMMA RPAREN "finalization" ETQUAL "of" DOTDOT RBRACK
// LE GE LTH GT NOT_EQUAL "in" "is" "then" "else" "do" "until" "to" "downto"
// RBRACK2 "except" "finally"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_58(_tokenSet_58_data_,12);
const unsigned long PascalParser::_tokenSet_59_data_[] = { 188743680UL, 526496UL, 67239936UL, 268304384UL, 825581568UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// DOT SEMI "end" COMMA RPAREN "finalization" EQUAL "of" DOTDOT RBRACK
+// DOT SEMI "end" COMMA RPAREN "finalization" ETQUAL "of" DOTDOT RBRACK
// LE GE LTH GT NOT_EQUAL "in" "is" PLUS MINUS "or" "xor" "then" "else"
// "do" "until" "to" "downto" RBRACK2 "except" "finally"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_59(_tokenSet_59_data_,12);
const unsigned long PascalParser::_tokenSet_60_data_[] = { 188743680UL, 526512UL, 67239936UL, 4294836224UL, 825581575UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// DOT SEMI "end" COMMA LPAREN RPAREN "finalization" EQUAL "of" DOTDOT
+// DOT SEMI "end" COMMA LPAREN RPAREN "finalization" ETQUAL "of" DOTDOT
// RBRACK LE GE LTH GT NOT_EQUAL "in" "is" PLUS MINUS "or" "xor" STAR SLASH
// "div" "mod" "and" "shl" "shr" "then" "else" "do" "until" "to" "downto"
// RBRACK2 "except" "finally"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_60(_tokenSet_60_data_,12);
const unsigned long PascalParser::_tokenSet_61_data_[] = { 188743680UL, 526496UL, 67239936UL, 4294836224UL, 825581575UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// DOT SEMI "end" COMMA RPAREN "finalization" EQUAL "of" DOTDOT RBRACK
+// DOT SEMI "end" COMMA RPAREN "finalization" ETQUAL "of" DOTDOT RBRACK
// LE GE LTH GT NOT_EQUAL "in" "is" PLUS MINUS "or" "xor" STAR SLASH "div"
// "mod" "and" "shl" "shr" "then" "else" "do" "until" "to" "downto" RBRACK2
// "except" "finally"
@@ -9727,14 +9727,14 @@ const unsigned long PascalParser::_tokenSet_74_data_[] = { 0UL, 0UL, 8UL, 0UL, 0
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_74(_tokenSet_74_data_,12);
const unsigned long PascalParser::_tokenSet_75_data_[] = { 1061158914UL, 720868UL, 67239936UL, 4294840768UL, 825581575UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF DOT SEMI "end" "exports" COMMA "index" "name" "begin" RPAREN "initialization"
-// "finalization" "label" "const" "resourcestring" EQUAL "type" "var" COLON
+// "finalization" "label" "const" "resourcestring" ETQUAL "type" "var" COLON
// "procedure" "function" "of" DOTDOT RBRACK "constructor" "destructor"
// "class" "property" LE GE LTH GT NOT_EQUAL "in" "is" PLUS MINUS "or"
// "xor" STAR SLASH "div" "mod" "and" "shl" "shr" "then" "else" "do" "until"
// "to" "downto" RBRACK2 "except" "finally"
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalParser::_tokenSet_75(_tokenSet_75_data_,12);
const unsigned long PascalParser::_tokenSet_76_data_[] = { 188743682UL, 706720UL, 67239936UL, 4294840768UL, 825581575UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// EOF DOT SEMI "end" COMMA RPAREN "finalization" EQUAL COLON "procedure"
+// EOF DOT SEMI "end" COMMA RPAREN "finalization" ETQUAL COLON "procedure"
// "function" "of" DOTDOT RBRACK "constructor" "destructor" "class" "property"
// LE GE LTH GT NOT_EQUAL "in" "is" PLUS MINUS "or" "xor" STAR SLASH "div"
// "mod" "and" "shl" "shr" "then" "else" "do" "until" "to" "downto" RBRACK2
diff --git a/languages/pascal/PascalStoreWalker.cpp b/languages/pascal/PascalStoreWalker.cpp
index 96c69fe4..0a72ccfc 100644
--- a/languages/pascal/PascalStoreWalker.cpp
+++ b/languages/pascal/PascalStoreWalker.cpp
@@ -252,7 +252,7 @@ void PascalStoreWalker::constantDefinitionPart(RefPascalAST _t) {
for (;;) {
if (_t == RefPascalAST(ANTLR_USE_NAMESPACE(antlr)nullAST) )
_t = ASTNULL;
- if ((_t->getType() == EQUAL)) {
+ if ((_t->getType() == ETQUAL)) {
constantDefinition(_t);
_t = _retTree;
}
@@ -421,7 +421,7 @@ void PascalStoreWalker::constantDefinition(RefPascalAST _t) {
try { // for error handling
RefPascalAST __t21 = _t;
RefPascalAST tmp15_AST_in = _t;
- match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),EQUAL);
+ match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),ETQUAL);
_t = _t->getFirstChild();
RefPascalAST tmp16_AST_in = _t;
match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),IDENT);
@@ -2129,11 +2129,11 @@ void PascalStoreWalker::expression(RefPascalAST _t) {
if (_t == RefPascalAST(ANTLR_USE_NAMESPACE(antlr)nullAST) )
_t = ASTNULL;
switch ( _t->getType()) {
- case EQUAL:
+ case ETQUAL:
{
RefPascalAST __t132 = _t;
RefPascalAST tmp85_AST_in = _t;
- match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),EQUAL);
+ match(ANTLR_USE_NAMESPACE(antlr)RefAST(_t),ETQUAL);
_t = _t->getFirstChild();
expression(_t);
_t = _retTree;
@@ -2241,7 +2241,7 @@ void PascalStoreWalker::expression(RefPascalAST _t) {
switch ( _t->getType()) {
case FUNC_CALL:
case DOT:
- case EQUAL:
+ case ETQUAL:
case NUM_INT:
case LBRACK:
case SET:
@@ -2301,7 +2301,7 @@ void PascalStoreWalker::expression(RefPascalAST _t) {
switch ( _t->getType()) {
case FUNC_CALL:
case DOT:
- case EQUAL:
+ case ETQUAL:
case NUM_INT:
case LBRACK:
case SET:
@@ -2691,7 +2691,7 @@ void PascalStoreWalker::element(RefPascalAST _t) {
}
case FUNC_CALL:
case DOT:
- case EQUAL:
+ case ETQUAL:
case NUM_INT:
case LBRACK:
case SET:
@@ -3228,7 +3228,7 @@ const char* PascalStoreWalker::tokenNames[] = {
"\"label\"",
"\"const\"",
"\"resourcestring\"",
- "EQUAL",
+ "ETQUAL",
"\"type\"",
"\"var\"",
"COLON",
@@ -3362,7 +3362,7 @@ const char* PascalStoreWalker::tokenNames[] = {
"\"self\"",
"METHOD",
"ADDSUBOR",
- "ASSIGNEQUAL",
+ "ASSIGNETQUAL",
"SIGN",
"FUNC",
"NODE_NOT_EMIT",
@@ -3389,12 +3389,12 @@ const unsigned long PascalStoreWalker::_tokenSet_2_data_[] = { 0UL, 0UL, 8UL, 50
// NUM_INT PLUS MINUS STRING_LITERAL "chr" NUM_REAL IDENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalStoreWalker::_tokenSet_2(_tokenSet_2_data_,12);
const unsigned long PascalStoreWalker::_tokenSet_3_data_[] = { 4194432UL, 2048UL, 1107296264UL, 4152229889UL, 2155872329UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// FUNC_CALL DOT EQUAL NUM_INT LBRACK "set" POINTER LE GE LTH GT NOT_EQUAL
+// FUNC_CALL DOT ETQUAL NUM_INT LBRACK "set" POINTER LE GE LTH GT NOT_EQUAL
// "in" PLUS MINUS "or" STAR SLASH "div" "mod" "and" "not" AT LBRACK2 STRING_LITERAL
// "chr" "nil" NUM_REAL IDENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalStoreWalker::_tokenSet_3(_tokenSet_3_data_,12);
const unsigned long PascalStoreWalker::_tokenSet_4_data_[] = { 4194432UL, 2048UL, 1107427336UL, 4152229889UL, 2155872329UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
-// FUNC_CALL DOT EQUAL NUM_INT DOTDOT LBRACK "set" POINTER LE GE LTH GT
+// FUNC_CALL DOT ETQUAL NUM_INT DOTDOT LBRACK "set" POINTER LE GE LTH GT
// NOT_EQUAL "in" PLUS MINUS "or" STAR SLASH "div" "mod" "and" "not" AT
// LBRACK2 STRING_LITERAL "chr" "nil" NUM_REAL IDENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PascalStoreWalker::_tokenSet_4(_tokenSet_4_data_,12);
diff --git a/languages/pascal/PascalStoreWalkerTokenTypes.hpp b/languages/pascal/PascalStoreWalkerTokenTypes.hpp
index e8e19eb9..f86b1d42 100644
--- a/languages/pascal/PascalStoreWalkerTokenTypes.hpp
+++ b/languages/pascal/PascalStoreWalkerTokenTypes.hpp
@@ -51,7 +51,7 @@ struct CUSTOM_API PascalStoreWalkerTokenTypes {
LABEL = 40,
CONST = 41,
RESOURCESTRING = 42,
- EQUAL = 43,
+ ETQUAL = 43,
TYPE = 44,
VAR = 45,
COLON = 46,
@@ -84,7 +84,7 @@ struct CUSTOM_API PascalStoreWalkerTokenTypes {
BYTE = 73,
WORD = 74,
CARDINAL = 75,
- QWORD = 76,
+ TQWORD = 76,
BOOLEAN = 77,
BYTEBOOL = 78,
LONGBOOL = 79,
@@ -185,7 +185,7 @@ struct CUSTOM_API PascalStoreWalkerTokenTypes {
SELF = 174,
TQT_METHOD = 175,
ADDSUBOR = 176,
- ASSIGNEQUAL = 177,
+ ASSIGNETQUAL = 177,
SIGN = 178,
FUNC = 179,
NODE_NOT_EMIT = 180,
diff --git a/languages/pascal/PascalTokenTypes.hpp b/languages/pascal/PascalTokenTypes.hpp
index fc8692d3..3bc8950e 100644
--- a/languages/pascal/PascalTokenTypes.hpp
+++ b/languages/pascal/PascalTokenTypes.hpp
@@ -1,6 +1,9 @@
#ifndef INC_PascalTokenTypes_hpp_
#define INC_PascalTokenTypes_hpp_
+#undef TRUE
+#undef FALSE
+
/* $ANTLR 2.7.7 (20061129): "pascal.g" -> "PascalTokenTypes.hpp"$ */
#ifndef CUSTOM_API
@@ -51,7 +54,7 @@ struct CUSTOM_API PascalTokenTypes {
LABEL = 40,
CONST = 41,
RESOURCESTRING = 42,
- EQUAL = 43,
+ ETQUAL = 43,
TYPE = 44,
VAR = 45,
COLON = 46,
@@ -84,7 +87,7 @@ struct CUSTOM_API PascalTokenTypes {
BYTE = 73,
WORD = 74,
CARDINAL = 75,
- QWORD = 76,
+ TQWORD = 76,
BOOLEAN = 77,
BYTEBOOL = 78,
LONGBOOL = 79,
@@ -185,7 +188,7 @@ struct CUSTOM_API PascalTokenTypes {
SELF = 174,
TQT_METHOD = 175,
ADDSUBOR = 176,
- ASSIGNEQUAL = 177,
+ ASSIGNETQUAL = 177,
SIGN = 178,
FUNC = 179,
NODE_NOT_EMIT = 180,
diff --git a/languages/pascal/README.dox b/languages/pascal/README.dox
index 52ef50b1..8360d27c 100644
--- a/languages/pascal/README.dox
+++ b/languages/pascal/README.dox
@@ -15,7 +15,7 @@ with the one from <a href="ftp://fara.cs.uni-potsdam.de/incoming/CppCodeGenerato
\maintainer <a href="mailto:cloudtemple AT mksat.net">Alexander Dymo</a>
\feature Pascal language support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Language parser can sometimes treat correct lines as errors. Please send sample code to maintainer if you have this problem.
diff --git a/languages/pascal/backgroundparser.cpp b/languages/pascal/backgroundparser.cpp
index ff202374..be9a1909 100644
--- a/languages/pascal/backgroundparser.cpp
+++ b/languages/pascal/backgroundparser.cpp
@@ -24,7 +24,7 @@ BackgroundParser::BackgroundParser( ProblemReporter* reporter,
const TQString& source,
const TQString& filename )
: m_reporter( reporter ),
- m_source( source.unicode(), source.length() ),
+ m_source( source.tqunicode(), source.length() ),
m_fileName( filename )
{
}
diff --git a/languages/pascal/backgroundparser.h b/languages/pascal/backgroundparser.h
index 2ad77f83..170b3073 100644
--- a/languages/pascal/backgroundparser.h
+++ b/languages/pascal/backgroundparser.h
@@ -17,7 +17,7 @@
class ProblemReporter;
-class BackgroundParser: public QThread{
+class BackgroundParser: public TQThread{
public:
BackgroundParser( ProblemReporter* reporter,
const TQString& source,
diff --git a/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp b/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp
index 2d267519..d1ed9aec 100644
--- a/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp
+++ b/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp
@@ -21,8 +21,8 @@
K_EXPORT_COMPONENT_FACTORY( libkdevdccoptions, KGenericFactory<DccOptionsPlugin>( "kdevdccoptions" ) )
-DccOptionsPlugin::DccOptionsPlugin(TQObject *parent, const char *name, const QStringList/* &args*/)
- : KDevCompilerOptions(parent, name)
+DccOptionsPlugin::DccOptionsPlugin(TQObject *tqparent, const char *name, const TQStringList/* &args*/)
+ : KDevCompilerOptions(tqparent, name)
{
}
@@ -30,9 +30,9 @@ DccOptionsPlugin::~DccOptionsPlugin()
{
}
-TQString DccOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
+TQString DccOptionsPlugin::exec(TQWidget *tqparent, const TQString &flags)
{
- DccOptionsDialog *dlg = new DccOptionsDialog(parent, "dcc options dialog");
+ DccOptionsDialog *dlg = new DccOptionsDialog(tqparent, "dcc options dialog");
TQString newFlags = flags;
dlg->setFlags(flags);
if(dlg->exec() == TQDialog::Accepted)
@@ -42,8 +42,8 @@ TQString DccOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
}
-DccOptionsDialog::DccOptionsDialog( TQWidget * parent, const char * name )
- : KDialogBase(Tabbed, i18n("Delphi Compiler Options"), Ok|Cancel, Ok, parent, name, true)
+DccOptionsDialog::DccOptionsDialog( TQWidget * tqparent, const char * name )
+ : KDialogBase(Tabbed, i18n("Delphi Compiler Options"), Ok|Cancel, Ok, tqparent, name, true)
{
TQVBox *vbox;
diff --git a/languages/pascal/compiler/dccoptions/dccoptionsplugin.h b/languages/pascal/compiler/dccoptions/dccoptionsplugin.h
index 04a2392e..e428a73d 100644
--- a/languages/pascal/compiler/dccoptions/dccoptionsplugin.h
+++ b/languages/pascal/compiler/dccoptions/dccoptionsplugin.h
@@ -18,12 +18,13 @@
class DccOptionsPlugin : public KDevCompilerOptions
{
Q_OBJECT
+ TQ_OBJECT
public:
- DccOptionsPlugin( TQObject *parent, const char *name, const QStringList/* &args */);
+ DccOptionsPlugin( TQObject *tqparent, const char *name, const TQStringList/* &args */);
~DccOptionsPlugin();
- virtual TQString exec(TQWidget *parent, const TQString &flags);
+ virtual TQString exec(TQWidget *tqparent, const TQString &flags);
};
class GeneralTab;
@@ -36,7 +37,7 @@ class DebugOptimTab;
class DccOptionsDialog : public KDialogBase
{
public:
- DccOptionsDialog( TQWidget *parent=0, const char *name=0 );
+ DccOptionsDialog( TQWidget *tqparent=0, const char *name=0 );
~DccOptionsDialog();
void setFlags(const TQString &flags);
diff --git a/languages/pascal/compiler/dccoptions/optiontabs.cpp b/languages/pascal/compiler/dccoptions/optiontabs.cpp
index 94c8b35c..facb96f9 100644
--- a/languages/pascal/compiler/dccoptions/optiontabs.cpp
+++ b/languages/pascal/compiler/dccoptions/optiontabs.cpp
@@ -21,13 +21,13 @@
#include "optiontabs.h"
-LinkerTab::LinkerTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), radioController(new FlagRadioButtonController()),
+LinkerTab::LinkerTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), radioController(new FlagRadioButtonController()),
pathController(new FlagPathEditController()),
editController(new FlagEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
TQVButtonGroup *map_group = new TQVButtonGroup(i18n("Map File"), this);
TQRadioButton *m_defaultMap = new TQRadioButton(i18n("Off"), map_group);
@@ -39,19 +39,19 @@ LinkerTab::LinkerTab( TQWidget * parent, const char * name )
new FlagRadioButton(map_group, radioController,
"-GD", i18n("Detailed"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
new FlagPathEdit(this, "", pathController,
"--dynamicloader=", i18n("Default dynamic loader:"), KFile::File);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
new FlagSpinEdit(this, 0, 2147483647, 1024, 1048576, editController,
"-$M", i18n("Reserved address space:"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
- layout->addStretch();
+ tqlayout->addStretch();
}
LinkerTab::~LinkerTab( )
@@ -77,11 +77,11 @@ void LinkerTab::writeFlags( TQStringList * str )
-LocationsTab::LocationsTab( TQWidget * parent, const char * name )
- :TQWidget(parent, name), pathController(new FlagPathEditController())
+LocationsTab::LocationsTab( TQWidget * tqparent, const char * name )
+ :TQWidget(tqparent, name), pathController(new FlagPathEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
new FlagPathEdit(this, ":", pathController,
"-I", i18n("Include search path (delimited by \":\"):"));
@@ -92,7 +92,7 @@ LocationsTab::LocationsTab( TQWidget * parent, const char * name )
new FlagPathEdit(this, ":", pathController,
"-O", i18n("Object search path (delimited by \":\"):"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
LocationsTab::~LocationsTab( )
@@ -112,11 +112,11 @@ void LocationsTab::writeFlags( TQStringList * str )
-Locations2Tab::Locations2Tab( TQWidget * parent, const char * name )
- :TQWidget(parent, name), pathController(new FlagPathEditController())
+Locations2Tab::Locations2Tab( TQWidget * tqparent, const char * name )
+ :TQWidget(tqparent, name), pathController(new FlagPathEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
new FlagPathEdit(this, "", pathController,
"-E", i18n("Executable output directory:"));
@@ -127,7 +127,7 @@ Locations2Tab::Locations2Tab( TQWidget * parent, const char * name )
new FlagPathEdit(this, "", pathController,
"-LN", i18n("Package source code directory:"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
Locations2Tab::~Locations2Tab( )
@@ -147,12 +147,12 @@ void Locations2Tab::writeFlags( TQStringList * str )
-GeneralTab::GeneralTab( TQWidget * parent, const char * name )
- :TQWidget(parent, name), controller(new FlagCheckBoxController()),
+GeneralTab::GeneralTab( TQWidget * tqparent, const char * name )
+ :TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
editController(new FlagEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
TQVButtonGroup *build_group = new TQVButtonGroup(i18n("Build"), this);
new FlagCheckBox(build_group, controller,
@@ -165,7 +165,7 @@ GeneralTab::GeneralTab( TQWidget * parent, const char * name )
"-Z", i18n("Disable implicit package compilation"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
new FlagListEdit(this, ":", editController, "-D", i18n("Conditional defines (delimited by \":\"):"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
@@ -173,7 +173,7 @@ GeneralTab::GeneralTab( TQWidget * parent, const char * name )
new FlagListEdit(this, ":", editController, "-A", i18n("Unit aliases in form unit=alias (delimited by \":\"):"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *message_group = new TQVButtonGroup(i18n("Messages"), this);
new FlagCheckBox(message_group, controller,
@@ -182,12 +182,12 @@ GeneralTab::GeneralTab( TQWidget * parent, const char * name )
"-W", i18n("Output warning messages"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *package_group = new TQVButtonGroup(i18n("Packages"), this);
new FlagListEdit(package_group, ":", editController, "-LU", i18n("Build with packages (delimited by \":\"):"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
GeneralTab::~GeneralTab( )
@@ -210,15 +210,15 @@ void GeneralTab::writeFlags( TQStringList * str )
-CodegenTab::CodegenTab( TQWidget * parent, const char * name )
- :TQWidget(parent, name), controller(new FlagCheckBoxController()),
+CodegenTab::CodegenTab( TQWidget * tqparent, const char * name )
+ :TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
listController(new FlagEditController()),
radioController(new FlagRadioButtonController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
-// layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+// tqlayout->setAutoAdd(true);
- TQGridLayout *layout2 = new TQGridLayout(layout, 2, 2, KDialog::spacingHint());
+ TQGridLayout *tqlayout2 = new TQGridLayout(tqlayout, 2, 2, KDialog::spacingHint());
TQVButtonGroup *align_group = new TQVButtonGroup(i18n("Code Alignment && Stack Frames"), this);
TQRadioButton *align_def = new TQRadioButton(i18n("Default (-$A8)"), align_group);
@@ -234,7 +234,7 @@ CodegenTab::CodegenTab( TQWidget * parent, const char * name )
new FlagCheckBox(align_group, controller,
"'-$W+'", i18n("Generate stack frames"), "'-$W-'");
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout2->addWidget(align_group, 0, 0);
+ tqlayout2->addWidget(align_group, 0, 0);
TQVButtonGroup *enum_group = new TQVButtonGroup(i18n("Enumeration Size"), this);
TQRadioButton *enum_def = new TQRadioButton(i18n("Default (-$Z1)"), enum_group);
@@ -246,7 +246,7 @@ CodegenTab::CodegenTab( TQWidget * parent, const char * name )
new FlagRadioButton(enum_group, radioController,
"'-$Z4'", i18n("Unsigned double word (4096M values)"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout2->addWidget(enum_group, 0, 1);
+ tqlayout2->addWidget(enum_group, 0, 1);
TQVButtonGroup *compile_group = new TQVButtonGroup(i18n("Compile Time Checks"), this);
new FlagCheckBox(compile_group, controller,
@@ -266,7 +266,7 @@ CodegenTab::CodegenTab( TQWidget * parent, const char * name )
new FlagCheckBox(compile_group, controller,
"'-$J+'", i18n("Writable typed constants"), "'-$J-'");
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout2->addWidget(compile_group, 1, 0);
+ tqlayout2->addWidget(compile_group, 1, 0);
TQVButtonGroup *run_group = new TQVButtonGroup(i18n("Run Time Checks"), this);
new FlagCheckBox(run_group, controller,
@@ -280,9 +280,9 @@ CodegenTab::CodegenTab( TQWidget * parent, const char * name )
new FlagCheckBox(run_group, controller,
"'-$R+'", i18n("Range checking"), "'-$R-'");
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout2->addWidget(run_group, 1, 1);
+ tqlayout2->addWidget(run_group, 1, 1);
- layout->addStretch();
+ tqlayout->addStretch();
}
CodegenTab::~CodegenTab( )
@@ -308,21 +308,21 @@ void CodegenTab::writeFlags( TQStringList * str )
-DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), controller(new FlagCheckBoxController()),
+DebugOptimTab::DebugOptimTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
radioController(new FlagRadioButtonController)
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
-// layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+// tqlayout->setAutoAdd(true);
TQVButtonGroup *optim_group = new TQVButtonGroup(i18n("Optimization"), this);
new FlagCheckBox(optim_group, controller,
"'-$O+'", i18n("Enable optimizations"), "'-$O-'", "'-$O+'");
- layout->addWidget(optim_group);
+ tqlayout->addWidget(optim_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
- TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *tqlayout2 = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
TQVButtonGroup *debug_group = new TQVButtonGroup(i18n("Debugging"), this);
new FlagCheckBox(debug_group, controller,
@@ -335,7 +335,7 @@ DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
"-VN", i18n("Namespace debug info"));
symboldb = new FlagCheckBox(debug_group, controller,
"-VR", i18n("Write symbol info in an .rsm file"));
- layout2->addWidget(debug_group);
+ tqlayout2->addWidget(debug_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
TQVButtonGroup *debug_add = new TQVButtonGroup(i18n("Symbol Reference Information"), this);
@@ -347,20 +347,20 @@ DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
"'-$YD'", i18n("Definition information"));
new FlagRadioButton(debug_add, radioController,
"'-$Y+'", i18n("Full reference information"));
- layout2->addWidget(debug_add);
+ tqlayout2->addWidget(debug_add);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
- TQHBoxLayout *layout3 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQHBoxLayout *tqlayout3 = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
TQPushButton *release = new TQPushButton(i18n("Release"), this);
TQPushButton *debug = new TQPushButton(i18n("Debug"), this);
- layout3->addWidget(release);
- layout3->addWidget(debug);
+ tqlayout3->addWidget(release);
+ tqlayout3->addWidget(debug);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
connect(release, TQT_SIGNAL(clicked()), this, TQT_SLOT(setReleaseOptions()));
connect(debug, TQT_SIGNAL(clicked()), this, TQT_SLOT(setDebugOptions()));
- layout->addStretch();
+ tqlayout->addStretch();
}
DebugOptimTab::~ DebugOptimTab( )
diff --git a/languages/pascal/compiler/dccoptions/optiontabs.h b/languages/pascal/compiler/dccoptions/optiontabs.h
index 69343bf0..d96ec71d 100644
--- a/languages/pascal/compiler/dccoptions/optiontabs.h
+++ b/languages/pascal/compiler/dccoptions/optiontabs.h
@@ -20,10 +20,10 @@ class TQRadioButton;
class FlagRadioButton;
class FlagCheckBox;
-class LinkerTab : public QWidget
+class LinkerTab : public TQWidget
{
public:
- LinkerTab( TQWidget *parent=0, const char *name=0 );
+ LinkerTab( TQWidget *tqparent=0, const char *name=0 );
~LinkerTab();
void readFlags(TQStringList *str);
@@ -35,10 +35,10 @@ private:
FlagEditController *editController;
};
-class LocationsTab : public QWidget
+class LocationsTab : public TQWidget
{
public:
- LocationsTab( TQWidget *parent=0, const char *name=0 );
+ LocationsTab( TQWidget *tqparent=0, const char *name=0 );
~LocationsTab();
void readFlags(TQStringList *str);
@@ -48,10 +48,10 @@ private:
FlagPathEditController *pathController;
};
-class Locations2Tab : public QWidget
+class Locations2Tab : public TQWidget
{
public:
- Locations2Tab( TQWidget *parent=0, const char *name=0 );
+ Locations2Tab( TQWidget *tqparent=0, const char *name=0 );
~Locations2Tab();
void readFlags(TQStringList *str);
@@ -61,10 +61,10 @@ private:
FlagPathEditController *pathController;
};
-class GeneralTab: public QWidget
+class GeneralTab: public TQWidget
{
public:
- GeneralTab( TQWidget *parent=0, const char *name=0 );
+ GeneralTab( TQWidget *tqparent=0, const char *name=0 );
~GeneralTab();
void readFlags(TQStringList *str);
@@ -75,10 +75,10 @@ private:
FlagEditController *editController;
};
-class CodegenTab : public QWidget
+class CodegenTab : public TQWidget
{
public:
- CodegenTab( TQWidget *parent=0, const char *name=0 );
+ CodegenTab( TQWidget *tqparent=0, const char *name=0 );
~CodegenTab();
void readFlags(TQStringList *str);
@@ -90,11 +90,12 @@ private:
FlagRadioButtonController *radioController;
};
-class DebugOptimTab : public QWidget
+class DebugOptimTab : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- DebugOptimTab( TQWidget *parent=0, const char *name=0 );
+ DebugOptimTab( TQWidget *tqparent=0, const char *name=0 );
~DebugOptimTab();
void readFlags(TQStringList *str);
diff --git a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp
index 567d5c86..edcadaee 100644
--- a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp
+++ b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.cpp
@@ -18,8 +18,8 @@
K_EXPORT_COMPONENT_FACTORY( libkdevfpcoptions, KGenericFactory<FpcOptionsPlugin>( "kdevfpcoptions" ) )
-FpcOptionsPlugin::FpcOptionsPlugin(TQObject *parent, const char *name, const TQStringList& /*args*/)
- : KDevCompilerOptions(parent, name)
+FpcOptionsPlugin::FpcOptionsPlugin(TQObject *tqparent, const char *name, const TQStringList& /*args*/)
+ : KDevCompilerOptions(tqparent, name)
{
}
@@ -27,9 +27,9 @@ FpcOptionsPlugin::~FpcOptionsPlugin()
{
}
-TQString FpcOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
+TQString FpcOptionsPlugin::exec(TQWidget *tqparent, const TQString &flags)
{
- FpcOptionsDialog *dlg = new FpcOptionsDialog(parent, "fpc options dialog");
+ FpcOptionsDialog *dlg = new FpcOptionsDialog(tqparent, "fpc options dialog");
TQString newFlags = flags;
dlg->setFlags(flags);
if (dlg->exec() == TQDialog::Accepted)
@@ -40,8 +40,8 @@ TQString FpcOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
-FpcOptionsDialog::FpcOptionsDialog( TQWidget *parent, const char *name )
- : KDialogBase(Tabbed, i18n("Free Pascal Compiler Options"), Ok|Cancel, Ok, parent, name, true)
+FpcOptionsDialog::FpcOptionsDialog( TQWidget *tqparent, const char *name )
+ : KDialogBase(Tabbed, i18n("Free Pascal Compiler Options"), Ok|Cancel, Ok, tqparent, name, true)
{
TQVBox *vbox;
diff --git a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h
index 55e65321..6d450569 100644
--- a/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h
+++ b/languages/pascal/compiler/fpcoptions/fpcoptionsplugin.h
@@ -18,12 +18,13 @@
class FpcOptionsPlugin : public KDevCompilerOptions
{
Q_OBJECT
+ TQ_OBJECT
public:
- FpcOptionsPlugin( TQObject *parent, const char *name, const TQStringList &args );
+ FpcOptionsPlugin( TQObject *tqparent, const char *name, const TQStringList &args );
~FpcOptionsPlugin();
- virtual TQString exec(TQWidget *parent, const TQString &flags);
+ virtual TQString exec(TQWidget *tqparent, const TQString &flags);
};
@@ -35,7 +36,7 @@ class CodegenTab;
class FpcOptionsDialog : public KDialogBase
{
public:
- FpcOptionsDialog( TQWidget *parent=0, const char *name=0 );
+ FpcOptionsDialog( TQWidget *tqparent=0, const char *name=0 );
~FpcOptionsDialog();
void setFlags(const TQString &flags);
diff --git a/languages/pascal/compiler/fpcoptions/optiontabs.cpp b/languages/pascal/compiler/fpcoptions/optiontabs.cpp
index 445ab826..5c46ac24 100644
--- a/languages/pascal/compiler/fpcoptions/optiontabs.cpp
+++ b/languages/pascal/compiler/fpcoptions/optiontabs.cpp
@@ -23,17 +23,17 @@
#include "optiontabs.h"
-FeedbackTab::FeedbackTab(TQWidget *parent, const char *name)
- : TQWidget(parent, name), controller(new FlagCheckBoxController(TQStringList::split(",","-v")))
+FeedbackTab::FeedbackTab(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController(TQStringList::split(",","-v")))
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
TQVButtonGroup *output_group = new TQVButtonGroup(i18n("Output"), this);
new FlagCheckBox(output_group, controller,
"-vr", i18n("Format errors like GCC does"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *verbose_group = new TQVButtonGroup(i18n("Verbose"), this);
new FlagCheckBox(verbose_group, controller,
@@ -54,7 +54,7 @@ FeedbackTab::FeedbackTab(TQWidget *parent, const char *name)
"-vd", i18n("Write other debugging info"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *other_group = new TQVButtonGroup(i18n("Other Information"), this);
new FlagCheckBox(other_group, controller,
@@ -74,7 +74,7 @@ FeedbackTab::FeedbackTab(TQWidget *parent, const char *name)
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
FeedbackTab::~FeedbackTab()
@@ -94,12 +94,12 @@ void FeedbackTab::writeFlags(TQStringList *list)
-FilesAndDirectoriesTab::FilesAndDirectoriesTab( TQWidget * parent, const char * name )
- :TQWidget(parent, name), controller(new FlagCheckBoxController()),
+FilesAndDirectoriesTab::FilesAndDirectoriesTab( TQWidget * tqparent, const char * name )
+ :TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
pathController(new FlagPathEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
new FlagPathEdit(this, ":", pathController,
"-Fu", i18n("Unit search path (delimited by \":\"):"));
@@ -110,7 +110,7 @@ FilesAndDirectoriesTab::FilesAndDirectoriesTab( TQWidget * parent, const char *
new FlagPathEdit(this, ":", pathController,
"-Fl", i18n("Library search path (delimited by \":\"):"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
FilesAndDirectoriesTab::~FilesAndDirectoriesTab( )
@@ -131,12 +131,12 @@ void FilesAndDirectoriesTab::writeFlags( TQStringList * str )
pathController->writeFlags(str);
}
-FilesAndDirectoriesTab2::FilesAndDirectoriesTab2( TQWidget * parent, const char * name )
- :TQWidget(parent, name), controller(new FlagCheckBoxController()),
+FilesAndDirectoriesTab2::FilesAndDirectoriesTab2( TQWidget * tqparent, const char * name )
+ :TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
pathController(new FlagPathEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
new FlagPathEdit(this, "", pathController,
"-FE", i18n("Write executables and units in:"));
@@ -145,14 +145,14 @@ FilesAndDirectoriesTab2::FilesAndDirectoriesTab2( TQWidget * parent, const char
new FlagPathEdit(this, "", pathController,
"-o", i18n("Executable name:"), KFile::File);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(20);
+ tqlayout->addSpacing(20);
new FlagPathEdit(this, "", pathController,
"-e", i18n("Location of as and ld programs:"));
new FlagPathEdit(this, "", pathController,
"-FL", i18n("Dynamic linker executable:"), KFile::File);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(20);
+ tqlayout->addSpacing(20);
new FlagPathEdit(this, "", pathController,
"-Fr", i18n("Compiler messages file:"), KFile::File);
@@ -160,7 +160,7 @@ FilesAndDirectoriesTab2::FilesAndDirectoriesTab2( TQWidget * parent, const char
"-Fe", i18n("Write compiler messages to file:"), KFile::File);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
FilesAndDirectoriesTab2::~FilesAndDirectoriesTab2( )
@@ -182,11 +182,11 @@ void FilesAndDirectoriesTab2::writeFlags( TQStringList * str )
}
-LanguageTab::LanguageTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), controller(new FlagCheckBoxController(TQStringList::split(",","-v")))
+LanguageTab::LanguageTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController(TQStringList::split(",","-v")))
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
TQVButtonGroup *compat_group = new TQVButtonGroup(i18n("Pascal Compatibility"), this);
new FlagCheckBox(compat_group, controller,
@@ -198,7 +198,7 @@ LanguageTab::LanguageTab( TQWidget * parent, const char * name )
new FlagCheckBox(compat_group, controller,
"-Sp", i18n("GNU Pascal compatibility mode"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *ccompat_group = new TQVButtonGroup(i18n("C/C++ Compatibility"), this);
new FlagCheckBox(ccompat_group, controller,
@@ -208,7 +208,7 @@ LanguageTab::LanguageTab( TQWidget * parent, const char * name )
new FlagCheckBox(ccompat_group, controller,
"-Sm", i18n("Support C style macros"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *lang_group = new TQVButtonGroup(i18n("Language"), this);
new FlagCheckBox(lang_group, controller,
@@ -221,7 +221,7 @@ LanguageTab::LanguageTab( TQWidget * parent, const char * name )
"-St", i18n("Allow the static keyword in objects"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
LanguageTab::~ LanguageTab( )
@@ -239,14 +239,14 @@ void LanguageTab::writeFlags( TQStringList * str )
controller->writeFlags(str);
}
-AssemblerTab::AssemblerTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), controller(new FlagCheckBoxController()),
+AssemblerTab::AssemblerTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
asmController(new FlagRadioButtonController)
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
-// layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+// tqlayout->setAutoAdd(true);
- TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *tqlayout2 = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
TQVButtonGroup *info_group = new TQVButtonGroup(i18n("Assembler Info"), this);
new FlagCheckBox(info_group, controller,
@@ -257,9 +257,9 @@ AssemblerTab::AssemblerTab( TQWidget * parent, const char * name )
"-ar", i18n("List register allocation and release info"));
new FlagCheckBox(info_group, controller,
"-at", i18n("List temporary allocations and deallocations"));
- layout2->addWidget(info_group);
+ tqlayout2->addWidget(info_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- //layout->addSpacing(10);
+ //tqlayout->addSpacing(10);
TQVButtonGroup *asmkind_group = new TQVButtonGroup(i18n("Assembler Reader"), this);
TQRadioButton *m_defaultkind = new TQRadioButton(i18n("Use default reader"), asmkind_group);
@@ -270,9 +270,9 @@ AssemblerTab::AssemblerTab( TQWidget * parent, const char * name )
"-Rintel", i18n("Intel style assembler"));
new FlagRadioButton(asmkind_group, asmController,
"-Rdirect", i18n("Direct assembler"));
- layout2->addWidget(asmkind_group);
+ tqlayout2->addWidget(asmkind_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *asm_group = new TQVButtonGroup(i18n("Assembler Output"), this);
@@ -298,10 +298,10 @@ AssemblerTab::AssemblerTab( TQWidget * parent, const char * name )
"-Acoff", i18n("Use coff"));
new FlagRadioButton(asm_group, asmController,
"-Apecoff", i18n("Use pecoff"));
- layout->addWidget(asm_group);
+ tqlayout->addWidget(asm_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
AssemblerTab::~ AssemblerTab( )
@@ -324,16 +324,16 @@ void AssemblerTab::writeFlags( TQStringList * str )
-DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), controller(new FlagCheckBoxController()),
+DebugOptimTab::DebugOptimTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
optimController(new FlagRadioButtonController)
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
-// layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+// tqlayout->setAutoAdd(true);
- TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *tqlayout2 = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
- TQBoxLayout *layout3 = new TQVBoxLayout(layout2, KDialog::spacingHint());
+ TQBoxLayout *tqlayout3 = new TQVBoxLayout(tqlayout2, KDialog::spacingHint());
TQVButtonGroup *debug_group = new TQVButtonGroup(i18n("Debugging"), this);
new FlagCheckBox(debug_group, controller,
@@ -346,18 +346,18 @@ DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
"-gh", i18n("Use heaptrc unit"), "-!gh");
new FlagCheckBox(debug_group, controller,
"-gc", i18n("Generate checks for pointers"), "-!gc");
- layout3->addWidget(debug_group);
+ tqlayout3->addWidget(debug_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout3->addSpacing(10);
+ tqlayout3->addSpacing(10);
TQVButtonGroup *profile_group = new TQVButtonGroup(i18n("Profiling"), this);
new FlagCheckBox(profile_group, controller,
"-pg", i18n("Generate profiler code for gprof"), "-!pg");
- layout3->addWidget(profile_group);
+ tqlayout3->addWidget(profile_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout3->addSpacing(10);
+ tqlayout3->addSpacing(10);
- TQBoxLayout *layout4 = new TQVBoxLayout(layout2, KDialog::spacingHint());
+ TQBoxLayout *tqlayout4 = new TQVBoxLayout(tqlayout2, KDialog::spacingHint());
TQVButtonGroup *optim_group1 = new TQVButtonGroup(i18n("General Optimization"), this);
m_default = new TQRadioButton(i18n("Default"), optim_group1);
@@ -366,9 +366,9 @@ DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
"-Og", i18n("Generate smaller code"));
optim1 = new FlagRadioButton(optim_group1, optimController,
"-OG", i18n("Generate faster code"));
- layout4->addWidget(optim_group1);
+ tqlayout4->addWidget(optim_group1);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout4->addSpacing(10);
+ tqlayout4->addSpacing(10);
TQVButtonGroup *optim_group2 = new TQVButtonGroup(i18n("Optimization Levels"), this);
m_default2 = new TQRadioButton(i18n("Default"), optim_group2);
@@ -379,11 +379,11 @@ DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
"-O2", i18n("Level 2"));
optim2 = new FlagRadioButton(optim_group2, optimController,
"-O3", i18n("Level 3"));
- layout4->addWidget(optim_group2);
+ tqlayout4->addWidget(optim_group2);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout4->addSpacing(10);
+ tqlayout4->addSpacing(10);
- TQHBoxLayout *layout5 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQHBoxLayout *tqlayout5 = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
TQVButtonGroup *optim_group3 = new TQVButtonGroup(i18n("Architecture"), this);
m_default3 = new TQRadioButton(i18n("Default"), optim_group3);
@@ -394,7 +394,7 @@ DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
"-Op2", i18n("Pentium/PentiumMMX"));
new FlagRadioButton(optim_group3, optimController,
"-Op2", i18n("PentiumPro/PII/Cyrix 6x86/K6"));
- layout5->addWidget(optim_group3);
+ tqlayout5->addWidget(optim_group3);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
TQVButtonGroup *optim_group4 = new TQVButtonGroup(i18n("Another Optimization"), this);
@@ -402,18 +402,18 @@ DebugOptimTab::DebugOptimTab( TQWidget * parent, const char * name )
"-Or", i18n("Use register variables"), "-!Or");
new FlagCheckBox(optim_group4, controller,
"-Ou", i18n("Uncertain optimizations"), "-!Ou");
- layout5->addWidget(optim_group4);
+ tqlayout5->addWidget(optim_group4);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- TQHBoxLayout *layout6 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQHBoxLayout *tqlayout6 = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
TQPushButton *release = new TQPushButton(i18n("Release"), this);
TQPushButton *debug = new TQPushButton(i18n("Debug"), this);
- layout6->addWidget(release);
- layout6->addWidget(debug);
+ tqlayout6->addWidget(release);
+ tqlayout6->addWidget(debug);
connect(release, TQT_SIGNAL(clicked()), this, TQT_SLOT(setReleaseOptions()));
connect(debug, TQT_SIGNAL(clicked()), this, TQT_SLOT(setDebugOptions()));
- layout->addStretch();
+ tqlayout->addStretch();
}
DebugOptimTab::~ DebugOptimTab( )
@@ -454,12 +454,12 @@ void DebugOptimTab::setDebugOptions()
// m_default3->setChecked(true);
}
-CodegenTab::CodegenTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), controller(new FlagCheckBoxController()),
+CodegenTab::CodegenTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
listController(new FlagEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
TQVButtonGroup *compile_group = new TQVButtonGroup(i18n("Compile Time Checks"), this);
new FlagCheckBox(compile_group, controller,
@@ -467,7 +467,7 @@ CodegenTab::CodegenTab( TQWidget * parent, const char * name )
new FlagCheckBox(compile_group, controller,
"-Un", i18n("Do not check the unit name for being the same as the file name"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *run_group = new TQVButtonGroup(i18n("Run Time Checks"), this);
new FlagCheckBox(run_group, controller,
@@ -479,14 +479,14 @@ CodegenTab::CodegenTab( TQWidget * parent, const char * name )
new FlagCheckBox(run_group, controller,
"-Co", i18n("Integer overflow checking"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
new FlagListEdit(this, ":", listController, "-d", i18n("Conditional defines (delimited by \":\"):"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
new FlagListEdit(this, ":", listController, "-u", i18n("Undefine conditional defines (delimited by \":\"):"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
new FlagSpinEdit(this, 1024, 67107840, 1, 131072, listController,
"-Cs", i18n("Stack size:"));
@@ -494,7 +494,7 @@ CodegenTab::CodegenTab( TQWidget * parent, const char * name )
"-Ch", i18n("Heap size:"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
CodegenTab::~ CodegenTab( )
@@ -515,13 +515,13 @@ void CodegenTab::writeFlags( TQStringList * str )
listController->writeFlags(str);
}
-LinkerTab::LinkerTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), controller(new FlagCheckBoxController()),
+LinkerTab::LinkerTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
listController(new FlagEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- TQBoxLayout *layout2 = new TQHBoxLayout(layout, KDialog::spacingHint());
+ TQBoxLayout *tqlayout2 = new TQHBoxLayout(tqlayout, KDialog::spacingHint());
TQVButtonGroup *link_group = new TQVButtonGroup(i18n("Linking Stage"), this);
new FlagCheckBox(link_group, controller,
@@ -534,7 +534,7 @@ LinkerTab::LinkerTab( TQWidget * parent, const char * name )
"-Cn", i18n("Omit the linking stage"));
new FlagCheckBox(link_group, controller,
"-s", i18n("Create assembling and linking script"));
- layout2->addWidget(link_group);
+ tqlayout2->addWidget(link_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
TQVButtonGroup *exec_group = new TQVButtonGroup(i18n("Executable Generation"), this);
@@ -548,15 +548,15 @@ LinkerTab::LinkerTab( TQWidget * parent, const char * name )
"-XD", i18n("Link with dynamic libraries"));
new FlagCheckBox(exec_group, controller,
"-Xc", i18n("Link with the C library"));
- layout2->addWidget(exec_group);
+ tqlayout2->addWidget(exec_group);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
FlagListEdit *led = new FlagListEdit(this, ":", listController, "-k", i18n("Options passed to the linker (delimited by \":\"):"));
- layout->addWidget(led);
+ tqlayout->addWidget(led);
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addStretch();
+ tqlayout->addStretch();
}
LinkerTab::~LinkerTab( )
@@ -577,14 +577,14 @@ void LinkerTab::writeFlags( TQStringList * str )
listController->writeFlags(str);
}
-MiscTab::MiscTab( TQWidget * parent, const char * name )
- : TQWidget(parent, name), controller(new FlagCheckBoxController()),
+MiscTab::MiscTab( TQWidget * tqparent, const char * name )
+ : TQWidget(tqparent, name), controller(new FlagCheckBoxController()),
radioController(new FlagRadioButtonController()),
pathController(new FlagPathEditController()),
editController(new FlagEditController())
{
- TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- layout->setAutoAdd(true);
+ TQBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ tqlayout->setAutoAdd(true);
new FlagCheckBox(this, controller,
"-B", i18n("Recompile all used units"));
@@ -595,7 +595,7 @@ MiscTab::MiscTab( TQWidget * parent, const char * name )
new FlagSpinEdit(this, 1, 1000, 1, 50, editController,
"-Se", i18n("Stop after the error:"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *browser_group = new TQVButtonGroup(i18n("Browser Info"), this);
TQRadioButton *m_defaultBrowser = new TQRadioButton(i18n("No browser info"), browser_group);
@@ -605,7 +605,7 @@ MiscTab::MiscTab( TQWidget * parent, const char * name )
new FlagRadioButton(browser_group, radioController,
"-bl", i18n("Global and local browser info"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
TQVButtonGroup *target_group = new TQVButtonGroup(i18n("Target OS"), this);
TQRadioButton *m_defaultTarget = new TQRadioButton(i18n("Default"), target_group);
@@ -625,9 +625,9 @@ MiscTab::MiscTab( TQWidget * parent, const char * name )
new FlagRadioButton(target_group, radioController,
"-TBEOS", i18n("BeOS"));
TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
- layout->addSpacing(10);
+ tqlayout->addSpacing(10);
- layout->addStretch();
+ tqlayout->addStretch();
}
MiscTab::~ MiscTab( )
diff --git a/languages/pascal/compiler/fpcoptions/optiontabs.h b/languages/pascal/compiler/fpcoptions/optiontabs.h
index acb446b3..9d0e0f07 100644
--- a/languages/pascal/compiler/fpcoptions/optiontabs.h
+++ b/languages/pascal/compiler/fpcoptions/optiontabs.h
@@ -21,10 +21,10 @@ class FlagRadioButtonController;
class FlagPathEditController;
class FlagEditController;
-class FeedbackTab : public QWidget
+class FeedbackTab : public TQWidget
{
public:
- FeedbackTab( TQWidget *parent=0, const char *name=0 );
+ FeedbackTab( TQWidget *tqparent=0, const char *name=0 );
~FeedbackTab();
void readFlags(TQStringList *str);
@@ -34,10 +34,10 @@ private:
FlagCheckBoxController *controller;
};
-class FilesAndDirectoriesTab: public QWidget
+class FilesAndDirectoriesTab: public TQWidget
{
public:
- FilesAndDirectoriesTab( TQWidget *parent = 0, const char *name = 0);
+ FilesAndDirectoriesTab( TQWidget *tqparent = 0, const char *name = 0);
~FilesAndDirectoriesTab();
void readFlags(TQStringList *str);
@@ -48,10 +48,10 @@ private:
FlagPathEditController *pathController;
};
-class FilesAndDirectoriesTab2: public QWidget
+class FilesAndDirectoriesTab2: public TQWidget
{
public:
- FilesAndDirectoriesTab2( TQWidget *parent = 0, const char *name = 0);
+ FilesAndDirectoriesTab2( TQWidget *tqparent = 0, const char *name = 0);
~FilesAndDirectoriesTab2();
void readFlags(TQStringList *str);
@@ -62,10 +62,10 @@ private:
FlagPathEditController *pathController;
};
-class LanguageTab : public QWidget
+class LanguageTab : public TQWidget
{
public:
- LanguageTab( TQWidget *parent=0, const char *name=0 );
+ LanguageTab( TQWidget *tqparent=0, const char *name=0 );
~LanguageTab();
void readFlags(TQStringList *str);
@@ -75,10 +75,10 @@ private:
FlagCheckBoxController *controller;
};
-class AssemblerTab : public QWidget
+class AssemblerTab : public TQWidget
{
public:
- AssemblerTab( TQWidget *parent=0, const char *name=0 );
+ AssemblerTab( TQWidget *tqparent=0, const char *name=0 );
~AssemblerTab();
void readFlags(TQStringList *str);
@@ -89,11 +89,12 @@ private:
FlagRadioButtonController *asmController;
};
-class DebugOptimTab : public QWidget
+class DebugOptimTab : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- DebugOptimTab( TQWidget *parent=0, const char *name=0 );
+ DebugOptimTab( TQWidget *tqparent=0, const char *name=0 );
~DebugOptimTab();
void readFlags(TQStringList *str);
@@ -114,10 +115,10 @@ private slots:
void setDebugOptions();
};
-class CodegenTab : public QWidget
+class CodegenTab : public TQWidget
{
public:
- CodegenTab( TQWidget *parent=0, const char *name=0 );
+ CodegenTab( TQWidget *tqparent=0, const char *name=0 );
~CodegenTab();
void readFlags(TQStringList *str);
@@ -128,10 +129,10 @@ private:
FlagEditController *listController;
};
-class LinkerTab : public QWidget
+class LinkerTab : public TQWidget
{
public:
- LinkerTab( TQWidget *parent=0, const char *name=0 );
+ LinkerTab( TQWidget *tqparent=0, const char *name=0 );
~LinkerTab();
void readFlags(TQStringList *str);
@@ -142,10 +143,10 @@ private:
FlagEditController *listController;
};
-class MiscTab : public QWidget
+class MiscTab : public TQWidget
{
public:
- MiscTab( TQWidget *parent=0, const char *name=0 );
+ MiscTab( TQWidget *tqparent=0, const char *name=0 );
~MiscTab();
void readFlags(TQStringList *str);
diff --git a/languages/pascal/configproblemreporter.ui b/languages/pascal/configproblemreporter.ui
index a215f7a8..7fd5275e 100644
--- a/languages/pascal/configproblemreporter.ui
+++ b/languages/pascal/configproblemreporter.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>ConfigureProblemReporter</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ConfigureProblemReporter</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>bgParserCheckbox</cstring>
</property>
@@ -24,7 +24,7 @@
<string>&amp;Enable background parsing</string>
</property>
</widget>
- <widget class="QSlider">
+ <widget class="TQSlider">
<property name="name">
<cstring>delaySlider</cstring>
</property>
@@ -57,7 +57,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>0</width>
<height>101</height>
@@ -77,12 +77,12 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>init()</slot>
<slot>destroy()</slot>
<slot>accept()</slot>
<slot>bgParserCheckbox_toggled( bool b )</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/pascal/pascal.g b/languages/pascal/pascal.g
index fde5dcb8..1c1209b5 100644
--- a/languages/pascal/pascal.g
+++ b/languages/pascal/pascal.g
@@ -59,7 +59,7 @@ options {
*
* One of the principles here is that any time you have a list of
* stuff, you usually want to treat it like one thing (a list) a some
- * point in the grammar. You want trees to have a fixed number of children
+ * point in the grammar. You want trees to have a fixed number of tqchildren
* as much as possible. For example, the definition of a procedure should
* be something like #(PROCEDURE ID #(ARGDECLS ARG1 ARG2...)) not
* #(PROCEDURE ID ARG1 ARG2 ... ) since this is harder to parse and
diff --git a/languages/pascal/pascalsupport_part.cpp b/languages/pascal/pascalsupport_part.cpp
index 0d8c049b..57ef642d 100644
--- a/languages/pascal/pascalsupport_part.cpp
+++ b/languages/pascal/pascalsupport_part.cpp
@@ -47,8 +47,8 @@ typedef KDevGenericFactory<PascalSupportPart> PascalSupportFactory;
static const KDevPluginInfo data("kdevpascalsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevpascalsupport, PascalSupportFactory( data ) )
-PascalSupportPart::PascalSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport(&data, parent, name ? name : "KDevPascalSupport" ),
+PascalSupportPart::PascalSupportPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport(&data, tqparent, name ? name : "KDevPascalSupport" ),
d( new PascalSupportPartData() )
{
setInstance(PascalSupportFactory::instance());
@@ -138,7 +138,7 @@ void PascalSupportPart::addedFilesToProject(const TQStringList &fileList)
{
TQString fn = project()->projectDirectory() + "/" + *it;
maybeParse( fn );
- kapp->processEvents( 500 );
+ kapp->tqprocessEvents( 500 );
emit addedSourceInfo(fn);
}
}
@@ -173,7 +173,7 @@ void PascalSupportPart::initialParse( )
for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it){
TQString fn = project()->projectDirectory() + "/" + *it;
maybeParse( fn );
- kapp->processEvents( 500 );
+ kapp->tqprocessEvents( 500 );
}
emit updatedSourceInfo();
@@ -191,7 +191,7 @@ void PascalSupportPart::maybeParse( const TQString & fileName )
if( !mime || mime->name() != "text/x-pascal" )
return;
- mainWindow()->statusBar()->message( i18n("Parsing file: %1").arg(fileName) );
+ mainWindow()->statusBar()->message( i18n("Parsing file: %1").tqarg(fileName) );
parse( fileName );
}
@@ -256,10 +256,10 @@ TQString PascalSupportPart::formatTag( const Tag & inputTag )
switch( tag.kind() )
{
case Tag::Kind_Namespace:
- return TQString::fromLatin1("unit ") + tag.name();
+ return TQString::tqfromLatin1("unit ") + tag.name();
case Tag::Kind_Class:
- return TQString::fromLatin1("class ") + tag.name();
+ return TQString::tqfromLatin1("class ") + tag.name();
case Tag::Kind_Function:
case Tag::Kind_FunctionDeclaration:
@@ -271,7 +271,7 @@ TQString PascalSupportPart::formatTag( const Tag & inputTag )
case Tag::Kind_Variable:
case Tag::Kind_VariableDeclaration:
{
- return TQString::fromLatin1("var ") + tag.name();
+ return TQString::tqfromLatin1("var ") + tag.name();
}
break;
}
diff --git a/languages/pascal/pascalsupport_part.h b/languages/pascal/pascalsupport_part.h
index 4b9e2a69..3ad9ee39 100644
--- a/languages/pascal/pascalsupport_part.h
+++ b/languages/pascal/pascalsupport_part.h
@@ -22,8 +22,9 @@ class PascalSupportPartData;
class PascalSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- PascalSupportPart(TQObject *parent, const char *name, const TQStringList &);
+ PascalSupportPart(TQObject *tqparent, const char *name, const TQStringList &);
~PascalSupportPart();
virtual Features features();
diff --git a/languages/pascal/problemreporter.cpp b/languages/pascal/problemreporter.cpp
index 30a65739..4b74164a 100644
--- a/languages/pascal/problemreporter.cpp
+++ b/languages/pascal/problemreporter.cpp
@@ -46,15 +46,15 @@
#include <kdialogbase.h>
-class ProblemItem: public QListViewItem{
+class ProblemItem: public TQListViewItem{
public:
- ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListView* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : TQListViewItem( parent, level, problem, file, line, column ) {}
+ : TQListViewItem( tqparent, level, problem, file, line, column ) {}
- ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListViewItem* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : TQListViewItem( parent, level, problem, file, line, column ) {}
+ : TQListViewItem( tqparent, level, problem, file, line, column ) {}
int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 3 || column == 4 ){
@@ -69,8 +69,8 @@ public:
};
-ProblemReporter::ProblemReporter( PascalSupportPart* part, TQWidget* parent, const char* name )
- : TQListView( parent, name ),
+ProblemReporter::ProblemReporter( PascalSupportPart* part, TQWidget* tqparent, const char* name )
+ : TQListView( tqparent, name ),
m_pascalSupport( part ),
m_editor( 0 ),
m_document( 0 ),
@@ -217,7 +217,7 @@ void ProblemReporter::reportError( TQString message,
new ProblemItem( this,
"error",
- message.replace( TQRegExp("\n"), "" ),
+ message.tqreplace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
@@ -229,7 +229,7 @@ void ProblemReporter::reportWarning( TQString message,
{
new ProblemItem( this,
"warning",
- message.replace( TQRegExp("\n"), "" ),
+ message.tqreplace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
@@ -241,7 +241,7 @@ void ProblemReporter::reportMessage( TQString message,
{
new TQListViewItem( this,
"message",
- message.replace( TQRegExp("\n"), "" ),
+ message.tqreplace( TQRegExp("\n"), "" ),
filename,
TQString::number( line ),
TQString::number( column ) );
diff --git a/languages/pascal/problemreporter.h b/languages/pascal/problemreporter.h
index c00b629c..196d0b74 100644
--- a/languages/pascal/problemreporter.h
+++ b/languages/pascal/problemreporter.h
@@ -36,10 +36,11 @@ namespace KTextEditor{
class Document;
}
-class ProblemReporter: public QListView{
+class ProblemReporter: public TQListView{
Q_OBJECT
+ TQ_OBJECT
public:
- ProblemReporter( PascalSupportPart* part, TQWidget* parent=0, const char* name=0 );
+ ProblemReporter( PascalSupportPart* part, TQWidget* tqparent=0, const char* name=0 );
virtual ~ProblemReporter();
virtual void reportError( TQString message, TQString filename,
diff --git a/languages/perl/README.dox b/languages/perl/README.dox
index f8608a41..09d1f0f0 100644
--- a/languages/perl/README.dox
+++ b/languages/perl/README.dox
@@ -12,7 +12,7 @@ and images.
\maintainer <a href="mailto:willems.luc AT pandora.be">Luc Willems</a>
\feature perl programming language support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
..
diff --git a/languages/perl/doc/perl.toc b/languages/perl/doc/perl.toc
index 84cb8145..05bab529 100644
--- a/languages/perl/doc/perl.toc
+++ b/languages/perl/doc/perl.toc
@@ -14,7 +14,7 @@
<tocsect1 name="Modules: how to write and use" url="man:perlmodlib"/>
<tocsect1 name="Modules: how to install from CPAN" url="man:perlmodinstall"/>
<tocsect1 name="Formats" url="man:perlform"/>
-<tocsect1 name="Unicode Support" url="man:perlunicode"/>
+<tocsect1 name="Unicode Support" url="man:perltqunicode"/>
<tocsect1 name="Locale Support" url="man:perllocale"/>
<tocsect1 name="References Introduction" url="man:perlreftut"/>
<tocsect1 name="References, the rest of the story" url="man:perlref"/>
diff --git a/languages/perl/perlconfigwidget.cpp b/languages/perl/perlconfigwidget.cpp
index e41def0c..58730d05 100644
--- a/languages/perl/perlconfigwidget.cpp
+++ b/languages/perl/perlconfigwidget.cpp
@@ -17,8 +17,8 @@
PerlConfigWidget::PerlConfigWidget(TQDomDocument &projectDom,
- TQWidget *parent, const char *name)
- : PerlConfigWidgetBase(parent, name), dom(projectDom)
+ TQWidget *tqparent, const char *name)
+ : PerlConfigWidgetBase(tqparent, name), dom(projectDom)
{
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevperlsupport/run/interpreter"));
terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevperlsupport/run/terminal"));
diff --git a/languages/perl/perlconfigwidget.h b/languages/perl/perlconfigwidget.h
index 9fbcc804..11b4503d 100644
--- a/languages/perl/perlconfigwidget.h
+++ b/languages/perl/perlconfigwidget.h
@@ -19,9 +19,10 @@
class PerlConfigWidget : public PerlConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- PerlConfigWidget( TQDomDocument &projectDom, TQWidget *parent=0, const char *name=0 );
+ PerlConfigWidget( TQDomDocument &projectDom, TQWidget *tqparent=0, const char *name=0 );
~PerlConfigWidget();
public slots:
diff --git a/languages/perl/perlconfigwidgetbase.ui b/languages/perl/perlconfigwidgetbase.ui
index 8becd0f4..521531fd 100644
--- a/languages/perl/perlconfigwidgetbase.ui
+++ b/languages/perl/perlconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>PerlConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>perl_config_widget</cstring>
</property>
@@ -20,7 +20,7 @@
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>interpreter_label</cstring>
</property>
@@ -31,7 +31,7 @@
<cstring>interpreter_edit</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -43,7 +43,7 @@
<number>0</number>
</property>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>interpreter_edit</cstring>
</property>
@@ -72,7 +72,7 @@
<enum>Minimum</enum>
</property>
</spacer>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>terminal_box</cstring>
</property>
@@ -96,6 +96,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/perl/perlparser.cpp b/languages/perl/perlparser.cpp
index 60cca8f5..4ab48333 100644
--- a/languages/perl/perlparser.cpp
+++ b/languages/perl/perlparser.cpp
@@ -161,11 +161,11 @@ void perlparser::parseLines(TQStringList* lines,const TQString &fileName)
//base matching
if ((basere.search(line)>=0) && (!m_inscript)) {
- TQString parent = basere.cap(1);
- //create child & parent classes
- kdDebug(9016) << "basere match [" << parent << "]" << endl;
+ TQString tqparent = basere.cap(1);
+ //create child & tqparent classes
+ kdDebug(9016) << "basere match [" << tqparent << "]" << endl;
addClass(fileName,lineNo);
- addParentClass(parent);
+ addParentClass(tqparent);
continue;
} else {
if (libre.search(line)>=0) {
@@ -186,11 +186,11 @@ void perlparser::parseLines(TQStringList* lines,const TQString &fileName)
} //base
if ((isare.search(line)>=0) && (!m_inscript)) {
- TQString parent = isare.cap(1);
- //create child & parent classes
- kdDebug(9016) << "isare match [" << parent << "]" << endl;
+ TQString tqparent = isare.cap(1);
+ //create child & tqparent classes
+ kdDebug(9016) << "isare match [" << tqparent << "]" << endl;
addClass(fileName,lineNo);
- addParentClass(parent);
+ addParentClass(tqparent);
continue;
} //isa
@@ -424,11 +424,11 @@ void perlparser::addPackageSub(const TQString& fileName ,int lineNr ,const TQStr
m_lastsub=name;
}
-void perlparser::addParentClass(const TQString& parent)
+void perlparser::addParentClass(const TQString& tqparent)
{
- kdDebug(9016) << "addParentClass[ " << parent << "]" << endl;
+ kdDebug(9016) << "addParentClass[ " << tqparent << "]" << endl;
if (m_lastclass) {
- m_lastclass->addBaseClass(parent);
+ m_lastclass->addBaseClass(tqparent);
} else {
kdDebug(9016) << "addParentClass[ no m_lastclass]" << endl;
}
@@ -437,7 +437,7 @@ void perlparser::addParentClass(const TQString& parent)
void perlparser::addUseLib(const TQString& lib)
{
if (!m_model->hasFile(lib)) {
- if (m_usefiles.findIndex(lib) == -1) {
+ if (m_usefiles.tqfindIndex(lib) == -1) {
//only add if not already parsed or in the list
kdDebug(9016) << "add lib for later parsing [" << lib << "]" << endl;
m_usefiles.append(lib);
@@ -478,7 +478,7 @@ TQString perlparser::findLib( const TQString& lib)
TQString result;
TQString file=lib;
- file.replace( TQRegExp("::"), TQString("/"));
+ file.tqreplace( TQRegExp("::"), TQString("/"));
//find the correct path by using the INC list
TQStringList::Iterator inc = m_INClist.begin();
diff --git a/languages/perl/perlparser.h b/languages/perl/perlparser.h
index b536596b..e2ec4d7e 100644
--- a/languages/perl/perlparser.h
+++ b/languages/perl/perlparser.h
@@ -49,7 +49,7 @@ class perlparser {
void addScriptSub(const TQString& fileName ,int lineNr , const TQString& name, bool privatesub);
void addClassMethod(const TQString& fileName ,int lineNr , const TQString& name , bool privatesub);
void addPackageSub(const TQString& fileName ,int lineNr , const TQString& name, bool privatesub);
- void addParentClass(const TQString& parent);
+ void addParentClass(const TQString& tqparent);
void addScript(const TQString& fileName ,int lineNr , const TQString& name);
void addUseLib(const TQString& lib);
void getPerlINC();
@@ -59,7 +59,7 @@ class perlparser {
bool m_inclass;
TQString m_lastsub;
- TQString m_lastparentclass;
+ TQString m_lasttqparentclass;
TQString m_lastattr;
TQString m_lastpackagename;
TQString m_lastscriptname;
diff --git a/languages/perl/perlsupportpart.cpp b/languages/perl/perlsupportpart.cpp
index d5b0868f..b131af11 100644
--- a/languages/perl/perlsupportpart.cpp
+++ b/languages/perl/perlsupportpart.cpp
@@ -48,8 +48,8 @@ typedef KDevGenericFactory<PerlSupportPart> PerlSupportFactory;
static const KDevPluginInfo data("kdevperlsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevperlsupport, PerlSupportFactory( data ) )
-PerlSupportPart::PerlSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport(&data, parent, name ? name : "PerlSupportPart")
+PerlSupportPart::PerlSupportPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport(&data, tqparent, name ? name : "PerlSupportPart")
{
setInstance(PerlSupportFactory::instance());
@@ -166,7 +166,7 @@ void PerlSupportPart::savedFile(const KURL &fileName)
#if 0 // not needed anymore
kdDebug(9016) << "savedFile()" << endl;
- if (project()->allFiles().contains(fileName.mid ( project()->projectDirectory().length() + 1 ))) {
+ if (project()->allFiles().tqcontains(fileName.mid ( project()->projectDirectory().length() + 1 ))) {
maybeParse(fileName);
emit updatedSourceInfo();
}
@@ -215,7 +215,7 @@ void PerlSupportPart::slotStartInterpreter()
void PerlSupportPart::slotExecuteString()
{
bool ok;
- TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString::null, &ok, 0);
+ TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString(), &ok, 0);
if (ok) {
cmd.prepend("'");
cmd.append("'");
diff --git a/languages/perl/perlsupportpart.h b/languages/perl/perlsupportpart.h
index 11a5f417..dd3a7bfa 100644
--- a/languages/perl/perlsupportpart.h
+++ b/languages/perl/perlsupportpart.h
@@ -19,9 +19,10 @@
class PerlSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- PerlSupportPart( TQObject *parent, const char *name, const TQStringList & );
+ PerlSupportPart( TQObject *tqparent, const char *name, const TQStringList & );
~PerlSupportPart();
protected:
diff --git a/languages/php/README.dox b/languages/php/README.dox
index 14e69997..57d1b1b8 100644
--- a/languages/php/README.dox
+++ b/languages/php/README.dox
@@ -14,7 +14,7 @@ all include files from your script.
\maintainer <a href="mailto:n.escuder AT intra-links.com">Escuder Nicolas</a>
\feature PHP language support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug bugs in <a href="http://bugs.kde.org/buglist.cgi?product=kdevelop&component=php+support&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=Bug+Number">php support component at Bugzilla database</a>
diff --git a/languages/php/data/phpfunctions b/languages/php/data/phpfunctions
index d0897bd5..d43bcb72 100644
--- a/languages/php/data/phpfunctions
+++ b/languages/php/data/phpfunctions
@@ -150,7 +150,7 @@ db:string dblist(void)
db:int dbmopen(string filename, string mode)
db:bool dbmclose(int dbm_identifier)
db:int dbminsert(int dbm_identifier, string key, string value)
-db:int dbmreplace(int dbm_identifier, string key, string value)
+db:int dbmtqreplace(int dbm_identifier, string key, string value)
db:string dbmfetch(int dbm_identifier, string key)
db:int dbmexists(int dbm_identifier, string key)
db:int dbmdelete(int dbm_identifier, string key)
@@ -165,7 +165,7 @@ dba:string dba_firstkey(int handle)
dba:string dba_nextkey(int handle)
dba:bool dba_delete(string key, int handle)
dba:bool dba_insert(string key, string value, int handle)
-dba:bool dba_replace(string key, string value, int handle)
+dba:bool dba_tqreplace(string key, string value, int handle)
dba:bool dba_optimize(int handle)
dba:bool dba_sync(int handle)
dbase:int dbase_open(string name, int mode)
@@ -184,7 +184,7 @@ domxml:string domxml_attrname([int dir_handle])
domxml:class domxml_node(string name)
domxml:string domxml_lastchild([int node])
domxml:string domxml_parent([int node])
-domxml:string domxml_children([int node])
+domxml:string domxml_tqchildren([int node])
domxml:string domxml_getattr([int node,] string attrname)
domxml:bool domxml_setattr([int node,] string attrname, string value)
domxml:array domxml_attributes([int node])
@@ -199,7 +199,7 @@ domxml:string domxml_add_root([int doc_handle,] string name)
domxml:class domxml_new_xmldoc(string version)
domxml:string node_namespace([int node])
domxml:string node_attributes([int node])
-domxml:string node_children([int node])
+domxml:string node_tqchildren([int node])
domxml:class xmltree(string xmldoc)
dotnet:int dotnet_load(string module_name)
exif:string read_exif_data(string filename)
@@ -341,11 +341,11 @@ hw:hwdoc hw_gettext(int link, int objid [, int rootid])
hw:void hw_edittext(int link, hwdoc doc)
hw:hwdoc hw_getcgi(int link, int objid)
hw:int hw_getremote(int link, int objid)
-hw:[array|int] hw_getremotechildren(int link, string objrec)
+hw:[array|int] hw_getremotetqchildren(int link, string objrec)
hw:void hw_setlinkroot(int link, int rootid)
hw:hwdoc hw_pipedocument(int link, int objid)
hw:hwdoc hw_pipecgi(int link, int objid)
-hw:void hw_insertdocument(int link, int parentid, hwdoc doc)
+hw:void hw_insertdocument(int link, int tqparentid, hwdoc doc)
hw:hwdoc hw_new_document(string objrec, string data, int size)
hw:void hw_free_document(hwdoc doc)
hw:void hw_outputdocument(hwdoc doc)
@@ -358,10 +358,10 @@ hw:int hw_documentsize(hwdoc doc)
hw:int hw_document_size(hwdoc doc)
hw:string hw_documentattributes(hwdoc doc)
hw:string hw_document_attributes(hwdoc doc)
-hw:array hw_getparentsobj(int link, int objid)
-hw:array hw_getparents(int link, int objid)
-hw:array hw_children(int link, int objid)
-hw:array hw_childrenobj(int link, int objid)
+hw:array hw_gettqparentsobj(int link, int objid)
+hw:array hw_gettqparents(int link, int objid)
+hw:array hw_tqchildren(int link, int objid)
+hw:array hw_tqchildrenobj(int link, int objid)
hw:array hw_getchildcoll(int link, int objid)
hw:array hw_getchildcollobj(int link, int objid)
hw:int hw_docbyanchor(int link, int anchorid)
@@ -379,8 +379,8 @@ hw:void hw_identify(int link, string username, string password)
hw:array hw_objrec2array(string objrec, [array format])
hw:string hw_array2objrec(array objarr)
hw:array hw_incollections(int link, array objids, array collids, int para)
-hw:void hw_inscoll(int link, int parentid, array objarr)
-hw:void hw_insdoc(int link, int parentid, string objrec [, string text])
+hw:void hw_inscoll(int link, int tqparentid, array objarr)
+hw:void hw_insdoc(int link, int tqparentid, string objrec [, string text])
hw:int hw_getsrcbydestobj(int link, int destid)
hw:int hw_mapid(int link, int serverid, int destid)
hw:string hw_getrellink(int link, int rootid, int sourceid, int destid)
@@ -559,7 +559,7 @@ ldap:array ldap_explode_dn(string dn, int with_attrib)
ldap:string ldap_dn2ufn(string dn)
ldap:int ldap_add(int link, string dn, array entry)
ldap:int ldap_modify(int link, string dn, array entry)
-ldap:int ldap_mod_replace(int link, string dn, array entry)
+ldap:int ldap_mod_tqreplace(int link, string dn, array entry)
ldap:int ldap_mod_add(int link, string dn, array entry)
ldap:int ldap_mod_del(int link, string dn, array entry)
ldap:int ldap_delete(int link, string dn)
@@ -861,7 +861,7 @@ ovrimos:int ovrimos_rollback(int connection_id)
ovrimos:int ovrimos_setoption(int conn_id|result_id, int which, int option, int value)
pcre:int preg_match(string pattern, string subject [, array subpatterns])
pcre:int preg_match_all(string pattern, string subject, array subpatterns [, int order])
-pcre:string preg_replace(string|array regex, string|array replace, string|array subject [, int limit])
+pcre:string preg_tqreplace(string|array regex, string|array tqreplace, string|array subject [, int limit])
pcre:array preg_split(string pattern, string subject [, int limit [, int flags]])
pcre:string preg_quote(string str, string delim_char)
pcre:array preg_grep(string regex, array input)
@@ -928,7 +928,7 @@ pdf:void pdf_setgray(int pdfdoc, double value)
pdf:void pdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue)
pdf:void pdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue)
pdf:void pdf_setrgbcolor(int pdfdoc, double red, double green, double blue)
-pdf:int pdf_add_outline(int pdfdoc, string text [, int parent, int open]);
+pdf:int pdf_add_outline(int pdfdoc, string text [, int tqparent, int open]);
pdf:void pdf_set_transition(int pdfdoc, int transition)
pdf:void pdf_set_duration(int pdfdoc, double duration)
pdf:int pdf_open_gif(int pdf, string giffile)
@@ -1287,7 +1287,7 @@ file:int fseek(int fp, int offset [, int whence])
file:int mkdir(string pathname, int mode)
file:int rmdir(string dirname)
file:int readfile(string filename [, int use_include_path])
-file:int umask([int mask])
+file:int umask([int tqmask])
file:int fpassthru(int fp)
file:int rename(string old_name, string new_name)
file:int unlink(string filename)
@@ -1403,15 +1403,15 @@ rand:int mt_getrandmax(void)
quot_print:string quoted_printable_decode(string str)
reg:int ereg(string pattern, string string [, array registers])
reg:int eregi(string pattern, string string [, array registers])
-reg:string ereg_replace(string pattern, string replacement, string string)
-reg:string eregi_replace(string pattern, string replacement, string string])
+reg:string ereg_tqreplace(string pattern, string replacement, string string)
+reg:string eregi_tqreplace(string pattern, string replacement, string string])
reg:array split(string pattern, string string [, int limit])
reg:array spliti(string pattern, string string [, int limit])
reg:string sql_regcase(string string)
soundex:string soundex(string str)
string:string bin2hex(string data)
-string:int strspn(string str, string mask)
-string:int strcspn(string str, string mask)
+string:int strspn(string str, string tqmask)
+string:int strcspn(string str, string tqmask)
string:string rtrim(string str)
string:string chop(string str)
string:string trim(string str)
@@ -1434,7 +1434,7 @@ string:int strrpos(string haystack, string needle)
string:string strrchr(string haystack, string needle)
string:string chunk_split(string str [, int chunklen [, string ending]])
string:string substr(string str, int start [, int length])
-string:string substr_replace(string str, string repl, int start [, int length])
+string:string substr_tqreplace(string str, string repl, int start [, int length])
string:string quotemeta(string str)
string:int ord(string character)
string:string chr(int ascii)
@@ -1447,7 +1447,7 @@ string:string addcslashes(string str, string charlist)
string:string addslashes(string str)
string:string stripcslashes(string str)
string:string stripslashes(string str)
-string:string str_replace(string needle, string str, string haystack)
+string:string str_tqreplace(string needle, string str, string haystack)
string:string hebrev(string str [, int max_chars_per_line])
string:string hebrevc(string str [, int max_chars_per_line])
string:string nl2br(string str)
@@ -1501,18 +1501,18 @@ swf:void swf_actiongotolabel(string label)
swf:void swf_defineline(int objid, double x1, double y1, double x2, double y2, double width)
swf:void swf_definerect(int objid, double x1, double y1, double x2, double y2, double width)
swf:void swf_definepoly(int obj_id, array coords, int npoints, double width)
-swf:void swf_startshape(int objid)
-swf:void swf_shapelinesolid(double r, double g, double b, double a, double width)
-swf:void swf_shapefilloff(void)
-swf:void swf_shapefillsolid(double r, double g, double b, double a)
-swf:void swf_shapefillbitmapclip(int bitmapid)
-swf:void swf_shapefillbitmaptile(int bitmapid)
-swf:void swf_shapemoveto(double x, double y)
-swf:void swf_shapelineto(double x, double y)
-swf:void swf_shapecurveto(double x1, double y1, double x2, double y2)
-swf:void swf_shapecurveto3(double x1, double y1, double x2, double y2, double x3, double y3)
-swf:void swf_shapearc(double x, double y, double r, double ang1, double ang2)
-swf:void swf_endshape(void)
+swf:void swf_starttqshape(int objid)
+swf:void swf_tqshapelinesolid(double r, double g, double b, double a, double width)
+swf:void swf_tqshapefilloff(void)
+swf:void swf_tqshapefillsolid(double r, double g, double b, double a)
+swf:void swf_tqshapefillbitmapclip(int bitmapid)
+swf:void swf_tqshapefillbitmaptile(int bitmapid)
+swf:void swf_tqshapemoveto(double x, double y)
+swf:void swf_tqshapelineto(double x, double y)
+swf:void swf_tqshapecurveto(double x1, double y1, double x2, double y2)
+swf:void swf_tqshapecurveto3(double x1, double y1, double x2, double y2, double x3, double y3)
+swf:void swf_tqshapearc(double x, double y, double r, double ang1, double ang2)
+swf:void swf_endtqshape(void)
swf:void swf_definefont(int fontid, string name)
swf:void swf_setfont(int fontid)
swf:void swf_fontsize(double height)
diff --git a/languages/php/doc/php.toc b/languages/php/doc/php.toc
index f09df62e..f3feeef8 100644
--- a/languages/php/doc/php.toc
+++ b/languages/php/doc/php.toc
@@ -557,11 +557,11 @@
<tocsect2 name="Predefined Constants" url="recode.constants.php"/>
<tocsect2 name="Recode Functions" url="ref.recode.php"/>
</tocsect1>
-<tocsect1 name="Unicode" url="book.unicode.php">
- <tocsect2 name="Introduction" url="intro.unicode.php"/>
- <tocsect2 name="Installing/Configuring" url="unicode.setup.php"/>
- <tocsect2 name="Predefined Constants" url="unicode.constants.php"/>
- <tocsect2 name="Unicode Functions" url="ref.unicode.php"/>
+<tocsect1 name="Unicode" url="book.tqunicode.php">
+ <tocsect2 name="Introduction" url="intro.tqunicode.php"/>
+ <tocsect2 name="Installing/Configuring" url="tqunicode.setup.php"/>
+ <tocsect2 name="Predefined Constants" url="tqunicode.constants.php"/>
+ <tocsect2 name="Unicode Functions" url="ref.tqunicode.php"/>
</tocsect1>
<tocsect1 name="Exif" url="book.exif.php">
<tocsect2 name="Introduction" url="intro.exif.php"/>
@@ -688,7 +688,7 @@
<tocsect2 name="SWFMorph" url="class.swfmorph.php"/>
<tocsect2 name="SWFMovie" url="class.swfmovie.php"/>
<tocsect2 name="SWFPrebuiltClip" url="class.swfprebuiltclip.php"/>
- <tocsect2 name="SWFShape" url="class.swfshape.php"/>
+ <tocsect2 name="SWFShape" url="class.swftqshape.php"/>
<tocsect2 name="SWFSound" url="class.swfsound.php"/>
<tocsect2 name="SWFSoundInstance" url="class.swfsoundinstance.php"/>
<tocsect2 name="SWFSprite" url="class.swfsprite.php"/>
@@ -806,7 +806,7 @@
<tocsect2 name="DirectoryIterator" url="class.directoryiterator.php"/>
<tocsect2 name="FilterIterator" url="class.filteriterator.php"/>
<tocsect2 name="LimitIterator" url="class.limititerator.php"/>
- <tocsect2 name="ParentIterator" url="class.parentiterator.php"/>
+ <tocsect2 name="ParentIterator" url="class.tqparentiterator.php"/>
<tocsect2 name="RecursiveDirectoryIterator" url="class.recursivedirectoryiterator.php"/>
<tocsect2 name="RecursiveIteratorIterator" url="class.recursiveiteratoriterator.php"/>
<tocsect2 name="SimpleXMLIterator" url="class.simplexmliterator.php"/>
@@ -1477,7 +1477,7 @@
<entry name="zend_thread_id" url="function.zend-thread-id.php"/>
<entry name="zend_version" url="function.zend-version.php"/>
<entry name="Runkit_Sandbox" url="runkit.sandbox.php"/>
-<entry name="Runkit_Sandbox_Parent" url="runkit.sandbox-parent.php"/>
+<entry name="Runkit_Sandbox_Parent" url="runkit.sandbox-tqparent.php"/>
<entry name="runkit_class_adopt" url="function.runkit-class-adopt.php"/>
<entry name="runkit_class_emancipate" url="function.runkit-class-emancipate.php"/>
<entry name="runkit_constant_add" url="function.runkit-constant-add.php"/>
@@ -1629,7 +1629,7 @@
<entry name="newt_checkbox_set_flags" url="function.newt-checkbox-set-flags.php"/>
<entry name="newt_checkbox_set_value" url="function.newt-checkbox-set-value.php"/>
<entry name="newt_checkbox_tree_add_item" url="function.newt-checkbox-tree-add-item.php"/>
-<entry name="newt_checkbox_tree_find_item" url="function.newt-checkbox-tree-find-item.php"/>
+<entry name="newt_checkbox_tree_find_item" url="function.newt-checkbox-tree-tqfind-item.php"/>
<entry name="newt_checkbox_tree_get_current" url="function.newt-checkbox-tree-get-current.php"/>
<entry name="newt_checkbox_tree_get_entry_value" url="function.newt-checkbox-tree-get-entry-value.php"/>
<entry name="newt_checkbox_tree_get_multi_selection" url="function.newt-checkbox-tree-get-multi-selection.php"/>
@@ -1805,7 +1805,7 @@
<entry name="ncurses_meta" url="function.ncurses-meta.php"/>
<entry name="ncurses_mouse_trafo" url="function.ncurses-mouse-trafo.php"/>
<entry name="ncurses_mouseinterval" url="function.ncurses-mouseinterval.php"/>
-<entry name="ncurses_mousemask" url="function.ncurses-mousemask.php"/>
+<entry name="ncurses_mousetqmask" url="function.ncurses-mousetqmask.php"/>
<entry name="ncurses_move_panel" url="function.ncurses-move-panel.php"/>
<entry name="ncurses_move" url="function.ncurses-move.php"/>
<entry name="ncurses_mvaddch" url="function.ncurses-mvaddch.php"/>
@@ -1840,7 +1840,7 @@
<entry name="ncurses_qiflush" url="function.ncurses-qiflush.php"/>
<entry name="ncurses_raw" url="function.ncurses-raw.php"/>
<entry name="ncurses_refresh" url="function.ncurses-refresh.php"/>
-<entry name="ncurses_replace_panel" url="function.ncurses-replace-panel.php"/>
+<entry name="ncurses_replace_panel" url="function.ncurses-tqreplace-panel.php"/>
<entry name="ncurses_reset_prog_mode" url="function.ncurses-reset-prog-mode.php"/>
<entry name="ncurses_reset_shell_mode" url="function.ncurses-reset-shell-mode.php"/>
<entry name="ncurses_resetty" url="function.ncurses-resetty.php"/>
@@ -2245,7 +2245,7 @@
<entry name="dba_open" url="function.dba-open.php"/>
<entry name="dba_optimize" url="function.dba-optimize.php"/>
<entry name="dba_popen" url="function.dba-popen.php"/>
-<entry name="dba_replace" url="function.dba-replace.php"/>
+<entry name="dba_tqreplace" url="function.dba-tqreplace.php"/>
<entry name="dba_sync" url="function.dba-sync.php"/>
<entry name="dbx_close" url="function.dbx-close.php"/>
<entry name="dbx_compare" url="function.dbx-compare.php"/>
@@ -2411,7 +2411,7 @@
<entry name="dbase_numrecords" url="function.dbase-numrecords.php"/>
<entry name="dbase_open" url="function.dbase-open.php"/>
<entry name="dbase_pack" url="function.dbase-pack.php"/>
-<entry name="dbase_replace_record" url="function.dbase-replace-record.php"/>
+<entry name="dbase_replace_record" url="function.dbase-tqreplace-record.php"/>
<entry name="dbplus_add" url="function.dbplus-add.php"/>
<entry name="dbplus_aql" url="function.dbplus-aql.php"/>
<entry name="dbplus_chdir" url="function.dbplus-chdir.php"/>
@@ -2419,7 +2419,7 @@
<entry name="dbplus_curr" url="function.dbplus-curr.php"/>
<entry name="dbplus_errcode" url="function.dbplus-errcode.php"/>
<entry name="dbplus_errno" url="function.dbplus-errno.php"/>
-<entry name="dbplus_find" url="function.dbplus-find.php"/>
+<entry name="dbplus_tqfind" url="function.dbplus-find.php"/>
<entry name="dbplus_first" url="function.dbplus-first.php"/>
<entry name="dbplus_flush" url="function.dbplus-flush.php"/>
<entry name="dbplus_freealllocks" url="function.dbplus-freealllocks.php"/>
@@ -3581,7 +3581,7 @@
<entry name="mb_encode_mimeheader" url="function.mb-encode-mimeheader.php"/>
<entry name="mb_encode_numericentity" url="function.mb-encode-numericentity.php"/>
<entry name="mb_ereg_match" url="function.mb-ereg-match.php"/>
-<entry name="mb_ereg_replace" url="function.mb-ereg-replace.php"/>
+<entry name="mb_ereg_tqreplace" url="function.mb-ereg-tqreplace.php"/>
<entry name="mb_ereg_search_getpos" url="function.mb-ereg-search-getpos.php"/>
<entry name="mb_ereg_search_getregs" url="function.mb-ereg-search-getregs.php"/>
<entry name="mb_ereg_search_init" url="function.mb-ereg-search-init.php"/>
@@ -3590,7 +3590,7 @@
<entry name="mb_ereg_search_setpos" url="function.mb-ereg-search-setpos.php"/>
<entry name="mb_ereg_search" url="function.mb-ereg-search.php"/>
<entry name="mb_ereg" url="function.mb-ereg.php"/>
-<entry name="mb_eregi_replace" url="function.mb-eregi-replace.php"/>
+<entry name="mb_eregi_tqreplace" url="function.mb-eregi-tqreplace.php"/>
<entry name="mb_eregi" url="function.mb-eregi.php"/>
<entry name="mb_get_info" url="function.mb-get-info.php"/>
<entry name="mb_http_input" url="function.mb-http-input.php"/>
@@ -3644,12 +3644,12 @@
<entry name="recode_file" url="function.recode-file.php"/>
<entry name="recode_string" url="function.recode-string.php"/>
<entry name="recode" url="function.recode.php"/>
-<entry name="unicode_decode" url="function.unicode-decode.php"/>
-<entry name="unicode_encode" url="function.unicode-encode.php"/>
-<entry name="unicode_get_error_mode" url="function.unicode-get-error-mode.php"/>
-<entry name="unicode_get_subst_char" url="function.unicode-get-subst-char.php"/>
-<entry name="unicode_set_error_mode" url="function.unicode-set-error-mode.php"/>
-<entry name="unicode_set_subst_char" url="function.unicode-set-subst-char.php"/>
+<entry name="tqunicode_decode" url="function.tqunicode-decode.php"/>
+<entry name="tqunicode_encode" url="function.tqunicode-encode.php"/>
+<entry name="tqunicode_get_error_mode" url="function.tqunicode-get-error-mode.php"/>
+<entry name="tqunicode_get_subst_char" url="function.tqunicode-get-subst-char.php"/>
+<entry name="tqunicode_set_error_mode" url="function.tqunicode-set-error-mode.php"/>
+<entry name="tqunicode_set_subst_char" url="function.tqunicode-set-subst-char.php"/>
<entry name="exif_imagetype" url="function.exif-imagetype.php"/>
<entry name="exif_read_data" url="function.exif-read-data.php"/>
<entry name="exif_tagname" url="function.exif-tagname.php"/>
@@ -3841,7 +3841,7 @@
<entry name="Imagick::getImageFilename" url="function.imagick-getimagefilename.php"/>
<entry name="Imagick::getImageFormat" url="function.imagick-getimageformat.php"/>
<entry name="Imagick::getImageGamma" url="function.imagick-getimagegamma.php"/>
-<entry name="Imagick::getImageGeometry" url="function.imagick-getimagegeometry.php"/>
+<entry name="Imagick::getImageGeometry" url="function.imagick-getimagetqgeometry.php"/>
<entry name="Imagick::getImageGreenPrimary" url="function.imagick-getimagegreenprimary.php"/>
<entry name="Imagick::getImageHeight" url="function.imagick-getimageheight.php"/>
<entry name="Imagick::getImageHistogram" url="function.imagick-getimagehistogram.php"/>
@@ -3853,7 +3853,7 @@
<entry name="Imagick::getImageMagickLicense" url="function.imagick-getimagemagicklicense.php"/>
<entry name="Imagick::getImageMatte" url="function.imagick-getimagematte.php"/>
<entry name="Imagick::getImageMatteColor" url="function.imagick-getimagemattecolor.php"/>
-<entry name="Imagick::getImageOrientation" url="function.imagick-getimageorientation.php"/>
+<entry name="Imagick::getImageQt::Orientation" url="function.imagick-getimageorientation.php"/>
<entry name="Imagick::getImagePage" url="function.imagick-getimagepage.php"/>
<entry name="Imagick::getImagePixelColor" url="function.imagick-getimagepixelcolor.php"/>
<entry name="Imagick::getImageProfile" url="function.imagick-getimageprofile.php"/>
@@ -3980,7 +3980,7 @@
<entry name="Imagick::setImageMatte" url="function.imagick-setimagematte.php"/>
<entry name="Imagick::setImageMatteColor" url="function.imagick-setimagemattecolor.php"/>
<entry name="Imagick::setImageOpacity" url="function.imagick-setimageopacity.php"/>
-<entry name="Imagick::setImageOrientation" url="function.imagick-setimageorientation.php"/>
+<entry name="Imagick::setImageQt::Orientation" url="function.imagick-setimageorientation.php"/>
<entry name="Imagick::setImagePage" url="function.imagick-setimagepage.php"/>
<entry name="Imagick::setImageProfile" url="function.imagick-setimageprofile.php"/>
<entry name="Imagick::setImageProperty" url="function.imagick-setimageproperty.php"/>
@@ -4026,7 +4026,7 @@
<entry name="Imagick::transverseImage" url="function.imagick-transverseimage.php"/>
<entry name="Imagick::trimImage" url="function.imagick-trimimage.php"/>
<entry name="Imagick::uniqueImageColors" url="function.imagick-uniqueimagecolors.php"/>
-<entry name="Imagick::unsharpMaskImage" url="function.imagick-unsharpmaskimage.php"/>
+<entry name="Imagick::unsharpMaskImage" url="function.imagick-unsharptqmaskimage.php"/>
<entry name="Imagick::valid" url="function.imagick-valid.php"/>
<entry name="Imagick::vignetteImage" url="function.imagick-vignetteimage.php"/>
<entry name="Imagick::waveImage" url="function.imagick-waveimage.php"/>
@@ -4067,7 +4067,7 @@
<entry name="ImagickDraw::getStrokeMiterLimit" url="function.imagickdraw-getstrokemiterlimit.php"/>
<entry name="ImagickDraw::getStrokeOpacity" url="function.imagickdraw-getstrokeopacity.php"/>
<entry name="ImagickDraw::getStrokeWidth" url="function.imagickdraw-getstrokewidth.php"/>
-<entry name="ImagickDraw::getTextAlignment" url="function.imagickdraw-gettextalignment.php"/>
+<entry name="ImagickDraw::getTextAlignment" url="function.imagickdraw-gettexttqalignment.php"/>
<entry name="ImagickDraw::getTextAntialias" url="function.imagickdraw-gettextantialias.php"/>
<entry name="ImagickDraw::getTextDecoration" url="function.imagickdraw-gettextdecoration.php"/>
<entry name="ImagickDraw::getTextEncoding" url="function.imagickdraw-gettextencoding.php"/>
@@ -4138,7 +4138,7 @@
<entry name="ImagickDraw::setStrokeOpacity" url="function.imagickdraw-setstrokeopacity.php"/>
<entry name="ImagickDraw::setStrokePatternURL" url="function.imagickdraw-setstrokepatternurl.php"/>
<entry name="ImagickDraw::setStrokeWidth" url="function.imagickdraw-setstrokewidth.php"/>
-<entry name="ImagickDraw::setTextAlignment" url="function.imagickdraw-settextalignment.php"/>
+<entry name="ImagickDraw::setTextAlignment" url="function.imagickdraw-settexttqalignment.php"/>
<entry name="ImagickDraw::setTextAntialias" url="function.imagickdraw-settextantialias.php"/>
<entry name="ImagickDraw::setTextDecoration" url="function.imagickdraw-settextdecoration.php"/>
<entry name="ImagickDraw::setTextEncoding" url="function.imagickdraw-settextencoding.php"/>
@@ -4512,7 +4512,7 @@
<entry name="HaruDoc::getEncoder" url="function.harudoc-getencoder.php"/>
<entry name="HaruDoc::getFont" url="function.harudoc-getfont.php"/>
<entry name="HaruDoc::getInfoAttr" url="function.harudoc-getinfoattr.php"/>
-<entry name="HaruDoc::getPageLayout" url="function.harudoc-getpagelayout.php"/>
+<entry name="HaruDoc::getPageLayout" url="function.harudoc-getpagetqlayout.php"/>
<entry name="HaruDoc::getPageMode" url="function.harudoc-getpagemode.php"/>
<entry name="HaruDoc::getStreamSize" url="function.harudoc-getstreamsize.php"/>
<entry name="HaruDoc::insertPage" url="function.harudoc-insertpage.php"/>
@@ -4534,7 +4534,7 @@
<entry name="HaruDoc::setInfoAttr" url="function.harudoc-setinfoattr.php"/>
<entry name="HaruDoc::setInfoDateAttr" url="function.harudoc-setinfodateattr.php"/>
<entry name="HaruDoc::setOpenAction" url="function.harudoc-setopenaction.php"/>
-<entry name="HaruDoc::setPageLayout" url="function.harudoc-setpagelayout.php"/>
+<entry name="HaruDoc::setPageLayout" url="function.harudoc-setpagetqlayout.php"/>
<entry name="HaruDoc::setPageMode" url="function.harudoc-setpagemode.php"/>
<entry name="HaruDoc::setPagesConfiguration" url="function.harudoc-setpagesconfiguration.php"/>
<entry name="HaruDoc::setPassword" url="function.harudoc-setpassword.php"/>
@@ -4639,7 +4639,7 @@
<entry name="HaruFont::getEncodingName" url="function.harufont-getencodingname.php"/>
<entry name="HaruFont::getFontName" url="function.harufont-getfontname.php"/>
<entry name="HaruFont::getTextWidth" url="function.harufont-gettextwidth.php"/>
-<entry name="HaruFont::getUnicodeWidth" url="function.harufont-getunicodewidth.php"/>
+<entry name="HaruFont::getUnicodeWidth" url="function.harufont-gettqunicodewidth.php"/>
<entry name="HaruFont::getXHeight" url="function.harufont-getxheight.php"/>
<entry name="HaruFont::measureText" url="function.harufont-measuretext.php"/>
<entry name="HaruImage::getBitsPerComponent" url="function.haruimage-getbitspercomponent.php"/>
@@ -4647,11 +4647,11 @@
<entry name="HaruImage::getHeight" url="function.haruimage-getheight.php"/>
<entry name="HaruImage::getSize" url="function.haruimage-getsize.php"/>
<entry name="HaruImage::getWidth" url="function.haruimage-getwidth.php"/>
-<entry name="HaruImage::setColorMask" url="function.haruimage-setcolormask.php"/>
-<entry name="HaruImage::setMaskImage" url="function.haruimage-setmaskimage.php"/>
+<entry name="HaruImage::setColorMask" url="function.haruimage-setcolortqmask.php"/>
+<entry name="HaruImage::setMaskImage" url="function.haruimage-settqmaskimage.php"/>
<entry name="HaruEncoder::getByteType" url="function.haruencoder-getbytetype.php"/>
<entry name="HaruEncoder::getType" url="function.haruencoder-gettype.php"/>
-<entry name="HaruEncoder::getUnicode" url="function.haruencoder-getunicode.php"/>
+<entry name="HaruEncoder::getUnicode" url="function.haruencoder-gettqunicode.php"/>
<entry name="HaruEncoder::getWritingMode" url="function.haruencoder-getwritingmode.php"/>
<entry name="HaruOutline::setDestination" url="function.haruoutline-setdestination.php"/>
<entry name="HaruOutline::setOpened" url="function.haruoutline-setopened.php"/>
@@ -4679,7 +4679,7 @@
<entry name="SWFBitmap->getWidth()" url="function.swfbitmap.getwidth.php"/>
<entry name="SWFButton->addAction()" url="function.swfbutton.addaction.php"/>
<entry name="SWFButton->addASound()" url="function.swfbutton.addasound.php"/>
-<entry name="SWFButton->addShape()" url="function.swfbutton.addshape.php"/>
+<entry name="SWFButton->addShape()" url="function.swfbutton.addtqshape.php"/>
<entry name="SWFButton->__construct()" url="function.swfbutton.construct.php"/>
<entry name="SWFButton->setAction()" url="function.swfbutton.setaction.php"/>
<entry name="SWFButton->setDown()" url="function.swfbutton.setdown.php"/>
@@ -4689,7 +4689,7 @@
<entry name="SWFButton->setUp()" url="function.swfbutton.setup.php"/>
<entry name="SWFDisplayItem->addAction()" url="function.swfdisplayitem.addaction.php"/>
<entry name="SWFDisplayItem->addColor()" url="function.swfdisplayitem.addcolor.php"/>
-<entry name="SWFDisplayItem->endMask()" url="function.swfdisplayitem.endmask.php"/>
+<entry name="SWFDisplayItem->endMask()" url="function.swfdisplayitem.endtqmask.php"/>
<entry name="SWFDisplayItem->getRot()" url="function.swfdisplayitem.getrot.php"/>
<entry name="SWFDisplayItem->getX()" url="function.swfdisplayitem.getx.php"/>
<entry name="SWFDisplayItem->getXScale()" url="function.swfdisplayitem.getxscale.php"/>
@@ -4706,7 +4706,7 @@
<entry name="SWFDisplayItem->scale()" url="function.swfdisplayitem.scale.php"/>
<entry name="SWFDisplayItem->scaleTo()" url="function.swfdisplayitem.scaleto.php"/>
<entry name="SWFDisplayItem->setDepth()" url="function.swfdisplayitem.setdepth.php"/>
-<entry name="SWFDisplayItem->setMaskLevel()" url="function.swfdisplayitem.setmasklevel.php"/>
+<entry name="SWFDisplayItem->setMaskLevel()" url="function.swfdisplayitem.settqmasklevel.php"/>
<entry name="SWFDisplayItem->setMatrix()" url="function.swfdisplayitem.setmatrix.php"/>
<entry name="SWFDisplayItem->setName()" url="function.swfdisplayitem.setname.php"/>
<entry name="SWFDisplayItem->setRatio()" url="function.swfdisplayitem.setratio.php"/>
@@ -4723,7 +4723,7 @@
<entry name="SWFFont->getAscent()" url="function.swffont.getascent.php"/>
<entry name="SWFFont->getDescent()" url="function.swffont.getdescent.php"/>
<entry name="SWFFont->getLeading()" url="function.swffont.getleading.php"/>
-<entry name="SWFFont->getShape()" url="function.swffont.getshape.php"/>
+<entry name="SWFFont->getShape()" url="function.swffont.gettqshape.php"/>
<entry name="SWFFont->getUTF8Width()" url="function.swffont.getutf8width.php"/>
<entry name="SWFFont->getWidth()" url="function.swffont.getwidth.php"/>
<entry name="SWFFontChar->addChars()" url="function.swffontchar.addchars.php"/>
@@ -4731,8 +4731,8 @@
<entry name="SWFGradient->addEntry()" url="function.swfgradient.addentry.php"/>
<entry name="SWFGradient->__construct()" url="function.swfgradient.construct.php"/>
<entry name="SWFMorph->__construct()" url="function.swfmorph.construct.php"/>
-<entry name="SWFMorph->getShape1()" url="function.swfmorph.getshape1.php"/>
-<entry name="SWFMorph->getShape2()" url="function.swfmorph.getshape2.php"/>
+<entry name="SWFMorph->getShape1()" url="function.swfmorph.gettqshape1.php"/>
+<entry name="SWFMorph->getShape2()" url="function.swfmorph.gettqshape2.php"/>
<entry name="SWFMovie->add()" url="function.swfmovie.add.php"/>
<entry name="SWFMovie->addExport()" url="function.swfmovie.addexport.php"/>
<entry name="SWFMovie->addFont()" url="function.swfmovie.addfont.php"/>
@@ -4754,22 +4754,22 @@
<entry name="SWFMovie->streamMP3()" url="function.swfmovie.streammp3.php"/>
<entry name="SWFMovie->writeExports()" url="function.swfmovie.writeexports.php"/>
<entry name="SWFPrebuiltClip->__construct()" url="function.swfprebuiltclip.construct.php"/>
-<entry name="SWFShape->addFill()" url="function.swfshape.addfill.php"/>
-<entry name="SWFShape->__construct()" url="function.swfshape.construct.php"/>
-<entry name="SWFShape->drawArc()" url="function.swfshape.drawarc.php"/>
-<entry name="SWFShape->drawCircle()" url="function.swfshape.drawcircle.php"/>
-<entry name="SWFShape->drawCubic()" url="function.swfshape.drawcubic.php"/>
-<entry name="SWFShape->drawCubicTo()" url="function.swfshape.drawcubicto.php"/>
-<entry name="SWFShape->drawCurve()" url="function.swfshape.drawcurve.php"/>
-<entry name="SWFShape->drawCurveTo()" url="function.swfshape.drawcurveto.php"/>
-<entry name="SWFShape->drawGlyph()" url="function.swfshape.drawglyph.php"/>
-<entry name="SWFShape->drawLine()" url="function.swfshape.drawline.php"/>
-<entry name="SWFShape->drawLineTo()" url="function.swfshape.drawlineto.php"/>
-<entry name="SWFShape->movePen()" url="function.swfshape.movepen.php"/>
-<entry name="SWFShape->movePenTo()" url="function.swfshape.movepento.php"/>
-<entry name="SWFShape->setLeftFill()" url="function.swfshape.setleftfill.php"/>
-<entry name="SWFShape->setLine()" url="function.swfshape.setline.php"/>
-<entry name="SWFShape->setRightFill()" url="function.swfshape.setrightfill.php"/>
+<entry name="SWFShape->addFill()" url="function.swftqshape.addfill.php"/>
+<entry name="SWFShape->__construct()" url="function.swftqshape.construct.php"/>
+<entry name="SWFShape->drawArc()" url="function.swftqshape.drawarc.php"/>
+<entry name="SWFShape->drawCircle()" url="function.swftqshape.drawcircle.php"/>
+<entry name="SWFShape->drawCubic()" url="function.swftqshape.drawcubic.php"/>
+<entry name="SWFShape->drawCubicTo()" url="function.swftqshape.drawcubicto.php"/>
+<entry name="SWFShape->drawCurve()" url="function.swftqshape.drawcurve.php"/>
+<entry name="SWFShape->drawCurveTo()" url="function.swftqshape.drawcurveto.php"/>
+<entry name="SWFShape->drawGlyph()" url="function.swftqshape.drawglyph.php"/>
+<entry name="SWFShape->drawLine()" url="function.swftqshape.drawline.php"/>
+<entry name="SWFShape->drawLineTo()" url="function.swftqshape.drawlineto.php"/>
+<entry name="SWFShape->movePen()" url="function.swftqshape.movepen.php"/>
+<entry name="SWFShape->movePenTo()" url="function.swftqshape.movepento.php"/>
+<entry name="SWFShape->setLeftFill()" url="function.swftqshape.setleftfill.php"/>
+<entry name="SWFShape->setLine()" url="function.swftqshape.setline.php"/>
+<entry name="SWFShape->setRightFill()" url="function.swftqshape.setrightfill.php"/>
<entry name="SWFSound" url="function.swfsound.construct.php"/>
<entry name="SWFSoundInstance->loopCount()" url="function.swfsoundinstance.loopcount.php"/>
<entry name="SWFSoundInstance->loopInPoint()" url="function.swfsoundinstance.loopinpoint.php"/>
@@ -5063,7 +5063,7 @@
<entry name="ps_show_xy" url="function.ps-show-xy.php"/>
<entry name="ps_show2" url="function.ps-show2.php"/>
<entry name="ps_show" url="function.ps-show.php"/>
-<entry name="ps_string_geometry" url="function.ps-string-geometry.php"/>
+<entry name="ps_string_tqgeometry" url="function.ps-string-tqgeometry.php"/>
<entry name="ps_stringwidth" url="function.ps-stringwidth.php"/>
<entry name="ps_stroke" url="function.ps-stroke.php"/>
<entry name="ps_symbol_name" url="function.ps-symbol-name.php"/>
@@ -5096,7 +5096,7 @@
<entry name="swf_definetext" url="function.swf-definetext.php"/>
<entry name="swf_endbutton" url="function.swf-endbutton.php"/>
<entry name="swf_enddoaction" url="function.swf-enddoaction.php"/>
-<entry name="swf_endshape" url="function.swf-endshape.php"/>
+<entry name="swf_endtqshape" url="function.swf-endtqshape.php"/>
<entry name="swf_endsymbol" url="function.swf-endsymbol.php"/>
<entry name="swf_fontsize" url="function.swf-fontsize.php"/>
<entry name="swf_fontslant" url="function.swf-fontslant.php"/>
@@ -5124,20 +5124,20 @@
<entry name="swf_scale" url="function.swf-scale.php"/>
<entry name="swf_setfont" url="function.swf-setfont.php"/>
<entry name="swf_setframe" url="function.swf-setframe.php"/>
-<entry name="swf_shapearc" url="function.swf-shapearc.php"/>
-<entry name="swf_shapecurveto3" url="function.swf-shapecurveto3.php"/>
-<entry name="swf_shapecurveto" url="function.swf-shapecurveto.php"/>
-<entry name="swf_shapefillbitmapclip" url="function.swf-shapefillbitmapclip.php"/>
-<entry name="swf_shapefillbitmaptile" url="function.swf-shapefillbitmaptile.php"/>
-<entry name="swf_shapefilloff" url="function.swf-shapefilloff.php"/>
-<entry name="swf_shapefillsolid" url="function.swf-shapefillsolid.php"/>
-<entry name="swf_shapelinesolid" url="function.swf-shapelinesolid.php"/>
-<entry name="swf_shapelineto" url="function.swf-shapelineto.php"/>
-<entry name="swf_shapemoveto" url="function.swf-shapemoveto.php"/>
+<entry name="swf_tqshapearc" url="function.swf-tqshapearc.php"/>
+<entry name="swf_tqshapecurveto3" url="function.swf-tqshapecurveto3.php"/>
+<entry name="swf_tqshapecurveto" url="function.swf-tqshapecurveto.php"/>
+<entry name="swf_tqshapefillbitmapclip" url="function.swf-tqshapefillbitmapclip.php"/>
+<entry name="swf_tqshapefillbitmaptile" url="function.swf-tqshapefillbitmaptile.php"/>
+<entry name="swf_tqshapefilloff" url="function.swf-tqshapefilloff.php"/>
+<entry name="swf_tqshapefillsolid" url="function.swf-tqshapefillsolid.php"/>
+<entry name="swf_tqshapelinesolid" url="function.swf-tqshapelinesolid.php"/>
+<entry name="swf_tqshapelineto" url="function.swf-tqshapelineto.php"/>
+<entry name="swf_tqshapemoveto" url="function.swf-tqshapemoveto.php"/>
<entry name="swf_showframe" url="function.swf-showframe.php"/>
<entry name="swf_startbutton" url="function.swf-startbutton.php"/>
<entry name="swf_startdoaction" url="function.swf-startdoaction.php"/>
-<entry name="swf_startshape" url="function.swf-startshape.php"/>
+<entry name="swf_starttqshape" url="function.swf-starttqshape.php"/>
<entry name="swf_startsymbol" url="function.swf-startsymbol.php"/>
<entry name="swf_textwidth" url="function.swf-textwidth.php"/>
<entry name="swf_translate" url="function.swf-translate.php"/>
@@ -5288,7 +5288,7 @@
<entry name="parsekit_compile_string" url="function.parsekit-compile-string.php"/>
<entry name="parsekit_func_arginfo" url="function.parsekit-func-arginfo.php"/>
<entry name="class_implements" url="function.class-implements.php"/>
-<entry name="class_parents" url="function.class-parents.php"/>
+<entry name="class_parents" url="function.class-tqparents.php"/>
<entry name="iterator_count" url="function.iterator-count.php"/>
<entry name="iterator_to_array" url="function.iterator-to-array.php"/>
<entry name="spl_autoload_call" url="function.spl-autoload-call.php"/>
@@ -5318,8 +5318,8 @@
<entry name="CachingIterator::rewind" url="cachingiterator.rewind.php"/>
<entry name="CachingIterator::__toString" url="cachingiterator.tostring.php"/>
<entry name="CachingIterator::valid" url="cachingiterator.valid.php"/>
-<entry name="RecursiveCachingIterator::getChildren" url="recursivecachingiterator.getchildren.php"/>
-<entry name="RecursiveCachingIterator::hasChildren" url="recursivecachingiterator.haschildren.php"/>
+<entry name="RecursiveCachingIterator::getChildren" url="recursivecachingiterator.gettqchildren.php"/>
+<entry name="RecursiveCachingIterator::hasChildren" url="recursivecachingiterator.hastqchildren.php"/>
<entry name="DirectoryIterator::__construct" url="directoryiterator.construct.php"/>
<entry name="DirectoryIterator::current" url="directoryiterator.current.php"/>
<entry name="DirectoryIterator::getATime" url="directoryiterator.getatime.php"/>
@@ -5356,12 +5356,12 @@
<entry name="LimitIterator::rewind" url="limititerator.rewind.php"/>
<entry name="LimitIterator::seek" url="limititerator.seek.php"/>
<entry name="LimitIterator::valid" url="limititerator.valid.php"/>
-<entry name="ParentIterator::getChildren" url="parentiterator.getchildren.php"/>
-<entry name="ParentIterator::hasChildren" url="parentiterator.haschildren.php"/>
-<entry name="ParentIterator::next" url="parentiterator.next.php"/>
-<entry name="ParentIterator::rewind" url="parentiterator.rewind.php"/>
-<entry name="RecursiveDirectoryIterator::getChildren" url="recursivedirectoryiterator.getchildren.php"/>
-<entry name="RecursiveDirectoryIterator::hasChildren" url="recursivedirectoryiterator.haschildren.php"/>
+<entry name="ParentIterator::getChildren" url="tqparentiterator.gettqchildren.php"/>
+<entry name="ParentIterator::hasChildren" url="tqparentiterator.hastqchildren.php"/>
+<entry name="ParentIterator::next" url="tqparentiterator.next.php"/>
+<entry name="ParentIterator::rewind" url="tqparentiterator.rewind.php"/>
+<entry name="RecursiveDirectoryIterator::getChildren" url="recursivedirectoryiterator.gettqchildren.php"/>
+<entry name="RecursiveDirectoryIterator::hasChildren" url="recursivedirectoryiterator.hastqchildren.php"/>
<entry name="RecursiveDirectoryIterator::key" url="recursivedirectoryiterator.key.php"/>
<entry name="RecursiveDirectoryIterator::next" url="recursivedirectoryiterator.next.php"/>
<entry name="RecursiveDirectoryIterator::rewind" url="recursivedirectoryiterator.rewind.php"/>
@@ -5373,8 +5373,8 @@
<entry name="RecursiveIteratorIterator::rewind" url="recursiveiteratoriterator.rewind.php"/>
<entry name="RecursiveIteratorIterator::valid" url="recursiveiteratoriterator.valid.php"/>
<entry name="SimpleXMLIterator::current" url="simplexmliterator.current.php"/>
-<entry name="SimpleXMLIterator::getChildren" url="simplexmliterator.getchildren.php"/>
-<entry name="SimpleXMLIterator::hasChildren" url="simplexmliterator.haschildren.php"/>
+<entry name="SimpleXMLIterator::getChildren" url="simplexmliterator.gettqchildren.php"/>
+<entry name="SimpleXMLIterator::hasChildren" url="simplexmliterator.hastqchildren.php"/>
<entry name="SimpleXMLIterator::key" url="simplexmliterator.key.php"/>
<entry name="SimpleXMLIterator::next" url="simplexmliterator.next.php"/>
<entry name="SimpleXMLIterator::rewind" url="simplexmliterator.rewind.php"/>
@@ -5509,7 +5509,7 @@
<entry name="tidy_set_encoding" url="function.tidy-set-encoding.php"/>
<entry name="tidy_setopt" url="function.tidy-setopt.php"/>
<entry name="tidy_warning_count" url="function.tidy-warning-count.php"/>
-<entry name="tidyNode->hasChildren" url="function.tidynode-haschildren.php"/>
+<entry name="tidyNode->hasChildren" url="function.tidynode-hastqchildren.php"/>
<entry name="tidyNode->hasSiblings" url="function.tidynode-hassiblings.php"/>
<entry name="tidyNode->isAsp" url="function.tidynode-isasp.php"/>
<entry name="tidyNode->isComment" url="function.tidynode-iscomment.php"/>
@@ -5517,7 +5517,7 @@
<entry name="tidyNode->isJste" url="function.tidynode-isjste.php"/>
<entry name="tidyNode->isPhp" url="function.tidynode-isphp.php"/>
<entry name="tidyNode->isText" url="function.tidynode-istext.php"/>
-<entry name="tidyNode::getParent" url="function.tidynode-getparent.php"/>
+<entry name="tidyNode::getParent" url="function.tidynode-gettqparent.php"/>
<entry name="token_get_all" url="function.token-get-all.php"/>
<entry name="token_name" url="function.token-name.php"/>
<entry name="base64_decode" url="function.base64-decode.php"/>
@@ -5594,8 +5594,8 @@
<entry name="ftp_systype" url="function.ftp-systype.php"/>
<entry name="hw_Array2Objrec" url="function.hw-array2objrec.php"/>
<entry name="hw_changeobject" url="function.hw-changeobject.php"/>
-<entry name="hw_Children" url="function.hw-children.php"/>
-<entry name="hw_ChildrenObj" url="function.hw-childrenobj.php"/>
+<entry name="hw_Children" url="function.hw-tqchildren.php"/>
+<entry name="hw_ChildrenObj" url="function.hw-tqchildrenobj.php"/>
<entry name="hw_Close" url="function.hw-close.php"/>
<entry name="hw_Connect" url="function.hw-connect.php"/>
<entry name="hw_connection_info" url="function.hw-connection-info.php"/>
@@ -5625,11 +5625,11 @@
<entry name="hw_GetObjectByQueryColl" url="function.hw-getobjectbyquerycoll.php"/>
<entry name="hw_GetObjectByQueryCollObj" url="function.hw-getobjectbyquerycollobj.php"/>
<entry name="hw_GetObjectByQueryObj" url="function.hw-getobjectbyqueryobj.php"/>
-<entry name="hw_GetParents" url="function.hw-getparents.php"/>
-<entry name="hw_GetParentsObj" url="function.hw-getparentsobj.php"/>
+<entry name="hw_GetParents" url="function.hw-gettqparents.php"/>
+<entry name="hw_GetParentsObj" url="function.hw-gettqparentsobj.php"/>
<entry name="hw_getrellink" url="function.hw-getrellink.php"/>
<entry name="hw_GetRemote" url="function.hw-getremote.php"/>
-<entry name="hw_getremotechildren" url="function.hw-getremotechildren.php"/>
+<entry name="hw_getremotetqchildren" url="function.hw-getremotetqchildren.php"/>
<entry name="hw_GetSrcByDestObj" url="function.hw-getsrcbydestobj.php"/>
<entry name="hw_GetText" url="function.hw-gettext.php"/>
<entry name="hw_getusername" url="function.hw-getusername.php"/>
@@ -5661,7 +5661,7 @@
<entry name="hw_api_attribute" url="function.hwapi-attribute.php"/>
<entry name="hw_api->checkin" url="function.hwapi-checkin.php"/>
<entry name="hw_api->checkout" url="function.hwapi-checkout.php"/>
-<entry name="hw_api->children" url="function.hwapi-children.php"/>
+<entry name="hw_api->tqchildren" url="function.hwapi-tqchildren.php"/>
<entry name="hw_api_content->mimetype" url="function.hwapi-content-mimetype.php"/>
<entry name="hw_api_content->read" url="function.hwapi-content-read.php"/>
<entry name="hw_api->content" url="function.hwapi-content.php"/>
@@ -5672,7 +5672,7 @@
<entry name="hw_api->dstofsrcanchor" url="function.hwapi-dstofsrcanchor.php"/>
<entry name="hw_api_error->count" url="function.hwapi-error-count.php"/>
<entry name="hw_api_error->reason" url="function.hwapi-error-reason.php"/>
-<entry name="hw_api->find" url="function.hwapi-find.php"/>
+<entry name="hw_api->tqfind" url="function.hwapi-find.php"/>
<entry name="hw_api->ftstat" url="function.hwapi-ftstat.php"/>
<entry name="hwapi_hgcsp" url="function.hwapi-hgcsp.php"/>
<entry name="hw_api->hwstat" url="function.hwapi-hwstat.php"/>
@@ -5696,11 +5696,11 @@
<entry name="hw_api_object->value" url="function.hwapi-object-value.php"/>
<entry name="hw_api->object" url="function.hwapi-object.php"/>
<entry name="hw_api->objectbyanchor" url="function.hwapi-objectbyanchor.php"/>
-<entry name="hw_api->parents" url="function.hwapi-parents.php"/>
+<entry name="hw_api->tqparents" url="function.hwapi-tqparents.php"/>
<entry name="hw_api_reason->description" url="function.hwapi-reason-description.php"/>
<entry name="hw_api_reason->type" url="function.hwapi-reason-type.php"/>
<entry name="hw_api->remove" url="function.hwapi-remove.php"/>
-<entry name="hw_api->replace" url="function.hwapi-replace.php"/>
+<entry name="hw_api->tqreplace" url="function.hwapi-tqreplace.php"/>
<entry name="hw_api->setcommittedversion" url="function.hwapi-setcommittedversion.php"/>
<entry name="hw_api->srcanchors" url="function.hwapi-srcanchors.php"/>
<entry name="hw_api->srcsofdst" url="function.hwapi-srcsofdst.php"/>
@@ -5727,11 +5727,11 @@
<entry name="HttpMessage::getHeader" url="function.httpmessage-getheader.php"/>
<entry name="HttpMessage::getHeaders" url="function.httpmessage-getheaders.php"/>
<entry name="HttpMessage::getHttpVersion" url="function.httpmessage-gethttpversion.php"/>
-<entry name="HttpMessage::getParentMessage" url="function.httpmessage-getparentmessage.php"/>
+<entry name="HttpMessage::getParentMessage" url="function.httpmessage-gettqparentmessage.php"/>
<entry name="HttpMessage::getRequestMethod" url="function.httpmessage-getrequestmethod.php"/>
<entry name="HttpMessage::getRequestUrl" url="function.httpmessage-getrequesturl.php"/>
<entry name="HttpMessage::getResponseCode" url="function.httpmessage-getresponsecode.php"/>
-<entry name="HttpMessage::getResponseStatus" url="function.httpmessage-getresponsestatus.php"/>
+<entry name="HttpMessage::getResponsetqStatus" url="function.httpmessage-getresponsestatus.php"/>
<entry name="HttpMessage::getType" url="function.httpmessage-gettype.php"/>
<entry name="HttpMessage::guessContentType" url="function.httpmessage-guesscontenttype.php"/>
<entry name="HttpMessage::prepend" url="function.httpmessage-prepend.php"/>
@@ -5743,7 +5743,7 @@
<entry name="HttpMessage::setRequestMethod" url="function.httpmessage-setrequestmethod.php"/>
<entry name="HttpMessage::setRequestUrl" url="function.httpmessage-setrequesturl.php"/>
<entry name="HttpMessage::setResponseCode" url="function.httpmessage-setresponsecode.php"/>
-<entry name="HttpMessage::setResponseStatus" url="function.httpmessage-setresponsestatus.php"/>
+<entry name="HttpMessage::setResponsetqStatus" url="function.httpmessage-setresponsestatus.php"/>
<entry name="HttpMessage::setType" url="function.httpmessage-settype.php"/>
<entry name="HttpMessage::toMessageTypeObject" url="function.httpmessage-tomessagetypeobject.php"/>
<entry name="HttpMessage::toString" url="function.httpmessage-tostring.php"/>
@@ -5788,7 +5788,7 @@
<entry name="HttpRequest::getResponseHeader" url="function.httprequest-getresponseheader.php"/>
<entry name="HttpRequest::getResponseInfo" url="function.httprequest-getresponseinfo.php"/>
<entry name="HttpRequest::getResponseMessage" url="function.httprequest-getresponsemessage.php"/>
-<entry name="HttpRequest::getResponseStatus" url="function.httprequest-getresponsestatus.php"/>
+<entry name="HttpRequest::getResponsetqStatus" url="function.httprequest-getresponsestatus.php"/>
<entry name="HttpRequest::getSslOptions" url="function.httprequest-getssloptions.php"/>
<entry name="HttpRequest::getUrl" url="function.httprequest-geturl.php"/>
<entry name="HttpRequest::resetCookies" url="function.httprequest-resetcookies.php"/>
@@ -5929,7 +5929,7 @@
<entry name="ldap_list" url="function.ldap-list.php"/>
<entry name="ldap_mod_add" url="function.ldap-mod-add.php"/>
<entry name="ldap_mod_del" url="function.ldap-mod-del.php"/>
-<entry name="ldap_mod_replace" url="function.ldap-mod-replace.php"/>
+<entry name="ldap_mod_tqreplace" url="function.ldap-mod-tqreplace.php"/>
<entry name="ldap_modify" url="function.ldap-modify.php"/>
<entry name="ldap_next_attribute" url="function.ldap-next-attribute.php"/>
<entry name="ldap_next_entry" url="function.ldap-next-entry.php"/>
@@ -5951,7 +5951,7 @@
<entry name="notes_create_db" url="function.notes-create-db.php"/>
<entry name="notes_create_note" url="function.notes-create-note.php"/>
<entry name="notes_drop_db" url="function.notes-drop-db.php"/>
-<entry name="notes_find_note" url="function.notes-find-note.php"/>
+<entry name="notes_find_note" url="function.notes-tqfind-note.php"/>
<entry name="notes_header_info" url="function.notes-header-info.php"/>
<entry name="notes_list_msgs" url="function.notes-list-msgs.php"/>
<entry name="notes_mark_read" url="function.notes-mark-read.php"/>
@@ -5970,12 +5970,12 @@
<entry name="Memcache::flush" url="function.memcache-flush.php"/>
<entry name="Memcache::get" url="function.memcache-get.php"/>
<entry name="Memcache::getExtendedStats" url="function.memcache-getextendedstats.php"/>
-<entry name="Memcache::getServerStatus" url="function.memcache-getserverstatus.php"/>
+<entry name="Memcache::getServertqStatus" url="function.memcache-getserverstatus.php"/>
<entry name="Memcache::getStats" url="function.memcache-getstats.php"/>
<entry name="Memcache::getVersion" url="function.memcache-getversion.php"/>
<entry name="Memcache::increment" url="function.memcache-increment.php"/>
<entry name="Memcache::pconnect" url="function.memcache-pconnect.php"/>
-<entry name="Memcache::replace" url="function.memcache-replace.php"/>
+<entry name="Memcache::tqreplace" url="function.memcache-tqreplace.php"/>
<entry name="Memcache::set" url="function.memcache-set.php"/>
<entry name="Memcache::setCompressThreshold" url="function.memcache-setcompressthreshold.php"/>
<entry name="Memcache::setServerParams" url="function.memcache-setserverparams.php"/>
@@ -5992,7 +5992,7 @@
<entry name="udm_crc32" url="function.udm-crc32.php"/>
<entry name="udm_errno" url="function.udm-errno.php"/>
<entry name="udm_error" url="function.udm-error.php"/>
-<entry name="udm_find" url="function.udm-find.php"/>
+<entry name="udm_tqfind" url="function.udm-find.php"/>
<entry name="udm_free_agent" url="function.udm-free-agent.php"/>
<entry name="udm_free_ispell_data" url="function.udm-free-ispell-data.php"/>
<entry name="udm_free_res" url="function.udm-free-res.php"/>
@@ -6250,7 +6250,7 @@
<entry name="msession_create" url="function.msession-create.php"/>
<entry name="msession_destroy" url="function.msession-destroy.php"/>
<entry name="msession_disconnect" url="function.msession-disconnect.php"/>
-<entry name="msession_find" url="function.msession-find.php"/>
+<entry name="msession_tqfind" url="function.msession-find.php"/>
<entry name="msession_get_array" url="function.msession-get-array.php"/>
<entry name="msession_get_data" url="function.msession-get-data.php"/>
<entry name="msession_get" url="function.msession-get.php"/>
@@ -6304,12 +6304,12 @@
<entry name="preg_match_all" url="function.preg-match-all.php"/>
<entry name="preg_match" url="function.preg-match.php"/>
<entry name="preg_quote" url="function.preg-quote.php"/>
-<entry name="preg_replace_callback" url="function.preg-replace-callback.php"/>
-<entry name="preg_replace" url="function.preg-replace.php"/>
+<entry name="preg_replace_callback" url="function.preg-tqreplace-callback.php"/>
+<entry name="preg_tqreplace" url="function.preg-tqreplace.php"/>
<entry name="preg_split" url="function.preg-split.php"/>
-<entry name="ereg_replace" url="function.ereg-replace.php"/>
+<entry name="ereg_tqreplace" url="function.ereg-tqreplace.php"/>
<entry name="ereg" url="function.ereg.php"/>
-<entry name="eregi_replace" url="function.eregi-replace.php"/>
+<entry name="eregi_tqreplace" url="function.eregi-tqreplace.php"/>
<entry name="eregi" url="function.eregi.php"/>
<entry name="split" url="function.split.php"/>
<entry name="spliti" url="function.spliti.php"/>
@@ -6364,10 +6364,10 @@
<entry name="sprintf" url="function.sprintf.php"/>
<entry name="sscanf" url="function.sscanf.php"/>
<entry name="str_getcsv" url="function.str-getcsv.php"/>
-<entry name="str_ireplace" url="function.str-ireplace.php"/>
+<entry name="str_itqreplace" url="function.str-itqreplace.php"/>
<entry name="str_pad" url="function.str-pad.php"/>
<entry name="str_repeat" url="function.str-repeat.php"/>
-<entry name="str_replace" url="function.str-replace.php"/>
+<entry name="str_tqreplace" url="function.str-tqreplace.php"/>
<entry name="str_rot13" url="function.str-rot13.php"/>
<entry name="str_shuffle" url="function.str-shuffle.php"/>
<entry name="str_split" url="function.str-split.php"/>
@@ -6401,7 +6401,7 @@
<entry name="strtr" url="function.strtr.php"/>
<entry name="substr_compare" url="function.substr-compare.php"/>
<entry name="substr_count" url="function.substr-count.php"/>
-<entry name="substr_replace" url="function.substr-replace.php"/>
+<entry name="substr_tqreplace" url="function.substr-tqreplace.php"/>
<entry name="substr" url="function.substr.php"/>
<entry name="trim" url="function.trim.php"/>
<entry name="ucfirst" url="function.ucfirst.php"/>
@@ -6494,7 +6494,7 @@
<entry name="get_declared_classes" url="function.get-declared-classes.php"/>
<entry name="get_declared_interfaces" url="function.get-declared-interfaces.php"/>
<entry name="get_object_vars" url="function.get-object-vars.php"/>
-<entry name="get_parent_class" url="function.get-parent-class.php"/>
+<entry name="get_parent_class" url="function.get-tqparent-class.php"/>
<entry name="interface_exists" url="function.interface-exists.php"/>
<entry name="is_a" url="function.is-a.php"/>
<entry name="is_subclass_of" url="function.is-subclass-of.php"/>
@@ -6571,7 +6571,7 @@
<entry name="is_resource" url="function.is-resource.php"/>
<entry name="is_scalar" url="function.is-scalar.php"/>
<entry name="is_string" url="function.is-string.php"/>
-<entry name="is_unicode" url="function.is-unicode.php"/>
+<entry name="is_tqunicode" url="function.is-tqunicode.php"/>
<entry name="isset" url="function.isset.php"/>
<entry name="print_r" url="function.print-r.php"/>
<entry name="serialize" url="function.serialize.php"/>
@@ -6856,12 +6856,12 @@
<entry name="DomNode->node_type" url="function.domnode-node-type.php"/>
<entry name="DomNode->node_value" url="function.domnode-node-value.php"/>
<entry name="DomNode->owner_document" url="function.domnode-owner-document.php"/>
-<entry name="DomNode->parent_node" url="function.domnode-parent-node.php"/>
+<entry name="DomNode->tqparent_node" url="function.domnode-tqparent-node.php"/>
<entry name="DomNode->prefix" url="function.domnode-prefix.php"/>
<entry name="DomNode->previous_sibling" url="function.domnode-previous-sibling.php"/>
<entry name="DomNode->remove_child" url="function.domnode-remove-child.php"/>
-<entry name="DomNode->replace_child" url="function.domnode-replace-child.php"/>
-<entry name="DomNode->replace_node" url="function.domnode-replace-node.php"/>
+<entry name="DomNode->replace_child" url="function.domnode-tqreplace-child.php"/>
+<entry name="DomNode->replace_node" url="function.domnode-tqreplace-node.php"/>
<entry name="DomNode->set_content" url="function.domnode-set-content.php"/>
<entry name="DomNode->set_name" url="function.domnode-set-name.php"/>
<entry name="DomNode->set_namespace" url="function.domnode-set-namespace.php"/>
@@ -6916,7 +6916,7 @@
<entry name="SimpleXMLElement->addChild()" url="function.simplexml-element-addChild.php"/>
<entry name="SimpleXMLElement->asXML()" url="function.simplexml-element-asXML.php"/>
<entry name="SimpleXMLElement->attributes()" url="function.simplexml-element-attributes.php"/>
-<entry name="SimpleXMLElement->children()" url="function.simplexml-element-children.php"/>
+<entry name="SimpleXMLElement->tqchildren()" url="function.simplexml-element-tqchildren.php"/>
<entry name="SimpleXMLElement->__construct()" url="function.simplexml-element-construct.php"/>
<entry name="SimpleXMLElement->getDocNamespaces()" url="function.simplexml-element-getDocNamespaces.php"/>
<entry name="SimpleXMLElement->getName()" url="function.simplexml-element-getName.php"/>
diff --git a/languages/php/phpcodecompletion.cpp b/languages/php/phpcodecompletion.cpp
index b2b1eb33..8f0a9298 100644
--- a/languages/php/phpcodecompletion.cpp
+++ b/languages/php/phpcodecompletion.cpp
@@ -146,9 +146,9 @@ void PHPCodeCompletion::cursorPositionChanged(){
}
if (m_config->getCodeHinting()) {
- int pos1 = lineStr.findRev("(", col - 1);
- int pos2 = lineStr.findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), pos1 - 1);
- int pos3 = lineStr.findRev(")", col);
+ int pos1 = lineStr.tqfindRev("(", col - 1);
+ int pos2 = lineStr.tqfindRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), pos1 - 1);
+ int pos3 = lineStr.tqfindRev(")", col);
if (pos1 > pos2 && pos1 != -1 && pos3 < pos1) {
TQString line = lineStr.mid(pos2 + 1, pos1 - pos2 - 1).stripWhiteSpace();
@@ -163,7 +163,7 @@ void PHPCodeCompletion::cursorPositionChanged(){
return;
}
- int pos = lineStr.findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
+ int pos = lineStr.tqfindRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
TQString line = lineStr.mid(pos + 1, col - pos).stripWhiteSpace();
if (checkForVariable(line, col)) {
@@ -180,7 +180,7 @@ kdDebug(9018) << "end checkForGlobalFunction" << endl;
return;
}
- pos = lineStr.stripWhiteSpace().findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
+ pos = lineStr.stripWhiteSpace().tqfindRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1);
line = lineStr.mid(pos + 1, col - pos);
if (checkForNew(line, col)) {
@@ -214,7 +214,7 @@ bool PHPCodeCompletion::checkForStaticFunction(TQString line, int col) {
kdDebug(9018) << "checkForStaticFunction" << endl;
TQValueList<KTextEditor::CompletionEntry> list;
- if (line.find("::") == -1)
+ if (line.tqfind("::") == -1)
return false;
TQRegExp Class("([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)::([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
@@ -234,7 +234,7 @@ bool PHPCodeCompletion::checkForStaticFunction(TQString line, int col) {
for (funcIt = funcList.begin(); funcIt != funcList.end(); ++funcIt) {
FunctionDom nFunc = *funcIt;
- if ((function.isEmpty() || nFunc->name().startsWith(function, FALSE)) && nFunc->isStatic()) {
+ if ((function.isEmpty() || nFunc->name().tqstartsWith(function, FALSE)) && nFunc->isStatic()) {
KTextEditor::CompletionEntry e;
e.prefix = nClass->name() + " ::";
e.text = nFunc->name();
@@ -267,7 +267,7 @@ bool PHPCodeCompletion::checkForNew(TQString line, int col){
kdDebug(9018) << "checkForNew" << endl;
TQValueList<KTextEditor::CompletionEntry> list;
- if (line.find("new ", 0, FALSE) == -1)
+ if (line.tqfind("new ", 0, FALSE) == -1)
return false;
TQRegExp New("[& \t]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
@@ -297,7 +297,7 @@ bool PHPCodeCompletion::checkForExtends(TQString line, int col){
kdDebug(9018) << "checkForExtends" << endl;
TQValueList<KTextEditor::CompletionEntry> list;
- if (line.find("extends", 0, FALSE) == -1)
+ if (line.tqfind("extends", 0, FALSE) == -1)
return false;
TQRegExp extends("[ \t]*extends[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)");
@@ -316,12 +316,12 @@ bool PHPCodeCompletion::checkForVariable(TQString line, int col){
TQValueList<KTextEditor::CompletionEntry> list;
TQString args;
- if (line.find("->") == -1) {
+ if (line.tqfind("->") == -1) {
return false;
}
if (line.left(2) != "->") {
- int pos = line.findRev("->");
+ int pos = line.tqfindRev("->");
args = line.mid(pos + 2, line.length() - pos);
line = line.mid(0, pos);
}
@@ -362,10 +362,10 @@ TQValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getClasses(TQString
ClassList::Iterator classIt;
for (classIt = classList.begin(); classIt != classList.end(); ++classIt) {
ClassDom nClass = *classIt;
- if (name == NULL || name.isEmpty() || nClass->name().startsWith(name, FALSE)) {
+ if (name == NULL || name.isEmpty() || nClass->name().tqstartsWith(name, FALSE)) {
KTextEditor::CompletionEntry e;
- TQStringList::Iterator it = added.find(nClass->name());
+ TQStringList::Iterator it = added.tqfind(nClass->name());
if (it == added.end()) {
e.text = nClass->name();
list.append(e);
@@ -383,7 +383,7 @@ TQValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars
if (classname.isEmpty()) {
TQValueList<FunctionCompletionEntry>::Iterator it;
for( it = m_globalFunctions.begin(); it != m_globalFunctions.end(); ++it ) {
- if((*it).text.startsWith(function, FALSE)){
+ if((*it).text.tqstartsWith(function, FALSE)){
KTextEditor::CompletionEntry e;
e = (*it);
list.append(e);
@@ -393,7 +393,7 @@ TQValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars
FunctionList methodList = m_model->globalNamespace()->functionList();
FunctionList::Iterator methodIt;
for (methodIt = methodList.begin(); methodIt != methodList.end(); ++methodIt) {
- if ((*methodIt)->name().startsWith(function, FALSE)){
+ if ((*methodIt)->name().tqstartsWith(function, FALSE)){
KTextEditor::CompletionEntry e;
e.text = (*methodIt)->name();
ArgumentDom pArg = (*methodIt)->argumentList().first();
@@ -416,7 +416,7 @@ TQValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars
FunctionList::Iterator methodIt;
for (methodIt = methodList.begin(); methodIt != methodList.end(); ++methodIt) {
FunctionDom pMethod = *methodIt;
- if (function.isEmpty() || pMethod->name().startsWith(function, FALSE)) {
+ if (function.isEmpty() || pMethod->name().tqstartsWith(function, FALSE)) {
KTextEditor::CompletionEntry e;
ArgumentDom arg = pMethod->argumentList().first();
@@ -430,7 +430,7 @@ TQValueList<KTextEditor::CompletionEntry> PHPCodeCompletion::getFunctionsAndVars
VariableList::Iterator attrIt;
for (attrIt = attrList.begin(); attrIt != attrList.end(); ++attrIt) {
VariableDom pVar = *attrIt;
- if (function.isEmpty() || pVar->name().startsWith(function, FALSE)) {
+ if (function.isEmpty() || pVar->name().tqstartsWith(function, FALSE)) {
KTextEditor::CompletionEntry e;
e.prefix = nClass->name() + " ::";
e.text = pVar->name();
@@ -526,13 +526,13 @@ TQString PHPCodeCompletion::getCurrentClassName() {
return Class.cap(2);
}
}
- return TQString::null;
+ return TQString();
}
TQString PHPCodeCompletion::getClassName(TQString varName, TQString classname) {
kdDebug(9018) << "getClassName " << varName << "::" << classname << endl;
- if (varName.find("$") == 0)
+ if (varName.tqfind("$") == 0)
varName = varName.mid(1);
if (varName.lower() == "this")
@@ -577,7 +577,7 @@ TQString PHPCodeCompletion::getClassName(TQString varName, TQString classname) {
for(int i = m_currentLine; i >= 0; i--){
TQString line = m_editInterface->textLine(i);
- if (!line.isNull() && line.find(varName,0 , FALSE) != -1) {
+ if (!line.isNull() && line.tqfind(varName,0 , FALSE) != -1) {
if (createmember.search(line) != -1) {
TQString right = createmember.cap(1).stripWhiteSpace();
@@ -640,7 +640,7 @@ bool PHPCodeCompletion::checkForArgHint(TQString line, int col) {
if (m_argWidgetShow == true)
return false;
- if (line.find("::") != -1) {
+ if (line.tqfind("::") != -1) {
TQRegExp Static("([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)::([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)");
Static.setCaseSensitive(FALSE);
@@ -658,8 +658,8 @@ bool PHPCodeCompletion::checkForArgHint(TQString line, int col) {
}
}
- if (line.findRev("->") != -1) {
- int pos1 = line.findRev("->");
+ if (line.tqfindRev("->") != -1) {
+ int pos1 = line.tqfindRev("->");
TQString classname;
TQString function = line.mid(pos1 + 2);
@@ -706,7 +706,7 @@ kdDebug(9018) << "checkForArgHint 0 " << line << endl;
}
void PHPCodeCompletion::setStatusBar(TQString expr, TQString type) {
- m_phpSupport->mainWindow()->statusBar()->message( i18n("Type of %1 is %2").arg(expr).arg(type), 1000 );
+ m_phpSupport->mainWindow()->statusBar()->message( i18n("Type of %1 is %2").tqarg(expr).tqarg(type), 1000 );
}
#include "phpcodecompletion.moc"
diff --git a/languages/php/phpcodecompletion.h b/languages/php/phpcodecompletion.h
index 505bdcbd..b036beb7 100644
--- a/languages/php/phpcodecompletion.h
+++ b/languages/php/phpcodecompletion.h
@@ -47,6 +47,7 @@ public:
class PHPCodeCompletion : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
PHPCodeCompletion(PHPSupportPart *phpSupport, PHPConfigData *config);
diff --git a/languages/php/phpconfigdata.h b/languages/php/phpconfigdata.h
index 49c49da8..d43661e1 100644
--- a/languages/php/phpconfigdata.h
+++ b/languages/php/phpconfigdata.h
@@ -30,6 +30,7 @@
class PHPConfigData : public TQObject {
Q_OBJECT
+ TQ_OBJECT
signals:
void configStored();
diff --git a/languages/php/phpconfigwidget.cpp b/languages/php/phpconfigwidget.cpp
index 5b5dfda7..41f3c2fe 100644
--- a/languages/php/phpconfigwidget.cpp
+++ b/languages/php/phpconfigwidget.cpp
@@ -16,8 +16,8 @@
using namespace std;
-PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,TQWidget* parent, const char* name, WFlags fl )
- : PHPConfigWidgetBase( parent, name, fl )
+PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,TQWidget* tqparent, const char* name, WFlags fl )
+ : PHPConfigWidgetBase( tqparent, name, fl )
{
configData = data;
m_phpInfo = "";
@@ -77,7 +77,7 @@ PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,TQWidget* parent, const ch
*/
PHPConfigWidget::~PHPConfigWidget()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
void PHPConfigWidget::accept()
diff --git a/languages/php/phpconfigwidget.h b/languages/php/phpconfigwidget.h
index c404643c..84425de9 100644
--- a/languages/php/phpconfigwidget.h
+++ b/languages/php/phpconfigwidget.h
@@ -9,9 +9,10 @@ class PHPConfigData;
class PHPConfigWidget : public PHPConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- PHPConfigWidget( PHPConfigData* data,TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ PHPConfigWidget( PHPConfigData* data,TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
~PHPConfigWidget();
public slots:
diff --git a/languages/php/phpconfigwidgetbase.ui b/languages/php/phpconfigwidgetbase.ui
index 8cfae9dc..0c926873 100644
--- a/languages/php/phpconfigwidgetbase.ui
+++ b/languages/php/phpconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>PHPConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>PHPConfigWidgetBase</cstring>
</property>
@@ -19,11 +19,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>TabWidget1</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>TabPage</cstring>
</property>
@@ -34,7 +34,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>ButtonGroup1_2</cstring>
</property>
@@ -45,7 +45,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>useCurrentFile_radio</cstring>
</property>
@@ -59,7 +59,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>useDefaultFile_radio</cstring>
</property>
@@ -77,7 +77,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>GroupBox13</cstring>
</property>
@@ -88,7 +88,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>codeCompletion_checkbox</cstring>
</property>
@@ -96,7 +96,7 @@
<string>&amp;Enable code completion</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>codeHinting_checkbox</cstring>
</property>
@@ -106,7 +106,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>GroupBox14</cstring>
</property>
@@ -117,7 +117,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel1_3_3_2_2</cstring>
</property>
@@ -133,7 +133,7 @@
<cstring>include_path_edit</cstring>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>realtimeParsing_checkbox</cstring>
</property>
@@ -153,14 +153,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>170</height>
</size>
</property>
</spacer>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>PixmapLabel1</cstring>
</property>
@@ -181,7 +181,7 @@
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -192,7 +192,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>select_label</cstring>
</property>
@@ -200,7 +200,7 @@
<string>Please select how KDevelop should execute your scripts.</string>
</property>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>ButtonGroup3</cstring>
</property>
@@ -211,7 +211,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>callPHPDirectly_radio</cstring>
</property>
@@ -222,7 +222,7 @@
<string>Ca&amp;lling the PHP interpreter directly</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -230,7 +230,7 @@
<string>&lt;font size="+1"&gt;The php executable is called directly. Ideal for developers who want to develop terminal or graphical applications in PHP.
You need a correctly installed php cgi version.&lt;/font&gt;</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="hAlign" stdset="0">
@@ -238,7 +238,7 @@ You need a correctly installed php cgi version.&lt;/font&gt;</string>
<property name="vAlign" stdset="0">
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>callWebserver_radio</cstring>
</property>
@@ -246,7 +246,7 @@ You need a correctly installed php cgi version.&lt;/font&gt;</string>
<string>Using an &amp;existing webserver (local or remote)</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel1_4</cstring>
</property>
@@ -254,7 +254,7 @@ You need a correctly installed php cgi version.&lt;/font&gt;</string>
<string>&lt;font size="+1"&gt;Uses an existing webserver. The pages are previewed in
the internal web browser. Please make sure that the webserver was compiled with PHP support.&lt;/font&gt;</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="hAlign" stdset="0">
@@ -272,7 +272,7 @@ the internal web browser. Please make sure that the webserver was compiled with
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>171</height>
@@ -281,7 +281,7 @@ the internal web browser. Please make sure that the webserver was compiled with
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -292,7 +292,7 @@ the internal web browser. Please make sure that the webserver was compiled with
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
@@ -318,7 +318,7 @@ the internal web browser. Please make sure that the webserver was compiled with
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -327,7 +327,7 @@ the internal web browser. Please make sure that the webserver was compiled with
</spacer>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -338,7 +338,7 @@ the internal web browser. Please make sure that the webserver was compiled with
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel1_3_2</cstring>
</property>
@@ -349,9 +349,9 @@ the internal web browser. Please make sure that the webserver was compiled with
<cstring>exe_edit</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout7</cstring>
+ <cstring>tqlayout7</cstring>
</property>
<hbox>
<property name="name">
@@ -362,11 +362,11 @@ the internal web browser. Please make sure that the webserver was compiled with
<cstring>exe_edit</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>exe_button</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>22</width>
<height>0</height>
@@ -379,7 +379,7 @@ the internal web browser. Please make sure that the webserver was compiled with
<string>...</string>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>about_button</cstring>
</property>
@@ -389,7 +389,7 @@ the internal web browser. Please make sure that the webserver was compiled with
</widget>
</hbox>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -403,9 +403,9 @@ the internal web browser. Please make sure that the webserver was compiled with
<cstring>ini_edit</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
@@ -419,14 +419,14 @@ the internal web browser. Please make sure that the webserver was compiled with
<bool>true</bool>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>phpini_button</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>20</width>
<height>0</height>
@@ -441,7 +441,7 @@ the internal web browser. Please make sure that the webserver was compiled with
</widget>
</hbox>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>zend_checkbox</cstring>
</property>
@@ -449,9 +449,9 @@ the internal web browser. Please make sure that the webserver was compiled with
<string>Load &amp;Zend extension:</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
@@ -465,14 +465,14 @@ the internal web browser. Please make sure that the webserver was compiled with
<bool>false</bool>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>zend_button</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>20</width>
<height>0</height>
@@ -497,7 +497,7 @@ the internal web browser. Please make sure that the webserver was compiled with
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>343</height>
@@ -550,12 +550,12 @@ the internal web browser. Please make sure that the webserver was compiled with
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>slotAboutClicked()</slot>
<slot>slotPHPExeButtonClicked()</slot>
<slot>slotPHPIniButtonClicked()</slot>
<slot>slotZendButtonClicked()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/php/phperrorview.cpp b/languages/php/phperrorview.cpp
index e5d479ec..241adb44 100644
--- a/languages/php/phperrorview.cpp
+++ b/languages/php/phperrorview.cpp
@@ -56,13 +56,13 @@
class ProblemItem: public KListViewItem
{
public:
- ProblemItem( TQListView* parent, const TQString& problem,
+ ProblemItem( TQListView* tqparent, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, problem, file, line, column ) {}
+ : KListViewItem( tqparent, problem, file, line, column ) {}
- ProblemItem( TQListViewItem* parent, const TQString& problem,
+ ProblemItem( TQListViewItem* tqparent, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, problem, file, line, column ) {}
+ : KListViewItem( tqparent, problem, file, line, column ) {}
int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 2 || column == 3 ){
@@ -77,8 +77,8 @@ public:
};
-PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char* name )
- : TQWidget( parent, name ? name : "problemreporter" ),
+PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name ? name : "problemreporter" ),
m_phpSupport( part ),
m_document( 0 ),
m_markIface( 0 )
@@ -133,8 +133,8 @@ PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char*
m_gridLayout->addWidget(m_tabBar,0,0);
m_gridLayout->addMultiCellWidget(m_widgetStack,1,1,0,2);
- m_gridLayout->addWidget(m_filterLabel,0,1,Qt::AlignRight);
- m_gridLayout->addWidget(m_filterEdit,0,2,Qt::AlignLeft);
+ m_gridLayout->addWidget(m_filterLabel,0,1,TQt::AlignRight);
+ m_gridLayout->addWidget(m_filterEdit,0,2,TQt::AlignLeft);
connect( m_filterEdit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotFilter()) );
connect( m_filterEdit, TQT_SIGNAL(textChanged( const TQString & )), this, TQT_SLOT(slotFilter()) );
@@ -151,7 +151,7 @@ void PHPErrorView::slotFilter()
if(!m_tabBar->isTabEnabled(4))
m_tabBar->setTabEnabled(4,true);
- m_tabBar->tab(4)->setText(i18n("Filtered: %1").arg( m_filterEdit->text() ));
+ m_tabBar->tab(4)->setText(i18n("Filtered: %1").tqarg( m_filterEdit->text() ));
m_tabBar->setCurrentTab(4);
m_filteredList->clear();
@@ -166,7 +166,7 @@ void PHPErrorView::filterList(KListView* listview, const TQString& level)
{
TQListViewItemIterator it( listview );
while ( it.current() ) {
- if ( it.current()->text(3).contains(m_filterEdit->text(),false))
+ if ( it.current()->text(3).tqcontains(m_filterEdit->text(),false))
new KListViewItem(m_filteredList,level,
it.current()->text(0),it.current()->text(1),it.current()->text(2),it.current()->text(3));
++it;
@@ -308,7 +308,7 @@ void PHPErrorView::reportProblem( int level, const TQString& fileName, int line,
}
TQString msg = text;
- msg = msg.replace( TQRegExp("\n"), "" );
+ msg = msg.tqreplace( TQRegExp("\n"), "" );
TQString relFileName = fileName;
relFileName.remove(m_phpSupport->project()->projectDirectory());
@@ -390,7 +390,7 @@ TQString PHPErrorView::levelToString( int level ) const
return TQString( i18n("Fixme") );
default:
- return TQString::null;
+ return TQString();
}
}
diff --git a/languages/php/phperrorview.h b/languages/php/phperrorview.h
index 48dbd846..ec41eb51 100644
--- a/languages/php/phperrorview.h
+++ b/languages/php/phperrorview.h
@@ -56,8 +56,9 @@ enum Errors
class PHPErrorView: public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- PHPErrorView( PHPSupportPart* part, TQWidget* parent=0, const char* name=0 );
+ PHPErrorView( PHPSupportPart* part, TQWidget* tqparent=0, const char* name=0 );
virtual ~PHPErrorView();
void removeAllProblems( const TQString& filename );
diff --git a/languages/php/phpfile.cpp b/languages/php/phpfile.cpp
index d54028da..6e258569 100644
--- a/languages/php/phpfile.cpp
+++ b/languages/php/phpfile.cpp
@@ -138,7 +138,7 @@ void PHPFile::Analyse() {
}
bool PHPFile::ParseClass(TQString line, int lineNo) {
- if (line.find("class ", 0, FALSE) == -1)
+ if (line.tqfind("class ", 0, FALSE) == -1)
return FALSE;
TQRegExp Class("^[ \t]*(abstract|final|)[ \t]*class[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*(extends[ \t]*([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*))?.*$");
@@ -159,7 +159,7 @@ bool PHPFile::ParseClass(TQString line, int lineNo) {
}
bool PHPFile::ParseFunction(TQString line, int lineNo) {
- if (line.find("function", 0, FALSE) == -1)
+ if (line.tqfind("function", 0, FALSE) == -1)
return FALSE;
TQRegExp function("^[ \t]*(final|abstract|static|)[ \t]*(public|private|protected|)[ \t]*(static|)[ \t]*function[ \t&]*([_a-zA-Z\x7f-\xff][_a-zA-Z0-9\x7f-\xff]*)[ \t]*\\(([_a-zA-Z\x7f-\xff]*[_$, &'\\\"0-9A-Za-z\x7f-\xff\t-=]*)\\).*$");
@@ -198,7 +198,7 @@ bool PHPFile::ParseFunction(TQString line, int lineNo) {
}
bool PHPFile::ParseVariable(TQString line, int lineNo) {
- if (line.find("var") == -1 && line.find("public") == -1 && line.find("private") == -1 && line.find("protected") == -1)
+ if (line.tqfind("var") == -1 && line.tqfind("public") == -1 && line.tqfind("private") == -1 && line.tqfind("protected") == -1)
return FALSE;
TQRegExp variable("^[ \t]*(var|public|private|protected|static)[ \t]*\\$([a-zA-Z_\x7f-\xff][0-9A-Za-z_\x7f-\xff]*)[ \t;=].*$");
@@ -227,7 +227,7 @@ bool PHPFile::ParseVariable(TQString line, int lineNo) {
}
bool PHPFile::ParseThisMember(TQString line, int lineNo) {
- if (line.find("$this->", 0, FALSE) == -1)
+ if (line.tqfind("$this->", 0, FALSE) == -1)
return FALSE;
TQRegExp createthis;
@@ -240,7 +240,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) {
return TRUE;
}
- if (line.find("true", 0, FALSE) != -1 || line.find("false", 0, FALSE) != -1) {
+ if (line.tqfind("true", 0, FALSE) != -1 || line.tqfind("false", 0, FALSE) != -1) {
createthis.setPattern("\\$(this->([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t]*(true|false)[ \t]*;");
if (createthis.search(line) != -1) {
if (AddVariable(createthis.cap(1), "boolean", lineNo, TRUE) == FALSE)
@@ -249,7 +249,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) {
}
}
- if (line.find("new", 0, FALSE) != -1) {
+ if (line.tqfind("new", 0, FALSE) != -1) {
createthis.setPattern("\\$this->([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)");
if (createthis.search(line) != -1) {
if (AddVariable(createthis.cap(1), createthis.cap(2), lineNo, TRUE) == FALSE)
@@ -258,7 +258,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) {
}
}
- if (line.find("array", 0, FALSE) != -1) {
+ if (line.tqfind("array", 0, FALSE) != -1) {
createthis.setPattern("\\$this->([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*(new|)[ \t&]*(array)[ \t]*[\\(;]+");
if (createthis.search(line) != -1) {
if (AddVariable(createthis.cap(1), "array", lineNo, TRUE) == FALSE)
@@ -271,7 +271,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) {
}
bool PHPFile::ParseMember(TQString line, int lineNo) {
- if (line.find("$", 0, FALSE) == -1)
+ if (line.tqfind("$", 0, FALSE) == -1)
return FALSE;
/// @todo Ajouter plus de test ....
@@ -293,7 +293,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) {
return TRUE;
}
- if (line.find("true", 0, FALSE) != -1 || line.find("false", 0, FALSE) != -1) {
+ if (line.tqfind("true", 0, FALSE) != -1 || line.tqfind("false", 0, FALSE) != -1) {
createmember.setPattern("\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t]*(true|false)[ \t]*;");
if (createmember.search(line) != -1) {
if (AddVariable(createmember.cap(1), "boolean", lineNo) == FALSE)
@@ -302,7 +302,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) {
}
}
- if (line.find("new", 0, FALSE) != -1) {
+ if (line.tqfind("new", 0, FALSE) != -1) {
createmember.setPattern("\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)");
if (createmember.search(line) != -1) {
if (AddVariable(createmember.cap(1), createmember.cap(2), lineNo) == FALSE)
@@ -311,7 +311,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) {
}
}
- if (line.find("array", 0, FALSE) != -1) {
+ if (line.tqfind("array", 0, FALSE) != -1) {
createmember.setPattern("\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*(new|)[ \t&]*(array)[ \t]*[\\(;]+");
if (createmember.search(line) != -1) {
if (AddVariable(createmember.cap(1), "array", lineNo) == FALSE)
@@ -326,7 +326,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) {
bool PHPFile::ParseReturn(TQString line, int lineNo) {
TQString rettype;
- if (line.find("return", 0, FALSE) == -1)
+ if (line.tqfind("return", 0, FALSE) == -1)
return FALSE;
TQRegExp typeex;
@@ -337,7 +337,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) {
TQString varname = typeex.cap(2).ascii();
rettype = varname;
- if (varname.find("$") == 0) {
+ if (varname.tqfind("$") == 0) {
/// @todo search in variable
/*
varname = varname.mid(1);
@@ -346,7 +346,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) {
while ( it != m_vars.end() ) {
Action *p = *it++;
- if (p->parent() == current && p->name() == varname) {
+ if (p->tqparent() == current && p->name() == varname) {
rettype = p->args();
}
}
@@ -357,7 +357,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) {
rettype = "null";
}
- if (rettype.find("$") == 0)
+ if (rettype.tqfind("$") == 0)
kdDebug(9018) << "ParseReturn value" << " " << rettype.latin1() << endl;
}
@@ -366,7 +366,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) {
}
bool PHPFile::ParseTodo(TQString line, int lineNo) {
- if (line.find("todo", 0, FALSE) == -1)
+ if (line.tqfind("todo", 0, FALSE) == -1)
return FALSE;
TQRegExp todo("/[/]+[ \t]*[@]*todo([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$");
@@ -381,7 +381,7 @@ bool PHPFile::ParseTodo(TQString line, int lineNo) {
}
bool PHPFile::ParseFixme(TQString line, int lineNo) {
- if (line.find("fixme", 0, FALSE) == -1)
+ if (line.tqfind("fixme", 0, FALSE) == -1)
return FALSE;
TQRegExp fixme("/[/]+[ \t]*[@]*fixme([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$");
@@ -411,14 +411,14 @@ void PHPFile::ParseSource() {
line = (*it).local8Bit();
if (!line.isNull()) {
- if (line.find("include", 0, FALSE) != -1 || line.find("require", 0, FALSE) != -1) {
+ if (line.tqfind("include", 0, FALSE) != -1 || line.tqfind("require", 0, FALSE) != -1) {
if (includere.search(line) != -1) {
TQStringList include_path;
include_path = include_path.split(":", m_part->getIncludePath());
include_path.append(URLUtil::directory(fileName()) + "/");
include_path.append("");
- TQStringList list = includere.capturedTexts();
+ TQStringList list = includere.tqcapturedTexts();
for ( TQStringList::Iterator it = include_path.begin(); it != include_path.end(); ++it ) {
TQString abso = URLUtil::canonicalPath(*it + "/" + list[3]);
@@ -432,16 +432,16 @@ void PHPFile::ParseSource() {
if ( inMethod == TRUE ) {
- bracketFuncOpen += line.contains("{");
- bracketFuncClose += line.contains("}");
+ bracketFuncOpen += line.tqcontains("{");
+ bracketFuncClose += line.tqcontains("}");
if (bracketFuncOpen == bracketFuncClose && bracketFuncOpen != 0 && bracketFuncClose != 0) {
CloseFunction( lineNo );
}
}
if ( inMethod == FALSE ) {
- bracketOpen += line.contains("{");
- bracketClose += line.contains("}");
+ bracketOpen += line.tqcontains("{");
+ bracketClose += line.tqcontains("}");
if (bracketOpen == bracketClose && bracketOpen != 0 && bracketClose != 0 && inClass == TRUE) {
CloseClass( lineNo );
}
@@ -449,8 +449,8 @@ void PHPFile::ParseSource() {
if ( inClass == FALSE ) {
if (ParseClass(line, lineNo) == TRUE) {
- bracketOpen = line.contains("{");
- bracketClose = line.contains("}");
+ bracketOpen = line.tqcontains("{");
+ bracketClose = line.tqcontains("}");
}
}
@@ -459,8 +459,8 @@ void PHPFile::ParseSource() {
}
if (ParseFunction(line, lineNo) == TRUE) {
- bracketFuncOpen = line.contains("{");
- bracketFuncClose = line.contains("}");
+ bracketFuncOpen = line.tqcontains("{");
+ bracketFuncClose = line.tqcontains("}");
}
if ( inMethod == TRUE )
diff --git a/languages/php/phpfile.h b/languages/php/phpfile.h
index b8aad71b..d790ca66 100644
--- a/languages/php/phpfile.h
+++ b/languages/php/phpfile.h
@@ -47,6 +47,7 @@
*/
class PHPFile : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
PHPFile(PHPSupportPart *phpSupport, const TQString& fileName);
diff --git a/languages/php/phphtmlview.h b/languages/php/phphtmlview.h
index e135cfa7..91d4a195 100644
--- a/languages/php/phphtmlview.h
+++ b/languages/php/phphtmlview.h
@@ -27,6 +27,7 @@ class PHPSupportPart;
class PHPHTMLView : public KDevHTMLPart {
Q_OBJECT
+ TQ_OBJECT
public:
PHPHTMLView(PHPSupportPart *part);
~PHPHTMLView();
diff --git a/languages/php/phpinfodlg.ui b/languages/php/phpinfodlg.ui
index 77de8304..5d048211 100644
--- a/languages/php/phpinfodlg.ui
+++ b/languages/php/phpinfodlg.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>PHPInfoDlg</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>PHPInfoDlg</cstring>
</property>
@@ -19,12 +19,12 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QMultiLineEdit" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQMultiLineEdit" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>php_edit</cstring>
</property>
</widget>
- <widget class="QPushButton" row="1" column="1">
+ <widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>ok_button</cstring>
</property>
@@ -45,7 +45,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -62,7 +62,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -82,6 +82,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/php/phpnewclassdlg.cpp b/languages/php/phpnewclassdlg.cpp
index 282e6c01..9227e8ff 100644
--- a/languages/php/phpnewclassdlg.cpp
+++ b/languages/php/phpnewclassdlg.cpp
@@ -30,7 +30,7 @@
using namespace std;
-PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *parent, const char *name) : PHPNewClassDlgBase(parent,name,true) {
+PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *tqparent, const char *name) : PHPNewClassDlgBase(tqparent,name,true) {
m_filenameModified = false;
KCompletion *comp = new KCompletion();
comp->setItems(baseClassNames);
@@ -104,14 +104,14 @@ void PHPNewClassDlg::accept(){
// generate the sourcecode for the class
if(m_baseClassEdit->text().isEmpty()){
- text = text.replace(TQRegExp("extends BASECLASS"),"");
- text = text.replace(TQRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),"");
+ text = text.tqreplace(TQRegExp("extends BASECLASS"),"");
+ text = text.tqreplace(TQRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),"");
}else{
- text = text.replace(TQRegExp("BASECLASS"),m_baseClassEdit->text());
+ text = text.tqreplace(TQRegExp("BASECLASS"),m_baseClassEdit->text());
}
- text = text.replace(TQRegExp("CLASSNAME"),m_classNameEdit->text());
- text = text.replace(TQRegExp("FILENAME"),m_fileNameEdit->text().upper());
- text = text.replace(TQRegExp("AUTHOR"),"not implemented");
+ text = text.tqreplace(TQRegExp("CLASSNAME"),m_classNameEdit->text());
+ text = text.tqreplace(TQRegExp("FILENAME"),m_fileNameEdit->text().upper());
+ text = text.tqreplace(TQRegExp("AUTHOR"),"not implemented");
file.setName(absFileName);
if(file.open(IO_WriteOnly)){
diff --git a/languages/php/phpnewclassdlg.h b/languages/php/phpnewclassdlg.h
index 14db74b2..a5bbcb55 100644
--- a/languages/php/phpnewclassdlg.h
+++ b/languages/php/phpnewclassdlg.h
@@ -27,8 +27,9 @@
class PHPNewClassDlg : public PHPNewClassDlgBase {
Q_OBJECT
+ TQ_OBJECT
public:
- PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *parent=0, const char *name=0);
+ PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *tqparent=0, const char *name=0);
~PHPNewClassDlg();
protected slots:
void classNameTextChanged(const TQString&);
diff --git a/languages/php/phpnewclassdlgbase.ui b/languages/php/phpnewclassdlgbase.ui
index 5b4df7c1..5084fb51 100644
--- a/languages/php/phpnewclassdlgbase.ui
+++ b/languages/php/phpnewclassdlgbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>PHPNewClassDlgBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>m_ClassDLG</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -40,14 +40,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton" row="5" column="3" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="5" column="3" rowspan="1" colspan="2">
<property name="name">
<cstring>m_okButton</cstring>
</property>
@@ -58,7 +58,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="5" column="5" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="5" column="5" rowspan="1" colspan="2">
<property name="name">
<cstring>m_cancelButton</cstring>
</property>
@@ -76,7 +76,7 @@
<cstring>m_classNameEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="2" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -87,7 +87,7 @@
<cstring>m_baseClassEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="3" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
@@ -98,7 +98,7 @@
<cstring>m_classTemplate</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
@@ -109,7 +109,7 @@
<cstring>m_dirEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -120,7 +120,7 @@
<cstring>m_fileNameEdit</cstring>
</property>
</widget>
- <widget class="QToolButton" row="2" column="6">
+ <widget class="TQToolButton" row="2" column="6">
<property name="name">
<cstring>m_dirButton</cstring>
</property>
@@ -141,7 +141,7 @@
<cstring>m_dirEdit</cstring>
</property>
</widget>
- <widget class="QTextEdit" row="4" column="0" rowspan="1" colspan="7">
+ <widget class="TQTextEdit" row="4" column="0" rowspan="1" colspan="7">
<property name="name">
<cstring>m_classTemplate</cstring>
</property>
@@ -193,8 +193,8 @@ class CLASSNAME extends BASECLASS {
<include location="global" impldecl="in declaration">klineedit.h</include>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>klineedit.h</includehint>
</includehints>
diff --git a/languages/php/phpparser.cpp b/languages/php/phpparser.cpp
index a0f1179e..a4b5185e 100644
--- a/languages/php/phpparser.cpp
+++ b/languages/php/phpparser.cpp
@@ -50,7 +50,7 @@ bool PHPParser::hasFile( const TQString& fileName )
{
// kdDebug(9018) << "hasFile " << fileName.latin1() << endl;
TQString abso = URLUtil::canonicalPath(fileName);
- TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso);
+ TQMap<TQString, PHPFile *>::Iterator it = m_files.tqfind(abso);
if ( it == m_files.end() )
return false;
@@ -67,7 +67,7 @@ void PHPParser::addFile( const TQString& fileName )
kdDebug(9018) << "addFile " << fileName.latin1() << endl;
TQFileInfo fi( abso );
- if ((fi.extension().contains("inc") || fi.extension().contains("php") || fi.extension().contains("html") || fi.extension().contains("php3") || !fi.extension()) && !fi.extension().contains("~")) {
+ if ((fi.extension().tqcontains("inc") || fi.extension().tqcontains("php") || fi.extension().tqcontains("html") || fi.extension().tqcontains("php3") || !fi.extension()) && !fi.extension().tqcontains("~")) {
m_files.insert(abso, new PHPFile(m_part, abso));
}
}
@@ -76,7 +76,7 @@ void PHPParser::removeFile( const TQString& fileName )
{
// kdDebug(9018) << "removeFile " << fileName.latin1() << endl;
TQString abso = URLUtil::canonicalPath(fileName);
- TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso);
+ TQMap<TQString, PHPFile *>::Iterator it = m_files.tqfind(abso);
if ( it != m_files.end()) {
PHPFile *file = it.data();
@@ -104,7 +104,7 @@ void PHPParser::reparseFile( const TQString& fileName )
{
kdDebug(9018) << "reparseFile" << endl;
TQString abso = URLUtil::canonicalPath(fileName);
- TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso);
+ TQMap<TQString, PHPFile *>::Iterator it = m_files.tqfind(abso);
if ( it != m_files.end()) {
PHPFile *file = it.data();
diff --git a/languages/php/phpparser.h b/languages/php/phpparser.h
index 24687ea3..87093b06 100644
--- a/languages/php/phpparser.h
+++ b/languages/php/phpparser.h
@@ -21,11 +21,7 @@
#include <tqthread.h>
-#if QT_VERSION < 0x030100
-#include <kdevmutex.h>
-#else
#include <tqmutex.h>
-#endif
#include <codemodel.h>
diff --git a/languages/php/phpsupport_event.h b/languages/php/phpsupport_event.h
index 09c5f49e..28713efb 100644
--- a/languages/php/phpsupport_event.h
+++ b/languages/php/phpsupport_event.h
@@ -23,11 +23,7 @@
#include <tqevent.h>
#include <tqvaluelist.h>
-#if QT_VERSION < 0x030100
-#include <kdevmutex.h>
-#else
#include <tqmutex.h>
-#endif
enum
{
@@ -46,7 +42,7 @@ enum
Event_AddFixme
};
-class FileParseEvent: public QCustomEvent
+class FileParseEvent: public TQCustomEvent
{
public:
FileParseEvent(long event, const TQString& fileName )
diff --git a/languages/php/phpsupportpart.cpp b/languages/php/phpsupportpart.cpp
index d31bc933..3dbf4211 100644
--- a/languages/php/phpsupportpart.cpp
+++ b/languages/php/phpsupportpart.cpp
@@ -69,8 +69,8 @@ using namespace std;
static const KDevPluginInfo data("kdevphpsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevphpsupport, PHPSupportFactory( data ) )
-PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport(&data, parent, name ? name : "PHPSupportPart")
+PHPSupportPart::PHPSupportPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport(&data, tqparent, name ? name : "PHPSupportPart")
{
m_htmlView = 0;
m_parser = 0;
@@ -354,7 +354,7 @@ void PHPSupportPart::slotReceivedPHPExeStdout (KProcess* /*proc*/, char* buffer,
TQString buf = buffer;
if (configData->getInvocationMode() == PHPConfigData::Shell)
- buf.replace("\n", "<br>");
+ buf.tqreplace("\n", "<br>");
m_htmlView->write(buf);
}
@@ -364,7 +364,7 @@ void PHPSupportPart::slotReceivedPHPExeStderr (KProcess* /*proc*/, char* buffer,
TQString buf = buffer;
if (configData->getInvocationMode() == PHPConfigData::Shell)
- buf.replace("\n", "<br>");
+ buf.tqreplace("\n", "<br>");
m_htmlView->write(buf);
}
diff --git a/languages/php/phpsupportpart.h b/languages/php/phpsupportpart.h
index 9d294642..f2b0d79c 100644
--- a/languages/php/phpsupportpart.h
+++ b/languages/php/phpsupportpart.h
@@ -44,9 +44,10 @@ class PHPFile;
class PHPSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- PHPSupportPart( TQObject *parent, const char *name, const TQStringList & );
+ PHPSupportPart( TQObject *tqparent, const char *name, const TQStringList & );
~PHPSupportPart();
PHPErrorView *ErrorView();
@@ -111,7 +112,7 @@ private:
TQGuardedPtr<TQProgressBar> progressBar;
TQStringList::Iterator it;
TQStringList files;
- TQMap< TQString, QPair<uint, uint> > pcs;
+ TQMap< TQString, TQPair<uint, uint> > pcs;
TQDataStream stream;
TQFile file;
diff --git a/languages/python/README.dox b/languages/python/README.dox
index 77d0f44c..e581f9e1 100644
--- a/languages/python/README.dox
+++ b/languages/python/README.dox
@@ -14,7 +14,7 @@ and images.
\maintainer <a href="mailto:nth maintainer AT provider.com">nth maintainer full name</a>
\feature Python support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
..
diff --git a/languages/python/app_templates/pyqt/documentdetails.ui b/languages/python/app_templates/pyqt/documentdetails.ui
index 130d30ef..f1298465 100644
--- a/languages/python/app_templates/pyqt/documentdetails.ui
+++ b/languages/python/app_templates/pyqt/documentdetails.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>documentDetails</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>documentDetails</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -38,7 +38,7 @@
<enum>PlainText</enum>
</property>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -49,7 +49,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -57,14 +57,14 @@
<string>Name:</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>lineEdit1</cstring>
</property>
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -76,5 +76,5 @@
</widget>
<includes>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/python/app_templates/pyqt/templates-ui-dialog b/languages/python/app_templates/pyqt/templates-ui-dialog
index fc2aefce..4b0c8bb2 100644
--- a/languages/python/app_templates/pyqt/templates-ui-dialog
+++ b/languages/python/app_templates/pyqt/templates-ui-dialog
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
-<widget class="QDialog">
+<widget class=TQDIALOG_OBJECT_NAME_STRING>
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -16,5 +16,5 @@
<string>Form1</string>
</property>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/python/app_templates/pyqt/templates-ui-mainwin b/languages/python/app_templates/pyqt/templates-ui-mainwin
index 854da009..4e0a093b 100644
--- a/languages/python/app_templates/pyqt/templates-ui-mainwin
+++ b/languages/python/app_templates/pyqt/templates-ui-mainwin
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
-<widget class="QMainWindow">
+<widget class=TQMAINWINDOW_OBJECT_NAME_STRING>
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -415,7 +415,7 @@
<slot>helpAbout()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>fileNew()</slot>
<slot>fileOpen()</slot>
<slot>fileSave()</slot>
@@ -431,6 +431,6 @@
<slot>helpIndex()</slot>
<slot>helpContents()</slot>
<slot>helpAbout()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/python/doc/python.toc b/languages/python/doc/python.toc
index e5c67dda..a4604a97 100644
--- a/languages/python/doc/python.toc
+++ b/languages/python/doc/python.toc
@@ -162,7 +162,7 @@
<tocsect3 name="5.2 Atoms" url="ref/atoms.html">
<tocsect4 name="5.2.1 Identifiers (Names)" url="ref/atom-identifiers.html"/>
<tocsect4 name="5.2.2 Literals" url="ref/atom-literals.html"/>
-<tocsect4 name="5.2.3 Parenthesized forms" url="ref/parenthesized.html"/>
+<tocsect4 name="5.2.3 Parenthesized forms" url="ref/tqparenthesized.html"/>
<tocsect4 name="5.2.4 List displays" url="ref/lists.html"/>
<tocsect4 name="5.2.5 Dictionary displays" url="ref/dict.html"/>
<tocsect4 name="5.2.6 String conversions" url="ref/string-conversions.html"/>
@@ -293,7 +293,7 @@
</tocsect3>
<tocsect3 name="7.2 Sequence Objects " url="api/sequenceObjects.html">
<tocsect4 name="7.2.1 String Objects " url="api/stringObjects.html"/>
-<tocsect4 name="7.2.2 Unicode Objects " url="api/unicodeObjects.html"/>
+<tocsect4 name="7.2.2 Unicode Objects " url="api/tqunicodeObjects.html"/>
<tocsect4 name="7.2.3 Buffer Objects " url="api/bufferObjects.html"/>
<tocsect4 name="7.2.4 Tuple Objects " url="api/tupleObjects.html"/>
<tocsect4 name="7.2.5 List Objects " url="api/listObjects.html"/>
@@ -410,7 +410,7 @@
<tocsect3 name="4.7 codecs -- Codec registry and base classes" url="lib/module-codecs.html">
<tocsect4 name="4.7.1 Codec Base Classes" url="lib/node80.html"/>
</tocsect3>
-<tocsect3 name="4.8 unicodedata -- Unicode Database" url="lib/module-unicodedata.html"/>
+<tocsect3 name="4.8 tqunicodedata -- Unicode Database" url="lib/module-tqunicodedata.html"/>
</tocsect2>
<tocsect2 name="5. Miscellaneous Services" url="lib/misc.html">
<tocsect3 name="5.1 math -- Mathematical functions" url="lib/module-math.html"/>
@@ -1031,7 +1031,7 @@
<entry name="code, block" url="ref/execframes.html#l2h-238"/>
<entry name="code block" url="ref/execframes.html#l2h-232"/>
<entry name="code object" url="ref/types.html#l2h-124"/>
-<entry name="comma" url="ref/parenthesized.html#l2h-270"/>
+<entry name="comma" url="ref/tqparenthesized.html#l2h-270"/>
<entry name="trailing" url="ref/exprlists.html#l2h-331"/>
<entry name="command line" url="ref/programs.html#l2h-439"/>
<entry name="comment" url="ref/comments.html#l2h-6"/>
@@ -1077,7 +1077,7 @@
<entry name="dictionary object" url="ref/types.html#l2h-96"/>
<entry name="display, dictionary" url="ref/dict.html#l2h-274"/>
<entry name="display, list" url="ref/lists.html#l2h-271"/>
-<entry name="display, tuple" url="ref/parenthesized.html#l2h-270"/>
+<entry name="display, tuple" url="ref/tqparenthesized.html#l2h-270"/>
<entry name="division" url="ref/binary.html#l2h-309"/>
<entry name="divmod() (built-in function)" url="ref/numeric-types.html#l2h-218"/>
<entry name="documentation string" url="ref/types.html#l2h-125"/>
@@ -1362,7 +1362,7 @@
<entry name="string" url="ref/types.html#l2h-85"/>
<entry name="object (continued), traceback" url="ref/types.html#l2h-127"/>
<entry name="object (continued), tuple" url="ref/types.html#l2h-91"/>
-<entry name="object (continued), unicode" url="ref/types.html#l2h-90"/>
+<entry name="object (continued), tqunicode" url="ref/types.html#l2h-90"/>
<entry name="object (continued), user-defined function" url="ref/types.html#l2h-103"/>
<entry name="object (continued), user-defined method" url="ref/types.html#l2h-105"/>
<entry name="oct() (built-in function)" url="ref/numeric-types.html#l2h-229"/>
@@ -1394,7 +1394,7 @@
<entry name="OverflowError (built-in exception)" url="ref/types.html#l2h-33"/>
<entry name="packages" url="ref/import.html#l2h-392"/>
<entry name="parameter, value, default" url="ref/function.html#l2h-430"/>
-<entry name="parenthesized form" url="ref/parenthesized.html#l2h-268"/>
+<entry name="tqparenthesized form" url="ref/tqparenthesized.html#l2h-268"/>
<entry name="parser" url="ref/lexical.html#l2h-3"/>
<entry name="Pascal, language" url="ref/for.html#l2h-416"/>
<entry name="pass statement" url="ref/pass.html#l2h-355"/>
@@ -1527,7 +1527,7 @@
<entry name="trailing, comma" url="ref/exprlists.html#l2h-331"/>
<entry name="triple-quoted string" url="ref/strings.html#l2h-16"/>
<entry name="try statement" url="ref/types.html#l2h-129"/>
-<entry name="tuple, display" url="ref/parenthesized.html#l2h-270"/>
+<entry name="tuple, display" url="ref/tqparenthesized.html#l2h-270"/>
<entry name="tuple, empty" url="ref/types.html#l2h-91"/>
<entry name="tuple, singleton" url="ref/types.html#l2h-91"/>
<entry name="tuple object" url="ref/types.html#l2h-91"/>
@@ -1544,8 +1544,8 @@
<entry name="unbinding, name" url="ref/execframes.html#l2h-243"/>
<entry name="unichr() (built-in function)" url="ref/types.html#l2h-87"/>
<entry name="Unicode" url="ref/types.html#l2h-90"/>
-<entry name="unicode() (built-in function)" url="ref/types.html#l2h-89"/>
-<entry name="unicode object" url="ref/types.html#l2h-90"/>
+<entry name="tqunicode() (built-in function)" url="ref/types.html#l2h-89"/>
+<entry name="tqunicode object" url="ref/types.html#l2h-90"/>
<entry name="UNIX" url="ref/programs.html#l2h-439"/>
<entry name="unreachable object" url="ref/objects.html#l2h-28"/>
<entry name="unrecognized escape sequence" url="ref/strings.html#l2h-19"/>
diff --git a/languages/python/kde_pydoc.py b/languages/python/kde_pydoc.py
index 0516f172..eb7c6b44 100755
--- a/languages/python/kde_pydoc.py
+++ b/languages/python/kde_pydoc.py
@@ -7,7 +7,7 @@ __version__ = "6 April 2006"
import sys, imp, os, stat, re, types, cgi
from repr import Repr
-from string import expandtabs, find, join, lower, split, strip, rstrip
+from string import expandtabs, tqfind, join, lower, split, strip, rstrip
import pydoc
@@ -16,19 +16,19 @@ import pydoc
def cleanlinks(string):
"""Changes the links to work with the pydoc:-notation"""
finalstring = ""
- string = str(string).replace(".html","")
+ string = str(string).tqreplace(".html","")
pos = 0
mark = "<a href=\""
l = len(mark)
while(pos != -1):
opos = pos
- pos = string.find(mark, pos)
+ pos = string.tqfind(mark, pos)
if(pos == -1):
finalstring += string[opos:]
break
finalstring += string[opos:pos+l]
pos+=l
- if(string[pos] == '#' or string.find(":/",pos, pos+10) != -1): #leave local jumps or external references untouched
+ if(string[pos] == '#' or string.tqfind(":/",pos, pos+10) != -1): #leave local jumps or external references untouched
continue
finalstring += "pydoc:"
if(string[pos] == "." and string[pos+1] == "\""):
diff --git a/languages/python/pythonconfigwidget.cpp b/languages/python/pythonconfigwidget.cpp
index 29103705..6cd54700 100644
--- a/languages/python/pythonconfigwidget.cpp
+++ b/languages/python/pythonconfigwidget.cpp
@@ -17,8 +17,8 @@
PythonConfigWidget::PythonConfigWidget(TQDomDocument &projectDom,
- TQWidget *parent, const char *name)
- : PythonConfigWidgetBase(parent, name), dom(projectDom)
+ TQWidget *tqparent, const char *name)
+ : PythonConfigWidgetBase(tqparent, name), dom(projectDom)
{
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevpythonsupport/run/interpreter"));
terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevpythonsupport/run/terminal"));
diff --git a/languages/python/pythonconfigwidget.h b/languages/python/pythonconfigwidget.h
index 674b8e3c..16ed799d 100644
--- a/languages/python/pythonconfigwidget.h
+++ b/languages/python/pythonconfigwidget.h
@@ -19,9 +19,10 @@
class PythonConfigWidget : public PythonConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- PythonConfigWidget( TQDomDocument &projectDom, TQWidget *parent=0, const char *name=0 );
+ PythonConfigWidget( TQDomDocument &projectDom, TQWidget *tqparent=0, const char *name=0 );
~PythonConfigWidget();
public slots:
diff --git a/languages/python/pythonconfigwidgetbase.ui b/languages/python/pythonconfigwidgetbase.ui
index d3228822..0aa9a5bd 100644
--- a/languages/python/pythonconfigwidgetbase.ui
+++ b/languages/python/pythonconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>PythonConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>python_config_widget</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>interpreter_label</cstring>
</property>
@@ -30,7 +30,7 @@
<cstring>interpreter_edit</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -57,7 +57,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -76,14 +76,14 @@
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>terminal_box</cstring>
</property>
@@ -101,7 +101,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -113,8 +113,8 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>klineedit.h</includehint>
</includehints>
diff --git a/languages/python/pythonimplementationwidget.cpp b/languages/python/pythonimplementationwidget.cpp
index 9aba5441..9e979f13 100644
--- a/languages/python/pythonimplementationwidget.cpp
+++ b/languages/python/pythonimplementationwidget.cpp
@@ -34,8 +34,8 @@
#include <kdevproject.h>
PythonImplementationWidget::PythonImplementationWidget(KDevLanguageSupport* part,
- TQWidget* parent, const char* name, bool modal)
- : ImplementationWidget(part, parent, name, modal)
+ TQWidget* tqparent, const char* name, bool modal)
+ : ImplementationWidget(part, tqparent, name, modal)
{
}
@@ -48,12 +48,12 @@ PythonImplementationWidget::~PythonImplementationWidget()
TQStringList PythonImplementationWidget::createClassFiles()
{
// TQString template_py = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
- TQString template_py = "from qt import *\nfrom $BASEFILENAME$ import *\nclass $CLASSNAME$($BASECLASSNAME$):\n\n def __init__(self,parent,name):\n $BASECLASSNAME$.__init__(self,parent,name)\n \n\n\n";
+ TQString template_py = "from qt import *\nfrom $BASEFILENAME$ import *\nclass $CLASSNAME$($BASECLASSNAME$):\n\n def __init__(self,tqparent,name):\n $BASECLASSNAME$.__init__(self,tqparent,name)\n \n\n\n";
TQFileInfo formInfo(m_formName);
- template_py.replace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".py");
- template_py.replace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
- template_py.replace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
+ template_py.tqreplace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".py");
+ template_py.tqreplace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
+ template_py.tqreplace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
template_py = FileTemplate::read(m_part, "py") + template_py;
diff --git a/languages/python/pythonimplementationwidget.h b/languages/python/pythonimplementationwidget.h
index e8838bab..c2ca5cc3 100644
--- a/languages/python/pythonimplementationwidget.h
+++ b/languages/python/pythonimplementationwidget.h
@@ -25,8 +25,9 @@
class PythonImplementationWidget : public ImplementationWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- PythonImplementationWidget(KDevLanguageSupport* part, TQWidget* parent = 0, const char* name = 0, bool modal = true);
+ PythonImplementationWidget(KDevLanguageSupport* part, TQWidget* tqparent = 0, const char* name = 0, bool modal = true);
~PythonImplementationWidget();
diff --git a/languages/python/pythonsupportpart.cpp b/languages/python/pythonsupportpart.cpp
index dc7df754..d1f2e503 100644
--- a/languages/python/pythonsupportpart.cpp
+++ b/languages/python/pythonsupportpart.cpp
@@ -42,8 +42,8 @@ typedef KDevGenericFactory<PythonSupportPart> PythonSupportFactory;
static const KDevPluginInfo data("kdevpythonsupport");
K_EXPORT_COMPONENT_FACTORY( libkdevpythonsupport, PythonSupportFactory( data ) )
-PythonSupportPart::PythonSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport(&data, parent, name ? name : "PythonSupportPart")
+PythonSupportPart::PythonSupportPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport(&data, tqparent, name ? name : "PythonSupportPart")
{
setInstance(PythonSupportFactory::instance());
@@ -100,7 +100,7 @@ void PythonSupportPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
m_contextFileName = url.fileName();
int id = popup->insertItem(i18n("Create or Select Implementation..."), this, TQT_SLOT(slotCreateSubclass()));
- popup->setWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner."));
+ popup->tqsetWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner."));
}
}
}
@@ -210,7 +210,7 @@ void PythonSupportPart::savedFile(const KURL &fileName)
{
kdDebug(9014) << "savedFile()" << endl;
- if (project()->allFiles().contains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
+ if (project()->allFiles().tqcontains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
maybeParse(fileName.path());
emit addedSourceInfo( fileName.path() );
}
@@ -264,11 +264,11 @@ void PythonSupportPart::parse(const TQString &fileName)
lastClass->setFileName( fileName );
lastClass->setStartPosition( lineNo, 0 );
- TQStringList parentList = TQStringList::split(",", classre.cap(3));
+ TQStringList tqparentList = TQStringList::split(",", classre.cap(3));
TQStringList::ConstIterator it;
- for (it = parentList.begin(); it != parentList.end(); ++it) {
+ for (it = tqparentList.begin(); it != tqparentList.end(); ++it) {
TQString baseName = (*it).stripWhiteSpace();
- kdDebug(9014) << "Add parent" << baseName << endl;
+ kdDebug(9014) << "Add tqparent" << baseName << endl;
lastClass->addBaseClass( baseName );
}
@@ -349,7 +349,7 @@ void PythonSupportPart::slotStartInterpreter()
void PythonSupportPart::slotExecuteString()
{
bool ok;
- TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString::null, &ok, 0);
+ TQString cmd = KInputDialog::getText(i18n("String to Execute"), i18n("String to execute:"), TQString(), &ok, 0);
if (ok) {
cmd.prepend("'");
cmd.append("'");
@@ -374,12 +374,12 @@ KDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::Designe
KDevDesignerIntegration *des = 0;
switch (type)
{
- case KInterfaceDesigner::QtDesigner:
+ case KInterfaceDesigner::TQtDesigner:
des = m_designers[type];
if (des == 0)
{
PythonImplementationWidget *impl = new PythonImplementationWidget(this);
- des = new QtDesignerPythonIntegration(this, impl);
+ des = new TQtDesignerPythonIntegration(this, impl);
des->loadSettings(*project()->projectDom(),
"kdevpythonsupport/designerintegration");
m_designers[type] = des;
@@ -398,7 +398,7 @@ void PythonSupportPart::slotCreateSubclass()
kdDebug(9014) << k_funcinfo << " file: " << m_contextFileName << " ext: " << fi.extension(false) << endl;
if (fi.extension(false) != "ui")
return;
- QtDesignerPythonIntegration *des = dynamic_cast<QtDesignerPythonIntegration*>(designer(KInterfaceDesigner::QtDesigner));
+ TQtDesignerPythonIntegration *des = dynamic_cast<TQtDesignerPythonIntegration*>(designer(KInterfaceDesigner::TQtDesigner));
if (des)
{
kdDebug(9014) << "ok: " << des << endl;
diff --git a/languages/python/pythonsupportpart.h b/languages/python/pythonsupportpart.h
index 0ea9f1b5..01fde048 100644
--- a/languages/python/pythonsupportpart.h
+++ b/languages/python/pythonsupportpart.h
@@ -23,9 +23,10 @@ class Context;
class PythonSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- PythonSupportPart( TQObject *parent, const char *name, const TQStringList & );
+ PythonSupportPart( TQObject *tqparent, const char *name, const TQStringList & );
~PythonSupportPart();
virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type);
diff --git a/languages/python/qtdesignerpythonintegration.cpp b/languages/python/qtdesignerpythonintegration.cpp
index 53950f65..c0e6dba1 100644
--- a/languages/python/qtdesignerpythonintegration.cpp
+++ b/languages/python/qtdesignerpythonintegration.cpp
@@ -38,18 +38,18 @@
#include "codemodel_utils.h"
#include "implementationwidget.h"
-QtDesignerPythonIntegration::QtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl)
- :QtDesignerIntegration(part, impl, false, 0)
+TQtDesignerPythonIntegration::TQtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl)
+ :TQtDesignerIntegration(part, impl, false, 0)
{
}
-QtDesignerPythonIntegration::~QtDesignerPythonIntegration()
+TQtDesignerPythonIntegration::~TQtDesignerPythonIntegration()
{
}
-void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass)
+void TQtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass)
{
m_part->partController()->editDocument( KURL( klass->fileName() ) );
KTextEditor::EditInterface* editIface = dynamic_cast<KTextEditor::EditInterface*>( m_part->partController()->activePart() );
@@ -65,7 +65,7 @@ void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Functio
klass->getStartPosition( &line, &column );
// compute the insertion point
- QPair<int,int> point;
+ TQPair<int,int> point;
point.first = line + 1;
point.second = column;
@@ -78,7 +78,7 @@ void QtDesignerPythonIntegration::addFunctionToClass(KInterfaceDesigner::Functio
}
TQString func = function.function;
- func.replace("()", "");
+ func.tqreplace("()", "");
TQString str = " def " + func + "(self):\n\n";
kdDebug(9014) << "insert " << str << " into " << point.first << endl;
diff --git a/languages/python/qtdesignerpythonintegration.h b/languages/python/qtdesignerpythonintegration.h
index e4b3bcae..8af2f271 100644
--- a/languages/python/qtdesignerpythonintegration.h
+++ b/languages/python/qtdesignerpythonintegration.h
@@ -17,18 +17,19 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef QTDESIGNERPYTHONINTEGRATION_H
-#define QTDESIGNERPYTHONINTEGRATION_H
+#ifndef TQTDESIGNERPYTHONINTEGRATION_H
+#define TQTDESIGNERPYTHONINTEGRATION_H
#include <qtdesignerintegration.h>
-class QtDesignerPythonIntegration : public QtDesignerIntegration
+class TQtDesignerPythonIntegration : public TQtDesignerIntegration
{
Q_OBJECT
+ TQ_OBJECT
public:
- QtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl);
+ TQtDesignerPythonIntegration(KDevLanguageSupport* part, ImplementationWidget* impl);
- ~QtDesignerPythonIntegration();
+ ~TQtDesignerPythonIntegration();
virtual void addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass);
diff --git a/languages/ruby/README.dox b/languages/ruby/README.dox
index aaa8823b..89dd9058 100644
--- a/languages/ruby/README.dox
+++ b/languages/ruby/README.dox
@@ -9,7 +9,7 @@ This is a Ruby support plugin
\feature .rb template for New File
\feature Ruby project template for Application Wizard
\feature "Run" option in menu
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
..
diff --git a/languages/ruby/app_templates/dcopservice/app.cpp b/languages/ruby/app_templates/dcopservice/app.cpp
index 46086a9e..5458ae8b 100644
--- a/languages/ruby/app_templates/dcopservice/app.cpp
+++ b/languages/ruby/app_templates/dcopservice/app.cpp
@@ -10,15 +10,15 @@ int main(int argc, char **argv) {
TQString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
delete instance;
if (appdir.isNull()) {
- qFatal("Error: Can't find \"%{APPNAMELC}/main.rb\"\n");
+ qFatal("Error: Can't tqfind \"%{APPNAMELC}/main.rb\"\n");
}
TQFileInfo program(appdir);
char ** rubyargs = (char **) calloc(argc+4, sizeof(char *));
rubyargs[0] = strdup(argv[0]);
rubyargs[1] = strdup("-KU");
- rubyargs[2] = strdup(TQString("-C%1").arg(program.dirPath()).latin1());
- rubyargs[3] = strdup(TQString("-I%1").arg(program.dirPath()).latin1());
+ rubyargs[2] = strdup(TQString("-C%1").tqarg(program.dirPath()).latin1());
+ rubyargs[3] = strdup(TQString("-I%1").tqarg(program.dirPath()).latin1());
rubyargs[4] = strdup(program.fileName().latin1());
for (int i = 1; i < argc; i++) {
rubyargs[i+4] = argv[i];
diff --git a/languages/ruby/app_templates/kapp/app.cpp b/languages/ruby/app_templates/kapp/app.cpp
index 46086a9e..5458ae8b 100644
--- a/languages/ruby/app_templates/kapp/app.cpp
+++ b/languages/ruby/app_templates/kapp/app.cpp
@@ -10,15 +10,15 @@ int main(int argc, char **argv) {
TQString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
delete instance;
if (appdir.isNull()) {
- qFatal("Error: Can't find \"%{APPNAMELC}/main.rb\"\n");
+ qFatal("Error: Can't tqfind \"%{APPNAMELC}/main.rb\"\n");
}
TQFileInfo program(appdir);
char ** rubyargs = (char **) calloc(argc+4, sizeof(char *));
rubyargs[0] = strdup(argv[0]);
rubyargs[1] = strdup("-KU");
- rubyargs[2] = strdup(TQString("-C%1").arg(program.dirPath()).latin1());
- rubyargs[3] = strdup(TQString("-I%1").arg(program.dirPath()).latin1());
+ rubyargs[2] = strdup(TQString("-C%1").tqarg(program.dirPath()).latin1());
+ rubyargs[3] = strdup(TQString("-I%1").tqarg(program.dirPath()).latin1());
rubyargs[4] = strdup(program.fileName().latin1());
for (int i = 1; i < argc; i++) {
rubyargs[i+4] = argv[i];
diff --git a/languages/ruby/app_templates/kapp/app.rb b/languages/ruby/app_templates/kapp/app.rb
index 470b0136..9bc2ba03 100644
--- a/languages/ruby/app_templates/kapp/app.rb
+++ b/languages/ruby/app_templates/kapp/app.rb
@@ -9,7 +9,7 @@
class %{APPNAMESC} < KDE::MainWindow
- slots 'fileNew()',
+ Q_SLOTS 'fileNew()',
'fileOpen()',
'fileSave()',
'fileSaveAs()',
diff --git a/languages/ruby/app_templates/kapp/appview.rb b/languages/ruby/app_templates/kapp/appview.rb
index bc5b5140..4c914786 100644
--- a/languages/ruby/app_templates/kapp/appview.rb
+++ b/languages/ruby/app_templates/kapp/appview.rb
@@ -15,23 +15,23 @@ class %{APPNAMESC}View < Qt::Widget
#
# Use this signal to change the content of the statusbar
#
- signals 'signalChangeStatusbar(const QString&)'
+ Q_SIGNALS 'signalChangeStatusbar(const QString&)'
#
# Use this signal to change the content of the caption
#
- signals 'signalChangeCaption(const QString&)'
+ Q_SIGNALS 'signalChangeCaption(const QString&)'
- slots 'slotOnURL(const QString&)',
+ Q_SLOTS 'slotOnURL(const QString&)',
'slotSetTitle(const QString&)'
- def initialize(parent)
- super(parent)
+ def initialize(tqparent)
+ super(tqparent)
# keep a reference to the DCOP Interface so it doesn't get gc'd
@dcop = %{APPNAMESC}Iface.new(self)
- # setup our layout manager to automatically add our widgets
+ # setup our tqlayout manager to automatically add our widgets
top_layout = Qt::HBoxLayout.new(self)
top_layout.setAutoAdd(true)
diff --git a/languages/ruby/app_templates/kapp/pref.rb b/languages/ruby/app_templates/kapp/pref.rb
index 98669ad2..fbdec495 100644
--- a/languages/ruby/app_templates/kapp/pref.rb
+++ b/languages/ruby/app_templates/kapp/pref.rb
@@ -17,10 +17,10 @@ end
class %{APPNAMESC}PrefPageOne < Qt::Frame
- def initialize(parent)
- super(parent)
- layout = Qt::HBoxLayout.new(self)
- layout.setAutoAdd(true)
+ def initialize(tqparent)
+ super(tqparent)
+ tqlayout = Qt::HBoxLayout.new(self)
+ tqlayout.setAutoAdd(true)
Qt::Label.new(i18n("Add something here"), self)
end
@@ -28,10 +28,10 @@ end
class %{APPNAMESC}PrefPageTwo < Qt::Frame
- def initialize(parent)
- super(parent)
- layout = Qt::HBoxLayout.new(self)
- layout.setAutoAdd(true)
+ def initialize(tqparent)
+ super(tqparent)
+ tqlayout = Qt::HBoxLayout.new(self)
+ tqlayout.setAutoAdd(true)
Qt::Label.new(i18n("Add something here"), self)
end
diff --git a/languages/ruby/app_templates/kapp/src-Makefile.am b/languages/ruby/app_templates/kapp/src-Makefile.am
index d27aa6b3..ad999e1c 100644
--- a/languages/ruby/app_templates/kapp/src-Makefile.am
+++ b/languages/ruby/app_templates/kapp/src-Makefile.am
@@ -16,7 +16,7 @@ INCLUDES = $(all_includes) -I$(RUBY_ARCHDIR)
# which sources should be compiled for %{APPNAMELC}
%{APPNAMELC}_SOURCES = %{APPNAMELC}.cpp
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
KDE_ICON = AUTO
diff --git a/languages/ruby/app_templates/kxt/app.cpp b/languages/ruby/app_templates/kxt/app.cpp
index 46086a9e..5458ae8b 100644
--- a/languages/ruby/app_templates/kxt/app.cpp
+++ b/languages/ruby/app_templates/kxt/app.cpp
@@ -10,15 +10,15 @@ int main(int argc, char **argv) {
TQString appdir = ::locate("data", "%{APPNAMELC}/main.rb", instance);
delete instance;
if (appdir.isNull()) {
- qFatal("Error: Can't find \"%{APPNAMELC}/main.rb\"\n");
+ qFatal("Error: Can't tqfind \"%{APPNAMELC}/main.rb\"\n");
}
TQFileInfo program(appdir);
char ** rubyargs = (char **) calloc(argc+4, sizeof(char *));
rubyargs[0] = strdup(argv[0]);
rubyargs[1] = strdup("-KU");
- rubyargs[2] = strdup(TQString("-C%1").arg(program.dirPath()).latin1());
- rubyargs[3] = strdup(TQString("-I%1").arg(program.dirPath()).latin1());
+ rubyargs[2] = strdup(TQString("-C%1").tqarg(program.dirPath()).latin1());
+ rubyargs[3] = strdup(TQString("-I%1").tqarg(program.dirPath()).latin1());
rubyargs[4] = strdup(program.fileName().latin1());
for (int i = 1; i < argc; i++) {
rubyargs[i+4] = argv[i];
diff --git a/languages/ruby/app_templates/kxt/app.rb b/languages/ruby/app_templates/kxt/app.rb
index 39da5345..9ab56921 100644
--- a/languages/ruby/app_templates/kxt/app.rb
+++ b/languages/ruby/app_templates/kxt/app.rb
@@ -9,7 +9,7 @@
class %{APPNAMESC} < KDE::MainWindow
- slots 'fileNew()',
+ Q_SLOTS 'fileNew()',
'optionsPreferences()',
'newToolbarConfig()',
'changeStatusbar(const QString&)',
diff --git a/languages/ruby/app_templates/kxt/appview.rb b/languages/ruby/app_templates/kxt/appview.rb
index 391f4c37..0b95fdf1 100644
--- a/languages/ruby/app_templates/kxt/appview.rb
+++ b/languages/ruby/app_templates/kxt/appview.rb
@@ -15,18 +15,18 @@ class %{APPNAMESC}View < %{APPNAMESC}view_base
#
# Use this signal to change the content of the statusbar
#
- signals 'signalChangeStatusbar(const QString&)'
+ Q_SIGNALS 'signalChangeStatusbar(const QString&)'
#
# Use this signal to change the content of the caption
#
- signals 'signalChangeCaption(const QString&)'
+ Q_SIGNALS 'signalChangeCaption(const QString&)'
- slots 'switchColors()',
+ Q_SLOTS 'switchColors()',
'settingsChanged()'
- def initialize(parent)
- super(parent)
+ def initialize(tqparent)
+ super(tqparent)
settingsChanged()
end
diff --git a/languages/ruby/app_templates/kxt/appview_base.ui b/languages/ruby/app_templates/kxt/appview_base.ui
index 78009d08..db29d6eb 100644
--- a/languages/ruby/app_templates/kxt/appview_base.ui
+++ b/languages/ruby/app_templates/kxt/appview_base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>%{APPNAME}view_base</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>%{APPNAMESC}view_base</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>sillyLabel</cstring>
</property>
@@ -29,5 +29,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/languages/ruby/app_templates/kxt/prefs-base.ui b/languages/ruby/app_templates/kxt/prefs-base.ui
index 5c0fc860..8c8b9012 100644
--- a/languages/ruby/app_templates/kxt/prefs-base.ui
+++ b/languages/ruby/app_templates/kxt/prefs-base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>Prefs_base</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Prefs_base</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -32,7 +32,7 @@
<string></string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -40,7 +40,7 @@
<string>Project age:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -66,7 +66,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -83,14 +83,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QSpinBox" row="2" column="1">
+ <widget class="TQSpinBox" row="2" column="1">
<property name="name">
<cstring>kcfg_val_time</cstring>
</property>
@@ -111,7 +111,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
@@ -120,7 +120,7 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
</includehints>
diff --git a/languages/ruby/app_templates/kxt/src-Makefile.am b/languages/ruby/app_templates/kxt/src-Makefile.am
index a8170abc..e121d0bc 100644
--- a/languages/ruby/app_templates/kxt/src-Makefile.am
+++ b/languages/ruby/app_templates/kxt/src-Makefile.am
@@ -16,7 +16,7 @@ INCLUDES = $(all_includes) -I$(RUBY_ARCHDIR)
# which sources should be compiled for %{APPNAMELC}
%{APPNAMELC}_SOURCES = %{APPNAMELC}.cpp
-# let automoc handle all of the meta source files (moc)
+# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO
KDE_ICON = AUTO
diff --git a/languages/ruby/app_templates/qtruby4app/qtruby4app.rb b/languages/ruby/app_templates/qtruby4app/qtruby4app.rb
index 58dfa10a..c44e984a 100644
--- a/languages/ruby/app_templates/qtruby4app/qtruby4app.rb
+++ b/languages/ruby/app_templates/qtruby4app/qtruby4app.rb
@@ -1,7 +1,7 @@
class %{APPNAME} < Qt::MainWindow
- slots :newFile,
+ Q_SLOTS :newFile,
:open,
:save,
:saveAs,
@@ -128,7 +128,7 @@ class %{APPNAME} < Qt::MainWindow
@aboutQtAct = Qt::Action.new(tr("About &Qt"), self)
@aboutQtAct.statusTip = tr("Show the Qt library's About box")
- connect(@aboutQtAct, SIGNAL(:triggered), $qApp, SLOT(:aboutQt))
+ connect(@aboutQtAct, SIGNAL(:triggered), $tqApp, SLOT(:aboutQt))
@cutAct.setEnabled(false)
@copyAct.setEnabled(false)
diff --git a/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb b/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
index 18ecdc3f..7d5f9ad3 100644
--- a/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
+++ b/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
@@ -1,6 +1,6 @@
class %{APPNAMESC} < Qt::MainWindow
- slots 'newDoc()',
+ Q_SLOTS 'newDoc()',
'choose()',
'load( const QString& )',
'save()',
@@ -81,7 +81,7 @@ class %{APPNAMESC} < Qt::MainWindow
file.insertItem( tr("&Close"), self, SLOT('close()'), Qt::KeySequence.new(CTRL+Key_W) )
- file.insertItem( tr("&Quit"), $qApp, SLOT( 'closeAllWindows()' ), Qt::KeySequence.new(CTRL+Key_Q) )
+ file.insertItem( tr("&Quit"), $tqApp, SLOT( 'closeAllWindows()' ), Qt::KeySequence.new(CTRL+Key_Q) )
menuBar().insertSeparator()
diff --git a/languages/ruby/debugger/breakpoint.cpp b/languages/ruby/debugger/breakpoint.cpp
index c9a91ec4..972a13a4 100644
--- a/languages/ruby/debugger/breakpoint.cpp
+++ b/languages/ruby/debugger/breakpoint.cpp
@@ -70,7 +70,7 @@ Breakpoint::~Breakpoint()
TQString Breakpoint::dbgRemoveCommand() const
{
// if (dbgId_>0)
-// return TQString("delete %1").arg(dbgId_); // gdb command - not translatable
+// return TQString("delete %1").tqarg(dbgId_); // gdb command - not translatable
return TQString();
}
@@ -161,9 +161,9 @@ TQString FilePosBreakpoint::dbgSetCommand() const
{
TQString cmdStr;
if (fileName_.isEmpty())
- cmdStr = TQString("break %1").arg(lineNo_); // gdb command - not translatable
+ cmdStr = TQString("break %1").tqarg(lineNo_); // gdb command - not translatable
else {
- cmdStr = TQString("break %1:%2").arg(fileName_).arg(lineNo_);
+ cmdStr = TQString("break %1:%2").tqarg(fileName_).tqarg(lineNo_);
}
if (isTemporary())
diff --git a/languages/ruby/debugger/dbgcontroller.h b/languages/ruby/debugger/dbgcontroller.h
index 56aaee11..6fe2e0db 100644
--- a/languages/ruby/debugger/dbgcontroller.h
+++ b/languages/ruby/debugger/dbgcontroller.h
@@ -77,9 +77,10 @@ enum RttiValues {
/***************************************************************************/
/***************************************************************************/
/***************************************************************************/
-class DbgController : public QObject
+class DbgController : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
@@ -126,7 +127,7 @@ public slots:
virtual void slotBPState(const Breakpoint&) = 0;
- virtual void slotExpandItem(VarItem *parent,
+ virtual void slotExpandItem(VarItem *tqparent,
const TQCString &userRequest) = 0;
virtual void slotSelectFrame(int frame, int thread,
const TQString& frameName) = 0;
@@ -150,7 +151,7 @@ signals:
void rdbStdout (const char *output);
void rdbStderr (const char *output);
void showStepInSource (const TQString &fileName, int lineNum, const TQString &address);
- void dbgStatus (const TQString &status, int statusFlag);
+ void dbgtqStatus (const TQString &status, int statusFlag);
protected:
KProcess *dbgProcess_;
diff --git a/languages/ruby/debugger/dbgpsdlg.cpp b/languages/ruby/debugger/dbgpsdlg.cpp
index d5458c28..336a48b6 100644
--- a/languages/ruby/debugger/dbgpsdlg.cpp
+++ b/languages/ruby/debugger/dbgpsdlg.cpp
@@ -51,8 +51,8 @@ namespace RDBDebugger
// For use with the internal debugger, but this dialog doesn't know anything
// about why it's doing it.
-Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
- : KDialog(parent, name, true), // modal
+Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *tqparent, const char *name)
+ : KDialog(tqparent, name, true), // modal
psProc_(0),
pids_(new TQListBox(this)),
heading_(new TQLabel(" ", this)),
@@ -64,8 +64,8 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
heading_->setFont(KGlobalSettings::fixedFont());
heading_->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
- heading_->setMaximumHeight(heading_->sizeHint().height());
-// heading_->setMinimumSize(heading_->sizeHint());
+ heading_->setMaximumHeight(heading_->tqsizeHint().height());
+// heading_->setMinimumSize(heading_->tqsizeHint());
topLayout->addWidget(heading_, 5);
topLayout->addWidget(pids_, 5);
@@ -75,7 +75,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
buttonbox->addStretch();
TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
- buttonbox->layout();
+ buttonbox->tqlayout();
topLayout->addWidget(buttonbox);
connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
@@ -149,14 +149,14 @@ void Dbg_PS_Dialog::slotProcessExited()
pidLines_ += '\n';
- int start = pidLines_.find('\n', 0); // Skip the first line (header line)
+ int start = pidLines_.tqfind('\n', 0); // Skip the first line (header line)
int pos;
if (start != -1)
heading_->setText(pidLines_.left(start));
- while ( (pos = pidLines_.find('\n', start)) != -1) {
+ while ( (pos = pidLines_.tqfind('\n', start)) != -1) {
TQString item = pidLines_.mid(start, pos-start);
if (!item.isEmpty()) {
- if (item.find(pidCmd_) == -1)
+ if (item.tqfind(pidCmd_) == -1)
pids_->insertItem(item);
}
diff --git a/languages/ruby/debugger/dbgpsdlg.h b/languages/ruby/debugger/dbgpsdlg.h
index 928e4c54..1f30d6a7 100644
--- a/languages/ruby/debugger/dbgpsdlg.h
+++ b/languages/ruby/debugger/dbgpsdlg.h
@@ -36,9 +36,10 @@ namespace RDBDebugger
class Dbg_PS_Dialog : public KDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- Dbg_PS_Dialog( TQWidget *parent=0, const char *name=0 );
+ Dbg_PS_Dialog( TQWidget *tqparent=0, const char *name=0 );
~Dbg_PS_Dialog();
int pidSelected();
diff --git a/languages/ruby/debugger/dbgtoolbar.cpp b/languages/ruby/debugger/dbgtoolbar.cpp
index 36b42f07..706b6284 100644
--- a/languages/ruby/debugger/dbgtoolbar.cpp
+++ b/languages/ruby/debugger/dbgtoolbar.cpp
@@ -71,10 +71,10 @@ namespace RDBDebugger
// the iconify, close, etc buttons from the window title but again I kept running
// into problems. Instead, I used no decoration and this class. Also this looks
// similar to the KToolBar floating style.
-class DbgMoveHandle : public QFrame
+class DbgMoveHandle : public TQFrame
{
public:
- DbgMoveHandle(DbgToolBar *parent=0, const char * name=0, WFlags f=0);
+ DbgMoveHandle(DbgToolBar *tqparent=0, const char * name=0, WFlags f=0);
virtual ~DbgMoveHandle();
virtual void mousePressEvent(TQMouseEvent *e);
@@ -89,9 +89,9 @@ private:
// **************************************************************************
-DbgMoveHandle::DbgMoveHandle(DbgToolBar *parent, const char * name, WFlags f)
- : TQFrame(parent, name, f),
- toolBar_(parent),
+DbgMoveHandle::DbgMoveHandle(DbgToolBar *tqparent, const char * name, WFlags f)
+ : TQFrame(tqparent, name, f),
+ toolBar_(tqparent),
offset_(TQPoint(0,0)),
moving_(false)
{
@@ -113,21 +113,21 @@ void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
if (moving_)
return;
- if (e->button() == RightButton) {
+ if (e->button() == Qt::RightButton) {
KPopupMenu *menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"),
- parent(), TQT_SLOT(slotDock()));
+ tqparent(), TQT_SLOT(slotDock()));
menu->insertItem(i18n("Dock to Panel && Iconify KDevelop"),
- parent(), TQT_SLOT(slotIconifyAndDock()));
+ tqparent(), TQT_SLOT(slotIconifyAndDock()));
menu->popup(e->globalPos());
} else {
moving_ = true;
- offset_ = parentWidget()->pos() - e->globalPos();
+ offset_ = tqparentWidget()->pos() - e->globalPos();
setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
TQApplication::setOverrideCursor(TQCursor(sizeAllCursor));
- setPalette(TQPalette(colorGroup().background()));
- repaint();
+ setPalette(TQPalette(tqcolorGroup().background()));
+ tqrepaint();
}
}
@@ -140,8 +140,8 @@ void DbgMoveHandle::mouseReleaseEvent(TQMouseEvent *e)
offset_ = TQPoint(0,0);
setFrameStyle(TQFrame::Panel|TQFrame::Raised);
TQApplication::restoreOverrideCursor();
- setPalette(TQPalette(colorGroup().background()));
- repaint();
+ setPalette(TQPalette(tqcolorGroup().background()));
+ tqrepaint();
}
// **************************************************************************
@@ -159,16 +159,16 @@ void DbgMoveHandle::mouseMoveEvent(TQMouseEvent *e)
// **************************************************************************
// **************************************************************************
-// This class adds text _and_ a pixmap to a button. Why doesn't QPushButton
+// This class adds text _and_ a pixmap to a button. Why doesn't TQPushButton
// support that? It only allowed text _or_ pixmap.
-class DbgButton : public QPushButton
+class DbgButton : public TQPushButton
{
public:
DbgButton(const TQPixmap &pixmap, const TQString &text,
- DbgToolBar *parent, const char *name=0);
+ DbgToolBar *tqparent, const char *name=0);
virtual ~DbgButton() {};
void drawButtonLabel(TQPainter *painter);
- TQSize sizeHint() const;
+ TQSize tqsizeHint() const;
private:
TQPixmap pixmap_;
@@ -177,8 +177,8 @@ private:
// **************************************************************************
DbgButton::DbgButton(const TQPixmap& pixmap, const TQString& text,
- DbgToolBar* parent, const char* name)
- : TQPushButton(parent, name),
+ DbgToolBar* tqparent, const char* name)
+ : TQPushButton(tqparent, name),
pixmap_(pixmap)
{
setText(text);
@@ -197,27 +197,27 @@ void DbgButton::drawButtonLabel(TQPainter *painter)
painter->drawPixmap(x, y, pixmap_);
if (hasText) {
- painter->setPen(colorGroup().text());
+ painter->setPen(tqcolorGroup().text());
painter->drawText(height()+2, 0, width()-(height()+2), height(), AlignLeft|AlignVCenter, text());
}
}
// **************************************************************************
-TQSize DbgButton::sizeHint() const
+TQSize DbgButton::tqsizeHint() const
{
if (text().isEmpty())
return pixmap_.size();
else
- return TQPushButton::sizeHint();
+ return TQPushButton::tqsizeHint();
}
// **************************************************************************
// **************************************************************************
// **************************************************************************
-DbgDocker::DbgDocker(TQWidget* parent, DbgToolBar* toolBar, const TQPixmap& pixmap) :
- KSystemTray(parent, "DbgDocker"),
+DbgDocker::DbgDocker(TQWidget* tqparent, DbgToolBar* toolBar, const TQPixmap& pixmap) :
+ KSystemTray(tqparent, "DbgDocker"),
toolBar_(toolBar)
{
setPixmap(pixmap);
@@ -228,17 +228,17 @@ DbgDocker::DbgDocker(TQWidget* parent, DbgToolBar* toolBar, const TQPixmap& pixm
void DbgDocker::mousePressEvent(TQMouseEvent *e)
{
- if (!rect().contains( e->pos()))
+ if (!TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos()))
return;
switch (e->button()) {
- case LeftButton:
+ case Qt::LeftButton:
{
// Not really a click, but it'll hold for the time being !!!
emit clicked();
break;
}
- case RightButton:
+ case Qt::RightButton:
{
KPopupMenu* menu = new KPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
@@ -257,7 +257,7 @@ void DbgDocker::mousePressEvent(TQMouseEvent *e)
// **************************************************************************
DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
- TQWidget* parent, const char* name)
+ TQWidget* tqparent, const char* name)
: TQFrame(0, name),
part_(part),
activeWindow_(0),
@@ -267,10 +267,10 @@ DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
appIsActive_(false),
docked_(false),
docker_(0),
- dockWindow_(new KSystemTray(parent))
+ dockWindow_(new KSystemTray(tqparent))
{
- winModule_ = new KWinModule(this);
- docker_ = new DbgDocker(parent, this, BarIcon("dbgnext"));
+ winModule_ = new KWinModule(TQT_TQOBJECT(this));
+ docker_ = new DbgDocker(tqparent, this, BarIcon("dbgnext"));
connect(docker_, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotStepOver()));
// Must have noFocus set so that we can see what window was active.
@@ -284,7 +284,7 @@ DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
// KWin::setType(winId(), NET::Override); // So it has no decoration
KWin::setType(winId(), NET::Dock);
- setFocusPolicy(NoFocus);
+ setFocusPolicy(TQ_NoFocus);
setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(4);
setMidLineWidth(0);
@@ -303,8 +303,8 @@ DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
TQPushButton* bStep = new DbgButton(BarIcon("dbgstep"), i18n("Step Into"), this);
TQPushButton* bFinish = new DbgButton(BarIcon("dbgstepout"), i18n("Step Out"), this);
TQPushButton* bRunTo = new DbgButton(BarIcon("dbgrunto"), i18n("Run to Cursor"), this);
- bPrevFocus_ = new DbgButton(BarIcon("dbgmemview"), TQString::null, this);
- bKDevFocus_ = new DbgButton(BarIcon("kdevelop"), TQString::null, this);
+ bPrevFocus_ = new DbgButton(BarIcon("dbgmemview"), TQString(), this);
+ bKDevFocus_ = new DbgButton(BarIcon("kdevelop"), TQString(), this);
connect(bRun, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotRun()));
connect(bInterrupt, TQT_SIGNAL(clicked()), part_, TQT_SLOT(slotPause()));
@@ -351,12 +351,12 @@ DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
nextLayout->addWidget(bNext);
-// int w = QMAX(bRun->sizeHint().width(), bFinish->sizeHint().width());
-// w = QMAX(w, bInterrupt->sizeHint().width());
-// w = QMAX(w, bView->sizeHint().width());
+// int w = TQMAX(bRun->tqsizeHint().width(), bFinish->tqsizeHint().width());
+// w = TQMAX(w, bInterrupt->tqsizeHint().width());
+// w = TQMAX(w, bView->tqsizeHint().width());
// they should have the same height, so don't be too fussy
-// int h = bFinish->sizeHint().height();
+// int h = bFinish->tqsizeHint().height();
//
// bNext->setMinimumHeight(h);
// bNexti->setMinimumHeight(h);
@@ -390,10 +390,10 @@ void DbgToolBar::slotKdevFocus()
// If anyone has a way of determining what window the app is _actually_ running on
// then please fix and send a patch.
- if (winModule_->activeWindow() != topLevelWidget()->winId())
+ if (winModule_->activeWindow() != tqtopLevelWidget()->winId())
activeWindow_ = winModule_->activeWindow();
- KWin::activateWindow(topLevelWidget()->winId());
+ KWin::activateWindow(tqtopLevelWidget()->winId());
}
// **************************************************************************
@@ -407,7 +407,7 @@ void DbgToolBar::slotPrevFocus()
// If the app is active then the app button is highlighted, otherwise
// kdev button is highlighted.
-void DbgToolBar::slotDbgStatus(const TQString&, int state)
+void DbgToolBar::slotDbgtqStatus(const TQString&, int state)
{
bool appIndicator = state & s_appBusy;
if (appIndicator != appIsActive_) {
@@ -421,11 +421,11 @@ void DbgToolBar::slotDbgStatus(const TQString&, int state)
void DbgToolBar::setAppIndicator(bool appIndicator)
{
if (appIndicator) {
- bPrevFocus_->setPalette(TQPalette(colorGroup().mid()));
- bKDevFocus_->setPalette(TQPalette(colorGroup().background()));
+ bPrevFocus_->setPalette(TQPalette(tqcolorGroup().mid()));
+ bKDevFocus_->setPalette(TQPalette(tqcolorGroup().background()));
} else {
- bPrevFocus_->setPalette(TQPalette(colorGroup().background()));
- bKDevFocus_->setPalette(TQPalette(colorGroup().mid()));
+ bPrevFocus_->setPalette(TQPalette(tqcolorGroup().background()));
+ bKDevFocus_->setPalette(TQPalette(tqcolorGroup().mid()));
}
}
@@ -473,7 +473,7 @@ void DbgToolBar::slotActivateAndUndock()
if (!docked_)
return;
- KWin::activateWindow(topLevelWidget()->winId());
+ KWin::activateWindow(tqtopLevelWidget()->winId());
slotUndock();
}
diff --git a/languages/ruby/debugger/dbgtoolbar.h b/languages/ruby/debugger/dbgtoolbar.h
index a83c120a..2d059cec 100644
--- a/languages/ruby/debugger/dbgtoolbar.h
+++ b/languages/ruby/debugger/dbgtoolbar.h
@@ -39,9 +39,10 @@ class RubyDebuggerPart;
class DbgDocker : public KSystemTray
{
Q_OBJECT
+ TQ_OBJECT
public:
- DbgDocker(TQWidget *parent, DbgToolBar *toolBar, const TQPixmap &pixmap);
+ DbgDocker(TQWidget *tqparent, DbgToolBar *toolBar, const TQPixmap &pixmap);
virtual ~DbgDocker() {};
virtual void mousePressEvent(TQMouseEvent *e);
@@ -53,16 +54,17 @@ private:
};
-class DbgToolBar : public QFrame
+class DbgToolBar : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- DbgToolBar(RubyDebuggerPart *part, TQWidget* parent, const char* name=0);
+ DbgToolBar(RubyDebuggerPart *part, TQWidget* tqparent, const char* name=0);
virtual ~DbgToolBar();
private slots:
- void slotDbgStatus(const TQString&, int);
+ void slotDbgtqStatus(const TQString&, int);
void slotDock();
void slotUndock();
void slotIconifyAndDock();
diff --git a/languages/ruby/debugger/debuggee.rb b/languages/ruby/debugger/debuggee.rb
index 38e2dea7..51df5867 100644
--- a/languages/ruby/debugger/debuggee.rb
+++ b/languages/ruby/debugger/debuggee.rb
@@ -441,7 +441,7 @@ class Context
stdout.printf "Set watchpoint %d\n", break_points.size, exp
when /^\s*b(?:reak)?$/
- if break_points.find{|b| b[1] == 0}
+ if break_points.tqfind{|b| b[1] == 0}
n = 1
stdout.print "Breakpoints:\n"
for b in break_points
@@ -451,7 +451,7 @@ class Context
n += 1
end
end
- if break_points.find{|b| b[1] == 1}
+ if break_points.tqfind{|b| b[1] == 1}
n = 1
stdout.print "\n"
stdout.print "Watchpoints:\n"
@@ -827,7 +827,7 @@ EOHELP
exit
end
- if @catch and ($!.class.ancestors.find { |e| e.to_s == @catch })
+ if @catch and ($!.class.ancestors.tqfind { |e| e.to_s == @catch })
stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.class
fs = @frames.size
tb = caller(0)[-fs..-1]
diff --git a/languages/ruby/debugger/debuggerpart.cpp b/languages/ruby/debugger/debuggerpart.cpp
index 3e46a3d4..7a953fe4 100644
--- a/languages/ruby/debugger/debuggerpart.cpp
+++ b/languages/ruby/debugger/debuggerpart.cpp
@@ -72,8 +72,8 @@ static const KDevPluginInfo data("kdevrbdebugger");
typedef KDevGenericFactory<RubyDebuggerPart> RubyDebuggerFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevrbdebugger, RubyDebuggerFactory( data ) )
-RubyDebuggerPart::RubyDebuggerPart( TQObject *parent, const char *name, const TQStringList & ) :
- KDevPlugin( &data, parent, name ? name : "RubyDebuggerPart" ),
+RubyDebuggerPart::RubyDebuggerPart( TQObject *tqparent, const char *name, const TQStringList & ) :
+ KDevPlugin( &data, tqparent, name ? name : "RubyDebuggerPart" ),
controller(0)
{
// setObjId("RubyDebuggerInterface");
@@ -312,16 +312,16 @@ void RubyDebuggerPart::contextMenu(TQPopupMenu *popup, const Context *context)
if (econtext->url().isLocalFile())
{
int id = popup->insertItem( i18n("Toggle Breakpoint"), this, TQT_SLOT(toggleBreakpoint()) );
- popup->setWhatsThis(id, i18n("<b>Toggle breakpoint</b><p>Toggles breakpoint at the current line."));
+ popup->tqsetWhatsThis(id, i18n("<b>Toggle breakpoint</b><p>Toggles breakpoint at the current line."));
}
if (!m_contextIdent.isEmpty())
{
TQString squeezed = KStringHandler::csqueeze(m_contextIdent, 30);
- int id = popup->insertItem( i18n("Watch: %1").arg(squeezed), this, TQT_SLOT(contextWatch()) );
- popup->setWhatsThis(id, i18n("<b>Watch</b><p>Adds an expression under the cursor to the Variables/Watch list."));
+ int id = popup->insertItem( i18n("Watch: %1").tqarg(squeezed), this, TQT_SLOT(contextWatch()) );
+ popup->tqsetWhatsThis(id, i18n("<b>Watch</b><p>Adds an expression under the cursor to the Variables/Watch list."));
- id = popup->insertItem( i18n("Inspect: %1").arg(squeezed), this, TQT_SLOT(contextRubyInspect()) );
- popup->setWhatsThis(id, i18n("<b>Inspect</b><p>Evaluates an expression under the cursor."));
+ id = popup->insertItem( i18n("Inspect: %1").tqarg(squeezed), this, TQT_SLOT(contextRubyInspect()) );
+ popup->tqsetWhatsThis(id, i18n("<b>Inspect</b><p>Evaluates an expression under the cursor."));
}
}
@@ -412,8 +412,8 @@ void RubyDebuggerPart::setupController()
// controller -> this
- connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
- this, TQT_SLOT(slotStatus(const TQString&, int)));
+ connect( controller, TQT_SIGNAL(dbgtqStatus(const TQString&, int)),
+ this, TQT_SLOT(slottqStatus(const TQString&, int)));
connect( controller, TQT_SIGNAL(showStepInSource(const TQString&, int, const TQString&)),
this, TQT_SLOT(slotShowStep(const TQString&, int)));
@@ -428,8 +428,8 @@ void RubyDebuggerPart::setupController()
rdbOutputWidget, TQT_SLOT(slotReceivedStdout(const char*)) );
connect( controller, TQT_SIGNAL(rdbStderr(const char*)),
rdbOutputWidget, TQT_SLOT(slotReceivedStderr(const char*)) );
- connect( controller, TQT_SIGNAL(dbgStatus(const TQString&, int)),
- rdbOutputWidget, TQT_SLOT(slotDbgStatus(const TQString&, int)));
+ connect( controller, TQT_SIGNAL(dbgtqStatus(const TQString&, int)),
+ rdbOutputWidget, TQT_SLOT(slotDbgtqStatus(const TQString&, int)));
}
@@ -478,7 +478,7 @@ bool RubyDebuggerPart::startDebugger()
{
KMessageBox::error(
mainWindow()->main(),
- i18n("Could not locate the debugging shell '%1'.").arg( shell ),
+ i18n("Could not locate the debugging shell '%1'.").tqarg( shell ),
i18n("Debugging Shell Not Found") );
return false;
}
@@ -683,7 +683,7 @@ void RubyDebuggerPart::slotRefreshBPState( const Breakpoint& BP)
}
-void RubyDebuggerPart::slotStatus(const TQString &msg, int state)
+void RubyDebuggerPart::slottqStatus(const TQString &msg, int state)
{
TQString stateIndicator;
diff --git a/languages/ruby/debugger/debuggerpart.h b/languages/ruby/debugger/debuggerpart.h
index c78a53ee..5f3a06a6 100644
--- a/languages/ruby/debugger/debuggerpart.h
+++ b/languages/ruby/debugger/debuggerpart.h
@@ -48,9 +48,10 @@ class RDBOutputWidget;
class RubyDebuggerPart : public KDevPlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- RubyDebuggerPart( TQObject *parent, const char *name, const TQStringList & );
+ RubyDebuggerPart( TQObject *tqparent, const char *name, const TQStringList & );
~RubyDebuggerPart();
virtual void restorePartialProjectSession(const TQDomElement* el);
virtual void savePartialProjectSession(TQDomElement* el);
@@ -75,7 +76,7 @@ private slots:
void slotStepOut();
void slotRefreshBPState(const Breakpoint&);
- void slotStatus(const TQString &msg, int state);
+ void slottqStatus(const TQString &msg, int state);
void slotShowStep(const TQString &fileName, int lineNum);
void slotGotoSource(const TQString &fileName, int lineNum);
diff --git a/languages/ruby/debugger/framestackwidget.cpp b/languages/ruby/debugger/framestackwidget.cpp
index c8083dc8..d98582c5 100644
--- a/languages/ruby/debugger/framestackwidget.cpp
+++ b/languages/ruby/debugger/framestackwidget.cpp
@@ -41,8 +41,8 @@
namespace RDBDebugger
{
-FramestackWidget::FramestackWidget(TQWidget *parent, const char *name, WFlags f)
- : TQListView(parent, name, f),
+FramestackWidget::FramestackWidget(TQWidget *tqparent, const char *name, WFlags f)
+ : TQListView(tqparent, name, f),
viewedThread_(0)
{
setRootIsDecorated(true);
@@ -119,7 +119,7 @@ void FramestackWidget::parseRDBThreadList(char *str)
ThreadStackItem* thread;
thread = new ThreadStackItem( this,
thread_re.cap(2).toInt(),
- TQString("%1 %2").arg(thread_re.cap(2)).arg(thread_re.cap(3)) );
+ TQString("%1 %2").tqarg(thread_re.cap(2)).tqarg(thread_re.cap(3)) );
// The thread with a '+' is always the viewedthread
if (thread_re.cap(1) == "+") {
viewedThread_ = thread;
@@ -136,11 +136,11 @@ void FramestackWidget::parseRDBThreadList(char *str)
void FramestackWidget::parseRDBBacktraceList(char *str)
{
- QRegExp frame_re("#(\\d+) ([^:]+):(\\d+)(:in `([^\\n]+)')?");
+ TQRegExp frame_re("#(\\d+) ([^:]+):(\\d+)(:in `([^\\n]+)')?");
int pos = frame_re.search(str);
while (pos != -1) {
- QString method(frame_re.cap(5));
+ TQString method(frame_re.cap(5));
if (method == "") {
method = "toplevel";
} else {
@@ -148,7 +148,7 @@ void FramestackWidget::parseRDBBacktraceList(char *str)
}
int frameNo = frame_re.cap(1).toInt();
- TQString frameName = TQString("T%1#%2 %3").arg(viewedThread_->threadNo()).arg(frame_re.cap(1)).arg(method);
+ TQString frameName = TQString("T%1#%2 %3").tqarg(viewedThread_->threadNo()).tqarg(frame_re.cap(1)).tqarg(method);
new FrameStackItem(viewedThread_, frameNo, TQString(frame_re.cap(0)), frameName);
// Tell the Variable Tree that this frame is active
@@ -211,10 +211,10 @@ FrameStackItem *FramestackWidget::findFrame(int frameNo, int threadNo)
// **************************************************************************
-FrameStackItem::FrameStackItem(ThreadStackItem *parent, int frameNo, const TQString &frameDesc, const TQString& frameName)
- : TQListViewItem(parent),
+FrameStackItem::FrameStackItem(ThreadStackItem *tqparent, int frameNo, const TQString &frameDesc, const TQString& frameName)
+ : TQListViewItem(tqparent),
frameNo_(frameNo),
- threadNo_(parent->threadNo()),
+ threadNo_(tqparent->threadNo()),
frameName_(frameName)
{
setText(0, frameDesc);
@@ -239,8 +239,8 @@ TQString FrameStackItem::key(int /*column*/, bool /*ascending*/) const
// **************************************************************************
// **************************************************************************
-ThreadStackItem::ThreadStackItem(FramestackWidget *parent, int threadNo, const TQString &threadDesc)
- : TQListViewItem(parent),
+ThreadStackItem::ThreadStackItem(FramestackWidget *tqparent, int threadNo, const TQString &threadDesc)
+ : TQListViewItem(tqparent),
threadNo_(threadNo)
{
setText(0, threadDesc);
diff --git a/languages/ruby/debugger/framestackwidget.h b/languages/ruby/debugger/framestackwidget.h
index b000f042..59280f3b 100644
--- a/languages/ruby/debugger/framestackwidget.h
+++ b/languages/ruby/debugger/framestackwidget.h
@@ -33,10 +33,10 @@ namespace RDBDebugger
class FramestackWidget;
-class ThreadStackItem : public QListViewItem
+class ThreadStackItem : public TQListViewItem
{
public:
- ThreadStackItem(FramestackWidget *parent, int threadNo, const TQString &threadDesc);
+ ThreadStackItem(FramestackWidget *tqparent, int threadNo, const TQString &threadDesc);
virtual ~ThreadStackItem();
virtual int rtti() const { return RTTI_THREAD_STACK_ITEM; }
@@ -52,10 +52,10 @@ private:
/***************************************************************************/
/***************************************************************************/
-class FrameStackItem : public QListViewItem
+class FrameStackItem : public TQListViewItem
{
public:
- FrameStackItem(ThreadStackItem * parent, int frameNo, const TQString & frameDesc, const TQString & frameName);
+ FrameStackItem(ThreadStackItem * tqparent, int frameNo, const TQString & frameDesc, const TQString & frameName);
virtual ~FrameStackItem();
virtual int rtti() const { return RTTI_FRAME_STACK_ITEM; }
@@ -79,12 +79,13 @@ private:
/**
* @author John Birch
*/
-class FramestackWidget : public QListView
+class FramestackWidget : public TQListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- FramestackWidget( TQWidget *parent=0, const char *name=0, WFlags f=0 );
+ FramestackWidget( TQWidget *tqparent=0, const char *name=0, WFlags f=0 );
virtual ~FramestackWidget();
void clear();
diff --git a/languages/ruby/debugger/rdbbreakpointwidget.cpp b/languages/ruby/debugger/rdbbreakpointwidget.cpp
index b9ead060..7c987289 100644
--- a/languages/ruby/debugger/rdbbreakpointwidget.cpp
+++ b/languages/ruby/debugger/rdbbreakpointwidget.cpp
@@ -56,7 +56,7 @@ enum Column {
Control = 0,
Enable = 1,
Type = 2,
- Status = 3,
+ tqStatus = 3,
Location = 4
};
@@ -69,7 +69,7 @@ static int m_activeFlag = 0;
/***************************************************************************/
/***************************************************************************/
-class BreakpointTableRow : public QTableItem
+class BreakpointTableRow : public TQTableItem
{
public:
@@ -93,9 +93,9 @@ private:
/***************************************************************************/
/***************************************************************************/
-BreakpointTableRow::BreakpointTableRow(TQTable* parent, EditType editType,
+BreakpointTableRow::BreakpointTableRow(TQTable* tqparent, EditType editType,
Breakpoint* bp) :
- TQTableItem(parent, editType, ""),
+ TQTableItem(tqparent, editType, ""),
m_breakpoint(bp)
{
appendEmptyRow();
@@ -149,7 +149,7 @@ void BreakpointTableRow::setRow()
TQString status=m_breakpoint->statusDisplay(m_activeFlag);
- table()->setText(row(), Status, status);
+ table()->setText(row(), tqStatus, status);
TQString displayType = m_breakpoint->displayType();
table()->setText(row(), Location, m_breakpoint->location());
@@ -159,7 +159,7 @@ void BreakpointTableRow::setRow()
table()->setText(row(), Type, displayType);
table()->adjustColumn(Type);
- table()->adjustColumn(Status);
+ table()->adjustColumn(tqStatus);
table()->adjustColumn(Location);
}
}
@@ -168,8 +168,8 @@ void BreakpointTableRow::setRow()
/***************************************************************************/
/***************************************************************************/
-RDBBreakpointWidget::RDBBreakpointWidget(TQWidget *parent, const char *name) :
- TQHBox(parent, name)
+RDBBreakpointWidget::RDBBreakpointWidget(TQWidget *tqparent, const char *name) :
+ TQHBox(tqparent, name)
{
TQFrame* toolbar = new TQFrame( this );
TQVBoxLayout *l = new TQVBoxLayout(toolbar, 0, 0);
@@ -221,14 +221,14 @@ RDBBreakpointWidget::RDBBreakpointWidget(TQWidget *parent, const char *name) :
m_table->hideColumn(Control);
m_table->setColumnReadOnly(Type, true);
- m_table->setColumnReadOnly(Status, true);
+ m_table->setColumnReadOnly(tqStatus, true);
m_table->setColumnWidth( Enable, 20);
TQHeader *header = m_table->horizontalHeader();
header->setLabel( Enable, "" );
header->setLabel( Type, i18n("Type") );
- header->setLabel( Status, i18n("Status") );
+ header->setLabel( tqStatus, i18n("tqStatus") );
header->setLabel( Location, i18n("Location") );
m_table->show();
@@ -311,7 +311,7 @@ void RDBBreakpointWidget::slotRefreshBP(const KURL &filename)
/***************************************************************************/
-BreakpointTableRow* RDBBreakpointWidget::find(Breakpoint *breakpoint)
+BreakpointTableRow* RDBBreakpointWidget::tqfind(Breakpoint *breakpoint)
{
// NOTE:- The match doesn't have to be equal. Each type of bp
// must decide on the match criteria.
@@ -398,7 +398,7 @@ void RDBBreakpointWidget::slotToggleBreakpoint(const TQString &fileName, int lin
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
if (btr)
{
delete fpBP;
@@ -414,7 +414,7 @@ void RDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName,
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
delete fpBP;
if (btr)
{
@@ -429,7 +429,7 @@ void RDBBreakpointWidget::slotToggleBreakpointEnabled(const TQString &fileName,
void RDBBreakpointWidget::slotToggleWatchpoint(const TQString &varName)
{
Watchpoint *watchpoint = new Watchpoint(varName, false, true);
- BreakpointTableRow* btr = find(watchpoint);
+ BreakpointTableRow* btr = tqfind(watchpoint);
if (btr)
{
removeBreakpoint(btr);
@@ -460,7 +460,7 @@ void RDBBreakpointWidget::slotSetPendingBPs()
/***************************************************************************/
// The debugger is having trouble with this bp - probably because a library
-// was unloaded and invalidated a bp that was previously set in the library
+// was unloaded and tqinvalidated a bp that was previously set in the library
// code. Reset the bp so that we can try again later.
void RDBBreakpointWidget::slotUnableToSetBPNow(int BPid)
{
@@ -773,7 +773,7 @@ void RDBBreakpointWidget::slotNewValue(int row, int col)
}
case Type:
- case Status:
+ case tqStatus:
default:
break;
}
@@ -792,7 +792,7 @@ void RDBBreakpointWidget::slotEditBreakpoint(const TQString &fileName, int lineN
{
FilePosBreakpoint *fpBP = new FilePosBreakpoint(fileName, lineNum+1);
- BreakpointTableRow* btr = find(fpBP);
+ BreakpointTableRow* btr = tqfind(fpBP);
delete fpBP;
if (btr)
@@ -889,7 +889,7 @@ void RDBBreakpointWidget::restorePartialProjectSession(const TQDomElement* el)
bp->setEnabled(breakpointEl.attribute( "enabled", "1").toInt());
// Add the bp if we don't already have it.
- if (!find(bp))
+ if (!tqfind(bp))
addBreakpoint(bp);
else
delete bp;
@@ -904,7 +904,7 @@ void RDBBreakpointWidget::slotAddBreakpoint( )
{
if (m_add->popup())
{
- m_add->popup()->popup(mapToGlobal(this->geometry().topLeft()));
+ m_add->popup()->popup(mapToGlobal(this->tqgeometry().topLeft()));
}
}
diff --git a/languages/ruby/debugger/rdbbreakpointwidget.h b/languages/ruby/debugger/rdbbreakpointwidget.h
index 75c0dfbb..58275842 100644
--- a/languages/ruby/debugger/rdbbreakpointwidget.h
+++ b/languages/ruby/debugger/rdbbreakpointwidget.h
@@ -39,12 +39,13 @@ class Breakpoint;
class BreakpointTableRow;
class RDBTable;
-class RDBBreakpointWidget : public QHBox
+class RDBBreakpointWidget : public TQHBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- RDBBreakpointWidget( TQWidget* parent=0, const char* name=0 );
+ RDBBreakpointWidget( TQWidget* tqparent=0, const char* name=0 );
virtual ~RDBBreakpointWidget();
void reset();
@@ -93,7 +94,7 @@ signals:
void clearAllBreakpoints();
private:
- BreakpointTableRow* find(Breakpoint *bp);
+ BreakpointTableRow* tqfind(Breakpoint *bp);
BreakpointTableRow* findId(int id);
BreakpointTableRow* findKey(int BPKey);
diff --git a/languages/ruby/debugger/rdbcontroller.cpp b/languages/ruby/debugger/rdbcontroller.cpp
index f0b6ea40..5dd15586 100644
--- a/languages/ruby/debugger/rdbcontroller.cpp
+++ b/languages/ruby/debugger/rdbcontroller.cpp
@@ -115,7 +115,7 @@ RDBController::RDBController(VariableTree *varTree, FramestackWidget *frameStack
{
struct sockaddr_un sockaddr;
unixSocketPath_.sprintf("/tmp/.rubydebugger%d", getpid());
- QFileInfo unixSocket(unixSocketPath_);
+ TQFileInfo unixSocket(unixSocketPath_);
stdoutSizeofBuf_ = sizeof(stdoutOutput_);
rdbSizeofBuf_ = sizeof(rdbOutput_);
@@ -236,7 +236,7 @@ void RDBController::executeCmd()
emit rdbStdout( prettyCmd.latin1() );
if (!stateIsOn(s_silent))
- emit dbgStatus("", state_);
+ emit dbgtqStatus("", state_);
}
// **************************************************************************
@@ -301,7 +301,7 @@ void RDBController::actOnProgramPause(const TQString &msg)
if (stateIsOn(s_silent))
return;
- emit dbgStatus (msg, state_);
+ emit dbgtqStatus (msg, state_);
// We're always at frame one when the program stops
// and we must reset the active flag
@@ -341,14 +341,14 @@ void RDBController::programNoApp(const TQString &msg, bool msgBox)
varTree_->viewport()->setUpdatesEnabled(false);
varTree_->prune();
varTree_->viewport()->setUpdatesEnabled(true);
- varTree_->repaint();
+ varTree_->tqrepaint();
frameStack_->clear();
if (msgBox)
KMessageBox::error(0, i18n("rdb message:\n")+msg);
- emit dbgStatus (msg, state_);
+ emit dbgtqStatus (msg, state_);
}
// **************************************************************************
@@ -394,9 +394,9 @@ void RDBController::parseProgramLocation(char *buf)
}
if (stateIsOn(s_appBusy))
- actOnProgramPause(i18n("No source: %1").arg(sourceFile));
+ actOnProgramPause(i18n("No source: %1").tqarg(sourceFile));
else
- emit dbgStatus (i18n("No source: %1").arg(sourceFile), state_);
+ emit dbgtqStatus (i18n("No source: %1").tqarg(sourceFile), state_);
}
// **************************************************************************
@@ -458,7 +458,7 @@ void RDBController::parseFrameMove(char *buf)
}
}
- emit dbgStatus(i18n("No source: %1").arg(sourceFile), state_);
+ emit dbgtqStatus(i18n("No source: %1").tqarg(sourceFile), state_);
}
// **************************************************************************
@@ -492,7 +492,7 @@ void RDBController::parseRequestedData(char *buf)
varTree_->viewport()->setUpdatesEnabled(false);
item->expandValue(buf);
varTree_->viewport()->setUpdatesEnabled(true);
- varTree_->repaint();
+ varTree_->tqrepaint();
}
}
@@ -505,7 +505,7 @@ void RDBController::parseFrameSelected(char *buf)
{
if (!stateIsOn(s_silent)) {
emit showStepInSource("", -1, "");
- emit dbgStatus (i18n("No source: %1").arg(TQString(buf)), state_);
+ emit dbgtqStatus (i18n("No source: %1").tqarg(TQString(buf)), state_);
}
}
@@ -517,7 +517,7 @@ void RDBController::parseDisplay(char *buf, char * expr)
varTree_->viewport()->setUpdatesEnabled(false);
varTree_->watchRoot()->setWatchExpression(buf, expr);
varTree_->viewport()->setUpdatesEnabled(true);
- varTree_->repaint();
+ varTree_->tqrepaint();
}
// **************************************************************************
@@ -538,7 +538,7 @@ void RDBController::parseUpdateDisplay(char *buf)
}
varTree_->viewport()->setUpdatesEnabled(true);
- varTree_->repaint();
+ varTree_->tqrepaint();
}
// **************************************************************************
@@ -549,7 +549,7 @@ void RDBController::parseGlobals(char *buf)
varTree_->viewport()->setUpdatesEnabled(false);
varTree_->globalRoot()->setGlobals(buf);
varTree_->viewport()->setUpdatesEnabled(true);
- varTree_->repaint();
+ varTree_->tqrepaint();
}
// **************************************************************************
@@ -584,7 +584,7 @@ void RDBController::parseLocals(char type, char *buf)
}
varTree_->viewport()->setUpdatesEnabled(true);
- varTree_->repaint();
+ varTree_->tqrepaint();
}
@@ -601,27 +601,27 @@ void RDBController::parse(char *buf)
parseProgramLocation(buf);
} else if (currentCmd_->rawDbgCommand() == "break") {
emit rawRDBBreakpointList(buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "break ", strlen("break ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "break ", strlen("break ")) == 0) {
parseBreakpointSet(buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "watch ", strlen("watch ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "watch ", strlen("watch ")) == 0) {
parseBreakpointSet(buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "display ", strlen("display ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "display ", strlen("display ")) == 0) {
parseDisplay(buf, currentCmd_->rawDbgCommand().data() + strlen("display "));
} else if (currentCmd_->rawDbgCommand() == "display") {
parseUpdateDisplay(buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "undisplay ", strlen("undisplay ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "undisplay ", strlen("undisplay ")) == 0) {
;
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "method instance ", strlen("method instance ")) == 0) {
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "method ", strlen("method ")) == 0) {
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "pp ", strlen("pp ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "method instance ", strlen("method instance ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "method ", strlen("method ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "pp ", strlen("pp ")) == 0) {
parseRequestedData(buf);
} else if (currentCmd_->rawDbgCommand() == "thread list") {
parseThreadList(buf);
- } else if ( qstrncmp(currentCmd_->rawDbgCommand(), "up ", strlen("up ")) == 0
- || qstrncmp(currentCmd_->rawDbgCommand(), "down ", strlen("down ")) == 0 )
+ } else if ( tqstrncmp(currentCmd_->rawDbgCommand(), "up ", strlen("up ")) == 0
+ || tqstrncmp(currentCmd_->rawDbgCommand(), "down ", strlen("down ")) == 0 )
{
parseFrameMove(buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "thread switch ", strlen("thread switch ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "thread switch ", strlen("thread switch ")) == 0) {
parseSwitchThread(buf);
} else if (currentCmd_->rawDbgCommand() == "thread current") {
parseThreadList(buf);
@@ -631,11 +631,11 @@ void RDBController::parse(char *buf)
parseGlobals(buf);
} else if (currentCmd_->rawDbgCommand() == "var local") {
parseLocals(LOCALS, buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "var instance ", strlen("var instance ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "var instance ", strlen("var instance ")) == 0) {
parseLocals(IVARS, buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "var class ", strlen("var class ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "var class ", strlen("var class ")) == 0) {
parseLocals(CVARS, buf);
- } else if (qstrncmp(currentCmd_->rawDbgCommand(), "var const ", strlen("var const ")) == 0) {
+ } else if (tqstrncmp(currentCmd_->rawDbgCommand(), "var const ", strlen("var const ")) == 0) {
parseLocals(CONSTANTS, buf);
}
@@ -766,9 +766,9 @@ void RDBController::slotStart(const TQString& ruby_interpreter, const TQString&
// BUT the app hasn't been started yet! A run command is about to be issued
// by whoever is controlling us.
- if (!dbgProcess_->writeStdin(TQString("%1\n").arg(unixSocketPath_).latin1(), strlen(unixSocketPath_) + 1)) {
+ if (!dbgProcess_->writeStdin(TQString("%1\n").tqarg(unixSocketPath_.data()).latin1(), strlen(unixSocketPath_) + 1)) {
kdDebug(9012) << "failed to write Unix domain socket path to rdb "
- << TQString("%1\n").arg(unixSocketPath_).latin1() << endl;
+ << TQString("%1\n").tqarg(unixSocketPath_.data()).latin1() << endl;
}
setStateOff(s_programExited);
@@ -797,7 +797,7 @@ void RDBController::slotStopDebugger()
start = TQTime::currentTime();
while (-1)
{
- kapp->processEvents(20);
+ kapp->tqprocessEvents(20);
now = TQTime::currentTime();
if (!stateIsOn(s_appBusy) || start.msecsTo( now ) > 2000)
break;
@@ -816,7 +816,7 @@ void RDBController::slotStopDebugger()
start = TQTime::currentTime();
while (-1)
{
- kapp->processEvents(20);
+ kapp->tqprocessEvents(20);
now = TQTime::currentTime();
if (stateIsOn(s_programExited) || start.msecsTo( now ) > 2000)
break;
@@ -833,7 +833,7 @@ void RDBController::slotStopDebugger()
delete tty_; tty_ = 0;
state_ = s_dbgNotStarted | s_appNotStarted | s_silent;
- emit dbgStatus (i18n("Debugger stopped"), state_);
+ emit dbgtqStatus (i18n("Debugger stopped"), state_);
}
@@ -1175,7 +1175,7 @@ void RDBController::slotDbgWroteStdin(KProcess *)
{
// setStateOff(s_waitForWrite);
// if (!stateIsOn(s_silent))
- // emit dbgStatus ("", state_);
+ // emit dbgtqStatus ("", state_);
// executeCmd();
}
@@ -1203,7 +1203,7 @@ void RDBController::slotAcceptConnection(int masterSocket)
this, TQT_SLOT(slotReadFromSocket(int)) );
setStateOff(s_dbgNotStarted);
- emit dbgStatus ("", state_);
+ emit dbgtqStatus ("", state_);
cmdList_.clear();
rdbOutputLen_ = 0;
@@ -1283,7 +1283,7 @@ void RDBController::slotDbgProcessExited(KProcess*)
{
destroyCmds();
state_ = s_appNotStarted|s_programExited|(state_&(s_shuttingDown));
- emit dbgStatus (i18n("Process exited"), state_);
+ emit dbgtqStatus (i18n("Process exited"), state_);
emit rdbStdout("(rdb:1) Process exited\n");
frameStack_->clear();
varTree_->clear();
diff --git a/languages/ruby/debugger/rdbcontroller.h b/languages/ruby/debugger/rdbcontroller.h
index e2ed0746..af72ddbc 100644
--- a/languages/ruby/debugger/rdbcontroller.h
+++ b/languages/ruby/debugger/rdbcontroller.h
@@ -56,6 +56,7 @@ class STTY;
class RDBController : public DbgController
{
Q_OBJECT
+ TQ_OBJECT
public:
RDBController(VariableTree *varTree, FramestackWidget *frameStack, TQDomDocument &projectDom);
@@ -116,7 +117,7 @@ public slots:
void slotBPState( const Breakpoint& );
void slotClearAllBreakpoints();
- void slotExpandItem(VarItem *parent, const TQCString &userRequest);
+ void slotExpandItem(VarItem *tqparent, const TQCString &userRequest);
void slotRubyInspect(const TQString &inspectText);
void slotSelectFrame(int frameNo, int threadNo, const TQString& frameName);
void slotFetchGlobals(bool fetch);
diff --git a/languages/ruby/debugger/rdboutputwidget.cpp b/languages/ruby/debugger/rdboutputwidget.cpp
index 6eef01c7..b1b9deda 100644
--- a/languages/ruby/debugger/rdboutputwidget.cpp
+++ b/languages/ruby/debugger/rdboutputwidget.cpp
@@ -44,8 +44,8 @@ namespace RDBDebugger
/***************************************************************************/
-RDBOutputWidget::RDBOutputWidget( TQWidget *parent, const char *name) :
- TQWidget(parent, name),
+RDBOutputWidget::RDBOutputWidget( TQWidget *tqparent, const char *name) :
+ TQWidget(tqparent, name),
m_userRDBCmdEditor(0),
m_Interrupt(0),
m_rdbView(0)
@@ -65,7 +65,7 @@ RDBOutputWidget::RDBOutputWidget( TQWidget *parent, const char *name) :
userRDBCmdEntry->setStretchFactor(m_userRDBCmdEditor, 1);
m_Interrupt = new TQToolButton( this, "add breakpoint" );
- m_Interrupt->setSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0,
+ m_Interrupt->tqsetSizePolicy ( TQSizePolicy ( (TQSizePolicy::SizeType)0,
( TQSizePolicy::SizeType)0,
0,
0,
@@ -79,7 +79,7 @@ RDBOutputWidget::RDBOutputWidget( TQWidget *parent, const char *name) :
topLayout->addWidget(m_rdbView, 10);
topLayout->addLayout(userRDBCmdEntry);
- slotDbgStatus( "", s_dbgNotStarted);
+ slotDbgtqStatus( "", s_dbgNotStarted);
connect( m_userRDBCmdEditor, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotRDBCmd()) );
connect( m_Interrupt, TQT_SIGNAL(clicked()), TQT_SIGNAL(breakInto()));
@@ -133,7 +133,7 @@ void RDBOutputWidget::slotRDBCmd()
/***************************************************************************/
-void RDBOutputWidget::slotDbgStatus(const TQString &, int statusFlag)
+void RDBOutputWidget::slotDbgtqStatus(const TQString &, int statusFlag)
{
if (statusFlag & s_dbgNotStarted)
{
diff --git a/languages/ruby/debugger/rdboutputwidget.h b/languages/ruby/debugger/rdboutputwidget.h
index 41d25e5d..32d53110 100644
--- a/languages/ruby/debugger/rdboutputwidget.h
+++ b/languages/ruby/debugger/rdboutputwidget.h
@@ -34,12 +34,13 @@ class TQToolButton;
namespace RDBDebugger
{
-class RDBOutputWidget : public QWidget
+class RDBOutputWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- RDBOutputWidget( TQWidget *parent=0, const char *name=0 );
+ RDBOutputWidget( TQWidget *tqparent=0, const char *name=0 );
~RDBOutputWidget();
void clear();
@@ -47,7 +48,7 @@ public:
public slots:
void slotReceivedStdout(const char* line);
void slotReceivedStderr(const char* line);
- void slotDbgStatus (const TQString &status, int statusFlag);
+ void slotDbgtqStatus (const TQString &status, int statusFlag);
void slotRDBCmd();
diff --git a/languages/ruby/debugger/rdbparser.cpp b/languages/ruby/debugger/rdbparser.cpp
index c1cd7717..dc7e0226 100644
--- a/languages/ruby/debugger/rdbparser.cpp
+++ b/languages/ruby/debugger/rdbparser.cpp
@@ -34,15 +34,15 @@ namespace RDBDebugger
// **************************************************************************
-void RDBParser::parseVariables(LazyFetchItem *parent, char *buf)
+void RDBParser::parseVariables(LazyFetchItem *tqparent, char *buf)
{
static const char *unknown = "?";
- QString varName;
- QCString value;
+ TQString varName;
+ TQCString value;
int pos;
- Q_ASSERT(parent);
+ Q_ASSERT(tqparent);
if (buf == 0 || strlen(buf) == 0) {
return;
}
@@ -64,10 +64,10 @@ void RDBParser::parseVariables(LazyFetchItem *parent, char *buf)
while (pos != -1) {
varName = var_re.cap(1);
if (ref_re.search(var_re.cap(2)) != -1) {
- if (var_re.cap(2).contains("=") > 0) {
+ if (var_re.cap(2).tqcontains("=") > 0) {
value = (ref_re.cap(1) + ">").latin1();
} else {
- // There are no 'name=value' pairs, as in #<Qt::Color:0x0 #ff0000>
+ // There are no 'name=value' pairs, as in #<TQt::Color:0x0 #ff0000>
value = var_re.cap(2).latin1();
}
} else if (struct_re.search(var_re.cap(2)) != -1) {
@@ -84,7 +84,7 @@ void RDBParser::parseVariables(LazyFetchItem *parent, char *buf)
dataType = VALUE_TYPE;
}
- setItem(parent, varName, dataType, value);
+ setItem(tqparent, varName, dataType, value);
pos += var_re.matchedLength();
pos = var_re.search(buf, pos);
@@ -94,15 +94,15 @@ void RDBParser::parseVariables(LazyFetchItem *parent, char *buf)
}
}
-void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
+void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
{
DataType dataType;
int pos;
- QString varName;
- QCString value;
+ TQString varName;
+ TQCString value;
TQRegExp ppref_re("(#<([^:]|::)+:0x[\\da-f]+)([^\\n>]*)(>?)");
- switch (parent->dataType()) {
+ switch (tqparent->dataType()) {
case REFERENCE_TYPE:
{
// Look for a reference type which has been printed via a 'pp' command, to
@@ -128,10 +128,10 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
varName = ppvalue_re.cap(1);
if (ppref_re.search(ppvalue_re.cap(2)) != -1) {
- if (ppvalue_re.cap(2).contains("=") > 0) {
+ if (ppvalue_re.cap(2).tqcontains("=") > 0) {
value = (ppref_re.cap(1) + ">").latin1();
} else {
- // There are no 'name=value' pairs, as in #<Qt::Color:0x0 #ff0000>
+ // There are no 'name=value' pairs, as in #<TQt::Color:0x0 #ff0000>
value = ppvalue_re.cap(2).latin1();
}
} else {
@@ -139,7 +139,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
}
dataType = determineType((char *) ppvalue_re.cap(2).latin1());
- setItem(parent, varName, dataType, value);
+ setItem(tqparent, varName, dataType, value);
pos += ppvalue_re.matchedLength();
pos = ppvalue_re.search(buf, pos);
@@ -170,7 +170,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
}
DataType dataType = determineType((char *) pparray_re.cap(2).latin1());
- setItem(parent, varName, dataType, value);
+ setItem(tqparent, varName, dataType, value);
pos += pparray_re.matchedLength();
pos = pparray_re.search(buf, pos);
@@ -193,7 +193,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
varName = pphash_re.cap(1);
value = pphash_re.cap(2).latin1();
DataType dataType = determineType(value.data());
- setItem(parent, varName, dataType, value);
+ setItem(tqparent, varName, dataType, value);
pos += pphash_re.matchedLength();
pos = pphash_re.search(buf, pos);
@@ -235,7 +235,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
varName = ppvalue_re.cap(1);
value = ppvalue_re.cap(2).latin1();
dataType = determineType(value.data());
- setItem(parent, varName, dataType, value);
+ setItem(tqparent, varName, dataType, value);
pos += ppvalue_re.matchedLength();
pos = ppvalue_re.search(buf, pos);
@@ -259,7 +259,7 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
varName = ppstring_re.cap(1);
value = ppstring_re.cap(2).latin1();
DataType dataType = determineType(value.data());
- setItem(parent, varName, dataType, value);
+ setItem(tqparent, varName, dataType, value);
pos += ppstring_re.matchedLength();
pos = ppstring_re.search(buf, pos);
@@ -278,12 +278,12 @@ void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
// **************************************************************************
-void RDBParser::setItem(LazyFetchItem *parent, const TQString &varName,
+void RDBParser::setItem(LazyFetchItem *tqparent, const TQString &varName,
DataType dataType, const TQCString &value)
{
- VarItem *item = parent->findItem(varName);
+ VarItem *item = tqparent->findItem(varName);
if (item == 0) {
- item = new VarItem(parent, varName, dataType);
+ item = new VarItem(tqparent, varName, dataType);
} else {
// The dataType of an item can change, so update it
item->setDataType(dataType);
@@ -319,11 +319,11 @@ DataType RDBParser::determineType(char *buf)
TQRegExp hash_re("(Hash \\(\\d+ element\\(s\\)\\))");
TQRegExp string_re("(String \\(length \\d+\\))");
- if (qstrncmp(buf, "#<struct", strlen("#<struct")) == 0) {
+ if (tqstrncmp(buf, "#<struct", strlen("#<struct")) == 0) {
return STRUCT_TYPE;
- } else if (qstrncmp(buf, "#<Qt::Color:0x", strlen("#<Qt::Color:0x")) == 0) {
+ } else if (tqstrncmp(buf, "#<TQt::Color:0x", strlen("#<TQt::Color:0x")) == 0) {
return COLOR_TYPE;
- } else if (qstrncmp(buf, "#<", strlen("#<")) == 0 && strstr(buf, "=") != 0) {
+ } else if (tqstrncmp(buf, "#<", strlen("#<")) == 0 && strstr(buf, "=") != 0) {
// An object instance reference is only expandable and a 'REFERENCE_TYPE'
// if it contains an '=' (ie it has at least one '@instance_variable=value').
// Otherwise, treat it as a 'VALUE_TYPE'.
@@ -334,7 +334,7 @@ DataType RDBParser::determineType(char *buf)
return HASH_TYPE;
} else if (string_re.search(buf) != -1) {
return STRING_TYPE;
- } else if (qstrncmp(buf, "nil", strlen("nil")) == 0) {
+ } else if (tqstrncmp(buf, "nil", strlen("nil")) == 0) {
// return UNKNOWN_TYPE;
return VALUE_TYPE;
} else {
diff --git a/languages/ruby/debugger/rdbparser.h b/languages/ruby/debugger/rdbparser.h
index d57e25d7..2ee59b0a 100644
--- a/languages/ruby/debugger/rdbparser.h
+++ b/languages/ruby/debugger/rdbparser.h
@@ -29,10 +29,10 @@ namespace RDBDebugger
namespace RDBParser
{
- void parseVariables(LazyFetchItem *parent, char *buf);
- void parseExpandedVariable(VarItem *parent, char *buf);
+ void parseVariables(LazyFetchItem *tqparent, char *buf);
+ void parseExpandedVariable(VarItem *tqparent, char *buf);
DataType determineType(char *buf);
- void setItem( LazyFetchItem *parent, const TQString &varName,
+ void setItem( LazyFetchItem *tqparent, const TQString &varName,
DataType dataType, const TQCString &value );
}
diff --git a/languages/ruby/debugger/rdbtable.cpp b/languages/ruby/debugger/rdbtable.cpp
index 31b7b6d2..429654d5 100644
--- a/languages/ruby/debugger/rdbtable.cpp
+++ b/languages/ruby/debugger/rdbtable.cpp
@@ -18,13 +18,13 @@
namespace RDBDebugger {
-RDBTable::RDBTable(TQWidget *parent, const char *name)
- : TQTable(parent, name)
+RDBTable::RDBTable(TQWidget *tqparent, const char *name)
+ : TQTable(tqparent, name)
{
}
-RDBTable::RDBTable(int nr, int nc, TQWidget * parent, const char * name)
- : TQTable(nr, nc, parent, name)
+RDBTable::RDBTable(int nr, int nc, TQWidget * tqparent, const char * name)
+ : TQTable(nr, nc, tqparent, name)
{
}
diff --git a/languages/ruby/debugger/rdbtable.h b/languages/ruby/debugger/rdbtable.h
index 714605d0..5cb72e93 100644
--- a/languages/ruby/debugger/rdbtable.h
+++ b/languages/ruby/debugger/rdbtable.h
@@ -20,12 +20,13 @@
namespace RDBDebugger {
-class RDBTable : public QTable
+class RDBTable : public TQTable
{
Q_OBJECT
+ TQ_OBJECT
public:
- RDBTable(TQWidget *parent = 0, const char *name = 0);
- RDBTable( int numRows, int numCols, TQWidget * parent = 0, const char * name = 0 );
+ RDBTable(TQWidget *tqparent = 0, const char *name = 0);
+ RDBTable( int numRows, int numCols, TQWidget * tqparent = 0, const char * name = 0 );
~RDBTable();
virtual void keyPressEvent ( TQKeyEvent * e );
diff --git a/languages/ruby/debugger/stty.cpp b/languages/ruby/debugger/stty.cpp
index bfdb5bd3..7381ae2a 100644
--- a/languages/ruby/debugger/stty.cpp
+++ b/languages/ruby/debugger/stty.cpp
@@ -104,7 +104,7 @@ static int chownpty(int fd, int grant)
// { // signal from other child, behave like catchChild.
// // guess this gives quite some control chaos...
- // Shell* sh = shells.find(rc);
+ // Shell* sh = shells.tqfind(rc);
// if (sh) { shells.remove(rc); sh->doneShell(w); }
// goto retry;
// }
@@ -305,7 +305,7 @@ bool STTY::findExternalTTY(const TQString &termApp)
const char* prog = appName.latin1();
TQString script = TQString("tty>") + TQString(fifo) +
TQString(";" // fifo name
- "trap \"\" INT QUIT TSTP;" // ignore various signals
+ "trap \"\" INT TQUIT TSTP;" // ignore various signals
"exec<&-;exec>&-;" // close stdin and stdout
"while :;do sleep 3600;done");
const char* scriptStr = script.latin1();
@@ -330,11 +330,11 @@ bool STTY::findExternalTTY(const TQString &termApp)
::exit(1);
}
- // parent process
+ // tqparent process
if (pid <= 0)
::exit(1);
- // Open the communication between us (the parent) and the
+ // Open the communication between us (the tqparent) and the
// child (the process running on a tty console)
fifo_fd = ::open(fifo, O_RDONLY);
if (fifo_fd < 0)
diff --git a/languages/ruby/debugger/stty.h b/languages/ruby/debugger/stty.h
index 20aece2c..d49e79f8 100644
--- a/languages/ruby/debugger/stty.h
+++ b/languages/ruby/debugger/stty.h
@@ -33,9 +33,10 @@ class TQSocketNotifier;
namespace RDBDebugger
{
-class STTY : public QObject
+class STTY : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
STTY(bool ext=false, const TQString &termAppName=TQString());
diff --git a/languages/ruby/debugger/variablewidget.cpp b/languages/ruby/debugger/variablewidget.cpp
index fd323fd5..32b5d1ef 100644
--- a/languages/ruby/debugger/variablewidget.cpp
+++ b/languages/ruby/debugger/variablewidget.cpp
@@ -49,8 +49,8 @@
namespace RDBDebugger
{
-VariableWidget::VariableWidget(TQWidget *parent, const char *name)
- : TQWidget(parent, name)
+VariableWidget::VariableWidget(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
varTree_ = new VariableTree(this);
TQLabel *label = new TQLabel(i18n("E&xpression to watch:"), this);
@@ -81,8 +81,8 @@ VariableWidget::VariableWidget(TQWidget *parent, const char *name)
void VariableWidget::setEnabled(bool bEnabled)
{
TQWidget::setEnabled(bEnabled);
- if (bEnabled && parentWidget() != 0) {
- varTree_->setColumnWidth(0, parentWidget()->width()/2);
+ if (bEnabled && tqparentWidget() != 0) {
+ varTree_->setColumnWidth(0, tqparentWidget()->width()/2);
}
}
// **************************************************************************
@@ -127,8 +127,8 @@ void VariableWidget::savePartialProjectSession(TQDomElement* el)
// **************************************************************************
// **************************************************************************
-VariableTree::VariableTree(VariableWidget *parent, const char *name)
- : KListView(parent, name),
+VariableTree::VariableTree(VariableWidget *tqparent, const char *name)
+ : KListView(tqparent, name),
TQToolTip( viewport() ),
activationId_(0),
currentThread_(-1),
@@ -187,7 +187,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
setSelected(item, true); // Need to select this item.
- if (item->parent() != 0) {
+ if (item->tqparent() != 0) {
KPopupMenu popup(this);
popup.insertTitle(item->text(VAR_NAME_COLUMN));
int idRemoveWatch = -2;
@@ -202,11 +202,11 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item)
emit removeWatchExpression(((WatchVarItem*)item)->displayId());
delete item;
} else if (res == idCopyToClipboard) {
- QClipboard *qb = KApplication::clipboard();
+ TQClipboard *qb = KApplication::tqclipboard();
TQString text = "{ \"" + item->text( VAR_NAME_COLUMN ) + "\", " +
"\"" + item->text( VALUE_COLUMN ) + "\" }";
- qb->setText( text, QClipboard::Clipboard );
+ qb->setText( text, TQClipboard::Clipboard );
}
}
}
@@ -233,7 +233,7 @@ void VariableTree::slotPressed(TQListViewItem * item)
}
while (item->rtti() == RTTI_VAR_ITEM) {
- item = item->parent();
+ item = item->tqparent();
}
if ( item->rtti() == RTTI_GLOBAL_ROOT
@@ -280,7 +280,7 @@ void VariableTree::prune()
// **************************************************************************
-// The debugger has moved onto the next program pause, so invalidate
+// The debugger has moved onto the next program pause, so tqinvalidate
// everything in the Variable Tree
void VariableTree::nextActivationId()
{
@@ -329,7 +329,7 @@ bool VariableTree::schedule()
if (frame->needsVariables()) {
if (TQApplication::overrideCursor() == 0) {
- TQApplication::setOverrideCursor(TQCursor(Qt::WaitCursor));
+ TQApplication::setOverrideCursor(TQCursor(TQt::WaitCursor));
}
// Tell the controller to fetch the variable values
@@ -428,7 +428,7 @@ void VariableTree::maybeTip(const TQPoint &p)
{
VarItem * item = dynamic_cast<VarItem*>( itemAt(p) );
if (item != 0) {
- TQRect r = itemRect(item);
+ TQRect r = tqitemRect(item);
if (r.isValid()) {
tip(r, item->tipText());
}
@@ -440,8 +440,8 @@ void VariableTree::maybeTip(const TQPoint &p)
// **************************************************************************
// **************************************************************************
-LazyFetchItem::LazyFetchItem(VariableTree *parent)
- : KListViewItem(parent),
+LazyFetchItem::LazyFetchItem(VariableTree *tqparent)
+ : KListViewItem(tqparent),
activationId_(0),
waitingForData_(false)
{
@@ -450,8 +450,8 @@ LazyFetchItem::LazyFetchItem(VariableTree *parent)
// **************************************************************************
-LazyFetchItem::LazyFetchItem(LazyFetchItem *parent)
- : KListViewItem(parent),
+LazyFetchItem::LazyFetchItem(LazyFetchItem *tqparent)
+ : KListViewItem(tqparent),
activationId_(0),
waitingForData_(false)
{
@@ -474,7 +474,7 @@ void LazyFetchItem::paintCell(TQPainter *p, const TQColorGroup &cg,
}
// make toplevel item (watch and frame items) names bold
- if (column == VAR_NAME_COLUMN && parent() == 0) {
+ if (column == VAR_NAME_COLUMN && tqparent() == 0) {
TQFont f = p->font();
f.setBold(true);
p->setFont(f);
@@ -526,8 +526,8 @@ void LazyFetchItem::prune()
// **************************************************************************
// **************************************************************************
-VarItem::VarItem(LazyFetchItem *parent, const TQString &varName, DataType dataType)
- : LazyFetchItem (parent),
+VarItem::VarItem(LazyFetchItem *tqparent, const TQString &varName, DataType dataType)
+ : LazyFetchItem (tqparent),
cache_(TQCString()),
dataType_(dataType),
highlight_(false)
@@ -586,7 +586,7 @@ TQString VarItem::fullName() const
TQString vPath("");
const VarItem *item = this;
- if (item->parent()->rtti() != RTTI_VAR_ITEM) {
+ if (item->tqparent()->rtti() != RTTI_VAR_ITEM) {
return itemName;
}
@@ -605,17 +605,17 @@ TQString VarItem::fullName() const
vPath.prepend(itemName + ".");
}
}
- item = (VarItem*) item->parent();
+ item = (VarItem*) item->tqparent();
}
// Change 'self.@foobar' to '@foobar'
- vPath.replace(TQRegExp("^self\\.@"), "@");
+ vPath.tqreplace(TQRegExp("^self\\.@"), "@");
// Use instance_variable_get() to access any '@var's in the middle of a path
TQRegExp re_instance_var("\\.(@[^\\[.]+)");
int pos = re_instance_var.search(vPath);
while (pos != -1) {
- vPath.replace( pos,
+ vPath.tqreplace( pos,
re_instance_var.matchedLength(),
TQString(".instance_variable_get(:") + re_instance_var.cap(1) + ")" );
pos = re_instance_var.search(vPath, pos);
@@ -635,7 +635,7 @@ void VarItem::setText(int column, const TQString &data)
}
TQListViewItem::setText(column, data);
- repaint();
+ tqrepaint();
}
// **************************************************************************
@@ -746,8 +746,8 @@ TQString VarItem::tipText() const
// **************************************************************************
// **************************************************************************
-VarFrameRoot::VarFrameRoot(VariableTree *parent, int frameNo, int threadNo)
- : LazyFetchItem(parent),
+VarFrameRoot::VarFrameRoot(VariableTree *tqparent, int frameNo, int threadNo)
+ : LazyFetchItem(tqparent),
needsVariables_(true),
frameNo_(frameNo),
threadNo_(threadNo),
@@ -816,7 +816,7 @@ void VarFrameRoot::setActivationId()
bool VarFrameRoot::needsVariables() const
{
- return ( text(VAR_NAME_COLUMN).contains("try_initialize") == 0
+ return ( text(VAR_NAME_COLUMN).tqcontains("try_initialize") == 0
&& isOpen()
&& !isWaitingForData()
&& needsVariables_ );
@@ -828,8 +828,8 @@ bool VarFrameRoot::needsVariables() const
// **************************************************************************
-GlobalRoot::GlobalRoot(VariableTree *parent)
- : LazyFetchItem(parent)
+GlobalRoot::GlobalRoot(VariableTree *tqparent)
+ : LazyFetchItem(tqparent)
{
setText(0, i18n("Global"));
setExpandable(true);
@@ -872,8 +872,8 @@ void GlobalRoot::setOpen(bool open)
// **************************************************************************
// **************************************************************************
-WatchVarItem::WatchVarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType, int displayId )
- : VarItem(parent, varName, dataType),
+WatchVarItem::WatchVarItem( LazyFetchItem *tqparent, const TQString &varName, DataType dataType, int displayId )
+ : VarItem(tqparent, varName, dataType),
displayId_(displayId)
{
}
@@ -903,8 +903,8 @@ int WatchVarItem::displayId()
// **************************************************************************
// **************************************************************************
-WatchRoot::WatchRoot(VariableTree *parent)
- : LazyFetchItem(parent)
+WatchRoot::WatchRoot(VariableTree *tqparent)
+ : LazyFetchItem(tqparent)
{
setText(VAR_NAME_COLUMN, i18n("Watch"));
setOpen(true);
diff --git a/languages/ruby/debugger/variablewidget.h b/languages/ruby/debugger/variablewidget.h
index 4104ae93..830acf64 100644
--- a/languages/ruby/debugger/variablewidget.h
+++ b/languages/ruby/debugger/variablewidget.h
@@ -60,12 +60,13 @@ enum DataType {
STRING_TYPE
};
-class VariableWidget : public QWidget
+class VariableWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- VariableWidget( TQWidget *parent=0, const char *name=0 );
+ VariableWidget( TQWidget *tqparent=0, const char *name=0 );
VariableTree *varTree() const
{ return varTree_; }
@@ -91,14 +92,15 @@ private:
/***************************************************************************/
/***************************************************************************/
-class VariableTree : public KListView, public QToolTip
+class VariableTree : public KListView, public TQToolTip
{
Q_OBJECT
+ TQ_OBJECT
//we need this to be able to emit expandItem() from within LazyFetchItem
friend class LazyFetchItem;
public:
- VariableTree( VariableWidget *parent, const char *name=0 );
+ VariableTree( VariableWidget *tqparent, const char *name=0 );
virtual ~VariableTree();
// Clear everything but the Watch frame
@@ -170,8 +172,8 @@ private:
class LazyFetchItem : public KListViewItem
{
public:
- LazyFetchItem(VariableTree *parent);
- LazyFetchItem(LazyFetchItem *parent);
+ LazyFetchItem(VariableTree *tqparent);
+ LazyFetchItem(LazyFetchItem *tqparent);
virtual ~LazyFetchItem();
@@ -204,7 +206,7 @@ private:
class VarItem : public LazyFetchItem
{
public:
- VarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType );
+ VarItem( LazyFetchItem *tqparent, const TQString &varName, DataType dataType );
virtual ~VarItem();
@@ -247,7 +249,7 @@ private:
class WatchVarItem : public VarItem
{
public:
- WatchVarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType, int displayId = -1);
+ WatchVarItem( LazyFetchItem *tqparent, const TQString &varName, DataType dataType, int displayId = -1);
virtual ~WatchVarItem();
@@ -268,13 +270,13 @@ private:
class VarFrameRoot : public LazyFetchItem
{
public:
- VarFrameRoot(VariableTree *parent, int frame, int thread);
+ VarFrameRoot(VariableTree *tqparent, int frame, int thread);
virtual ~VarFrameRoot();
virtual int rtti() const { return RTTI_VAR_FRAME_ROOT; }
virtual TQString key(int column, bool /*ascending*/) const {
- return TQString("%1%2").arg(RTTI_VAR_FRAME_ROOT).arg(text(column));
+ return TQString("%1%2").tqarg(RTTI_VAR_FRAME_ROOT).tqarg(text(column));
}
void addLocals(char *variables);
@@ -303,13 +305,13 @@ private:
class WatchRoot : public LazyFetchItem
{
public:
- WatchRoot(VariableTree * parent);
+ WatchRoot(VariableTree * tqparent);
virtual ~WatchRoot();
virtual int rtti() const { return RTTI_WATCH_ROOT; }
virtual TQString key(int column, bool /*ascending*/) const {
- return TQString("%1%2").arg(RTTI_WATCH_ROOT).arg(text(column));
+ return TQString("%1%2").tqarg(RTTI_WATCH_ROOT).tqarg(text(column));
}
void setWatchExpression(char * buf, char * expr);
@@ -326,13 +328,13 @@ public:
class GlobalRoot : public LazyFetchItem
{
public:
- GlobalRoot(VariableTree * parent);
+ GlobalRoot(VariableTree * tqparent);
virtual ~GlobalRoot();
virtual int rtti() const { return RTTI_GLOBAL_ROOT; }
virtual TQString key(int column, bool /*ascending*/) const {
- return TQString("%1%2").arg(RTTI_GLOBAL_ROOT).arg(text(column));
+ return TQString("%1%2").tqarg(RTTI_GLOBAL_ROOT).tqarg(text(column));
}
void setOpen(bool open);
diff --git a/languages/ruby/doc/ruby.toc b/languages/ruby/doc/ruby.toc
index bce60158..e732ae4d 100644
--- a/languages/ruby/doc/ruby.toc
+++ b/languages/ruby/doc/ruby.toc
@@ -448,8 +448,8 @@
<entry name="fileno (IO)" url="html/ref_c_io.html#IO.fileno"/>
<entry name="FileTest" url="html/ref_m_filetest.html"/>
<entry name="fill (Array)" url="html/ref_c_array.html#Array.fill"/>
-<entry name="find" url="html/lib_standard.html#Find.find"/>
-<entry name="find (Enumerable)" url="html/ref_m_enumerable.html#Enumerable.find"/>
+<entry name="tqfind" url="html/lib_standard.html#Find.tqfind"/>
+<entry name="tqfind (Enumerable)" url="html/ref_m_enumerable.html#Enumerable.tqfind"/>
<entry name="find_all (Enumerable)" url="html/ref_m_enumerable.html#Enumerable.find_all"/>
<entry name="find_library (mkmf)" url="html/lib_standard.html#mkmf.find_library"/>
<entry name="finish (Net::POP)" url="html/lib_network.html#Net::POP.finish"/>
@@ -970,9 +970,9 @@
<entry name="rename (File)" url="html/ref_c_file.html#File.rename"/>
<entry name="reopen (IO)" url="html/ref_c_io.html#IO.reopen"/>
<entry name="Repetition (stdtypes)" url="html/tut_stdtypes.html#UH"/>
-<entry name="replace (Array)" url="html/ref_c_array.html#Array.replace"/>
-<entry name="replace (Hash)" url="html/ref_c_hash.html#Hash.replace"/>
-<entry name="replace (String)" url="html/ref_c_string.html#String.replace"/>
+<entry name="tqreplace (Array)" url="html/ref_c_array.html#Array.tqreplace"/>
+<entry name="tqreplace (Hash)" url="html/ref_c_hash.html#Hash.tqreplace"/>
+<entry name="tqreplace (String)" url="html/ref_c_string.html#String.tqreplace"/>
<entry name="require (Kernel)" url="html/ref_m_kernel.html#Kernel.require"/>
<entry name="REQUIRED_ARGUMENT (GetoptLong)" url="html/lib_standard.html#GetoptLong.REQUIRED_ARGUMENT"/>
<entry name="Requirements for a Hash Key (language)" url="html/language.html#UH"/>
diff --git a/languages/ruby/qtdesignerrubyintegration.cpp b/languages/ruby/qtdesignerrubyintegration.cpp
index 11244f8f..068d983a 100644
--- a/languages/ruby/qtdesignerrubyintegration.cpp
+++ b/languages/ruby/qtdesignerrubyintegration.cpp
@@ -39,13 +39,13 @@
#include "codemodel_utils.h"
#include "implementationwidget.h"
-QtDesignerRubyIntegration::QtDesignerRubyIntegration(KDevLanguageSupport *part,
+TQtDesignerRubyIntegration::TQtDesignerRubyIntegration(KDevLanguageSupport *part,
ImplementationWidget *impl)
- :QtDesignerIntegration(part, impl, false, 0)
+ :TQtDesignerIntegration(part, impl, false, 0)
{
}
-void QtDesignerRubyIntegration::addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass)
+void TQtDesignerRubyIntegration::addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass)
{
m_part->partController()->editDocument( KURL( klass->fileName() ) );
KTextEditor::EditInterface* editIface = dynamic_cast<KTextEditor::EditInterface*>( m_part->partController()->activePart() );
@@ -61,7 +61,7 @@ void QtDesignerRubyIntegration::addFunctionToClass(KInterfaceDesigner::Function
klass->getStartPosition( &line, &column );
// compute the insertion point
- QPair<int,int> point;
+ TQPair<int,int> point;
point.first = line + 1;
point.second = column;
diff --git a/languages/ruby/qtdesignerrubyintegration.h b/languages/ruby/qtdesignerrubyintegration.h
index 86c09ea5..b2f8d4ef 100644
--- a/languages/ruby/qtdesignerrubyintegration.h
+++ b/languages/ruby/qtdesignerrubyintegration.h
@@ -17,16 +17,17 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef QTDESIGNERRUBYINTEGRATION_H
-#define QTDESIGNERRUBYINTEGRATION_H
+#ifndef TQTDESIGNERRUBYINTEGRATION_H
+#define TQTDESIGNERRUBYINTEGRATION_H
#include <qtdesignerintegration.h>
-class QtDesignerRubyIntegration : public QtDesignerIntegration
+class TQtDesignerRubyIntegration : public TQtDesignerIntegration
{
Q_OBJECT
+ TQ_OBJECT
public:
- QtDesignerRubyIntegration(KDevLanguageSupport *part, ImplementationWidget *impl);
+ TQtDesignerRubyIntegration(KDevLanguageSupport *part, ImplementationWidget *impl);
protected:
void addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass);
diff --git a/languages/ruby/rubyconfigwidget.cpp b/languages/ruby/rubyconfigwidget.cpp
index a7ec7a7a..874fe680 100644
--- a/languages/ruby/rubyconfigwidget.cpp
+++ b/languages/ruby/rubyconfigwidget.cpp
@@ -11,8 +11,8 @@
#include <kurlcompletion.h>
#include <kdebug.h>
-RubyConfigWidget::RubyConfigWidget(TQDomDocument &projectDom, TQWidget* parent, const char* name)
-: RubyConfigWidgetBase(parent,name), dom (projectDom) {
+RubyConfigWidget::RubyConfigWidget(TQDomDocument &projectDom, TQWidget* tqparent, const char* name)
+: RubyConfigWidgetBase(tqparent,name), dom (projectDom) {
kdDebug (9019) << "Creating RubyConfigWidget" << endl;
interpreterEdit->setText(DomUtil::readEntry(dom, "/kdevrubysupport/run/interpreter"));
if (interpreterEdit->text().isEmpty()) {
diff --git a/languages/ruby/rubyconfigwidget.h b/languages/ruby/rubyconfigwidget.h
index 2effa213..f4f367d1 100644
--- a/languages/ruby/rubyconfigwidget.h
+++ b/languages/ruby/rubyconfigwidget.h
@@ -9,8 +9,9 @@ class TQDomDocument;
class RubyConfigWidget : public RubyConfigWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- RubyConfigWidget(TQDomDocument &projectDom, TQWidget* parent = 0, const char* name = 0);
+ RubyConfigWidget(TQDomDocument &projectDom, TQWidget* tqparent = 0, const char* name = 0);
public slots:
void accept();
diff --git a/languages/ruby/rubyconfigwidgetbase.ui b/languages/ruby/rubyconfigwidgetbase.ui
index 64ae3e1c..93d020aa 100644
--- a/languages/ruby/rubyconfigwidgetbase.ui
+++ b/languages/ruby/rubyconfigwidgetbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>RubyConfigWidgetBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>RubyConfigWidgetBase</cstring>
</property>
@@ -16,9 +16,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<grid>
<property name="name">
@@ -34,7 +34,7 @@
<cstring>mainProgramEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -62,7 +62,7 @@ def cd(dir) Dir.chdir dir end</string>
<cstring>interpreterEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_2_3_2</cstring>
</property>
@@ -84,7 +84,7 @@ def cd(dir) Dir.chdir dir end</string>
<string>These are the arguments passed to the Ruby interpreter</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -106,7 +106,7 @@ def cd(dir) Dir.chdir dir end</string>
<string>This is the path (or just name, if in $PATH) to the Ruby interpreter. Defaults to "ruby"</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_2_3</cstring>
</property>
@@ -133,7 +133,7 @@ def cd(dir) Dir.chdir dir end</string>
<cstring>shellEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -158,14 +158,14 @@ def cd(dir) Dir.chdir dir end</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>runRadioBox</cstring>
</property>
@@ -184,7 +184,7 @@ def cd(dir) Dir.chdir dir end</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>mainProgramRadio</cstring>
</property>
@@ -192,7 +192,7 @@ def cd(dir) Dir.chdir dir end</string>
<string>Main pr&amp;ogram</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>selectedWindowRadio</cstring>
</property>
@@ -202,7 +202,7 @@ def cd(dir) Dir.chdir dir end</string>
</widget>
</grid>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>terminalCheckbox</cstring>
</property>
@@ -213,7 +213,7 @@ def cd(dir) Dir.chdir dir end</string>
<string>Check this if you want your applications to be opened in terminal window.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>enableFloatingToolBarBox</cstring>
</property>
@@ -224,7 +224,7 @@ def cd(dir) Dir.chdir dir end</string>
<string>Check this if you want to control the debugger via a floating toolbar.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>showConstants</cstring>
</property>
@@ -235,7 +235,7 @@ def cd(dir) Dir.chdir dir end</string>
<string>Check this if you want the debugger to show constants (with many constants this may be slow).</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>traceIntoRuby</cstring>
</property>
@@ -246,7 +246,7 @@ def cd(dir) Dir.chdir dir end</string>
<string>Trace through the Ruby code installed under sitedir in the debugger</string>
</property>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>characterCodingRadioBox</cstring>
</property>
@@ -265,7 +265,7 @@ def cd(dir) Dir.chdir dir end</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>asciiOption</cstring>
</property>
@@ -276,7 +276,7 @@ def cd(dir) Dir.chdir dir end</string>
<number>0</number>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>eucOption</cstring>
</property>
@@ -287,7 +287,7 @@ def cd(dir) Dir.chdir dir end</string>
<number>1</number>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>sjisOption</cstring>
</property>
@@ -298,7 +298,7 @@ def cd(dir) Dir.chdir dir end</string>
<number>2</number>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>utf8Option</cstring>
</property>
@@ -321,7 +321,7 @@ def cd(dir) Dir.chdir dir end</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -349,8 +349,8 @@ def cd(dir) Dir.chdir dir end</string>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/languages/ruby/rubyimplementationwidget.cpp b/languages/ruby/rubyimplementationwidget.cpp
index b1371a24..3ddaec11 100644
--- a/languages/ruby/rubyimplementationwidget.cpp
+++ b/languages/ruby/rubyimplementationwidget.cpp
@@ -34,8 +34,8 @@
#include <kdevproject.h>
RubyImplementationWidget::RubyImplementationWidget(KDevLanguageSupport* part,
- TQWidget* parent, const char* name, bool modal)
- :ImplementationWidget(part, parent, name, modal)
+ TQWidget* tqparent, const char* name, bool modal)
+ :ImplementationWidget(part, tqparent, name, modal)
{
}
@@ -44,9 +44,9 @@ TQStringList RubyImplementationWidget::createClassFiles()
TQString template_rb = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
TQFileInfo formInfo(m_formName);
- template_rb.replace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".rb");
- template_rb.replace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
- template_rb.replace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
+ template_rb.tqreplace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".rb");
+ template_rb.tqreplace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
+ template_rb.tqreplace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
template_rb = FileTemplate::read(m_part, "rb") + template_rb;
diff --git a/languages/ruby/rubyimplementationwidget.h b/languages/ruby/rubyimplementationwidget.h
index 4393b94b..5dfaf4a4 100644
--- a/languages/ruby/rubyimplementationwidget.h
+++ b/languages/ruby/rubyimplementationwidget.h
@@ -24,8 +24,9 @@
class RubyImplementationWidget : public ImplementationWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- RubyImplementationWidget(KDevLanguageSupport* part, TQWidget* parent = 0,
+ RubyImplementationWidget(KDevLanguageSupport* part, TQWidget* tqparent = 0,
const char* name = 0, bool modal = true);
virtual TQStringList createClassFiles();
diff --git a/languages/ruby/rubysupport_part.cpp b/languages/ruby/rubysupport_part.cpp
index 411f06ff..4fe000a5 100644
--- a/languages/ruby/rubysupport_part.cpp
+++ b/languages/ruby/rubysupport_part.cpp
@@ -41,8 +41,8 @@ typedef KDevGenericFactory<RubySupportPart> RubySupportFactory;
static const KDevPluginInfo data("kdevrubysupport");
K_EXPORT_COMPONENT_FACTORY( libkdevrubysupport, RubySupportFactory( data ) )
-RubySupportPart::RubySupportPart(TQObject *parent, const char *name, const TQStringList& )
- : KDevLanguageSupport (&data, parent, name ? name : "RubySupportPart" )
+RubySupportPart::RubySupportPart(TQObject *tqparent, const char *name, const TQStringList& )
+ : KDevLanguageSupport (&data, tqparent, name ? name : "RubySupportPart" )
{
setInstance(RubySupportFactory::instance());
setXMLFile("kdevrubysupport.rc");
@@ -205,7 +205,7 @@ void RubySupportPart::savedFile(const KURL &fileName)
{
kdDebug() << "savedFile()" << endl;
- if (project()->allFiles().contains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
+ if (project()->allFiles().tqcontains(fileName.path().mid ( project()->projectDirectory().length() + 1 ))) {
maybeParse(fileName.path());
emit addedSourceInfo( fileName.path() );
}
@@ -261,11 +261,11 @@ void RubySupportPart::parse(const TQString &fileName)
m_file->addClass( lastClass );
}
- TQString parent = classre.cap(5);
- if (!parent.isEmpty())
+ TQString tqparent = classre.cap(5);
+ if (!tqparent.isEmpty())
{
- kdDebug() << "Add parent " << parent << endl;
- lastClass->addBaseClass( parent );
+ kdDebug() << "Add tqparent " << tqparent << endl;
+ lastClass->addBaseClass( tqparent );
}
lastAccess = CodeModelItem::Public;
@@ -532,12 +532,12 @@ void RubySupportPart::slotRun ()
appFrontend->startAppCommand(project()->projectDirectory(), cmd, false);
} else {
TQString cmd = TQString("%1 -K%2 -C\"%3\" -I\"%4\" \"%5\" %6")
- .arg(interpreter())
- .arg(characterCoding())
- .arg(runDirectory())
- .arg(program.dirPath())
- .arg(program.fileName())
- .arg(programArgs());
+ .tqarg(interpreter())
+ .tqarg(characterCoding())
+ .tqarg(runDirectory())
+ .tqarg(program.dirPath())
+ .tqarg(program.fileName())
+ .tqarg(programArgs());
startApplication(cmd);
}
}
@@ -632,12 +632,12 @@ KDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerT
KDevDesignerIntegration *des = 0;
switch (type)
{
- case KInterfaceDesigner::QtDesigner:
+ case KInterfaceDesigner::TQtDesigner:
des = m_designers[type];
if (des == 0)
{
RubyImplementationWidget *impl = new RubyImplementationWidget(this);
- des = new QtDesignerRubyIntegration(this, impl);
+ des = new TQtDesignerRubyIntegration(this, impl);
des->loadSettings(*project()->projectDom(),
"kdevrubysupport/designerintegration");
m_designers[type] = des;
@@ -669,7 +669,7 @@ void RubySupportPart::contextMenu( TQPopupMenu * popup, const Context * context
{
m_contextFileName = url.fileName();
int id = popup->insertItem(i18n("Create or Select Implementation..."), this, TQT_SLOT(slotCreateSubclass()));
- popup->setWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner."));
+ popup->tqsetWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner."));
}
}
}
@@ -679,7 +679,7 @@ void RubySupportPart::slotCreateSubclass()
TQFileInfo fi(m_contextFileName);
if (fi.extension(false) != "ui")
return;
- QtDesignerRubyIntegration *des = dynamic_cast<QtDesignerRubyIntegration*>(designer(KInterfaceDesigner::QtDesigner));
+ TQtDesignerRubyIntegration *des = dynamic_cast<TQtDesignerRubyIntegration*>(designer(KInterfaceDesigner::TQtDesigner));
if (des)
des->selectImplementation(m_contextFileName);
}
@@ -715,7 +715,7 @@ void RubySupportPart::slotSwitchToController()
}
else if (ext == "rjs" || ext == "rxml" || ext == "rhtml" || ext == "js.rjs" || ext == "xml.builder" || ext == "html.erb")
{
- //this is a view, we need to find the directory of this view and try to find
+ //this is a view, we need to find the directory of this view and try to tqfind
//the controller basing on the directory information
switchTo = file.dir().dirName();
}
@@ -896,12 +896,12 @@ void RubySupportPart::slotRunTestUnderCursor()
TQFileInfo program(prog);
TQString cmd = TQString("%1 -K%2 -C\"%3\" -I\"%4\" \"%5\" %6")
- .arg(interpreter())
- .arg(characterCoding())
- .arg(runDirectory())
- .arg(program.dirPath())
- .arg(program.fileName())
- .arg(" -n " + fun->name());
+ .tqarg(interpreter())
+ .tqarg(characterCoding())
+ .tqarg(runDirectory())
+ .tqarg(program.dirPath())
+ .tqarg(program.fileName())
+ .tqarg(" -n " + fun->name());
startApplication(cmd);
}
diff --git a/languages/ruby/rubysupport_part.h b/languages/ruby/rubysupport_part.h
index f55ecc4e..2fbfed42 100644
--- a/languages/ruby/rubysupport_part.h
+++ b/languages/ruby/rubysupport_part.h
@@ -18,10 +18,11 @@ class KDevShellWidget;
class RubySupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- RubySupportPart(TQObject *parent, const char *name, const TQStringList &);
+ RubySupportPart(TQObject *tqparent, const char *name, const TQStringList &);
virtual ~RubySupportPart();
virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type);
diff --git a/languages/sql/README.dox b/languages/sql/README.dox
index bfa52e2e..e44edb43 100644
--- a/languages/sql/README.dox
+++ b/languages/sql/README.dox
@@ -6,7 +6,7 @@ This is a SQL support plugin
\maintainer <a href="mailto:harry AT kdevelop.org">Harald Fernengel</a>
\feature SQL language support
-\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
\bug Describe a the 1st bug that you know of, but probably hasn't been reported yet.
..
diff --git a/languages/sql/sqlactions.cpp b/languages/sql/sqlactions.cpp
index df8ba309..8d533a9e 100644
--- a/languages/sql/sqlactions.cpp
+++ b/languages/sql/sqlactions.cpp
@@ -25,16 +25,14 @@
#include "kdevlanguagesupport.h"
#include "sqlsupport_part.h"
-SqlListAction::SqlListAction(SQLSupportPart *part, const TQString &text,
+SqlListAction::SqlListAction(STQLSupportPart *part, const TQString &text,
const KShortcut& cut,
const TQObject *receiver, const char *slot,
- KActionCollection *parent, const char *name)
- : KWidgetAction( m_combo = new KComboBox(), text, cut, 0, 0, parent, name), m_part(part)
+ KActionCollection *tqparent, const char *name)
+ : KWidgetAction( m_combo = new KComboBox(), text, cut, 0, 0, tqparent, name), m_part(part)
{
-#if (QT_VERSION >= 0x030100)
m_combo->setEditable( false );
m_combo->setAutoCompletion( true );
-#endif
m_combo->setMinimumWidth( 200 );
m_combo->setMaximumWidth( 400 );
@@ -51,7 +49,7 @@ SqlListAction::SqlListAction(SQLSupportPart *part, const TQString &text,
void SqlListAction::setCurrentConnectionName(const TQString &name)
{
- int idx = m_part->connections().findIndex( name );
+ int idx = m_part->connections().tqfindIndex( name );
if ( idx < 0 )
m_combo->setCurrentItem( 0 );
else
@@ -62,7 +60,7 @@ void SqlListAction::setCurrentConnectionName(const TQString &name)
TQString SqlListAction::currentConnectionName() const
{
if ( m_combo->currentItem() <= 0 )
- return TQString::null;
+ return TQString();
return m_part->connections()[ m_combo->currentItem() - 1 ];
}
@@ -88,7 +86,7 @@ void SqlListAction::refresh()
TQSqlDatabase* db = TQSqlDatabase::database( (*it), false );
if ( !db ) {
kdDebug( 9000 ) << "Could not find database connection " << (*it) << endl;
- m_combo->insertItem( SmallIcon( "no" ), i18n("<error - no connection %1>").arg( *it ) );
+ m_combo->insertItem( SmallIcon( "no" ), i18n("<error - no connection %1>").tqarg( *it ) );
continue;
}
cName = db->driverName();
diff --git a/languages/sql/sqlactions.h b/languages/sql/sqlactions.h
index 8cc7b5df..ff71ae54 100644
--- a/languages/sql/sqlactions.h
+++ b/languages/sql/sqlactions.h
@@ -9,23 +9,24 @@
* *
***************************************************************************/
-#ifndef _SQLACTION_H_
-#define _SQLACTION_H_
+#ifndef _STQLACTION_H_
+#define _STQLACTION_H_
#include <kdeversion.h>
#include <kxmlguiclient.h>
#include <kaction.h>
-class SQLSupportPart;
+class STQLSupportPart;
class KComboBox;
class SqlListAction : public KWidgetAction
{
Q_OBJECT
+ TQ_OBJECT
public:
- SqlListAction( SQLSupportPart *part, const TQString &text, const KShortcut& cut,
+ SqlListAction( STQLSupportPart *part, const TQString &text, const KShortcut& cut,
const TQObject *receiver, const char *slot,
- KActionCollection *parent, const char *name );
+ KActionCollection *tqparent, const char *name );
void setCurrentConnectionName(const TQString &name);
TQString currentConnectionName() const;
void refresh();
@@ -34,7 +35,7 @@ private slots:
void activated(int);
private:
- SQLSupportPart *m_part;
+ STQLSupportPart *m_part;
KComboBox* m_combo;
};
diff --git a/languages/sql/sqlconfigwidget.ui b/languages/sql/sqlconfigwidget.ui
index e85b09d9..98be3606 100644
--- a/languages/sql/sqlconfigwidget.ui
+++ b/languages/sql/sqlconfigwidget.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>SqlConfigWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>SqlConfigWidget</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTable">
+ <widget class="TQTable">
<column>
<property name="text">
<string>Plugin</string>
@@ -78,7 +78,7 @@
<enum>SingleRow</enum>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -86,9 +86,9 @@
<string>&lt;i&gt;Warning:&lt;/i&gt; password will be saved with weak encryption.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>81</width>
<height>20</height>
@@ -161,27 +161,27 @@
<include location="local" impldecl="in implementation">sqlconfigwidget.ui.h</include>
</includes>
<forwards>
- <forward>class QDomDocument;</forward>
+ <forward>class TQDomDocument;</forward>
</forwards>
<variables>
- <variable access="private">QDomDocument* doc;</variable>
+ <variable access="private">TQDomDocument* doc;</variable>
<variable access="private">bool changed;</variable>
</variables>
-<signals>
+<Q_SIGNALS>
<signal>newConfigSaved()</signal>
-</signals>
-<slots>
+</Q_SIGNALS>
+<Q_SLOTS>
<slot>init()</slot>
<slot>valueChanged( int, int )</slot>
<slot>removeDb()</slot>
<slot>updateButtons()</slot>
<slot>testDb()</slot>
<slot>accept()</slot>
- <slot>setProjectDom( QDomDocument * doc )</slot>
+ <slot>setProjectDom( TQDomDocument * doc )</slot>
<slot>loadConfig()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>
diff --git a/languages/sql/sqlconfigwidget.ui.h b/languages/sql/sqlconfigwidget.ui.h
index b7725a49..877c1569 100644
--- a/languages/sql/sqlconfigwidget.ui.h
+++ b/languages/sql/sqlconfigwidget.ui.h
@@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename functions or slots use
-** Qt Designer which will update this file, preserving your code. Create an
+** TQt Designer which will update this file, preserving your code. Create an
** init() function in place of a constructor, and a destroy() function in
** place of a destructor.
*****************************************************************************/
@@ -22,10 +22,10 @@
#include "sqlsupport_part.h"
// displays a ComboBox on edit to let the user choose the plugin
-class PluginTableItem: public QTableItem
+class PluginTableItem: public TQTableItem
{
public:
- PluginTableItem( TQTable* table, const TQString& text = TQString::null ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
+ PluginTableItem( TQTable* table, const TQString& text = TQString() ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
virtual TQWidget* createEditor() const
{
@@ -46,10 +46,10 @@ public:
};
// uses a spinbox to let the user choose the port
-class PortTableItem: public QTableItem
+class PortTableItem: public TQTableItem
{
public:
- PortTableItem( TQTable* table, const TQString& text = TQString::null ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
+ PortTableItem( TQTable* table, const TQString& text = TQString() ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
virtual TQWidget* createEditor() const
{
@@ -70,10 +70,10 @@ public:
};
// uses a spinbox to let the user choose the port
-class PasswordTableItem: public QTableItem
+class PasswordTableItem: public TQTableItem
{
public:
- PasswordTableItem( TQTable* table, const TQString& text = TQString::null ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
+ PasswordTableItem( TQTable* table, const TQString& text = TQString() ): TQTableItem( table, TQTableItem::OnTyping, text ) {}
virtual TQWidget* createEditor() const
{
@@ -203,7 +203,7 @@ void SqlConfigWidget::accept()
db << dbTable->text( i, 0 ) << dbTable->text( i, 1 )
<< dbTable->text( i, 2 ) << dbTable->text( i, 3 )
<< dbTable->text( i, 4 )
- << SQLSupportPart::cryptStr( ((PasswordTableItem*)dbTable->item( i, 5 ))->password );
+ << STQLSupportPart::cryptStr( ((PasswordTableItem*)dbTable->item( i, 5 ))->password );
DomUtil::writeListEntry( *doc,
"/kdevsqlsupport/servers/server" + TQString::number( i ),
@@ -235,7 +235,7 @@ void SqlConfigWidget::loadConfig()
int row = dbTable->numRows() - 2;
for ( int ii = 0; ii < 6; ii++ )
dbTable->setText( row, ii, db[ii] );
- ((PasswordTableItem*)dbTable->item( row, 5 ))->password = SQLSupportPart::cryptStr( db[5] );
+ ((PasswordTableItem*)dbTable->item( row, 5 ))->password = STQLSupportPart::cryptStr( db[5] );
i++;
}
diff --git a/languages/sql/sqloutputwidget.cpp b/languages/sql/sqloutputwidget.cpp
index f7d84fde..73228dd7 100644
--- a/languages/sql/sqloutputwidget.cpp
+++ b/languages/sql/sqloutputwidget.cpp
@@ -24,11 +24,11 @@
#include "sqloutputwidget.h"
-class QCustomSqlCursor: public QSqlCursor
+class TQCustomSqlCursor: public TQSqlCursor
{
public:
- QCustomSqlCursor( const TQString & query = TQString::null, bool autopopulate = TRUE, TQSqlDatabase* db = 0 ) :
- TQSqlCursor( TQString::null, autopopulate, db )
+ TQCustomSqlCursor( const TQString & query = TQString(), bool autopopulate = TRUE, TQSqlDatabase* db = 0 ) :
+ TQSqlCursor( TQString(), autopopulate, db )
{
exec( query );
if ( isSelect() && autopopulate ) {
@@ -39,23 +39,23 @@ public:
}
setMode( TQSqlCursor::ReadOnly );
}
- QCustomSqlCursor( const QCustomSqlCursor & other ): TQSqlCursor( other ) {}
+ TQCustomSqlCursor( const TQCustomSqlCursor & other ): TQSqlCursor( other ) {}
bool select( const TQString & /*filter*/, const TQSqlIndex & /*sort*/ = TQSqlIndex() )
{ return exec( lastQuery() ); }
TQSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const
{ return TQSqlIndex(); }
- int insert( bool /*invalidate*/ = TRUE )
+ int insert( bool /*tqinvalidate*/ = TRUE )
{ return FALSE; }
- int update( bool /*invalidate*/ = TRUE )
+ int update( bool /*tqinvalidate*/ = TRUE )
{ return FALSE; }
- int del( bool /*invalidate*/ = TRUE )
+ int del( bool /*tqinvalidate*/ = TRUE )
{ return FALSE; }
void setName( const TQString& /*name*/, bool /*autopopulate*/ = TRUE ) {}
};
-SqlOutputWidget::SqlOutputWidget ( TQWidget* parent, const char* name ) :
- TQWidget( parent, name )
+SqlOutputWidget::SqlOutputWidget ( TQWidget* tqparent, const char* name ) :
+ TQWidget( tqparent, name )
{
m_stack = new TQWidgetStack( this );
m_table = new TQDataTable( this );
@@ -67,8 +67,8 @@ SqlOutputWidget::SqlOutputWidget ( TQWidget* parent, const char* name ) :
m_stack->addWidget( m_textEdit );
m_stack->addWidget( m_table );
- TQVBoxLayout* layout = new TQVBoxLayout( this );
- layout->addWidget( m_stack );
+ TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
+ tqlayout->addWidget( m_stack );
}
SqlOutputWidget::~SqlOutputWidget()
@@ -78,7 +78,7 @@ void SqlOutputWidget::showQuery( const TQString& connectionName, const TQString&
{
TQSqlDatabase* db = TQSqlDatabase::database( connectionName, true );
if ( !db ) {
- showError( i18n("No such connection: %1").arg( connectionName ) );
+ showError( i18n("No such connection: %1").tqarg( connectionName ) );
return;
}
if ( !db->isOpen() ) {
@@ -86,7 +86,7 @@ void SqlOutputWidget::showQuery( const TQString& connectionName, const TQString&
return;
}
- TQSqlCursor* cur = new QCustomSqlCursor( query, true, db );
+ TQSqlCursor* cur = new TQCustomSqlCursor( query, true, db );
if ( !cur->isActive() ) {
showError( cur->lastError() );
} else if ( cur->isSelect() ) {
@@ -101,7 +101,7 @@ void SqlOutputWidget::showQuery( const TQString& connectionName, const TQString&
void SqlOutputWidget::showSuccess( int rowsAffected )
{
m_textEdit->clear();
- m_textEdit->setText( i18n("Query successful, number of rows affected: %1").arg( rowsAffected ) );
+ m_textEdit->setText( i18n("Query successful, number of rows affected: %1").tqarg( rowsAffected ) );
m_stack->raiseWidget( m_textEdit );
}
diff --git a/languages/sql/sqloutputwidget.h b/languages/sql/sqloutputwidget.h
index 126963a2..c4a58ddf 100644
--- a/languages/sql/sqloutputwidget.h
+++ b/languages/sql/sqloutputwidget.h
@@ -9,8 +9,8 @@
* *
***************************************************************************/
-#ifndef _SQLOUTPUTWIDGET_H_
-#define _SQLOUTPUTWIDGET_H_
+#ifndef _STQLOUTPUTWIDGET_H_
+#define _STQLOUTPUTWIDGET_H_
#include <tqwidget.h>
@@ -19,12 +19,13 @@ class TQDataTable;
class TQTextEdit;
class TQSqlError;
-class SqlOutputWidget : public QWidget
+class SqlOutputWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- SqlOutputWidget( TQWidget* parent = 0, const char* name = 0 );
+ SqlOutputWidget( TQWidget* tqparent = 0, const char* name = 0 );
virtual ~SqlOutputWidget();
public:
diff --git a/languages/sql/sqlsupport_part.cpp b/languages/sql/sqlsupport_part.cpp
index 78c1c1f2..c31a4499 100644
--- a/languages/sql/sqlsupport_part.cpp
+++ b/languages/sql/sqlsupport_part.cpp
@@ -29,14 +29,14 @@
#include "sqloutputwidget.h"
#include "domutil.h"
-typedef KDevGenericFactory<SQLSupportPart> SQLSupportFactory;
+typedef KDevGenericFactory<STQLSupportPart> STQLSupportFactory;
static const KDevPluginInfo data("kdevsqlsupport");
-K_EXPORT_COMPONENT_FACTORY( libkdevsqlsupport, SQLSupportFactory( data ) )
+K_EXPORT_COMPONENT_FACTORY( libkdevsqlsupport, STQLSupportFactory( data ) )
-SQLSupportPart::SQLSupportPart( TQObject *parent, const char *name, const TQStringList& )
- : KDevLanguageSupport ( &data, parent, name ? name : "SQLSupportPart" )
+STQLSupportPart::STQLSupportPart( TQObject *tqparent, const char *name, const TQStringList& )
+ : KDevLanguageSupport ( &data, tqparent, name ? name : "STQLSupportPart" )
{
- setInstance( SQLSupportFactory::instance() );
+ setInstance( STQLSupportFactory::instance() );
setXMLFile( "kdevsqlsupport.rc" );
KAction *action;
@@ -46,7 +46,7 @@ SQLSupportPart::SQLSupportPart( TQObject *parent, const char *name, const TQStri
dbAction = new SqlListAction( this, i18n( "&Database Connections" ), 0, this, TQT_SLOT(activeConnectionChanged()), actionCollection(), "connection_combo" );
- kdDebug( 9000 ) << "Creating SQLSupportPart" << endl;
+ kdDebug( 9000 ) << "Creating STQLSupportPart" << endl;
connect( core(), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ),
this, TQT_SLOT( projectConfigWidget( KDialogBase* ) ) );
@@ -61,30 +61,30 @@ SQLSupportPart::SQLSupportPart( TQObject *parent, const char *name, const TQStri
}
-SQLSupportPart::~SQLSupportPart()
+STQLSupportPart::~STQLSupportPart()
{
mainWindow()->removeView(m_widget);
delete m_widget;
}
-TQString SQLSupportPart::cryptStr(const TQString& aStr)
+TQString STQLSupportPart::cryptStr(const TQString& aStr)
{
TQString result;
for (unsigned int i = 0; i < aStr.length(); i++)
- result += (aStr[i].unicode() < 0x20) ? aStr[i] :
- TQChar(0x1001F - aStr[i].unicode());
+ result += (aStr[i].tqunicode() < 0x20) ? aStr[i] :
+ TQChar(0x1001F - aStr[i].tqunicode());
return result;
}
-void SQLSupportPart::activeConnectionChanged()
+void STQLSupportPart::activeConnectionChanged()
{
updateCatalog();
}
-void SQLSupportPart::clearConfig()
+void STQLSupportPart::clearConfig()
{
for ( TQStringList::Iterator it = conNames.begin(); it != conNames.end(); ++it ) {
- if ( TQSqlDatabase::contains( *it ) ) {
+ if ( TQSqlDatabase::tqcontains( *it ) ) {
TQSqlDatabase::database( *it, false )->close();
TQSqlDatabase::removeDatabase( *it );
} else {
@@ -96,7 +96,7 @@ void SQLSupportPart::clearConfig()
dbAction->refresh();
}
-void SQLSupportPart::loadConfig()
+void STQLSupportPart::loadConfig()
{
clearConfig();
@@ -110,10 +110,10 @@ void SQLSupportPart::loadConfig()
if ( (int)sdb.size() < 6 )
break;
- conName = "KDEVSQLSUPPORT_";
+ conName = "KDEVSTQLSUPPORT_";
conName += TQString::number( i );
conNames << conName;
- TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSQLSUPPORT_%1" ).arg( i ) );
+ TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSTQLSUPPORT_%1" ).tqarg( i ) );
db->setDatabaseName( sdb[1] );
db->setHostName( sdb[2] );
bool ok;
@@ -130,7 +130,7 @@ void SQLSupportPart::loadConfig()
dbAction->refresh();
}
-void SQLSupportPart::projectConfigWidget( KDialogBase *dlg )
+void STQLSupportPart::projectConfigWidget( KDialogBase *dlg )
{
TQVBox *vbox = dlg->addVBoxPage( TQString( "SQL" ), i18n( "Specify Your Database Connections" ), BarIcon("source", KIcon::SizeMedium) );
SqlConfigWidget *w = new SqlConfigWidget( (TQWidget*)vbox, "SQL config widget" );
@@ -140,7 +140,7 @@ void SQLSupportPart::projectConfigWidget( KDialogBase *dlg )
connect( w, TQT_SIGNAL(newConfigSaved()), this, TQT_SLOT(loadConfig()) );
}
-void SQLSupportPart::projectOpened()
+void STQLSupportPart::projectOpened()
{
connect( project(), TQT_SIGNAL( addedFilesToProject( const TQStringList & ) ),
this, TQT_SLOT( addedFilesToProject( const TQStringList & ) ) );
@@ -155,12 +155,12 @@ void SQLSupportPart::projectOpened()
}
-void SQLSupportPart::projectClosed()
+void STQLSupportPart::projectClosed()
{
clearConfig();
}
-void SQLSupportPart::slotRun ()
+void STQLSupportPart::slotRun ()
{
TQString cName = dbAction->currentConnectionName();
if ( cName.isEmpty() ) {
@@ -183,20 +183,20 @@ static TQString dbCaption(const TQSqlDatabase* db)
if (!db)
return res;
res = db->driverName();
- res += TQString::fromLatin1("@");
+ res += TQString::tqfromLatin1("@");
res += db->hostName();
if (db->port() >= 0)
- res += TQString::fromLatin1(":") + TQString::number(db->port());
+ res += TQString::tqfromLatin1(":") + TQString::number(db->port());
return res;
}
#endif
-void SQLSupportPart::parse()
+void STQLSupportPart::parse()
{
// @todo
}
-void SQLSupportPart::updateCatalog()
+void STQLSupportPart::updateCatalog()
{
if (!project() || !dbAction)
return;
@@ -236,7 +236,7 @@ void SQLSupportPart::updateCatalog()
emit updatedSourceInfo();
}
-void SQLSupportPart::addedFilesToProject( const TQStringList &fileList )
+void STQLSupportPart::addedFilesToProject( const TQStringList &fileList )
{
TQStringList::ConstIterator it;
@@ -248,7 +248,7 @@ void SQLSupportPart::addedFilesToProject( const TQStringList &fileList )
}
-void SQLSupportPart::removedFilesFromProject( const TQStringList &fileList )
+void STQLSupportPart::removedFilesFromProject( const TQStringList &fileList )
{
TQStringList::ConstIterator it;
@@ -259,20 +259,20 @@ void SQLSupportPart::removedFilesFromProject( const TQStringList &fileList )
emit updatedSourceInfo();
}
-void SQLSupportPart::savedFile( const KURL &fileName )
+void STQLSupportPart::savedFile( const KURL &fileName )
{
- if ( project() ->allFiles().contains( fileName.path().mid ( project() ->projectDirectory().length() + 1 ) ) ) {
+ if ( project() ->allFiles().tqcontains( fileName.path().mid ( project() ->projectDirectory().length() + 1 ) ) ) {
// parse( fileName );
// emit updatedSourceInfo();
}
}
-KDevLanguageSupport::Features SQLSupportPart::features()
+KDevLanguageSupport::Features STQLSupportPart::features()
{
return Features( Classes | Functions );
}
-KMimeType::List SQLSupportPart::mimeTypes( )
+KMimeType::List STQLSupportPart::mimeTypes( )
{
KMimeType::List list;
KMimeType::Ptr mime = KMimeType::mimeType( "text/plain" );
diff --git a/languages/sql/sqlsupport_part.h b/languages/sql/sqlsupport_part.h
index 187a4bbd..71007d3c 100644
--- a/languages/sql/sqlsupport_part.h
+++ b/languages/sql/sqlsupport_part.h
@@ -1,5 +1,5 @@
-#ifndef __KDEVPART_SQLSUPPORT_H__
-#define __KDEVPART_SQLSUPPORT_H__
+#ifndef __KDEVPART_STQLSUPPORT_H__
+#define __KDEVPART_STQLSUPPORT_H__
#include <tqguardedptr.h>
#include <tqstringlist.h>
@@ -14,14 +14,15 @@ class SqlListAction;
class SqlOutputWidget;
class CodeModel;
-class SQLSupportPart : public KDevLanguageSupport
+class STQLSupportPart : public KDevLanguageSupport
{
Q_OBJECT
+ TQ_OBJECT
public:
- SQLSupportPart(TQObject *parent, const char *name, const TQStringList &);
- virtual ~SQLSupportPart();
+ STQLSupportPart(TQObject *tqparent, const char *name, const TQStringList &);
+ virtual ~STQLSupportPart();
static TQString cryptStr(const TQString& aStr);
const TQStringList& connections() const { return conNames; }